Q
Problem solve Get help with specific problems with your technologies, process and projects.

Call URL directly from menu system

I've build a - two frame based - HTML page, with the menusystem in the left frame. For layout reasons I've incorporated a computed subform on the $ViewTemplate, which - based on a field entry (a key) - "hooks" up the correct view. Formula dependant that is!

When I enter the key manually in the field on the $$ViewTemplate form, and hereafter refreshes on the Web, the correct view appears, which indicates that my viewselection based on formula is functional.

But what I really want to do is to call the URL (with the key) directly from the menusystem. Right now all I have is a "http://someaddress/imp/edb/Handbog.NSF/WebServiceHB?OpenFrameSet" from each menupoint, but I want to add the key to the URL, to generate the right view.

How is this possible?


The good news is that this is pretty simple. You simply create URL that contains your key in a query string format e.g. name=value&name=value. Using the URL you supplied as an example:

http://someaddress/imp/edb/Handbog.NSF/WebServiceHB?OpenFrameSet&key=View1

Where view1 is the name of the view. You then add a field, I'd suggest that you make it computed for display, called Query_String and make the computed value of the field Query_String. This will allow you to access the query string CGI variable in your form. You can then parse the values from the field in your formula used to select the view. If there is only one parameter in the query string, something like the following would work nicely to get the view name:

@RightBack(Query_String;"=");


This was last published in December 2001

Dig Deeper on Domino Resources - Part 2

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchWindowsServer

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchDataCenter

SearchContentManagement

Close