List box with Jump to Page action

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • petervb
    Forum Member
    • Jun 2002
    • 12

    List box with Jump to Page action

    Hello,

    does anyone else remember seeing a post regarding the way to have a List Box selection trigger a Page Jump action?

    Thanks!

    Peter
  • petervb
    Forum Member
    • Jun 2002
    • 12

    #2
    Re: List box with Jump to Page action

    If anyone might be looking for this solution, other than me, here are actions that work!

    %SelectedItem%=ListBoxObject[ListBox1].GetSelected
    Page.Jump ("%SelectedItem%")

    I found that the List Box would alphabetize the contents when displayed. So, I had to reorder my pages to accomodate the AMS generated index. In this case items # 0 - 3.

    Regards,

    Peter

    <IR_ACTIONS_LIST>
    <Action name="Get Selected">
    <Type>126</Type>
    <Function>0</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <TargetListBox>ListBox1</TargetListBox>
    <Variable>%SelectedItem%</Variable>
    <VariableDelimiter>;;</VariableDelimiter>
    </Action>
    <Action name="Jump">
    <Type>1</Type>
    <Function>0</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <PageName>%SelectedItem%</PageName>
    </Action>
    </IR_ACTIONS_LIST>


    Comment

    • Corey
      Indigo Rose Staff Alumni
      • Aug 2002
      • 9745

      #3
      Re: List box with Jump to Page action

      Hi.

      1. List boxes only *alphebetize* at runtime if you have it set to "sort items at run time" in it's properties dialog.

      2. All you need to do is add a Page Jump action (or any action(s)) to the list box's OnDoubleClick event. You can even make that *item specific* if you want to use a few more actions, i.e. LIST BOX OBJECT > GET SELECTED, etc.

      Corey Milner
      Creative Director, Indigo Rose Software

      Comment

      • petervb
        Forum Member
        • Jun 2002
        • 12

        #4
        Re: List box with Jump to Page action

        Thanks, Corey,

        yep, "sort items at run-time" is selected.

        I wasn't able to figure out how to add a Page Jump to the list box as it contained multiple items. I did figure out the "item specific" action! Now, what else can i use list boxes for;-)

        Peter

        Comment

        Working...
        X