on 11-14-2013 11:36 AM
Hello there
I have an adobe page3 that will contain a text include called LIB
So it is defined as follow
1) data.page3.sub3.LIB::ready:form - (FormCalc, client). sub3 is flowed and the text is printing ok.
2) my page3 data.page3::ready:layout - (FormCalc, client, Propagation activée)
3 I have a test swich gv_onoff defined in the calling program if it is on i will print text "LIB"
IF OFF will not print.
question Iput my script as follow
data.page3::ready:layout - (FormCalc, client, Propagation activée)
if ( data.page3.GV_ONOFF EQ "OFF" )
THEN
data.page3.presence = "hidden"
endif
but it is always printing no matter the value ???
CONSIDERING THAT I PUT GV_ONOFF as invisible in page3 itself. shoud it be put in sub3 ?
hanks a lot for your help
Hello Tahar,
Click on the main sub form which is occupied in Design view of Page 3 in the layout. This sub form should contain the GV_ONOFF field. Make sure that this field is binded.
Write the Java script code on that sub form as below.
if ( this.GV_ONOFF.rawvalue == "OFF" )
{
this.presence = "hidden";
}
So when this sub form is hidden, there will be no data to be shown in the content area. So the framework will not create the instance of Page 3. And hence Page 3 is not shown at all.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In my design page3 i have page3 flowed
L Sub3 flowed
L data to be printed lib
L gv_onoff
When i go on page3 and put "this." and wait for suggestion it doesnt suggest me gv_onoff
also if i go on sub3 so i cannot put it
if i point on page3, i have
data.page3::ready:form - (JavaScript, client)
data.page3.sub3::ready:form - (JavaScript, client)
data.page3.sub3.GV_ONOFF::ready:form - (JavaScript, client)
if i position on sub3
data.page3.sub3::ready:form - (JavaScript, client)
data.page3.sub3.GV_ONOFF::ready:form - (JavaScript, client)
data.page3.sub3.LIB::ready:form - (JavaScript, client)
for all of them it is event form:ready
Hi Tahar,
Do not put the code directly on Page 3. Put the code exactly on Sub3 sub form in Initialize event.
Click on Sub3 sub form. Make sure the script language is Java script. Make sure that GV_ONOFF text field and LIB text field are inside the sub3 sub form. In the Initialize event of sub3 write the below code. It will surely work.
if ( this.GV_ONOFF.rawvalue == "OFF" )
{
this.presence = "hidden";
}
Copy your original form into another form and test your changes there. In your copy form remove the code from Form ready and do it from scratch in Java script.
Note: Make sure that there is no main sub form in Page 3 apart from sub3 sub form.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.