Announcements
Hi All,I am trying to create an app in offline mode. Here, I have one filed in CDS having two option as data type. And for that field I need to take input from user using toggle button. How can I do that in offline mode?
I am able to do it using dropdown in offline mode.
Any help is appreciated.
Hi @Anonymous ,
Toggle control only return true or false, if you want to return back the two option set values, try to configure the OnCheck and OnUncheck property as follows.
Toggle.OnCheck: Set(VarOption, 'TwoOptionName (EntityName)'.Yes) Toggle.OnCheck: Set(VarOption, 'TwoOptionName (EntityName)'.No)
Then take the variable as the output of Toggle.
Hope this helps.
Sik
Hi @v-siky-msft ,
This is working fine in online. But how can I use this for offline mode.
'TwoOptionName (EntityName)'
What to insert here in offline mode?
I can't get your point.
When the app is offline, in general, the data is save into the collection. You just need to save the variable to the collection as normal.
Can't this work?
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 342 Super User 2026 Season 2
M Bilal Khan 271
Mohsin Ali 223