on 04-29-2014 4:32 AM
Hi all,
In my adobe forms, I have the following layout:
ABC Company Limited,
(Formerly known as XYZ Limited)
123 Street, Old Trafford,
Manchester.
Now, the form is shared by 2 different company. If the company code is another company I will have the following problem.
There is a gap between the company name and address.
BBB Company Limited,
555 Street, Ahsverton Grove,
London.
In my adobe form, I put the textbox of " Formerly knows as XYZ Limited" in a subform. I set the subform content to "Flowed"
In my script, I put in the following under the event:
data.#pageSet[0].Page1.ZCOMPANY_FORMER_NAME_SUBFORM::ready:layout - (FormCalc, client)
if $.record.zcompany_former_name == '' then
$.presence = "hidden"
endif
It is not working. The gap is still there when I print out the BBB Company. What else could be wrong?
Hi all,
Thanks for your help.
My colleague found out that that the standard program SAPFM06P which call this particular custom adobe form did not pass in the outputparams-dynamic = 'X'. Thats is why I cannot seems to move up my textboxes using formcalc.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Take a table with 4 rows and and wrap the table in a subform with property as Flowed.
Then bind each row with the text..
Ex: 1st row ABC Company Limited,
2nd row (Formerly known as XYZ Limited)
3rd row 123 Street, Old Trafford,
4th row Manchester.
select the row "(Formerly known as XYZ Limited)" and write the below code:
if ( $.record.zcompany_former_name == null ) then
$.presence = "hidden"
endif
---
Naveen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Naveen,
Have to use textfield for each line of text. I put every textfield under 1 single subform. Set the subform content to "Flowed"
Set the script as followed:
data.#pageSet[0].Page1.COMPANY_NAME.ZCOMPANY_FORMER_NAME::ready:layout - (FormCalc, client)
if ($record.zcompany_former_name == null) then
$.presence = "hidden"
endif
Not working. Is the script under the wrong event ready:layout? Or have to be under different event?
Hi Naveen,
Try to store the second row data into a single variable(lets say Var).
Lets create another variable , where will check whether second row(.i.e Variable Var) is returning something or not .
If second variable is Null then will Hide that row else row will show the desire output.
Thanks & Regards,
Jigar Shah.
Please check the script:
You have mentioned the script as below:
if ($record.zcompany_former_name == null) then
$.presence = "hidden"
endif
it should be:
if ( $.record.zcompany_former_name == null ) then
$.presence = "hidden"
endif
period is missing in your case and please don't copy and paste the code, try to write the code and see that "record.zcompany_former_name" is populated after $.
Edit: And please be advised that if the text feilds are displayed in the design view, then you should write the FormCalc in form:ready* and if the text fields are displayed in the Master Page, write the FormCalc in layout:ready* event.
---
Naveen
Hi
You can try with java script in event INITIALIZE
E.g Name3 is my text field element
Select java script Client side
data.coverpagePT.ardc_cpage.NAME3::initialize - (JavaScript, client)
Write below script as it is it will work.
this.presence = (this.rawValue == null) ? "hidden" : "visible";
Pleasr try with this.
Thanks,
User | Count |
---|---|
86 | |
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.