Announcements
ColTaskType := Type({ TaskStatusCR: (RequestStatus (Client Requests)), TaskStatusPTD: UntypedObject })
Currently, I use a button to trigger an operation, but I want to replace this with a user-defined function instead of relying on Select(Button).
Inside the button’s logic, I use Gallery.Selected to extract a record from the gallery and perform some operations on it.
However, when attempting to replace the button with a user-defined function, I need to pass Gallery.Selected as an argument. The challenge is that my function requires a user-defined type for the argument, but since the collection is a manipulated version of multiple data sources, it does not directly match any existing entity schema.
How can I properly define the function argument type to match my transformed collection structure?
TaskStatusCRType := Type({ RequestStatus: Text, ClientRequests: Text }); TaskStatusPTDType := Type({ Property1: Text, Property2: Text }); ColTaskType := Type({ TaskStatusCR: TaskStatusCRType, TaskStatusPTD: TaskStatusPTDType });
OtherType= ParseJSON( Tasks, ColTaskType) AddColumns(OtherType, isTaskClosed, True)
ColTaskType := Type( { TaskStatusCR: fxTaskStatusCR, TaskStatusPTD: UntypedObject } ); fxTaskStatusCR := Type( { val1: Text, val2: Text, val3: Text } );
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Jump in, show your community spirit, and win prizes!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Valantis 426
WarrenBelz 381 Most Valuable Professional
Kalathiya 315 Super User 2026 Season 1