Form to Collect Date Ranges
I have a form to collects the begin and end dates for certain records.
I have two variables ie. BeginDate and EndDate, but the form will not allow me to use these two variables in the form, since the form thinks that I'm trying to convert the date to a string.
I'm getting the error BeginDate option strict On disallows implicit conversions from 'Date to String'
Walter
0
-
0 -
The GRWBeginDate variable is type DateTime. Why am I not able to use this variable inside the form?
Walter0 -
I think this is a bug in your form. I've seen this occasionally. Try if deleting and recreating the datepickers (and using different argument names) solves the issue. 0 -
Nico,
I've recreated my entire form and am still getting those errors and the inability to use variables as output arguments.
Walter0 -
Hi Walter,
What type of variable does the workflow designer show your variable configured as? See my screenshot.
I'm also wondering if maybe you don't have all the imported namespaces as I do, see screenshot. Tip, if you are using Chrome you can right click the image, open directly in a new tab, and the resolution will be larger.
Thanks,
Mike Ketler0 -
Mike, 
My variable is of type "string". I've also tried date format, but that didn't work either
I've imported the System.Activities as well
Walter0 -
Mike,
Your Nullables<DateTime> variable type worked. Meaning it has allowed me to use that variable in my form.
Walter0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
7 Kommentare