Difference between revisions of "Passing Values Using Parameters"

From SmartWiki
Jump to: navigation, search
Line 1: Line 1:
You can create [[External|external]] links using two techniques:
+
You can create [[External|external]] links using three techniques:
 
   
 
   
 
In the context of a specific [[Application|application]] by using a [[Custom Field|custom field]]:
 
In the context of a specific [[Application|application]] by using a [[Custom Field|custom field]]:
 +
* Create a [[Custom Field]] of the type [[Custom Field Type: Display Only – Text or System Object|Display Only – Text or System Object]].  Add the link to that field.
 +
* Create a [[Custom Field]] of the type [[Custom Field Type: Read Only – System Variables|Read Only - System Variables]] with the following. It will display as a button.
 +
<pre>
 +
<input type="button" class=Button value="Button Label" onClick='parent.location.href="/urltopage?variable=@variable@"'/>
 +
</pre>
 +
 +
In the context of a [[Portal|portal]] interface by using a link:
 +
* Create a [[Portal]] shortcut and associate the link with that shortcut.
  
1. Create a [[Custom Field|custom field]] of the type '''Display Only Field Type'''.  Add the link to that field.
 
  
In the context of a [[Portal|portal]] interface by using a link:
 
  
1. Create a [[Portal]] shortcut and associate the link with that shortcut.
 
  
 
In either case the link can be web [[URL]] or local '''UNC''' type link.
 
In either case the link can be web [[URL]] or local '''UNC''' type link.

Revision as of 09:06, 31 July 2009

You can create external links using three techniques:

In the context of a specific application by using a custom field:

<input type="button" class=Button value="Button Label" onClick='parent.location.href="/urltopage?variable=@variable@"'/>

In the context of a portal interface by using a link:

  • Create a Portal shortcut and associate the link with that shortcut.



In either case the link can be web URL or local UNC type link.

Passing Parameters to the Link

You can pass parameters to the link. For URL type links the following syntax would be used:


urltopage?Firstname=@firstname@&lastname=@lastname@&email=@email@&address=@address@&address2=@address2@&phone=@phone@&extension=@uphoneext@ &city=@city@&province=@province@&postal=@postalcode@&homephone=@home phone@&companyname=@company name@&employeeid=@employee id@


SmartSimple will replace the variable references (@lastname@ etc) with values derived from the current user session.