Lawson v10, HR55.2 AGS paging

 1 Replies
 0 Subscribed to this topic
 68 Subscribed to this forum
Sort:
Author
Messages
ridopark
New Member
Posts: 1
New Member

    We are in the process of upgrading to Lawson V10, and doing some regression test. We had a workflow that looks for the terminated employee and remove that employee from the benefit group. This used to work on V9 and it's not working anymore on V10.

     

    Here are my ags calls to HR55.2 to page through data to find an employee.

     

    Inqure HR55.2 to get the first page with the following AGS

    _TDS=Ignore&_PDL=PROD&_TKN=HR55.2&FC=Inquire&PRG-COMPANY=10&PRG-GROUP-NAME=BN-EPO&PRG-BENEFITS=Y&PRG-ABSENCE-MGMT=N&PRG-ACTIVE-FLAG=1&PT-DATA=0&_EVT=ADD&_LFN=TRUE&_RTN=DATA&_OUT=XML&_EOT=TRUE

    Use Function + to loop until the employee is found

    _TDS=Ignore&_PDL=PROD&_TKN=HR55.2&FC=%2B&PRG-COMPANY=10&PRG-GROUP-NAME=BN-EPO&PRG-BENEFITS=Y&PRG-ABSENCE-MGMT=N&PRG-ACTIVE-FLAG=1&PT-DATA=000023277&_HK=0010BN-EPO&_EVT=ADD&_LFN=TRUE&_RTN=DATA&_OUT=XML&_EOT=TRUE

     

    I think It's supposed to return PT-DATA as the first employee of the next page, but the subsequent response returns the same employee number as it returned by the first Inqure. could anyone help me what I'm doing wrong?

    thanks

    -Rido Park

    Tim Cochrane
    Veteran Member
    Posts: 154
    Veteran Member
      Question - why are you using AGS to loop thru, when a query to PERSGROUP, using the relation to EMPLOYEES would basically do a direct find?? Use PRGSET1 w/Company and Group-Name, and a "Select=Employees.Employee=", followed by an HR55.2 AGS to delete the employee. No need to loop thru...AGS are expensive resource hogs
      Tim Cochrane - Principal LM/IPA Consultant