Framesets (recap)

Earlier I wrote that the setup of Framesets in an application for the Notes client was bugging me. It seemed that one Frame that is being used as a preview pane (using the URL parameter) is ‘consuming’ all the actions made in other Frames.

That is, when using @Formula. When using LotusScript I do not have the problem.

Example 1 – @Formula code in ‘Go’ button in ‘Header’:

myChoice:= Tx_MenuOptions;
@If( myChoice= “Welcome page”;
  @Command([OpenPage]; “Welcome”)

This will causes an empty variable ‘myChoice’, since the value from dropdownlist Tx_MenuOptions will be returned as empty (or cannot be read?)  😕

Example 2 – LotusScript code in ‘Go’ button in ‘Header’:

 Dim myChoice As String 
 myChoice = uidoc.FieldGetText( “Tx_MenuOptions” )
 Select Case myChoice
 Case “Welcome page” :
  Call ws.SetTargetFrame(“Main”)
  Call ws.OpenPage(“Welcome”)

This code will read the field Tx_MenuOptions!

frameset in Notes

Does anyone has an explaination?

5 thoughts on “Framesets (recap)

  1. Wayne Sobers 2008-November-4 / 4:54 pm

    Very wild guess, can @UpdateFormulaContext work for you?

  2. quintessens 2008-November-4 / 5:01 pm

    @UpdateFormulaContext ? Never heard of that before… But I gave it a try and it did not solve the issue. Thank you anyway.

  3. Lars Berntrop-Bos 2008-November-4 / 5:54 pm

    When dealing with the ui, @UpdateFormulaContext can be essential. You need to use it in the correct spot though:

    myChoice:= Tx_MenuOptions;
    @If( myChoice= “Welcome page”;
    @Command([OpenPage]; “Welcome”)

    Make sure you read the Designer help about it 😉

  4. quintessens 2008-November-4 / 11:09 pm

    Hej Lars

    when I add a prompt after the first line

    (myChoice:= Tx_MenuOptions;)

    I already receive an empty value 😕

  5. Kevin Pettitt 2008-November-4 / 11:45 pm

    Patrick, you might also need to check the default target frame settings of each of the frames.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s