Login
Register
Search
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Forums
User Experience
Lawson Design Studio
Read Logan from CB55
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Who's On?
Membership:
Latest:
Chris Radcliffe
Past 24 Hours:
1
Prev. 24 Hours:
0
Overall:
5187
People Online:
Visitors:
56
Members:
0
Total:
56
Online Now:
New Topics
Lawson Landmark
LPL INSTR Functions
4/5/2024 8:32 PM
I'm writing a simple report using the Create R
Infor SCM
Translating 856 to get the ~ REF^CN^ field
4/3/2024 8:24 PM
We are trying to get the tracking number which is
IPA/ProcessFlow
Sample XML file create Flow
4/3/2024 3:43 PM
Hello everyone, I am new to creating XML files
Lawson S3 HR/Payroll/Benefits
bn105 error message
3/26/2024 6:40 PM
I need to change some of the set ups in our Life I
IPA/ProcessFlow
IPA executing Job
3/13/2024 7:08 PM
New to the IPA world and was wondering, can an IPA
Lawson S3 HR/Payroll/Benefits
Life Age Reduction on benefits plans
3/12/2024 7:15 PM
For our optional life we have an age based coverag
Lawson S3 HR/Payroll/Benefits
BN53.1 Add-In
3/7/2024 3:31 PM
We are migrating to Solstice. They require a
Lawson Business Intelligence/Reporting/Crystal
Domain Name Change
3/5/2024 7:45 PM
Our domain name needs to change and was hoping I c
S3 Customization/Development
Cobol calling Shell Script
2/29/2024 1:27 PM
Has anyone created or modified a Lawson Cobol prog
Infor ION
ION vs IPA
2/29/2024 1:24 AM
We had a person new to Lawson and Infor go to Info
Top Forum Posters
Name
Points
Greg Moeller
4184
David Williams
3349
JonA
3288
Kat V
2984
Woozy
1973
Jimmy Chiu
1883
Kwane McNeal
1437
Ragu Raghavan
1348
Roger French
1311
mark.cook
1244
Forums
Unanswered
Active Topics
Most Liked
Most Replies
Search Forums
Search
Advanced Search
Topics
Posts
Prev
Next
Forums
Lawson Design Studio
Read Logan from CB55
Sort:
Oldest First
Most Recent First
You are not authorized to post a reply.
Author
Messages
Jeff Pratte
Basic Member
Posts: 13
12/30/2013 2:54 PM
Gang,
I would like to read a Logan table (WFVARIABLE) from inside of CB55.
I have a working read of CBPAYMENT:
function CheckForDup()
{
var thisDup = 0;
var myTransNumber = lawForm.getDataValue("CBM-REFERENCE-NO");
var s = "http://" + window.location.host + portalWnd.DMEPath;
s += "?PROD="+portalWnd.oUserProfile.getAttribute("productline");
s += "&FILE=CBPAYMENT";
s += "&FIELD=REFERENCE_NO";
s += "&SELECT=REFERENCE-NO=" + myTransNumber;
s += "&OUT=CSV&DELIM=~&NOHEADER=TRUE";
var objhttp = portalWnd.objFactory.createInstance("HTTP")
objhttp.Open("GET", s, false)
objhttp.Send("UserInfo")
cReturn = objhttp.responseTEXT
if(cReturn > '') {thisDup = 1;}
return thisDup ;
}
Now I am trying to do something similar for WFVARIABLES.
This is what I have so far:
function CheckForDupTwo()
{
var workUnit = 0;
var field = 0;
var seq = 0;
alert('CheckForDupTwo');
//function GetMMDistInfo(workUnit,field,seq) {
var logancall = new DMEObject("LOGAN", "WFVARIABLE")
logancall.out = "JAVASCRIPT"
logancall.field = "workunit;variable-name;wf-seq-nbr;variable-value"
logancall.index = "wfvset1"
logancall.max = "1"
logancall.xida = true
logancall.key = workUnit + "=" + field + "=" + seq
logancall.func = "FinishMMDist()"
DME(logancall, "jsreturn")
// you cannot return the results from this function -> return FinishMMDist()
return thisDup ;
}
I know the values for the read are set to zero right now. When I run this is get this error message:
SCRIPT5009: 'DMEObject' is undefined
What do I need to do to fix this?
Thanks, Jeff
Robert Spurr
Veteran Member
Posts: 130
1/3/2014 8:47 PM
I know you were probably looking for something constructed in your format but I couldn't make it work so I thought I would supply something that does work. Hope it helps.
//Specfic values for testing
var workUnit = "24837";
var field = "RQH_COMPANY";
var seq = "1";
//DME call
var s = "?PROD=LOGAN";
s += "&FILE=WFVARIABLE";
s += "&INDEX=WFVSET1&KEY=" + workUnit + "=" + field + "=" + seq;
s += "&FIELD=WORKUNIT;VARIABLE-NAME;WF-SEQ-NBR;VARIABLE-VALUE";
s += "&MAX=1&OUT=XML";
var sReturn = portalWnd.httpRequest(portalWnd.DMEPath + s);
if (!sReturn || sReturn.status)
{
var msg="Error calling DME ";
msg += (sReturn
? "(status code): " + sReturn.status
: "bad server response.");
alert(msg);
return true;
}
var vObjDMEXML = new portalWnd.DataStorage(sReturn);
var vRecord = vObjDMEXML.document.getElementsByTagName("RECORD");
if (vRecord.length == 0)
{
//enter your error process
return true;
}
vCols = vRecord[0].getElementsByTagName("COL");
alert(vCols[0].firstChild.data);
You are not authorized to post a reply.