Hyperlink to specific view - InfoPath Dev
in

InfoPath Dev

Hyperlink to specific view

Last post 12-16-2010 12:12 PM by Hilary Stoupa. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 12-16-2010 11:49 AM

    Hyperlink to specific view

    Hi....... Looking for a how to or example of how to set a hyperlink on a sharepoint page or any webpage to a "view" of a multipage form.   Is this possible?  Are there some examples?  Or how do you create a rule for this?

     

    thanks!!!

     

    chris

  • 12-16-2010 12:12 PM In reply to

    Re: Hyperlink to specific view

    Hey, Chris:

    I don't know of anything out of the box without using code. I know you have qRules, so I'll suggest a qRules based solution for you. Take a look at the SetDefaultView command. If you use this with GetInputParameters, you can pass in an input parameter from your URL and then use SetDefaultView based on the value of the input param. Here's an article that discusses using input parameters in URLs.

    So, for example, you'd have a URL to your form that looked like: http://server/library/Forms/template.xsn?View=Sales

    On the QdabraRules finishedLoading node, you'd add some rules with the condition that the finishedLoading node was equal to true. Your first command would be GetInputParameters and the command would look like: GetInputParamter /key=View. Your second command would take the value from the QdabraRules Result node (which, if GetInputParamters ran and your param was available from the URL would be equal to Sales) and use it in the SetDefaultView command. You can add some error handling here -- check to make sure that Success = true, for example, then run the rule for SetDefaultView. That command would have to use a concat formula, so for the value for the QdabraRules Command node, you'd click the fx button, and enter a formula:

    concat("SetDefaultView /view=", Result)

    Wherein you selected the Result node using Insert Field or Group.

     Hope that helps!

     

     

     

    Hilary Stoupa

Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.