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:
Kezia West
Past 24 Hours:
1
Prev. 24 Hours:
0
Overall:
5246
People Online:
Visitors:
483
Members:
0
Total:
483
Online Now:
New Topics
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
S3 Systems Administration
ADFS certificate - new cert
12/3/2024 9:38 PM
The certificates on the windows boxes expired and
Lawson S3 HR/Payroll/Benefits
Post Tax Benefit Plan Table
11/14/2024 9:16 PM
Hi, totally new to Laswon. I have a repor
Lawson S3 Procurement
ED501 Error: Map 850 not supported by /law/c15vda/lawson/test10/edi/bin/laws_out_91
11/12/2024 3:47 PM
Tried runnning ED501 and getting the atathced erro
Lawson S3 HR/Payroll/Benefits
Error
11/6/2024 9:54 PM
When I try to enroll a retiree in 72.1 health plan
Infor ERP (Syteline)
Syteline: New Data Maintenance Wizard (Error) Need help
11/1/2024 4:24 PM
Hi, I need help with an error on syteline while us
Dealing with Lawson / Infor
Implementing Lawson v10 with Cerner Surginet, Case Cart Picking, and Quick Adds for the OR
10/29/2024 4:20 PM
Hi Everyone, I am wondering if there is any org
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
; 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.