on 01-16-2008 3:17 PM
Hi All,
I had created a PDF form. It is a print form and it is not a dynamic form.
I have a subforms in the form.
Using scripting, I have to display and hide the subforms at runtime.
I wrote the script using the Script editor in the Palatte menu in the layout.
I wrote the following script:
if (data.BodyPage1.Items.ItemRow.HMF.HMFint.rawValue == null)
(
data.BodyPage1.Items.ItemRow.HMF.presence = "hidden";
}
In this case,
bodypage1 is the bodypage
items is the root node subform (root table)
itemsRow is the Row subform
HMF is a subform in the itemsRow.
I wrote the script in the INITIALIZE event and used Javascript
and it runs in client side.
The items subforms is a dynamic subform which displays the date based on number of records in the table.
The above scripting is not working...
I tried testing, but I am not getting the correct output...
What could be the problem, please anyone guide me...
Thanks in advance,
Jaffer Ali.S
Hi,Jaffer
Try to put your code in ready:form event of the HMFint.
You can also change your condtion:
if (data.BodyPage1.Items.ItemRow.HMF.HMFint.rawValue == null)
by much more simple:
if(this.isNull)
It should work.
Regards,
Michael
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.