How to help needed!

Sort:
You are not authorized to post a reply.
Author
Messages
wilcoxmad
Veteran Member
Posts: 87
Veteran Member

    I have created an "EZ-EMPLOYEE" screen for our HR users to add new employees. It has just the required info from HR11 and a few extra fields they wanted as well. They also want to be able to enter info for the PA12 Emergency Contact page at the same time. I have tested the add, just the HR11 data, and it works.

    Forgive my ignorance but I have no idea how to pass the data and call the PA12 screen. I have self taught what little JavaScript, HTML and Design Studio I know, so my knowledge is very limited. I have been coding COBOL for many years. I have searched Lawsons documentation and these and other forums but I don't see any explination on how to do the AGS call to pass this info to do an ADD function. I have built the call but don't know what to do with it! Do I put it into the "script" area of the form I created? How do I limit it's execution to only after a succesful HR11 add?

    Thanks in advance!

    Mark.

     

    John Henley
    Senior Member
    Posts: 3348
    Senior Member

      You will need to add objects to the Design Studio form, collect the values and call AGS from Javascript on the HR11 form. Here are a couple of articles on Design Studio/JavaScript form customization that should help you understand it better:

      https://www.lawsonguru.co...tal-Forms.aspx 

      https://www.lawsonguru.co...-6-A-Case-Study.aspx

      Thanks for using the LawsonGuru.com forums!
      John
      wilcoxmad
      Veteran Member
      Posts: 87
      Veteran Member

        John,

         

        yes, those are helpful! I am trying to make it work now, will report back.

         

        Thanks, Mark.

        wilcoxmad
        Veteran Member
        Posts: 87
        Veteran Member

          Finally, mission accomplished!

          John, this site was a giant help. I would not have been able to accomplish this without it.

          Thank you for being here and thanks to all the users who post here as well.

          I first got  the API call to PA12 (Emergency Contact) working and then applied what I'd learned to the AP17 (Auto Info) call. Well, the Auto Info had several items that occured twice. And when I made my API call to it I could see that it was not "seeing" those fields that occured. I searched thru this forum and found a thread where someone talked about using Add-Ins to find the exact field names for an API call. So I used that method and saw how to name the fields so PA17 would "see" them!

          Thanks again, Mark.

          John Henley
          Senior Member
          Posts: 3348
          Senior Member
            Glad you found LawsonGuru.com to be helpful...tell your friends!
            Thanks for using the LawsonGuru.com forums!
            John
            You are not authorized to post a reply.