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
Passing values from one form to another
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Who's On?
Membership:
Latest:
Rich Cowie
Past 24 Hours:
0
Prev. 24 Hours:
0
Overall:
5255
People Online:
Visitors:
498
Members:
0
Total:
498
Online Now:
New Topics
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
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
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
User Experience
Lawson Design Studio
Passing values from one form to another
Please
login
to post a reply.
13 Replies
0
Subscribed to this topic
12 Subscribed to this forum
Sort:
Oldest First
Most Recent First
Author
Messages
Todd
Basic Member
Posts: 7
8/10/2010 7:36 PM
I'm trying to pop up a screen from OE10.3 detail line that will total prices from a custom table and pass that total back to OE10.3 detail line price field. Is this possible? I'm thinking that there has to be a global variable, or some shared memory trick.
David Williams
Veteran Member
Posts: 1127
8/10/2010 7:48 PM
Split
Can you define your custom table in Lawson dbdef and use a DME call to get the data you want?
Todd
Basic Member
Posts: 7
8/10/2010 7:58 PM
Split
Yes I can create the table and the DME call. Just need guidance with passing variables between forms.
Ragu Raghavan
Veteran Member
Posts: 477
8/10/2010 8:47 PM
Split
Do you want the pop up to display something to the users ? or just to do the totals ? If just to do the totals, you do not need the pop-up. Wtite a function that does a DME call, Loop thru the XML return and sum up the values Paint a button and assign the function to this button.
Todd
Basic Member
Posts: 7
8/10/2010 9:00 PM
Split
I want the totals passed back so I can add that to the price of the COLINE. Want the pop up so they can see what is being added into the price.
Ragu Raghavan
Veteran Member
Posts: 477
8/10/2010 11:03 PM
Split
A simple alert will not do ? alert("New amount " + vCustomTotals + " addded to line cost");
Todd
Basic Member
Posts: 7
8/11/2010 12:53 PM
Split
Maybe I'm not making my point very clear. I want to pass values from one DS screen to another. What's the best way to do that? Is there global variables or something in shared memory. I use the CRT-CONTROL variables to accomplish this in COBOL.
Terry P
Veteran Member
Posts: 234
8/11/2010 4:06 PM
Split
Need more information. Are the two "screens" custom Portal Pages or Forms? You only mentioned OE10.3 and no second screen. If Forms, are they the default presentation so they can be called from the search field, or are they called by bookmarks?
Todd
Basic Member
Posts: 7
8/11/2010 5:09 PM
Split
Two forms. Using COBOL I can transfer from one screen to another had send variables threw the CRT-CONTROL variables, and also key numbers. I want to accomplish the same thing but using java script in DS, and not mess with any 4GL code.
Terry P
Veteran Member
Posts: 234
8/11/2010 5:23 PM
Split
Todd - you need to be more specific. What two forms are we talking about here??? And how are they called?
Todd
Basic Member
Posts: 7
8/11/2010 5:36 PM
Split
It does not matter. Click on a 'Comments' button on any screen, and it takes you to another form. On that form you hit the 'Back' button which takes you right back to the original form. Just want some variable from the 'Comments' form to be available to me on the original form. In another topic you guys talking about shelling out to the command line in DS. How did you pass parameters or variables to that?
Terry P
Veteran Member
Posts: 234
8/11/2010 5:49 PM
Split
Well sorry to say it DOES matter. Especially now you mention comments. In Lawson, "comments" are not handled the way you might think. They are stored as attachments and are not displayed using a normal form, but rather thru IDA (interactive drill around) calls. There is no "comments form" per say. So, if you tell us a little more about exactly what you're trying to do - maybe some of us can assist you. But I'm still in a fog about what you're trying to do, so I don't know the best method to tell you.
Todd
Basic Member
Posts: 7
8/11/2010 6:06 PM
Split
OE10.3 is going to have a new button that will take the user to a new screen where they will be allowed to select 'features' of items (new table). Want to total up the price of the 'features' and add it back into the COLINE.PRICE. Want to push the total back to OE10.3. Not duplicate DME calls in both forms.
Terry P
Veteran Member
Posts: 234
8/11/2010 7:39 PM
Split
Not sure if this will work - but here is how I pass from one form to another. It's different than what you are trying to do though. Is the "new screen" a customized Lawson form done with Design Studio, or a non-Lawson form? Here is the code in the calling program: [code]//***************************************************************************************************************** // Call the custom form for AP Invoice Attachments //***************************************************************************************************************** function call_AP20_Attachment() { var sHK = "V:" + lawForm.getDataValue("API-VENDOR") + "I:" + lawForm.getDataValue("API-INVOICE") lawForm.pushFormWindow("AP20.1",strPDL,sHK,"AP20.1_ATTACH"); return true; } [/code] This is in the called program: [code] //********************************************************************************* function FORM_OnInit() { lawForm.setFormValue("text83",vPath); x = window.location.search y1 = x.indexOf("V:") y2 = x.indexOf("I:") y3 = x.indexOf("||host") vVendor = x.substr(y1+2,y2-y1-2) vVendor = lTrim(vVendor) vInvoice = x.substr(y2+2,y3-y2-2) return true; } [/code] If they were Portal Pages, you could use the PortalStorage() function
Please
login
to post a reply.