[en] When solutions are opened at the Web Printing site, you can set the initial data for variables in the solution. You can pre-set the variables on the default form for each user independently.
[en] The same solution can be used for different users with different initial data.
[en] In some cases, form variable values need to be different from user to user. You may want to use the same solution for all of your suppliers, but want them to be able to see their individual data only. Every Web printing user defined in the Control Center includes a property named Variables, where variable values can be entered in the following syntax:
[en] "VAR1" = "First name"
[en] "VAR2" = "Last name"
注意
[en] If there is a space in the variable name or value, you must enclose the value in double-quotes.
[en] When a form is loaded, these values are parsed and the variables are set. In the example presented above, the variable named VAR1
would get the value First name
, and the variable named VAR2
would get the value Last name
.
[en] When you have form objects connected to these variables, the objects are updated automatically.
[en] Variable values can be added directly in a Web printing page query string. This approach allows you to adjust the Web printing site simply by providing a different URL.
[en] Example of the URL:
[en] http://<server>/PowerFormsWeb/default.aspx?Variable=Var1=%22First%20name%22&Variable=Var2=%22Last%20name%22
[en] http://<server.onnicelabel.com>/print/default.aspx?Variable=Var1=%22First%20name%22&Variable=Var2=%22Last%20name%22