How to make a DME call in LSF

 5 Replies
 0 Subscribed to this topic
 27 Subscribed to this forum
Sort:
Author
Messages
Scott Perrier
Veteran Member Send Private Message
Posts: 39
Veteran Member
Per Infor Support,  I need to convert the DME data pulls used to enhance RQC limited item information by using existing related tables with in lawson. My current use of a DME call works with LAUA but does not work with LSF 9. Here is what Lawson/Infor stated: "We believe that you will need to modify your /cgi-lawson/dme.exe call to be a /servlet/Router/Data/Erp ".   I need to understand the difference and how to format a pull of data from lawson into rqc using a LSF. 
here is the dme in case it helps.
https://{ServerName}/cgi-lawson/dme.exe?PROD=TEST&FILE=REQLINE&OUT=JAVASCRIPT&INDEX=RLNSET5&FIELD=QUANTITY;ENTERED-UOM;R EQ-DEL-DATE;ITEM;&KEY=0015=40705=&SELECT=DER-CLOSE-STAT%3DPROCESSED%7CDER-CLOSE-STAT%3DUNREL EASED%7CDER-CLOSE-STAT%3DNEEDS+APPROVAL%7CDER-CLOSE-STAT%3DIN+PROCESS&FUNC=getRQ42Die()
John Henley
Send Private Message
Posts: 3351
Change:
https://{server}/cgi-lawson/dme.exe?
to:
https://{server}/servlet/Router/Data/Erp?
Thanks for using the LawsonGuru.com forums!
John
David Britton
Veteran Member Send Private Message
Posts: 53
Veteran Member
I have a number of dashboard links that make DME calls to generate various forms such as Jobs in Needs Recovery, Jobs with Invalid parameters.
The data is returned as an HTML page with an embedded table presenting the data.

We are moving to Lawson Security which I presume will require the links to be changed to use "servlet/Router/... ". However the only output options are XML and CSV.
Is there a way to format the data as a table with the servlet call?

SAMPLES Below:

http ://lawsonsrv.mydomain/cgi-lawson/dme.exe?PROD=GEN&FILE=QUEUEDJOB&FIELD=JOBNAME;USERNAME;STATUS;STOPDATE&SELECT=STATUS=34&MAX=ALL&SORTASC=USERNAME
returns the data as an HTML table.


http ://lawsonsrv.mydomain/servlet/Router/Data/Erp?PROD=GEN&FILE=QUEUEDJOB&FIELD=JOBNAME;USERNAME;STATUS;STOPDATE&SELECT=STATUS=34&MAX=ALL&SORTASC=USERNAME&OUT=XML
- OR -
http ://lawsonsrv.mydomain/servlet/Router/Data/Erp?PROD=GEN&FILE=QUEUEDJOB&FIELD=JOBNAME;USERNAME;STATUS;STOPDATE&SELECT=STATUS=34&MAX=ALL&SORTASC=USERNAME

Returns XML formatted data


http ://lawsonsrv.mydomain/servlet/Router/Data/Erp?PROD=GEN&FILE=QUEUEDJOB&FIELD=JOBNAME;USERNAME;STATUS;STOPDATE&SELECT=STATUS=34&MAX=ALL&SORTASC=USERNAME&OUT=CSV

returns CSV formatted data all on one line such as:
JOBNAME,USERNAME,STATUS,STOPDATE "WH130JW","fijwilliam",34,"12/24/2013" "GENCAPPROJ","fitim",34,"12/09/2013" "PARKING","fitim",34,"12/10/2013"


John Henley
Send Private Message
Posts: 3351
Not aware of any option for table formats, just XML and CSV.
Thanks for using the LawsonGuru.com forums!
John
Scott Perrier
Veteran Member Send Private Message
Posts: 39
Veteran Member
i was able to make the change to a DME call that i run in RQC. The issue is now that it is in XML format and need some way to parse it, is there a predefined lawson function that does this. i would assume yes otherwise how did they make thier calls.
Scott Perrier
Veteran Member Send Private Message
Posts: 39
Veteran Member
function getCSCItems(idString)
{
// /servlet/Router/Data/Erp?PROD=TEST&FILE=CMALLOCINT&FIELD=ITEM-NUM;STOCK-UOM;AVAILABLE;LOCATION;
// &INDEX=CMISET1&KEY=10=01100;01101;=1129;1130;1131;1132;1133&OUT=XML
//alert("getCSCItems idString=" + idString);
var dmeObj = new DMEObject(mainWnd.user.prodline,"CMALLOCINT");
dmeObj.index = "CMISET1";
dmeObj.out = "XML";
dmeObj.field = "ITEM-NUM;STOCK-UOM;AVAILABLE;LOCATION"
//dmeObj.max = "1";
dmeObj.key = "10=01100;01101=" + idString;
dmeObj.debug=false;

DME(dmeObj,"cscData");
statusWinCSC=self.cscData;

}