How can I add script library to form?
Subject: Add script library to form
put the statement in Global → Option
syntax is exactly the same as referencing SLib in Agents or other SLib.
Subject: RE: Add script library to form
It doesn’t work good.I have script. It has in “DECLARATION”: Public Const val = “myValue”.
I want to set this val in form e.g. in filed. I can’t get value “myValue”. Why?
Subject: RE: Add script library to form
What do you want? You declared a constance (Const) and want to reset this constance.That’s impossible, therefore is’t called a constance. Use a real variabel.
Wim
Subject: RE: Add script library to form
I want to set value (form const) into form (e.g. into field oraz calculated text). And I don’t see this value.
Subject: RE: Add script library to form
Well, why don’t you use a field, set to computed and computed value of field get the value you want.When you make a new document your document field has this constance value all the time.
Subject: RE: Add script library to form
bobb,
please confirm the following points:
-
your script lib is a Lutos Script Library
-
you are setting your field value using Lutos Script.
if your answer is yes to both of the above, then try the follwoing:
put the following in the (Globals) (Options) in your form
-
Use “your lib name”
-
Now you should be able to referencing the constant name you have declared in your library.
Subject: Add script library to form
You can’t add a scriptlibrary to a Form directly. Add the library to your db as normal and use the Globals of the form to import the library by use “lib.name” in the options.