on 09-12-2010 9:06 PM
Hi,
Does somebody know if we can share / reuse existing code like JavaScript Function or FormCalc between
different forms ?
Thanks !
Hi,
I had success when I now have a form with two script objects and I can easily used both of them
1. Local
2. Referenced ( Script Fragment )
The position of the script objects must be under the Variables node.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Great, So Script Objects can be shared and reused within the form and between different forms
Thanks !
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Oren,
We did something similar recently, using a Fragment Library on a shared drive. One of our fragments includes javascript and it works fine.
However, we only found how to use fragments as embedded, not referenced. Still that allows you to code once and easily pull the fragment into other forms. (Referenced would mean changes to the fragment in the library would show in all referencing forms. We don't know how to do that. If you figure it out please post!)
Let me know if you would like more details.
Hope this is helpful!
Margaret
Thank you for your input. Still, Can a javascript function / formcalc be used
a couple of times in the same form ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>>if we can share / reuse existing code like JavaScript Function or FormCalc between
different forms ?
No,
if you want to reuse, the only option is you have to copy the javascript or formcalc code from one form to another.
javascript/formcalc fall under client side scripting (as part of the form, as opposed to server (ADS) )
regards,
BJagdishwar.
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 | |
8 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.