Support Forum

Ask questions and get help from MobileTogether experts.
MobileTogether Product Information
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
View
Go to last post Go to first unread
TimJ  
#1 Posted : Monday, July 4, 2016 8:50:59 PM(UTC)
TimJ

Rank: Member

Groups: Registered
Joined: 12/22/2015(UTC)
Posts: 11
United Kingdom

Thanks: 1 times
Hi,

I've been trying to figure out how I can change the source of a date control based on other criteria. For text and switch controls it's possible to use Xpath in the source but I can't see the same option for edit or date controls.

thanks
bbv  
#2 Posted : Monday, July 4, 2016 9:19:57 PM(UTC)
bbv

Rank: Administration

Groups: Registered, Administrators
Joined: 7/21/2014(UTC)
Posts: 495

Was thanked: 87 time(s) in 87 post(s)
This is because the whole purpose of the Date control is to allow user to edit the date in a comfortable way. Otherwise you would simply show it in a label. But assigning an XPath implies read-only data, which makes no sense.

A workaround would be to define a node in a tree with the value of the XPath and assign this node to the Date control.
thanks 1 user thanked bbv for this useful post.
TimJ on 7/5/2016(UTC)
TimJ  
#3 Posted : Tuesday, July 5, 2016 10:50:09 AM(UTC)
TimJ

Rank: Member

Groups: Registered
Joined: 12/22/2015(UTC)
Posts: 11
United Kingdom

Thanks: 1 times
I was trying to avoid having to load all the data from a record based on a specific criteria (e.g. if the app is working online or offline). That is, a date control either points to a record stored on the phone or to an online database. Of course I can add two controls to the form and use the visible setting but this increases app size and maintenance costs. So I'll either use the work around or use a page action. Thanks a lot.
Users browsing this topic
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.