Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
I want to make a straight table visible only if a user provide input.
Ex: I want to display employee information in straight table only if emp ID is been provided as input. what setting should be done? or what expression need to be used.Which is best way to achieve this?
I have a input box to get input and straight table to display.. I need to check with visibility?
Regards,
Prajna
I think there are two ways you can achieve it.
1. Straight table layout show/hide
Assume that all your emp ids are available in a list box and end user can select any single empid and then the st table can be visible.
You can go to the St table properties > Layout tab > Show > conditional > getSelectedCount(empid)=1 (keep it one if you just want to show one emp info in this table) or you can keep it getSelectedCount(empid) >0 if you want to show multiple emp ids in the st table.
2. Field event trigger
Another way of doing it is to set a variable with a value whenever an end user selects a Emp id from the Emp ID field.
Field event trigger can be found under Settings > Document Properties > Triggers > Field event trigger.
Select the field Emp ID and then setup an action of setting a variable value. And use the variable value as Conditional Show logic in the St tables's layout.
I think there are two ways you can achieve it.
1. Straight table layout show/hide
Assume that all your emp ids are available in a list box and end user can select any single empid and then the st table can be visible.
You can go to the St table properties > Layout tab > Show > conditional > getSelectedCount(empid)=1 (keep it one if you just want to show one emp info in this table) or you can keep it getSelectedCount(empid) >0 if you want to show multiple emp ids in the st table.
2. Field event trigger
Another way of doing it is to set a variable with a value whenever an end user selects a Emp id from the Emp ID field.
Field event trigger can be found under Settings > Document Properties > Triggers > Field event trigger.
Select the field Emp ID and then setup an action of setting a variable value. And use the variable value as Conditional Show logic in the St tables's layout.
Thank you .. First one served the purpose
Regards,
Prajna