Login
Register
Search
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Forums
Human Capital Management
Lawson S3 HR/Payroll/Benefits
I need an example of home-made javascript DMEObj for Self-service centers
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Who's On?
Membership:
Latest:
Hitman
Past 24 Hours:
0
Prev. 24 Hours:
0
Overall:
5208
People Online:
Visitors:
359
Members:
0
Total:
359
Online Now:
New Topics
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
Lawson S3 HR/Payroll/Benefits
Canada Tax Calculation (Federal and Provincial) Issue
10/23/2024 5:00 AM
Initially, we had problem with CPP2 calculation is
Lawson S3 HR/Payroll/Benefits
CA Section 125 401k Plan
10/22/2024 10:13 PM
Does anyone have any recommendations on how to fac
S3 Systems Administration
Running AC120 deleted records from ACMASTER table
10/22/2024 3:40 PM
We recently ran the AC120 as normal and somehow it
Lawson S3 Procurement
RQ13 Approval Info
10/17/2024 2:12 PM
When a Requisition is approved on RQ13, what table
S3 Customization/Development
Read and Write CSV file COBOL
10/9/2024 2:53 PM
Does anyone have a quik example of a program that
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
1372
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
Human Capital Management
Lawson S3 HR/Payroll/Benefits
I need an example of home-made javascript DMEObj for Self-service centers
Please
login
to post a reply.
4 Replies
0
Subscribed to this topic
68 Subscribed to this forum
Sort:
Oldest First
Most Recent First
Author
Messages
Mike Schlenk
Veteran Member
Posts: 71
2/22/2008 3:33 PM
In an attempt to supplement self-service centers, I'm looking to create my own htm files that authenticate, create a DME call and display data.
I'm trying to learn from recsum.htm and paytyear.htm and I'm having problems. The issue is when I make a call that returns multiple records, then I want to display each field in a table.
Can someone please help? I'm so close, I know I'm just not understanding something about the DMEObject and how to use Arrays to store the records.
Any help would be appreciated.
ridjayc
Veteran Member
Posts: 191
2/22/2008 4:40 PM
Here is an example. The XXREQNOTES is a custom view. It lets us view note data in a simple way. There some special javascript call to get the notes but I didn't want to spend several days figuring it out so I did this view and used DME on it.
Oh one other little gotcha, if memory serves me, is that if you do change execs for process flow viewing they for some reason need to have the "...recsum.." in the file name.
On a related topic if you would like to do views and have it availbe in Lawson there is a document on Lawson on how to do it in Oracle. We are on SQL server here but the process is very simular. If your DBAs are very difficult to work with then I would skip the views and just try to work around it. Also view creation can require you to bounce Lawson.
--JayR
//Functions-------------------------------------------------------------------------------------------
/************************************************************
Function: LoadCatcher
Purpose: Driver function called by frameset onLoad event driver
************************************************************/
function LoadCatcher()
{
GetMessages()
clearTimeout(LoadTimer);
}
/************************************************************
Function: GetMessages
Purpose: Get Account Information
************************************************************/
function GetMessages()
{
//alert("GOT HERE")
var logancall = new DMEObject(prodline, "XXREQNOTES")
logancall.out = "JAVASCRIPT"
logancall.field ="note-name;modified-user;create-user;object1;object2;object-type"
logancall.select = "company=" + m_Company + "&req-number=" + m_ReqNumber + "&line-nbr=" + m_LineNbr
logancall.func = "displayNotes()"
DME(logancall, "PRODLINE")
PRODLINEwin = self.PRODLINE
}
/************************************************************
Function: displayNotes
Purpose: Display the Requisition summary info via HTML
************************************************************/
function displayNotes()
{
//alert("START display")
var str = '' + ''
+ ''
var TableBorder = HtmlTableBorder
var TableBgColor = HtmlTableBgColor
var ThBgColor = HtmlThBgColor
str = '
'
+ '
'
+ '
' + 'Note Name' + '
'
+ '
' + 'Note Type' + '
'
+ '
' + 'Created By' + '
'
+ '
' + 'Modified By' + '
'
+ '
' + 'Comments' + '
'
+ '
'
// This next section of code is to group notes that are alike together.
var type_array = new Array();
var i = 0
var max_spin = 0
PRODLINEwin.record.sort(note_sort)
type_array[i] = '[' + strNoteType(PRODLINEwin.record[i].object_type) + ']'
while(i + 1 < PRODLINEwin.NbrRecs && max_spin < 100)
{
max_spin++
type_array[i] = '[' + strNoteType(PRODLINEwin.record[i].object_type) + ']'
type_array[i+1] = '[' + strNoteType(PRODLINEwin.record[i+1].object_type) + ']'
var c1 = PRODLINEwin.record[i].note_name + PRODLINEwin.record[i].create_user + PRODLINEwin.record[i].modified_user + PRODLINEwin.record[i].object1 + PRODLINEwin.record[i].object2
var c2 = PRODLINEwin.record[i+1].note_name + PRODLINEwin.record[i+1].create_user + PRODLINEwin.record[i+1].modified_user + PRODLINEwin.record[i+1].object1 + PRODLINEwin.record[i+1].object2
if(c1 == c2) //Basically if truee then notes are the same and will be grouped
{
type_array[i] += '
' + type_array[i+1]
PRODLINEwin.record.splice(i+1,1)
PRODLINEwin.NbrRecs--
type_array.splice(i+1,1)
continue
}
i++
}
for(var i=0;i< PRODLINEwin.NbrRecs;i++)
{
//logancall.field ="note-name;modified_user;object1;object2;object-type"
var note_name = PRODLINEwin.record[i].note_name
var note_type = type_array[i]
var created_by = strCleanUser(PRODLINEwin.record[i].create_user)
var modified_by = strCleanUser(PRODLINEwin.record[i].modified_user)
var comment = PRODLINEwin.record[i].object1 + PRODLINEwin.record[i].object2
comment = comment.replace(/EOL/g,'
')
str += '
'
+ '
' + PRODLINEwin.record[i].note_name + '
'
+ '
' + note_type + '
'
+ '
' + created_by + '
'
+ '
' + modified_by + '
'
+ '
' + comment + '
'
+ '
'
}
str += '
'
+ '