on 05-11-2016 11:28 AM
Hi Guru,
Original Captioned is "1234"
But Business Requirement is to change them dynamically depend on program passed parameter.
If ($.parent.TESTRUN.isNull) then
$.parent.TESTRUN.caption = "AAAA"
else
$.parent.TESTRUN.caption = "BBBB"
endif
Such Logic already applied to
initialize; doReady;ready:Form;ready"layout
But the result is Always "1234".
Any Idea what is missing?
Regards,
Matthew
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Matthew,
The recommendation is to provide the caption in the data and not to hard code it in the scripting as part of the form. The caption might change and also might need to be localized.
You can use a feature called Dynamic Properties. It needs to be turned on in the Options dialog (Tools -> Options) on the Data Binding panel.
The Caption in the Field panel of the Object palette then becomes a hyperlink. Clicking on it brings up a data binding dialog and you can select a data binding.
Regardfs,
Juergen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try below javascript on initialize event of field,
xfa.resolveNode("filedname.caption.value.#text").value = "new caption";
Hope this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
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.