33
Views
3
Comments
Solved
Show Default Date in Binding Input Box Field
Question

Hi!  My screen form is both for edit and for add a new record, so how can I show default date and in the same time bind input box field to table? Thanks

UserImage.jpg
vikas sharma
Champion
Solution

Hi,

In table where you are showing date value for that row set it expression. In expression value will be 

If(Your list.current.date=NullDate(),Current date(),YourList.current.date)

Regards

UserImage.jpg
vikas sharma
Champion

Hi Edward,

I think by taking one local variable we can address this issue. One local variable with default value currentDate(). So for case of Add it will be blank so automatically will get current date. If case of edit then after fetching record/data can assign value to this local variable. Bind this local variable with your date input field.

Also you can set record directly from the aggregate/data action to the input field. On input field you can use one expression with IF condition. If there is some value of date then use that value otherwise show current date.

regards

UserImage.jpg
Edward Muratov

Can you show how?

UserImage.jpg
vikas sharma
Champion
Solution

Hi,

In table where you are showing date value for that row set it expression. In expression value will be 

If(Your list.current.date=NullDate(),Current date(),YourList.current.date)

Regards

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.