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:
Zac Shields
Past 24 Hours:
0
Prev. 24 Hours:
0
Overall:
5210
People Online:
Visitors:
492
Members:
0
Total:
492
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
Integration / Customization
S3 Customization/Development
scrgen form definition to display current date
Please
login
to post a reply.
5 Replies
0
Subscribed to this topic
17 Subscribed to this forum
Sort:
Oldest First
Most Recent First
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: 476
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!
Please
login
to post a reply.