Login
Register
Search
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Forums
Integration / Customization
S3 Customization/Development
HTML/Javascript DME function for LOGAN
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Who's On?
Membership:
Latest:
BDell92
Past 24 Hours:
0
Prev. 24 Hours:
0
Overall:
5275
People Online:
Visitors:
380
Members:
0
Total:
380
Online Now:
New Topics
Lawson S3 Financials
Applying credits to open AP invoices
4/28/2025 1:26 PM
Hello, I am new to the Lawson system and after ru
Lawson S3 Financials
Lawson APIA
4/28/2025 1:22 PM
Has anybody recently installed Lawson's APIA m
Lawson S3 Procurement
Tolerance Settings
3/31/2025 2:01 PM
I've been trying to set a tolerance for some t
Dealing with Lawson / Infor
Printing Solutions other than MHC
3/27/2025 1:00 PM
What are others using for printing solutions besid
Lawson S3 Procurement
Green check marks in Lawson 9.0.1
3/20/2025 4:55 PM
Hi, How to remove green check mark on items when o
Lawson S3 HR/Payroll/Benefits
Pay Rate History to Show All Positions
2/26/2025 3:34 PM
Does anyone know how to modify payratehistory.htm
Infor CloudSuite
How to build a Pre-Prod tenant
2/7/2025 1:28 AM
After we finished our implementation and ended our
Lawson S3 Procurement
Browser issue with RQC Shopping
1/28/2025 5:49 PM
Since the recent Chrome/Edge updates, our RQC shop
Lawson S3 Procurement
S3-Procurement New Company
1/22/2025 10:38 PM
My Accounting Department has created a new Company
S3 Customization/Development
JUSTIFIED RIGHT
1/15/2025 7:41 PM
Is there a way in Lawson COBOL to make a character
Top Forum Posters
Name
Points
Greg Moeller
4184
David Williams
3349
JonA
3291
Kat V
2984
Woozy
1973
Jimmy Chiu
1883
Kwane McNeal
1437
Ragu Raghavan
1375
Roger French
1315
mark.cook
1244
Forums
Filtered Topics
Unanswered
Unresolved
Announcements
Active Topics
Most Liked
Most Replies
Search Forums
Search
Advanced Search
Topics
Posts
Prev
Next
Forums
Integration / Customization
S3 Customization/Development
HTML/Javascript DME function for LOGAN
Please
login
to post a reply.
3 Replies
0
Subscribed to this topic
17 Subscribed to this forum
Sort:
Oldest First
Most Recent First
Author
Messages
Roger French
Veteran Member
Posts: 549
12/3/2010 3:55 PM
I'm doing some portal customizations where I need to use the DME() function. I've used it OK before with application productlines with no issues, but I need to use it to query some LOGAN tables.
I've tried various things within the DME function, but it's not working. It is always bombing out on the data.js function. I've reviewed it several times but haven't figured it out yet.
Does anyone have an example of a javascript function where it successfully works by querying LOGAN? Do I need to use the object.logan field? Here is a copy of the function I'm trying to use (hey and no laughing too hard ok?)
Thank you...
-R
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")
return FinishMMDist()
}
function FinishMMDist()
{ var fieldvalue
for(var i=0;i
{ var pObj = self.logancall.record
;
fieldvalue = pObj.variable_value;
}
return fieldvalue;
}
Will Hoover
New Member
Posts: 1
3/18/2011 12:04 PM
Split
[code] 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() } function FinishMMDist() { var record1 = window.jsreturn.record[0]; // do something with the 1st record } [/code]
Jeff Pratte
Basic Member
Posts: 13
12/23/2013 7:00 PM
Split
I tried:
function CheckForDupTwo()
{
var workUnit = 0;
var field = 0;
var seq = 0;
//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 ;
}
function FinishMMDist() {
var record1 = window.jsreturn.record[0];
// do something with the 1st record
alert('jsreturn=' + jsreturn);
}
and I got this error message: SCRIPT5009: 'DMEObject' is undefined
Can you point me in the direction I should be looking?
Thanks, Jeff
Scott Perrier
Veteran Member
Posts: 39
1/31/2014 4:23 PM
Split
Jeff - the code above only works if you are on LAUA security and using the older dme format prior to environment 8.1. it will need to be tweeked to run the latest DME calls. Out=Javascript is no longer used out=XML or CSV are the 2 choices under the new AGS functions. See the developers guide for AGS calls on the support site. I am going through the very same issue now with my customizations. I have my AGS calls working but need to figure out how to process the xml returned.
Please
login
to post a reply.