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:
jkramer
Past 24 Hours:
0
Prev. 24 Hours:
0
Overall:
5243
People Online:
Visitors:
299
Members:
0
Total:
299
Online Now:
New Topics
S3 Systems Administration
Lawson Security Admin (LSA) - Securing Print Manager to self only
10/24/2025 6:27 PM
Looking for someone who would be willing to share
Lawson Add-Ins for Microsoft Office
Lawson Add-in
9/30/2025 6:51 PM
I am looking for a Lawson Add-ins query to add new
Lawson S3 Procurement
Anyone getting PO 0000 not found for company error in PO23?
9/30/2025 2:45 AM
Anyone getting PO 0000 not found for company error
Lawson Add-Ins for Microsoft Office
PO20 - Cancel PO via Add-in
9/25/2025 8:03 PM
Is it possible to cancel PO's using add-ins? I
S3 Systems Administration
S3 Payroll - PayStubs
9/18/2025 6:58 PM
Looking for a reliable solution to streamline the
S3 Systems Administration
Quick Access report
8/25/2025 7:17 PM
Looking for a good way to see who has access Lawso
S3 Customization/Development
LP01 hiding a PTO plan from the list
8/13/2025 4:44 PM
Hi all. is there a way to hide a specific PTO&n
Lawson Business Intelligence/Reporting/Crystal
GLTrans - PO Line/MAInvdtl
8/6/2025 6:13 PM
Hello, we have an existing tabular model for fina
IPA/ProcessFlow
Retrieving GUID from InforOS
7/25/2025 2:22 AM
Hello everyone, I was wondering if there is a way
IPA/ProcessFlow
IPA for forwarding cost messages (MA64/MA66.3)
7/23/2025 6:07 PM
When a buyer has an invoice cost message where the
Top Forum Posters
Name
Points
Greg Moeller
4184
David Williams
3349
Kat V
2984
Woozy
1973
Jimmy Chiu
1883
Kwane McNeal
1437
Ragu Raghavan
1377
Roger French
1315
mark.cook
1244
Chesca
1042
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
Split
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
Split
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
Split
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: 477
7/23/2013 3:57 PM
Split
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
Split
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.