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
two forms in one program
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Who's On?
Membership:
Latest:
Saef
Past 24 Hours:
0
Prev. 24 Hours:
0
Overall:
5226
People Online:
Visitors:
441
Members:
0
Total:
441
Online Now:
New Topics
User Group Announcements
Carolina User Group Meeting
12/20/2024 3:15 PM
Date & Time: February 6, 2025, 8:30am - 4:00pm
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
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
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
Integration / Customization
S3 Customization/Development
two forms in one program
Please
login
to post a reply.
4 Replies
0
Subscribed to this topic
17 Subscribed to this forum
Sort:
Oldest First
Most Recent First
Author
Messages
Rita
Basic Member
Posts: 15
9/15/2014 5:25 PM
Is it possible to paint two forms (ie the key information entry small form xx99.1, and then the full header/detail form xx99.2) in the same program? Or is my only option to create two different programs via painting and then merge them together?
Woozy
Veteran Member
Posts: 709
9/15/2014 6:16 PM
Hi Rita,
This should be possible. Subforms are really completely separate programs, even though they have the same program number.
I often create subforms as separate programs initially, so I can generate code without wiping out the other programs. After I get the form working as I expect, then I do a find/replace within the source code to update the temporary program and form references with the final ones and then paste the new code into the source for the existing program and recompile. This needs to be done in the PD, .scr, .rpt, and WS. The Working Storage items will be shared, but it isn't difficult to separate the data items for the separate forms, if that matters to you.
If you examine the source for a program that has multiple forms, you will see where the code for each form begins and ends. You just need to duplicate that in your custom program.
Good Luck.
Woozy
Veteran Member
Posts: 709
9/15/2014 6:22 PM
I should have mentioned, if you want to add a second form to the program for painting, you can do by pgmdef>>program>>F6-Define>>C-Paint>>F6-Define>>A-Form and selecting a primary table.
However, if you go this route, you will have to generate code for the entire program, rather than just your new form. If you have any custom code in the existing forms, it will be wiped out.
I almost always have to add (a lot of) custom code, which is why I take the "create separately and merge" approach.
Rita
Basic Member
Posts: 15
9/15/2014 6:41 PM
thank you, so if I understand you correctly, the best course of action would be to create one program with header/detail screen and with all custom stuff. Once its working, I would just create a small program with the initial key/header and merge them together.
One more question: I have a form with inputs fields which are mostly from primary file, but I need to add a few also as input fields that come from secondary file. Am I right in assuming I should paint them as output and them "custom" change them to input fields. Or is there another way to do it?
Wishing I had access to the Lawson developer's tutorial, and a manual with comprehensive instructions.
Woozy
Veteran Member
Posts: 709
9/15/2014 7:12 PM
If you are working for a Lawson customer, you should be able to download the developer guides from the knowledge garden. I'd recommend that you download "Application Development Workbench" and "Application Development Workbench Standards" for your LSF version to start with. The latter has been most helpful to me. You could probably submit a support ticket requesting these documents as well.
I'm not sure what you mean by a "small program". I treat each form as a separate application. I paint what I can and generate, then modify the code, then compile and test. Once both (or all) programs are working exactly as I want them to, I manually lump the code together under one program code with separate forms. There really isn't any shortcut.
Regarding fields from secondary tables, as long as the primary table has a relationship to the secondary table (defined by the application, not the database), you should be able to paint the secondary fields just as you can primary fields - input/output/whatever. When you are selecting the primary table in pgmdef, it will show you the related tables via highlighting. The application treats the combined data as a view, so all the fields from both (all) tables should be available (depending on table relationships and security rules).
Please
login
to post a reply.