Combo Box as a Link

I am wanting to use a combo box as part of my site
navigation, so that each option will take them to the given
frame... but how do you do that? Or maybe the better question...is
it possible? or do I need to create a pop-up menu?
Thank you for your help...

Drag a comboBox to the stage, give it an instance name of
myList and put the
following code on frame one:
myList.addItem({label:"Menu Item 1", data:"1"})
myList.addItem({label:"Menu Item 2", data:"2"})
myList.addItem({label:"Menu Item 2", data:"3"})
var myListener:Object = new Object();
myListener.change = function(evt:Object) {
_root.gotoAndStop(myList.selectedItem.data);
trace("Item Clicked: "+myList.selectedItem.data);
myList.addEventListener("change", myListener);
Dan Mode
*THE online Radio*
http://www.tornadostream.com
*Must Read*
http://www.smithmediafusion.com/blog
*Flash Helps*
http://www.smithmediafusion.com/blog/?cat=11
"MLGrether" <[email protected]> wrote in
message
news:e8j7rm$hol$[email protected]..
>I am wanting to use a combo box as part of my site
navigation, so that each
> option will take them to the given frame... but how do
you do that? Or
> maybe
> the better question...is it possible? or do I need to
create a pop-up
> menu?
>
> Thank you for your help...
>

Similar Messages

  • How to Bind a Combo Box so that it retrieves and display content corresponding to the Id in a link table and populates itself with the data in the main table?

    I am developing a desktop application in Wpf using MVVM and Entity Frameworks. I have the following tables:
    1. Party (PartyId, Name)
    2. Case (CaseId, CaseNo)
    3. Petitioner (CaseId, PartyId) ............. Link Table
    I am completely new to .Net and to begin with I download Microsoft's sample application and
    following the pattern I have been successful in creating several tabs. The problem started only when I wanted to implement many-to-many relationship. The sample application has not covered the scenario where there can be a any-to-many relationship. However
    with the help of MSDN forum I came to know about a link table and managed to solve entity framework issues pertaining to many-to-many relationship. Here is the screenshot of my application to show you what I have achieved so far.
    And now the problem I want the forum to address is how to bind a combo box so that it retrieves Party.Name for the corresponding PartyId in the Link Table and also I want to populate it with Party.Name so that
    users can choose one from the dropdown list to add or edit the petitioner.

    Hello Barry,
    Thanks a lot for responding to my query. As I am completely new to .Net and following the pattern of Microsoft's Employee Tracker sample it seems difficult to clearly understand the concept and implement it in a scenario which is different than what is in
    the sample available at the link you supplied.
    To get the idea of the thing here is my code behind of a view vBoxPetitioner:
    <UserControl x:Class="CCIS.View.Case.vBoxPetitioner"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:v="clr-namespace:CCIS.View.Case"
    xmlns:vm="clr-namespace:CCIS.ViewModel.Case"
    mc:Ignorable="d"
    d:DesignWidth="300"
    d:DesignHeight="200">
    <UserControl.Resources>
    <DataTemplate DataType="{x:Type vm:vmPetitioner}">
    <v:vPetitioner Margin="0,2,0,0" />
    </DataTemplate>
    </UserControl.Resources>
    <Grid>
    <HeaderedContentControl>
    <HeaderedContentControl.Header>
    <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
    <TextBlock Margin="2">
    <Hyperlink Command="{Binding Path=AddPetitionerCommand}">Add Petitioner</Hyperlink>
    | <Hyperlink Command="{Binding Path=DeletePetitionerCommand}">Delete</Hyperlink>
    </TextBlock>
    </StackPanel>
    </HeaderedContentControl.Header>
    <ListBox BorderThickness="0" SelectedItem="{Binding Path=CurrentPetitioner, Mode=TwoWay}" ItemsSource="{Binding Path=tblParties}" />
    </HeaderedContentControl>
    </Grid>
    </UserControl>
    This part is working fine as it loads another view that is vPetioner perfectly in the manner I want it to be.
    Here is the code of vmPetitioner, a ViewModel:
    Imports Microsoft.VisualBasic
    Imports System.Collections.ObjectModel
    Imports System
    Imports CCIS.Model.Party
    Namespace CCIS.ViewModel.Case
    ''' <summary>
    ''' ViewModel of an individual Email
    ''' </summary>
    Public Class vmPetitioner
    Inherits vmParty
    ''' <summary>
    ''' The Email object backing this ViewModel
    ''' </summary>
    Private petitioner As tblParty
    ''' <summary>
    ''' Initializes a new instance of the EmailViewModel class.
    ''' </summary>
    ''' <param name="detail">The underlying Email this ViewModel is to be based on</param>
    Public Sub New(ByVal detail As tblParty)
    If detail Is Nothing Then
    Throw New ArgumentNullException("detail")
    End If
    Me.petitioner = detail
    End Sub
    ''' <summary>
    ''' Gets the underlying Email this ViewModel is based on
    ''' </summary>
    Public Overrides ReadOnly Property Model() As tblParty
    Get
    Return Me.petitioner
    End Get
    End Property
    ''' <summary>
    ''' Gets or sets the actual email address
    ''' </summary>
    Public Property fldPartyId() As String
    Get
    Return Me.petitioner.fldPartyId
    End Get
    Set(ByVal value As String)
    Me.petitioner.fldPartyId = value
    Me.OnPropertyChanged("fldPartyId")
    End Set
    End Property
    End Class
    End Namespace
    And below is the ViewMode vmParty which vmPetitioner Inherits:
    Imports Microsoft.VisualBasic
    Imports System
    Imports System.Collections.Generic
    Imports CCIS.Model.Case
    Imports CCIS.Model.Party
    Imports CCIS.ViewModel.Helpers
    Namespace CCIS.ViewModel.Case
    ''' <summary>
    ''' Common functionality for ViewModels of an individual ContactDetail
    ''' </summary>
    Public MustInherit Class vmParty
    Inherits ViewModelBase
    ''' <summary>
    ''' Gets the underlying ContactDetail this ViewModel is based on
    ''' </summary>
    Public MustOverride ReadOnly Property Model() As tblParty
    '''' <summary>
    '''' Gets the underlying ContactDetail this ViewModel is based on
    '''' </summary>
    'Public MustOverride ReadOnly Property Model() As tblAdvocate
    ''' <summary>
    ''' Gets or sets the name of this department
    ''' </summary>
    Public Property fldName() As String
    Get
    Return Me.Model.fldName
    End Get
    Set(ByVal value As String)
    Me.Model.fldName = value
    Me.OnPropertyChanged("fldName")
    End Set
    End Property
    ''' <summary>
    ''' Constructs a view model to represent the supplied ContactDetail
    ''' </summary>
    ''' <param name="detail">The detail to build a ViewModel for</param>
    ''' <returns>The constructed ViewModel, null if one can't be built</returns>
    Public Shared Function BuildViewModel(ByVal detail As tblParty) As vmParty
    If detail Is Nothing Then
    Throw New ArgumentNullException("detail")
    End If
    Dim e As tblParty = TryCast(detail, tblParty)
    If e IsNot Nothing Then
    Return New vmPetitioner(e)
    End If
    Return Nothing
    End Function
    End Class
    End Namespace
    And final the code behind of the view vPetitioner:
    <UserControl x:Class="CCIS.View.Case.vPetitioner"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:vm="clr-namespace:CCIS.ViewModel.Case"
    mc:Ignorable="d"
    Width="300">
    <UserControl.Resources>
    <ResourceDictionary Source=".\CompactFormStyles.xaml" />
    </UserControl.Resources>
    <Grid>
    <Border Style="{StaticResource DetailBorder}">
    <Grid>
    <Grid.ColumnDefinitions>
    <ColumnDefinition Width="Auto" />
    <ColumnDefinition Width="*" />
    </Grid.ColumnDefinitions>
    <TextBlock Grid.Column="0" Text="Petitioner:" />
    <ComboBox Grid.Column="1" Width="240" SelectedValuePath="." SelectedItem="{Binding Path=tblParty}" ItemsSource="{Binding Path=PetitionerLookup}" DisplayMemberPath="fldName" />
    </Grid>
    </Border>
    </Grid>
    </UserControl>
    The problem, presumably, seems to be is that the binding path "PetitionerLookup" of the ItemSource of the Combo box in the view vPetitioner exists in a different ViewModel vmCase which serves as an ObservableCollection for MainViewModel. Therefore,
    what I need to Know is how to route the binding path if it exists in a different ViewModel?
    Sir, I look forward to your early reply bringing a workable solution to the problem I face. 
    Warm Regards,
    Arun

  • Linking items in combo box to a VI saved in pc folders

    Hello Everyone
    Could some one please tell me how could I link the items added in a combo box to the VI's saved in a folder of my pc, and if I add new item to the folder how could I update it to the combo box list automatically....
    Best Regards
    Pratheek

    Hi,
    you may continue here!
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Linking combo boxes to a table

    I have made a set of combo boxes that allow the user to input a home and away football team and their scores. I have also setup a table with 4 teams in it. How can i link the combo boxes so that EG:
    If Arsenal 2 - 1 Chelsea is a result inputted how can i link it to a table so that Arsenal will go top with 3 points, 2 goal for, 1 against etc
    Basically i need to update the table from the info supplied by the combo boxes???

    we don't tolerate that attitude either....
    besides I gave u guidelines, check the other thread, but u can be sure that nobody will help you if u keep this attitude...
    READ the links I posted in that other thread, work on the issue then come back with questions and post your code so that we know how to help you based on your code..that's how it works here..

  • How to link two combo boxes? (urgent)

    Hello,
    I am wondering how to link two combo boxes in Acrobat Pro 9. Basically, I need to link a building with a list of rooms. There are 3 building choices in my first combo box. For the sake of example, Building A, Building B and Building C. When one of the buildings is selected, I want a 2nd combo box to display the rooms that are located in that building. So by selecting building A, you would then be able to choose a room from the list of available rooms in the second drop box. The buildings cannot share a list of rooms because they have the same room numbers. Is anyone able to help?
    - Travis

    You can also use ajax. When the first combo box element is selected, it will call the ajax function and that ajax function will bring the data from the database and place it in second combo box.

  • Linking multiple combo boxes

    Hello,
    I need some help with something that I am having trouble wrapping my head around. I am in the midst of creating some forms for our office that were originally MS Word files that have since been converted to PDF's. On these forms (which are now compiled into one PDF) there is a field for a name and one fore a licence number. What I would like to do (if possible) is have a drop down combo box with the pilots name. Once the name has been selected, it automatically populates the pilots name and licence number on the subsequent forms.
    Is this possible and if so, does someone have a tutorial on how to do this? I have not had much luck looking online but thought perhaps someone on here may have tired something similar before.
    Thanks.
    Chris

    Yes it's possible. For some help, check out: http://www.acrobatusers.com/tutorials/2007/js_list_combo_livecycle/
    There is a part 2 to this article that may help as well.
    George

  • How to populate a list box linked to selection in combo box?

    Hi All,
    I am a beginner in Xcelsius. I am having problem on how to populate a list box based on the selection on my combo box.
    I have a combo box and a list box.  The combo box value consist of Countries. Values are:
    Singapore
    Indonesia
    Thailand
    When I select, for i.e. Indonesia, I want to populate the list box with all the Postal Code of Indonesia. When I select Thailand, i want to do the same.
    Can anyone shed some lights on how to achieve this?
    My spreadsheet data is as follow
    Country         Postal Code
    Singapore     680123
    Singapore     680124
    Singapore     680125
    Indonesia     155123
    Indonesia     155124
    Indonesia     155125
    Indonesia     155126
    Thailand       333123
    Many Thanks,
    Harianto

    Hi,
    I am detailing the complete steps below:
    In the combobox select the entire range of Country while seeing the records from the Combobox, Xcelsius will automatically show the unique values in the selection.
    After that in the "Data Insertion" section for Combobox select the "Insertion Type" as "Filtered Rows" (please click on the question mark beside this option and it will show how the selection works).
    In the source select the postal code, in the destination select the range which will be used as a data source for the list box.
    This will resolve the concern. Please remember to select the question mark beside the "Insertion Type" option, it explains the working in specific details.
    Best of luck.
    Regards,
    Gourav

  • [php+mysql] linked combo box in insert form?

    Hi all,
    I would like to add two list box on the same insert form.
    The two list box should be linked each other with a 1:1 relation.
    The data in the two compo box could be static data; no need to use
    dynamic data here).
    Selecting from list box 1 will automatically select the related value
    from list box 2.
    Vice versa, selecting a value on list box 2 will automatically select
    the related value on list box 1.
    Is there a way to do this using ADDT?
    TIA
    tony

    >Hi Tony,
    >
    >did you read my reply to your very similar question "Dependent drop down or not?" in this thread:
    >
    >Cheers,
    >Günter Schenk
    >Adobe Community Expert, Dreamweaver
    Hi Gunter,
    No, I've seen your post just now. :(.
    I too I've never seen nothing similar, but the customer said that the
    last year another company have done this for him. But I haven't seen
    those pages and we can't get the source code :(.
    Perhaps a dropdown menu showing two fields could help.
    Or, even better, an editable drop down menu that allow you to type
    something and it will autocomplete automatically using the first field
    or the second field.
    Is this possible?
    TIA Gunter.
    tony

  • Analyzer 6.5: Linking Table to a combo box

    I created a combo box containing all month from January to December.If the user select for example December, he should get on the report the actual month (=December) and the privious month (=November).How can I do this with analyzer?Additional question: How can I solve this problem when the user select January and he should get January and December on the report?Help is very appreciated.

    Depending on how your outline is set up, there are a few different ways you can do this.For starters if you only need to see current month and previous month, then you might want to look at using substitution variables.Assuming you are not looking to use substituion variables because you are looking to give your users a solution that allows them to go back more than one month, you might want to try something like the following. (It might seem a bit long, but since you are dealing with the time dimension and would only need to repeat the process once for each month, it shouldn't take too long to put it in place.)Here's what you can do:When selecting members for your combo box, you should select the top member of you Time Dimension, for instance 'Year Tot'.Once 'Year Tot' shows on the right side of the selection list, you can right click on it and a menu will come up asking if you also want to include children, descendents, etc.; choose at the bottom of the list "Select Subset". Once there, you want to choose from the drop down, 'Expression Contained is', and type the member name 'Nov', (click the add button), then choose 'Expression Contained is' and type the member name 'Dec' (click the add button). Now go to the advanced button and change your connector from 'And' to 'Or'. Click okay.(Basically you are creating a subset that will return November Or December)You now have a member added to your drop down box called "Year Tot" (or whatever you time dim member name is) Rename 'Year Tot' to "Dec" and click okay. You now have a member in your drop down list called 'Dec' that really represents a subset which includes both Nov and Dec. When users click on Dec in the combo box they will see Nov and Dec in the grid.You would then repeat these steps for each month.As far as January showing The current year January and the previous year December, that can be a little tricky. I'm assuming your time dimsnsion is NOT set up as a fiscal year cross over model and instead you have one dimension with your months and then a scenario type dimension with your years. One solution is to add a 13th month to your month's dimension that does not consolidate. The 13th month can be named 'Prior Yr Dec' You would then write a calc script in Essbase to copy your Dec numbers to Prior Yr Dec. (ie "Prior Yr Dec"->2004 = Dec->2003)Once you have this done, you could easily implement the steps above and achieve the results you are looking for.Best Regards,

  • Help with linking combo boxes so that some options are made unavailable

    Hello!
    I'm having trouble setting up an interactive PDF form with multiple combo boxes.
    I have designed an interactive PDF form in InDesign CS6 but am doing the final preparation and formatting in Adobe Acrobat XI Pro.
    First of all, I am not sure if I should be using combo boxes or list boxes, but the combo box seemd to look better after I export the PDF and also left the field blank, ready for selection from the drop-down menu.
    Basically I have a list of drop-down lists, but not all combinations are compatible. For example, after maing "Selection 1" in "Combo box 1", I need only "Selection 1", "2", and "3" [out of the total 5] to be available in "Combo box 2".
    I need to be able to apply this algorhythm to the next few combo boxes as well.
    Moreover, I would need some of the checkboxes disabled [the user won't be able to check them at all]when I make a certain selection in some of the combo boxes.
    Needless to say, I don't know any Java, coding or making calculations in LiveCycle Designer, so I don't even know where to begin.
    I have attached a screen grab of my form and what I want to achieve.
    Any help would be very much appreciated.
    Thank you!

    If it is static data, I would suggest you to cache it rather than having it in each of the user session. You can have configuration/code to refresh when needed. Please look at any available caching frameworks (EhCache, OSCache etc...)

  • Cany you link a combo box to a submit form button?

    This question pertains to Adobe Acrobat 9 Standard.
    On my form, I have a combo box that lists 5 names and a button that I want to use to submit the form via email. 
    Based on the combo box selection, I want the submit button (when pressed) to submit the completed form directly to the email address that corresponds to the name selected.
    Is there a way to do this?
    Any help will be greatly appreciated!

    The Industry combo box contains the following keystroke script:
    // Custom Keystroke script for combo box
    (function () {
    if (!event.willCommit) {
    // Set up an array for arrays of industry corresponding to export values in this combo box
    var aIndustry = [];
    aIndustry[0] = ["--"]
    aIndustry[1] = ["Jen H"];
    aIndustry[2] = ["Al M"];
    aIndustry[3] = ["Steve T"];
    aIndustry[4] = ["Al M, Jen H, Steve T, Glen P"];
    aIndustry[5] = ["Al M"];
    aIndustry[6] = ["Al M"];
    aIndustry[7] = ["Steve T"];
    aIndustry[8] = ["Jen H"];
    aIndustry[9] = ["Glen P"];
    aIndustry[10] = ["Al M, Jen H, Steve T, Glen P"];
    aIndustry[11] = ["Steve T"];
    aIndustry[12] = ["Al M"];
    aIndustry[13] = ["Jen H"];
    aIndustry[14] = ["Jen H"];
    aIndustry[15] = ["Al M"];// Get the export value of the selected item
    var ex_val = event.changeEx;
    // Populate the combo box field with the industry
    getField("BD Executive").setItems(aIndustry[ex_val]);
    When one of the 15 industries are selected, the Executive field automatically populates with one of four names (or, in two instances, all four names).
    Let's say I choose Construction as my Industry.  The Executive field automatically has Jen H's name.
    When the form is complete and I click the Submit Button, I want it to submit the form by e-mail directly to Jen H.
    So do I have to enter a script somewhere within the Executive field or the Submit Button field?
    Please excuse my ignorance.  I'm very, very new to this.
    Thanks again for everything!!!

  • How to get the values from xml file to java combo box

    Hi frens,
    I am new to java and xml programming,
    Now, i want to have a code of getting the tag values from the xml file
    into the swing combo box of java front end.
    How can we do that?
    any help of code or tutorial or an ebook is a great help for me.
    Thank you,
    Karthik.
    Edited by: Karthik84 on Aug 27, 2008 1:49 AM
    Edited by: Karthik84 on Aug 27, 2008 11:29 PM

    look at this link
    http://www.stylusstudio.com/docs/v2006/d_help30.html
    I read sometime back that castor has a tool to do
    conversion. You might have a look into casto as well.

  • Search Engine issues and how to get multiple answers in combo box

    I'm doing a project in vb6 i have a data where when i search it should give multiple answers in combo box.
    example i have a debtor code each debtor code as more than one addresses when i search in one debtor code how can i get multiple addresses in the combo box. my search engine command
    as follows 
    Private Sub Command2_Click()
    Adodc1.Recordset.MoveFirst
    Adodc1.Recordset.Find "DEBTOR_CODE = '" & Text11.Text & "'"
    If Adodc1.Recordset.EOF = True Or Adodc1.Recordset.BOF = True Then
    MsgBox "Record Not Found!", vbApplicationModal
    Adodc1.Recordset.MoveFirst
    Me.Combo1.SetFocus
    Me.Combo1.ListIndex = Me.Text11.Text
    End If
    End Sub
    when i search in my text filed i should answer to the debtor code i'm finding and multiple answer in the combo box for the same debtor code.
    Please help ;( 

    Hello,
    This forum is for VB.NET for VB6 please review the links at
    the following page.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem.

  • How to use one Combo Box to control Two spreadsheet/charts in Web Analysis

    In Web Analysis panel, I have one data grid and one chart (two different data sources). I would like to have one combo box, e.g. Q1, Q2, Q3, Q4, in the selection (drop-down). When I select Q1, I would like to show Jan, Feb, Mar, Q1 ( ICHILDREN(Q1)) in my chart, and also only Q1 in my data grid.
    Any suggestions?
    Thanks

    I believe you can do this. For example you want to have a Chart and Graph linked to a drop down for products. When you select a product, the two POV's will change on the reports.
    Look at Panels in WA. I create a report with three panels. Make the first panel top aligned, the second top aligned and the third stretched. This should make the report "stretchy". Then add your dropdown to one panel and your reports to the other two panels.
    Finally link the reports to dropdown using the re-linking technique mentioned in the previous post.
    Hope this helps.
    Brian Chow

  • How to populate values from database into a Combo Box?

    Hi,
    How to display all the values of a field of a database table in a combo box inside a grid in B1 user defined form?
    Regards,
    Sudeshna.

    Hi,
    If you are trying to do this on a system form (I gues this is your case, reading the other question), for example Sales Orders, and you want to show the values from a User Defined Table (UDT), you just need to add a User Defined Field on Marketing Documents Line level, and say it is linked to the UDT.
    SBO will automatically show the combo with the values on the Code field of the UDT.
    Regards,
    Ibai Peña
    Sorry, I didn´t read the post well.
    What you could do is each time the form is loaded, read the values from the table, and asign them as Valid Values for the combobox column. You can do this programatically, or using XML (which is recommended becouse of better performance).
    Message was edited by: Ibai Peña

Maybe you are looking for

  • Uscing iChat behind D-Link DIR-655 Router

    I have been having a lot of trouble getting ichat to work for me. I have an aol account and when i add buddies (.mac and so on), it shows they are offline, but they are online. I am behind a router, which could be the issue. The main internet is conn

  • ODI Integration between .CSV file and JMS XML

    Hi Gurus, I am new to ODI. My requirement is to integrate .CSV file data to JMS XML i.e I have to fetch the data from .csv FILE & have to put the target xml in the weblogic JMS queue. I dont have any idea how to start & make the data server & all. Co

  • Sun 2510 ISCSI mapping volumes to hosts

    I am setting up a Sun 2510 ISCSI SAN system. I have created two logical volumes. I am currently testing this with a Solaris 10 client and Windows 2008 Client. CHAP authentication to the target is required. I configured mutual authentication for the W

  • FM AREA NOT OPEND FOR YEAR 2005

    Hi, We have activated FM in 2008,but some of the Po s are created in 2005 and down payment made. Now they want to post migo and Miro but system is giving error message that fiscal year 2005 not opened for FM area.Can i open the fiscal 2005 what is th

  • "Failed to open cursor" while creating CTXCAT index. Bug?

    Hi, I'm trying to create a catalog index on a rather large table. And I am consistently getting the following error. When the table was half the size, the same CREATE INDEX statement worked just fine. However, when the table grows to a certain size,