on 12-12-2008 7:20 AM
Hi all,
I am designing an interactive form in wd java. I used a table to display records in the interactive form.I want to make the table invisible if there is no data in the node. The table is wrapped in a subform . What scripting I need to do to make the table invisible if there is no data in the table node.
Thanks,
Satish Kumar
Satish,
In fact NO scripting is required if you have used Repeating subforms. In the Object palette, the Binding tab displays the Repeat Subform For Each Data Item option. Set the Min Count value to 0 or leave it blank. If the Min Count value is set to 0 and no data is provided for the objects in the subform at data-merge time, the subform is not created when the form is rendered.
You can check more information regarding it [here|http://www.adobe.com/devnet/livecycle/articles/strategies_creating_forms_lc_designer8/strategies_for_creating_form_designs_using_designer8.pdf].
Chintan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
You can do something like this:
1) Select the Object that you want to hide.
2) In the script editor, select
Show = Calculate
Language = FormCalc
Run At = Client
3) Now write this syntax
if ( $record.<SourceNode>.<FieldName> eq "Manager" )
then
Approve.presence = "invisible"
endif
Here Approve is the ID of the approve button in my form.
SourceNode Contains a fieldname. In mycase
SourceNode is "Employee" and FieldName is "Role"
4) Click on the "+" icon just above the script editor.
Save the form and run. This will work.
Thanks and Regards
shanto aloor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.