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:
chaoticist
Past 24 Hours:
2
Prev. 24 Hours:
0
Overall:
5185
People Online:
Visitors:
234
Members:
0
Total:
234
Online Now:
New Topics
Lawson Landmark
LPL INSTR Functions
4/5/2024 8:32 PM
I'm writing a simple report using the Create R
Infor SCM
Translating 856 to get the ~ REF^CN^ field
4/3/2024 8:24 PM
We are trying to get the tracking number which is
IPA/ProcessFlow
Sample XML file create Flow
4/3/2024 3:43 PM
Hello everyone, I am new to creating XML files
Lawson S3 HR/Payroll/Benefits
bn105 error message
3/26/2024 6:40 PM
I need to change some of the set ups in our Life I
IPA/ProcessFlow
IPA executing Job
3/13/2024 7:08 PM
New to the IPA world and was wondering, can an IPA
Lawson S3 HR/Payroll/Benefits
Life Age Reduction on benefits plans
3/12/2024 7:15 PM
For our optional life we have an age based coverag
Lawson S3 HR/Payroll/Benefits
BN53.1 Add-In
3/7/2024 3:31 PM
We are migrating to Solstice. They require a
Lawson Business Intelligence/Reporting/Crystal
Domain Name Change
3/5/2024 7:45 PM
Our domain name needs to change and was hoping I c
S3 Customization/Development
Cobol calling Shell Script
2/29/2024 1:27 PM
Has anyone created or modified a Lawson Cobol prog
Infor ION
ION vs IPA
2/29/2024 1:24 AM
We had a person new to Lawson and Infor go to Info
Top Forum Posters
Name
Points
Greg Moeller
4184
David Williams
3349
JonA
3288
Kat V
2984
Woozy
1973
Jimmy Chiu
1883
Kwane McNeal
1437
Ragu Raghavan
1348
Roger French
1311
mark.cook
1244
Forums
Unanswered
Active Topics
Most Liked
Most Replies
Search Forums
Search
Advanced Search
Topics
Posts
Prev
Next
Forums
S3 Customization/Development
two forms in one program
Sort:
Oldest First
Most Recent First
You are not authorized to post a reply.
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).
You are not authorized to post a reply.