Thanks Brian, I will give this a try.
________________________________
From: Brian Roberts <broberts@...>
To: vantage@yahoogroups.com
Sent: Monday, November 5, 2012 4:16 PM
Subject: RE: [Vantage] Prompting user to clock out after ending last activity
If you do this, make sure the employee is not clocked into a second job
before calling ClockOut. That method assumes that all jobs are complete
(ie, the MES clock out button is enabled), otherwise you'll have
orphaned LaborDtl transactions.
To call a BO from ABL, some bits of sample code below.
Brian.
Include dataset definition at the top:
{bo/Labor/Labor_ds.i}
Connect to BO (equivalent of connecting an adapter):
DEFINE VARIABLE vh-labordtl as HANDLE NO-UNDO.
RUN bo/Labor/Labor.p PERSISTENT SET vh-labordtl NO-ERROR.
Do the actual method call after correct row selected etc...
IF valid-handle(vh-labordtl) THEN DO:
        RUN SubmitForApproval IN vh-labordtl
({&input-output_dataset_LaborDataSet}, FALSE, output msg).
END.
Cleanup:
DELETE OBJECT vh-labordtl.
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of tkoch77
Sent: Monday, November 05, 2012 11:02 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Prompting user to clock out after ending last
activity
Â
We are having issues where people are not clocking out. We would like to
make it so that when a user clocks out of their last activity, they get
asked if they would like to clock out of the system entirely.
This is how I think I can get this to work:
Set a post-processing condition to Labor.Update (I think this is the
correct method to use when they end activity) that would check if there
are any LaborDtl records associated with the users current LaborHed
record. If they are no LaborDtl records, the first action would be to
call a BPM form with a simple yes or no, after this add another action
that would execute ABL code, in the ABL code I think I could get the
response from either button they click. Then call EmpBasic.ClockOut
method with ABL code.
I think my problem is I'm not sure how to call the EmpBasic.Clockout
method and pass it a value in ABL, is it possible?
Thanks for any help,
-Ted
[Non-text portions of this message have been removed]
------------------------------------
Useful links for the Yahoo!Groups Vantage Board are: ( Note:Â You must have already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and Crystal Reports and other 'goodies', please goto: http://groups.yahoo.com/group/vantage/files/.%c2%a0
(2) To search through old msg's goto: http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto: http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links
[Non-text portions of this message have been removed]
________________________________
From: Brian Roberts <broberts@...>
To: vantage@yahoogroups.com
Sent: Monday, November 5, 2012 4:16 PM
Subject: RE: [Vantage] Prompting user to clock out after ending last activity
If you do this, make sure the employee is not clocked into a second job
before calling ClockOut. That method assumes that all jobs are complete
(ie, the MES clock out button is enabled), otherwise you'll have
orphaned LaborDtl transactions.
To call a BO from ABL, some bits of sample code below.
Brian.
Include dataset definition at the top:
{bo/Labor/Labor_ds.i}
Connect to BO (equivalent of connecting an adapter):
DEFINE VARIABLE vh-labordtl as HANDLE NO-UNDO.
RUN bo/Labor/Labor.p PERSISTENT SET vh-labordtl NO-ERROR.
Do the actual method call after correct row selected etc...
IF valid-handle(vh-labordtl) THEN DO:
        RUN SubmitForApproval IN vh-labordtl
({&input-output_dataset_LaborDataSet}, FALSE, output msg).
END.
Cleanup:
DELETE OBJECT vh-labordtl.
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of tkoch77
Sent: Monday, November 05, 2012 11:02 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Prompting user to clock out after ending last
activity
Â
We are having issues where people are not clocking out. We would like to
make it so that when a user clocks out of their last activity, they get
asked if they would like to clock out of the system entirely.
This is how I think I can get this to work:
Set a post-processing condition to Labor.Update (I think this is the
correct method to use when they end activity) that would check if there
are any LaborDtl records associated with the users current LaborHed
record. If they are no LaborDtl records, the first action would be to
call a BPM form with a simple yes or no, after this add another action
that would execute ABL code, in the ABL code I think I could get the
response from either button they click. Then call EmpBasic.ClockOut
method with ABL code.
I think my problem is I'm not sure how to call the EmpBasic.Clockout
method and pass it a value in ABL, is it possible?
Thanks for any help,
-Ted
[Non-text portions of this message have been removed]
------------------------------------
Useful links for the Yahoo!Groups Vantage Board are: ( Note:Â You must have already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and Crystal Reports and other 'goodies', please goto: http://groups.yahoo.com/group/vantage/files/.%c2%a0
(2) To search through old msg's goto: http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto: http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links
[Non-text portions of this message have been removed]