Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to use NextURL

Status
Not open for further replies.

amnovice2

Programmer
Aug 11, 2003
13
US
Hi,
NextURL is very commonly used in Livelink.
What is it's significance?
Can anyone please tell me how i can use it to pass parameters to another application which is in Java maybe.
regards,
 
NextURL is used to tell Livelink which is the next page to load once it has completed its current action. You can amend it to refer to another application or a different action, but bear in mind the fact that in some cases you need to complete the process so that the data is saved properly in the database, so if you are trying to sandwhich in your custom code, consider using the original NEXTURL as your final URL once your custom code completes.
 
To understand it completely please look into the documentation of Class WebNodeCmd and Class WebNodeAction of developer module webnode.Simply put in a webnodeaction object will go to the nextURL specified with the cookie information so that a further authentication is not needed.If the nextURL is unspecified then it is constructed from the calling pages's request itself hence the page will remain where it started

To demonstrate this effectively in a development environment
please edit the llglogin.html and replace the code with what I have in the snippet

Code:
;if recarray.iscolumn( .fArgs, "NextURL" )
                 <!--K N Nair 02-01-2003 forced the user to personal assignments on login
                     K N Nair 01-08-1999 forced user to perosnal assignments on login 8.1.5
                      version func was called Personal.Tasks then -->

					<!--<INPUT TYPE=&quot;HIDDEN&quot; NAME=&quot;NextURL&quot; VALUE=&quot;`.fArgs.NextURL`&quot;>-->
					<INPUT TYPE=&quot;HIDDEN&quot; NAME=&quot;NextURL&quot; VALUE=&quot;`.fArgs.SCRIPT_NAME`?func=Personal.Assignments&quot;>


				;end

[code]
Once you re-start your livelink server
This change would force the user to the assignments page whether or not any preferences were setup 

If your objective was to pass parmeters to a java you could do that by passing it easily thru XML work flow interchange,standard cgi methods etc a lot of examples available in greg griffiths site as well as the knowledge base
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top