Login
Register
Search
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Forums
Integration / Customization
IPA/ProcessFlow
Function Date=pfDate is a non-date?
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:
496
Members:
0
Total:
496
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
IPA/ProcessFlow
Function Date=pfDate is a non-date?
Please
login
to post a reply.
9 Replies
0
Subscribed to this topic
52 Subscribed to this forum
Sort:
Oldest First
Most Recent First
Author
Messages
JudeBac
Veteran Member
Posts: 129
12/1/2008 3:36 PM
Hi all,
We are using ProcessFlow 8.03 Pro and j2sdk1.4.2_16. In the Start node, I declared a variable var_date as type Date and tried to assign the function Date=pfDate(var1,'mm/dd/yyy'). However I am getting an error "Cannot assign non-date expression to Date type variable". If I declare a string variable, this function gets assigned!
I am revising a processflow (from another company) that was able to assign function Date=pfDate(var1,'mm/dd/yyy') to a date variable.
What do I need to do?
Help!
David Williams
Veteran Member
Posts: 1127
12/1/2008 3:44 PM
You should have a value assigned to var1 in order to use this function. Do you?
JudeBac
Veteran Member
Posts: 129
12/1/2008 3:50 PM
I do, apologies, I should have mentioned it earlier. The value I am using is from a query. The field is REVIEW.ACTUAL_DATE, variable name is Review_ACTUAL_DATE.
JudeBac
Veteran Member
Posts: 129
12/1/2008 3:59 PM
Additional info: the function Date=pfDate(var1,'mm/dd/yyy') (ex: var1 replaced by today()). If I declare a variable of type string, assign it to pfDate(today(),'mm/dd/yyy') it will work. I cannot assign this to a date type variable.
Sam Simpson
Veteran Member
Posts: 239
12/1/2008 4:22 PM
Here's some tips is getting the right date format. Ask your dba what's the date format of ACTUAL-DATE in your REVIEW table. It could be in AGS (yyyymmdd) or DME (mm/dd/yyyy) formats. Also remember that when you use pfDate javascript function it will always result in a javascript date format which is very long. Having said that, declare var1 as string then after you query REVIEW do an ASSIGN node where:
var1=pfDate(Review_ACTUAL_DATE,'mm/dd/yyyy) or
var1=pfDate(Review_ACTUAL_DATE,'yyyymmdd') then
var1=getDateDME(var1) or var1=getDateAGS(var1)
So now you have a date in var1 and you could still convert var1 into another date variable.
JudeBac
Veteran Member
Posts: 129
12/1/2008 4:32 PM
Thanks Sam, let me consider your tips and will get back with the result.
David Williams
Veteran Member
Posts: 1127
12/1/2008 4:33 PM
The 2nd option in pfDate(var1,'yyyymmdd') corresponds with the format of the 'var1' variable not how the date is returned so like Sam said, you need to know the format (AGS or DME) of your variable. If your variable's format is like yyyymmdd then that's the function you choose.
The system returns the JavaScript date once it evalutes the value of your variable. var1 is usually a String variable (which is how the value is returned in your DME call).
JudeBac
Veteran Member
Posts: 129
12/1/2008 4:35 PM
thanks David. I now have a starting point.
Sam Simpson
Veteran Member
Posts: 239
12/1/2008 4:50 PM
Just a reminder and not to be confused if you are using var1 as a variable. It is perfectly okay to use it as a variable but just remember this is the default node name for MsgBuilder. So don't be confused between the two.
JudeBac
Veteran Member
Posts: 129
12/17/2008 1:01 PM
Thanks for the help. Just thought I need to share what I did.
declare datevar=DATE, datestringAGS=STRING
datevar=pfDate(Review_SCHED_DATE,'mm/dd/yyyy')
datestringAGS=getDateAGS(datevar)
Please
login
to post a reply.