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
scrgen form definition to display current date
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Who's On?
Membership:
Latest:
Wayne Willis
Past 24 Hours:
0
Prev. 24 Hours:
1
Overall:
5190
People Online:
Visitors:
232
Members:
0
Total:
232
Online Now:
New Topics
Lawson Landmark
Executing IPA from PR160
5/3/2024 2:46 PM
We're facing a situation where we need to upda
IPA/ProcessFlow
Executing IPA from PR160
5/3/2024 2:46 PM
We're facing a situation where we need to upda
S3 Customization/Development
Cobol - Extract Current Time
4/24/2024 7:21 PM
How do you extract just the Current System Time in
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
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
1351
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
scrgen form definition to display current date
Sort:
Oldest First
Most Recent First
You are not authorized to post a reply.
Author
Messages
Demi
Veteran Member
Posts: 67
7/23/2013 2:29 PM
I'm trying to display, by default; the current date on a portal form using the scrgen form definition. ie. after the initial search box selection, the form would pop-up with the default values already populated. I've used various combinations, but can't seem to find one that works. Can someone please share how to accomplish this?
Judy Consoli
Veteran Member
Posts: 43
7/23/2013 2:38 PM
Do you have Design Studio???
If so it's easy to add default. If not, then write back and I'll show you .xml code that design studio generates and maybe you can put it in the .xml code???
Judy Consoli
Veteran Member
Posts: 43
7/23/2013 2:41 PM
Here's design studio code - see defval="@TD"
"text2" key="1" label="Date" nbr="_f10" nm="XPJ-DATE" row="2" sz="8" tp="Text"/>
Demi
Veteran Member
Posts: 67
7/23/2013 3:31 PM
Yes, I do have Design Studios! But this is simply a cloned lawson program and I'ld rather stay away from DS if I can. My program is a batch extract that will be run every day. The design specs intend for the batch to be 'scheduled' without being initiated by the end users. All of the selection criteria is requested to be hard-coded, including the 'current system date'. I was shooting for pre-filled parameters on the form that would show up on the reports; as well as be changed if needed....... ie --- kind of redundant when the report already shows the current date and time as part of the heading......My thoughts were generated from the fact that not all 'scheduled' jobs will be run everyday. What if the system is not available for more than one day; or what if they have to re-run the job for yesterday.
Ragu Raghavan
Veteran Member
Posts: 470
7/23/2013 3:57 PM
How about make the date an optional field in .scr, and when running it leave it blank.
In the PD file, have this logic in the 100-PROGRAM routine
IF (PRM-DATE = ZEROES)
MOVE WS-SYSTEM-DATE-YMD TO PRM-DATE
END-IF
Demi
Veteran Member
Posts: 67
7/23/2013 6:15 PM
I like the way you think, Ragu. I did something similar - I defaulted the screen date to 01/01/1754; then did the edit and replace in the PD. Your suggestion was right on track with what I was trying to accomplish. Thanks!
You are not authorized to post a reply.