-
1. Re: XML values from tables
AncientGrams Nov 12, 2014 8:34 AM (in response to tanmay.singh)Do you want to hide the table or just the fields in the table? If you want to just hide the table, you can do Tablename.presence = 'invisible' / 'visible' based on the change event of the drop down list object.
something like this (in the change event of the drop down object):
if (xfa.event.newText == 'show') { Tablename.presence = 'visible';}
else if (xfa.event.newText == 'hide') { Tablename.presence = 'invisible';}
This is assuming that your dropdown only has 'hide' and 'show' values.
If you want to just hide the fields in the table, you need to loop through all the fields and set their presence individually. something like this:
var vRows = Tablename._Row.count;
for (var i = 0; i < vRows; i++) {
if (xfa.event.newText == 'show') {
Tablename.resolveNode("Rowname[" + i + "]").field1name.presence = 'visible'; Tablename.resolveNode("Rowname[" + i + "]").field2name.presence = 'visible';
// repeat above for all fields
}
else if (xfa.event.newText == 'hide) {
Tablename.resolveNode("Rowname[" + i + "]").field1name.presence = 'invisible'; Tablename.resolveNode("Rowname[" + i + "]").field2name.presence = 'invisible';
// repeat above for all fields
}
-
2. Re: XML values from tables
tanmay.singh Nov 13, 2014 12:23 AM (in response to AncientGrams)Hi Ancientgames,
Thanks for your reply. However, I am requirement is different. Refer to the screenshot below:If I select Restaurant in the Drop-down, the table should only show the details of restaurant. If I select Travel, it should show all the travel catagories.
Please share your e-mail ID, I can share the file with you.
-
3. Re: XML values from tables
AncientGrams Nov 13, 2014 5:17 AM (in response to tanmay.singh)You can tweak my original reply to get the desired result. The concept is the same.


