..:: on getting 2 combo boxes to bind to single components?  --  (based on xcTrips XML tut)

<<<<<<<PLEASE SKIP TO THE
REPLY>>>>>>>>
Ive built an app using the xcTrips tutorial from the flash
xml resource page. It works great.
(Links if needed-->)
http://download.macromedia.com/pub/developer/xml_connector.zip
http://www.adobe.com/devnet/flash/articles/xmlconnector.html
Now I want to add another combo that uses a second array that
I added to the original xml file.
what I have done:
1) I have added a new array to the xml file (same schema,
different syntax)
<videos>
<video>
<description></description>
<swf></swf>
</video>
</videos>
2) I imported the new array to the schema
3) I bound the new combo box to the new videos array and set
its formatter options
4) I then bound the combo box to the textArea and loader
compenents that are ALSO bound to the other combo box (I think this
is the source of the problem)
5) I did NOT set the default value of the selectedIndex to 0,
b/c I do not want this box to load at runtime. (where is the other
cb IS set to 0)
Result---
the new combo displays the label names from the new array,
but does not update the description or the loader
So--
how can I get I get around this?
thanks!!

This is an excellent tutorial:
http://www.adobe.com/devnet/flash/articles/flash_xmlphp.html

Similar Messages

  • Combo box with bind variable from popup

    Hi.
    I had two comboboxes on a form, one having a bind variable. It works great, with the first one as bind field.
    But i want to have the first LOV to be a POPUP. So, the second LOV (combo box) needs to be refreshed when a user has picked a value from the popup list. When i do that, the second LOV is not refresehed...
    Is there a way to do this?
    (3.0.9.8.3.A)

    Hi,
    This was a bug and is fixed in 30984.
    Thanks,
    Sharmila

  • How to get values in the combo box in a XML form?

    Hi All,
        1. I have created a property which has "Default value" as "Clothings" and  "Allowed Values(csv)" as Real Estate - Sales , Clothings etc" by navigating to KM > CM > Global Services > Property Metadata > Properties.
       2. In the XML form builder when I drag this property I get a combo box for this property.
       3. But when I preview this by going to Content Management > Folder > New > FORMS > and select my XML form project I get a preview but it is not showing me the default values in the combo boxes which I created using the property in XML form builder.
    Please Suggest me as to how to get those values (which I mentioned in property) in the combo box ?
    Thanks in Advance,
    Jasmine.

    Hi All,
      I ll make the above Query Simple.
    1.In Xml Form Builder when you drag a property which has some 3-4 assigned values so you are  recomended to use a combo box.
    2.But the problem after using COMBOBOX is I am not getting these values in the preview of the combo box.
    3.Help Required please its urgent.
    Thanks in advance,
    Jasmine.

  • Combo box in a selection screen

    Hi,
    how can I get a combo box with values into s selection screen field.
    Thanks,
    Marian

    Hi..
    just paste this code..
    <b>TYPE-POOLS VRM.
    DATA:
      VRM_VALUE TYPE VRM_VALUE.
    DATA:
      T_DATA TYPE STANDARD TABLE OF VRM_VALUE.
    DATA:
      W_NUM TYPE I.
    PARAMETERS:
      P_LIST AS LISTBOX VISIBLE LENGTH 10
             USER-COMMAND RAM. " DEFAULT 'X'.
    PARAMETERS:
      P_F1(10) TYPE C MODIF ID GR1.
    INITIALIZATION.
      VRM_VALUE-KEY = 'A'.
      VRM_VALUE-TEXT = 'RAM'.
      APPEND VRM_VALUE TO T_DATA.
      VRM_VALUE-KEY = '2'.
      VRM_VALUE-TEXT = 'MOHAN'.
      APPEND VRM_VALUE TO T_DATA.
      VRM_VALUE-KEY = '3'.
      VRM_VALUE-TEXT = 'RAO'.
      APPEND VRM_VALUE TO T_DATA.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          ID              = 'P_LIST'
          VALUES          = T_DATA
        EXCEPTIONS
          ID_ILLEGAL_NAME = 1
          OTHERS          = 2.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF P_LIST NE 'A'.
          IF SCREEN-GROUP1 = 'GR1'.
            SCREEN-ACTIVE = '0'.
          ENDIF.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    AT SELECTION-SCREEN.
    START-OF-SELECTION.
      WRITE: /  P_LIST.</b>

  • Combo box in "Filter by Custom Properties"

    Hi to all,
    I create some custom metadata properties  properties in order to classifie the documents in KM.
    This metadata properties has a set of Allowed Values, so the value is selectable with a combo-box in Detail box of KM.
    Now I have to enable the Filter by Custom Properties with the combobox in place of textfields.
    How to do?
    Regards,
    Giampaolo

    What you want is not the Filter by Custom Properties but the Filter by Predefined Properties.
    In you search options configuration add your properties to the predefined properties list and you'll get your combo-box.
    To configure your search options go to:
    System Administration -> System Configuration -> Knowledge Management -> Content Management -> User Interface -> Search -> Search Options Set

  • Combo box vs Dropdown list

    The Java Studio Creator (2004Q2, Update 8) help screen says that �Dropdown lists are the same as combo boxes in Swing and Microsoft Windows.�
    According to a SUN Java Swing web page, �Combo boxes require little screen space, and their editable (text field) form is useful for letting the user quickly choose a value without limiting the user to the displayed values.�
    How does one get the Combo box functionality (i.e. editable text field) in Dropdown lists in Creator?
    Thank you.

    Hi,
    Combo boxes are of two types, editable and non editable. Reference to this can be found at:
    http://java.sun.com/products/jfc/tsc/articles/jlf/index.html
    The dropdown list component provided in Creator is a non editable combo box. Also please refer to the Writing custom components for Creator by Edwin Goei available at:
    http://wiki.java.net/bin/view/Javatools/SunJavaStudioCreator
    Hope this helps
    Cheers
    Giri

  • Question about using the Combo Box feature!

    I have a form that I am trying to create for our company that will allow our field nurses to select what they need and print it more effieciently.  The problem is that some of the selections are too long and I can't get the Combo box feature to allow them to be printed on multiple lines:
    I have spoken to my supervisor about redoing the form to look like this:
    But in order for us to meet state guidelines it has to be formated like the first because that is the state form given to us.  I want to be able to either:
    A) have the combo box multi-line auto text sized so it will get all the information into each box
    OR
    B) create text boxes at the end of the form that auto enteries the selected data from the second picture into boxes that look like the first picture.
    Is there any way to do either of these?

    A) No.
    B) Yes. Create a text box with the following code as the custom calculation
    script (assuming the name of the combo is "Combo Box1"):
    event.value = this.getField("Combo Box1").value;
    That way, when the user makes a selection in the combo-box, the value will
    also appear in the text box. Just make sure to make the text box read-only
    and set the combo-box to apply the selection immediately.

  • Combo box retaining selected value?

    Hi,
    I have a requirement to display a value based on a selection in a combo box.  This is a training company and we wish to view the number of people booked onto a selected course.
    I am using a web service to bring the data into Xcelsius in two columns - 'Course' and 'no of people'.
    I can get the combo box to read the list of courses, but when the data from the web service refreshes, the combo box reverts back to the default selection.
    Is there any way to avoid this?  I have just downloaded Xcelsius SP1, in case that's relevant.
    Thanks,
    Neil

    Hi there Neil,
    Any progress since the last post?  There really shouldn't be a reset of the component state based on the input of data to the Excel sheet.  I don't have any WS with multiple row/column output, so I'm having difficulty testing that scenario.  I've tried with QaaWS, which should be roughly the same in that regard; with a QaaWS I'm having no troubles.
    Outside chance:  Do you have Behavior > Common > Selected Item bound to one of the WS output cells?  That might reset the component state.
    Another idea:  Use a Trigger Cell or Connection Refresh Button instead of Refresh Every, if it really is a bug.  This will prevent the connection from refreshing and resetting your component.  It sounds like your WS doesn't have Input Value filtering and isn't volatile data, so Refresh Every is unnecessary for your usage.  A Trigger Cell or Connection Refresh button will refresh the WS just once, for the initial access. 
    Source Data:  It's found in the properties sheet under General > Data Insertion > Insertion Type > Source Data.
    <br>
    Javier

  • Filtering Interactive Report which has combo box

    Hi,
    I am a rookie in apex.I have an interactive report in which I have a column which contain's only combo box's. Let me say for example that the display values are Yes and No and the return values are Y and N and the name of the column as "required". When I try to filter the report, I can do so for all the other column's but when I try to do so for this column, I get two combo box's when I click on the expression filter instead of the Yes or No choices. I want the choices to appear in the filter for 'required' column instead of the combo box's. How can I do this? ...I have been searching google in vain...Thanks in advance
    Edited by: user13073434 on May 3, 2010 8:27 PM

    Do I have to recompile this .rdf on the UNIX box again? No.
    How to go about this problem?Have a look at the following notes:
    Note: 337302.1 - Error REP-0756 Unable to find PL/SQL library 'inv.pll' when Opening Report POXPRPOP in Reports Builder
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=337302.1
    Note: 1015074.1 - REP-756,REP-735,REP-736 OPENING REPORT WITH FILESYSTEM ATTACHED LIBRARY
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=1015074.1
    Note: 1016542.6 - Getting REP-0756 : Unable to Find PLsql when Running Standard Reports
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=1016542.6

  • Combo Box selectedIndex

    Hey,
    I have problems using the selectedIndex function for my combo
    boxes.
    I am simply trying to get the combo box to select the second
    item down the list
    comboxBoxName.selectedIndex = 2;
    trace( comboxBoxName.selectedIndex );
    When I tried to trace the value it does return me a 2. But
    when i ran the flash movie the combo box does not show the second
    item down the list when it starts up.
    Did I do something wrong? Thanks for help!

    I am using flash player 7 already so it shouldn't be a
    problem.
    I tried it again in a new flash file, and it didn't work
    neither.
    Maybe I can give some more details...
    I have a combo box in frame 1 with the following:
    editable = false;
    labels = [ -- select --, don't care, $1-100, $101-200, ...
    ,and up]
    Data = [0,0,4,3,2,1]
    rowCount = 6
    No change handler implemented
    Then in that same frame I have the following script (in the
    frame not in the combobox instance)
    this.Attribute.selectedIndex = 2;
    trace(Attribute.selectedIndex);
    stop();
    Again, thanks for help!

  • Combo Box Won't Update

    I can't get my combo box to change it's list. It always displays the original list. I know that this code is being executed, cause I verified it with the debugger. I can't understand this.
            String[] stringArray = {"Why","Can't","I","Change","You"};
            cboMessageHeader = new javax.swing.JComboBox();
            cboMessageHeader.setModel(new javax.swing.DefaultComboBoxModel(stringArray));I've also tried
            cboMessageHeader = new javax.swing.JComboBox(stringArray );And
            cboMessageHeader = new JComboBox(new EnumComboBoxModel(CANHeader.class));Which is what I really want to do (use the enum to create the list).
    Ahh yes and thanks to anyone who responds to this, i'm pretty frustrated at the moment and help is appreciated,
    Nathan

    Could someone tell me exactly why you can't assign
    cboMessageHeader = new ...
    twice?you can, but the second one is a new instance of JComboBox, and not the one
    you see on the screen.
    to get it to work with the new comboBox, you would have to remove the old one,
    then add back the new one, revalidate the panel, perhaps repaint - overall, messy.
    much easier to just change the combobox's model

  • Combo box strings

    I am trying to get some combo boxes to have their entries populated by a text file. I've read many forum entries about the 'strings[]' property, it but it refuses to work for me. I want the combo box to be modifiable by changing entries in a text file.
    Can someone beat this code into submission? I get this error about a GPIB controller needing to be in charge.
    I've included the vi, the text file I want to populate the 'Version Number' combo box and that should be it.
    Tay
    Solved!
    Go to Solution.
    Attachments:
    Event Inspection.zip ‏662 KB
    test.txt ‏1 KB

    On a sidenote, you have some serious coding mistakes. For example look at the following code.
    I would think that the "select" node should act according to the current value of the boolean. WIth your current code, it is very likely that you read the stale value from the property node before the Pass/Fail indicator has received the new value. This is a classic race condition.
    Don't be afraid to branch a wire! The property node is entirely useless and actually is computationally expensive. All you need is a wire. Right? The wire creates a data dependency that ensures correct execution order.
    (See also http://forums.ni.com/ni/board/message?board.id=BreakPoint&view=by_date_ascending&message.id=5178#M51...)
    Message Edited by altenbach on 04-20-2008 01:05 PM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    RaceConditionAnnotated.png ‏11 KB

  • NEED HELP WITH COMBO BOX

    i am having a heck of a time writing the php and actionscript
    to get a combo box to load a list from a data base. And then once
    that list is loaded into cb_combo1 based on the users selection
    loading the appropriate list into cb_combo2 , so for example
    user is asked to select a state.
    once a state has been selected a list of schools from a
    database is loaded into the cb_combo2 based on the users selection.
    after the user selects the school , he is redirected to
    another URL.
    Let me know if anyone can help. Its for a project in school
    and i could really use the A. and the knowledge. I have been
    googleing for about 7 days now.
    Thanks all :-)
    CH

    The perfect tutorial for you:
    http://www.adobe.com/devnet/flash/articles/flash_xmlphp.html

  • Calling A .SWF through a Combo box.

    Hi,
    I drag a combo box and provide 3 options January, February
    and March. I want to see 3 different .SWF files in the same page
    when I choose one of these options. Please help me call the movies
    through combo box selection. Here is my code.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:ComboBox xmlns:mx="
    http://www.adobe.com/2006/mxml">
    <mx:dataProvider>
    <mx:ArrayCollection>
    <mx:String>January</mx:String>
    <mx:String>February</mx:String>
    <mx:String>March</mx:String>
    </mx:ArrayCollection>
    </mx:dataProvider>
    </mx:ComboBox>
    </mx:Application>
    Thanks

    I would store the filename of the swf within your Combo Box
    dataProvider and then when it changes load the new swf based upon
    what they chose. I wrote a sample application that achieves this.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Script>
    <![CDATA[
    import mx.collections.ArrayCollection;
    [Bindable] private var swfDP:ArrayCollection = new
    ArrayCollection([
    {label:"Choose a Month", data:""},
    {label:"January", data:"january.swf"},
    {label:"February", data:"february.swf"},
    {label:"March", data:"march.swf"}]);
    private function onComboChange(event:Event):void {
    // => Check to see if swf location exists, if it does
    then load the new swf.
    (event.currentTarget.selectedItem.data != "") ?
    loader.load(event.currentTarget.selectedItem.data) : "";
    ]]>
    </mx:Script>
    <mx:ComboBox dataProvider="{swfDP}"
    change="onComboChange(event)" />
    <mx:SWFLoader id="loader" width="300" height="300" />
    </mx:Application>
    You will need to change the filename's to match yours unless
    they really are named january.swf and what not. Hope this
    helps.

  • 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

Maybe you are looking for