- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2024 04:46 AM
I have a dictionary entry of type duration for a custom scoped application table. This dictionary entry intends to find the difference between two DateandTime fields.
I created the same and in the Function definition I entered the code given below:
glidefunction:datediff(resolved_at, opened at)
However, the field shows 0 days 0 hours etc. Is there anything wrong with the code? Does this not work on old/pre-existing records?
The screenshot of the Dictionary Entry is given below: (same image is attached as well)
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2024 09:05 AM - edited 04-08-2024 09:12 AM
Hi Navaneeth,
Please change the code to
glidefunction:datediff(resolved_at, opened_at)
And in your screenshot the function field is not checked.
Please configure as same as the below screenshot.
Result:
If my answer has helped with your question, please mark my answer as accepted solution and give a thumbs up.
Best regards,
Tharun Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2024 09:27 AM
@tharun_kumar_m
Thank you so much for the response. The function field with the check box is read-only for some reason. Is there a reason why it's like this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2024 09:40 AM
I'm also not able to change it once I saved it, please try to delete and create a new field.
If my answer has helped with your question, please mark my answer as accepted solution and give a thumbs up.
Best regards,
Tharun Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2024 11:55 AM
The form doesn't let me go to advanced view (Which has the function field checkbox) unless the form gets saved and it's still read only.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2024 10:56 PM
Hi Navaneeth,
You don't need advanced view for marking function field as true. I have verified in both Utah and Vancouver versions.
If my answer has helped with your question, please mark my answer as accepted solution and give a thumbs up.
Best regards,
Tharun Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2024 12:14 AM
Hey @tharun_kumar_m ,
The field was missing and I added it from form configuration and it worked! Thank you so much for all the help! I truly appreciate it! :))