Rank: Member
Groups: Registered
Joined: 12/22/2015(UTC) Posts: 11 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
|
|
|
|
Rank: Administration
Groups: Registered, Administrators Joined: 7/21/2014(UTC) Posts: 498
Was thanked: 88 time(s) in 88 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.
|
1 user thanked bbv for this useful post.
|
|
|
Rank: Member
Groups: Registered
Joined: 12/22/2015(UTC) Posts: 11 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.
|
|
|
|
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.