retrieving AGS data in custom ESS form?

 0 Replies
 0 Subscribed to this topic
 68 Subscribed to this forum
Sort:
Author
Messages
David Cron
Basic Member Send Private Message
Posts: 13
Basic Member

What I'm trying to do is to customize the Open Enrollment welcome screen by reading the BS01 end date for the employee group specific to the user.  I have run a DME query to retrieve the first row of the table and that works fine but when I switch to an AGS call it doesn't allow me to progress to the next function.

Also once the data is retrieved, how is it addressed?  I see several instances in Lawson code where AGS is used to retrun data but I never see where it's stored of addressed.

Here's the AGS call


function getEnrEndDate() 

 // change to use BS09 so we can be direct to the employee's specific rules
   var obj       = new AGSObject(authUser.prodline,"BS09.1")
   obj.event     = "ADD"
   obj.rtn       = "DATA"
   obj.longNames = true
   obj.tds       = false
    obj.out       = "XML"
   obj.field     = "FC=I"
         + "&BAE-COMPANY="  + escape(authUser.company)
         + "&BAE-EMPLOYEE=" + escape(authUser.employee)
         + "&BAE-RULE-TYPE=A"
    obj.debug     = false
   obj.func = "WelcomeScreen()"
   AGS(obj,"jsreturn")
}
It never gets to the "WelcomeScreen" function I get an object expected message from IE on /lawson/xhrnet/dot.htm.  Below is my iframe setup on the page. (I removed the tag markers because that inhibited the text in the topic display)

iframe name="jsreturn" src="https://lawsonguru.com/lawson/xhrnet/dot.htm" style="visibility:hidden;height:0px;width:0px;"
iframe name="lawheader" src="https://lawsonguru.com/lawson/xbnnet/besslawheader.htm" style="visibility:hidden;height:0px;width:0px;"



Anyone have an idea of what's wrong or how to address this?
Thanks in advance
David