PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 01/08/2015 4:33 PM by  Ragu Raghavan
AGS Call To HR20
 6 Replies
Sort:
You are not authorized to post a reply.
Author Messages
mjpeterson
Private
Private
Basic Member
(11 points)
Basic Member
Posts:5


Send Message:

--
12/29/2009 12:01 PM

    I'm creating my first AGS call and it's to the HR20 screen. Add works fine, but I'm having trouble with Change. If an employee has three records each with a different type and you want to change the third record how do you select it? I can only get it to change the first record, so I assume I'm missing a hidden field value somewhere.  Any help is appreciated.

    Thanks!

    Gary Davies
    Veteran Member
    (738 points)
    Veteran Member
    Posts:248


    Send Message:

    --
    12/29/2009 12:57 PM

    Lawson forms with detail lines have "position to" fields that are sometimes hidden, sometimes displayed above the detail lines. They all start with PT- and are used to get a sepcific record to line 1. On HR20 there are 3 PT fields PT-XMIT-NBR,PT-DATE, and PT-SEQ-NBR which I assume are the key fields for the table the is read to get the detail lines.

    What you woud do is populate those fields for the 3rd record and put the changes in detail line 1 and set the LINE-FC1 to C.

     

    mjpeterson
    Private
    Private
    Basic Member
    (11 points)
    Basic Member
    Posts:5


    Send Message:

    --
    12/30/2009 11:33 AM

    I was able to get it to work.  Thanks for your help Gary!

    Todd Mitchell
    Senior IT Specialist
    Gordon Food Service
    Veteran Member
    (179 points)
    Veteran Member
    Posts:77


    Send Message:

    --
    01/08/2015 8:00 AM

    I am wanting to create a Process Flow around HR20, how do you determine which detail row you want to change, as the detail row can vary?

    Ragu Raghavan
    Private
    Private
    Veteran Member
    (887 points)
    Veteran Member
    Posts:309


    Send Message:

    --
    01/08/2015 1:35 PM
    Please see Gary's note above. You populate the PT- fields, so the detail row you want to modify is always row #1.
    Todd Mitchell
    Senior IT Specialist
    Gordon Food Service
    Veteran Member
    (179 points)
    Veteran Member
    Posts:77


    Send Message:

    --
    01/08/2015 2:19 PM

    I guess I am not understanding how to do what you are saying correctly or not asking my question correctly.

    Lets say I have a type of PERS_EMAIL.  For employee 1234 they do not have a PERS_EMAIL type but have 2 others.  Won't a "C" on line one overlay what is currently there?

    In another example, employee 4567 has a PERS_EMAIL but it is not in the first detail row, if the PERS_EMAIL can be in any row from 1 to 10, how can I know what correct row to do the change on?

    Ragu Raghavan
    Private
    Private
    Veteran Member
    (887 points)
    Veteran Member
    Posts:309


    Send Message:

    --
    01/08/2015 4:33 PM
    Taking the second employee 4567, PERS_EMAIL. Let us say the record you want to change has date of 1/1/2014 and SEQ_NBR of 9876,
    if you set PT-DATE to 20140101 and PT-SEQ-NBR to 9876, when you do an Inquire, this record will appear as row 1 on the screen.
    I have not worked on HR20, but on other screens, this is how I have seen it work.
    You are not authorized to post a reply.