Binding XML to ComboBox

Hi,
I'd appreciate any help with the following problem.
In the method theaterSearchResultHandler(), I'm trying to
assign a portion of the xml (returned from an HTTPService call) to
the dataProvider property of a ComboBox. I've included both the
method and the xml that's returned.
When I dump event.result, I see the xml is there. But somehow
the dataProvider property ends up with an empty object.
Any suggestions? Thanks much.
LT

"jaabi" <[email protected]> wrote in message
news:gb4raj$t5c$[email protected]..
> Hi,
>
> I'd appreciate any help with the following problem.
>
> In the method theaterSearchResultHandler(), I'm trying
to assign a portion
> of
> the xml (returned from an HTTPService call) to the
dataProvider property
> of a
> ComboBox. I've included both the method and the xml
that's returned.
>
> When I dump event.result, I see the xml is there. But
somehow the
> dataProvider property ends up with an empty object.
>
> Any suggestions? Thanks much.
>
> LT
>
> //my method where I try to assign the Cinema node of the
XML object to the
> dataProvider property of my ComboBox.
>
> private function
theaterSearchResultHandler(event:ResultEvent):void
> {
> appView.gotoMovieEventSelection();
> saveTrackingInfo(SELECT_CINEMA);
> appView.theaterComboBox.labelField = 'Name';
> appView.theaterComboBox.dataProvider =
> event.result.CinemaSearch.Response.Cinemas.Cinema;
> }
try
event.result.Response.Cinemas.Cinema

Similar Messages

  • ActionScript to bind XML data to components

    How can I use ActionScript to bind XML data to a comboBox
    component instead of using the component inspector? (I have done
    the latter, successfully, but that doesn’t allow access to
    the code - .)
    My ActionScript so far imports the data (the trace picks it
    up) – but the ‘cbType.dataProvider line’
    doesn’t work. It works when I change the data provider to an
    array – so what am I doing wrong?
    MY CODE:
    import mx.data.components.XMLConnector;
    var xcFestival:XMLConnector = new XMLConnector();
    xcFestival.ignoreWhite = true;
    xcFestival.direction = "receive";
    xcFestival.URL = "festivalItems.xml";
    xcFestival.trigger();
    //POPULATE THE COMPONENTS WITH THE DATA
    var festXMLlistener:Object = new Object();
    festXMLlistener.result = function(evt:Object) {
    trace(xcFestival.results);
    cbType.dataProvider = xcFestival.results;
    xcFestival.addEventListener("result",festXMLlistener);

    This is on a stand - alone system
    Using Designer ES ......
    I saved the Form as an xdp form
    and it seems as if all goes well until
    View the data and nothing appears - or
    just the names of the fields appear

  • Fault handling policy for a process in the fault-binding.xml

    Can I specify a fault handling policy for a specific process using fault handling framework 10.1.3.3?
    <process faultPolicy="DefaultPolicy"/>
    I cannot specify the name of the process according to the xsd :(
    Can this be achieved?
    I have a two different partner links in different processes having the same name. If I add the partner link to the fault-binding.xml what would be the result?
    Note: I cannot use bpel.xml to specify the fault policies as of now.

    The fault policy bindings file does not allow you to specify a specific fault policy for an individual processes. You can only do this for all BPEL processes (eg: process Level) or at finer grained levels such as partner link levels.
    You might be able to use the partner link level for any services that call the process in which you wnat to error handle (eg: Process C needs to be error handled. Process A and B call C so for the partner link names for invoking C could have the fault policy defined for them). Therefore any faults returned from C could propagate back to process A / B and be handled within by the policy outside of Process C. Obviously if this apporach was used you would not want to use process level definitions as C would continue to use this.
    If the partner links were of the same name, they should both be handled by the fault policy that is defined withiin the Fault policy (e.g Partner Link level definitions)
    An approach that can be used is to specify the fault policy within the bpel.xml file. The information would be added as follows:
    </partnerLinkBindings>
    <!-- Start of Definition-->
    <faultPolicyBindings>
    <process faultPolicy="AProcessFaultPolicy"/>
    <partnerLink faultPolicy="APartnerLinnkPolicy">
    <name>insertSSN_dbAdapter</name>
    <name>Another_Adapter</name>
    </partnerLink>
    </faultPolicyBindings>
    <!-- End of Definition -->
    </BPELProcess>
    </BPELSuitcase>
    However, I noted you said you were unable to do this. I wasn't sure if this was for technical/governamce reasons or knowledge reasons (unsure where to place to the details.
    Hope that helps and does not confuse matters
    Dave

  • WPF Binding XML in Oracle

    Hi,there,I'm using WPF Binding a xml file which stored in Oracle,My question is:is there a way to Bind XML to WPF control directly? If it has,do this way as useful as Bind a data instance?
    Thanks

    You not given that much info...but anyway
    does the following help?
    http://stackoverflow.com/questions/3399338/wpf-bind-a-listview-to-oracle-data-source

  • Trying to bind XML data and form fields

    I have a fairly simple PDF - and I am trying to bind XML data to he form fields.
    In the designer I can bring up the data connection and
    select Global - for the binding method - and as I understand it - this will link Form Fields and XML data fields with the same name - (sounds logical to me)
    but all that happens is :
    I see the name of the field in the form field rahter than seeing the actual data
    should I select : None as the binding or normal ....
    but Normal doesnt show Anything - even after i select it .
    I can't quite seem to make this work -
    Any help here would be appreciated
    Thanks :)

    This is on a stand - alone system
    Using Designer ES ......
    I saved the Form as an xdp form
    and it seems as if all goes well until
    View the data and nothing appears - or
    just the names of the fields appear

  • Howto dynamicly bind XML element to a TextInput using BindingUtils?

    The question is: Howto dynamicly bind XML element to a
    TextInput component using BindingUtils?
    Now I use following codes:
    <!--
    [Bindable] private var xml: XML =
    <item><label>list1</label></item>;
    // initialize code for application's initialize event
    private function init(): void {
    BindingUtils.bindProperty(txtDemo, "text", xml, "label");
    //click event
    private function test(): void {
    xml.label = "something";
    // txtDemo.executeBindings(); //---- no use anymore
    -->
    <mx:TextInput id="txtDemo"/>
    <mx:Button label="Test" click="test()"/>
    My really idea is when bindable xml property is changed, then
    the textinput will be updated as hoped. However, no update happens
    to me when I click the Test button.
    But, if I make codes like that:
    <mx: TextInput id="txtDemo" text="{xml.label}"/>
    the text will updated when xml changs.
    So, what happened, I indeed need the dynamicly bind to the
    textinput compont.
    Help me. thanks.

    You could use an ObjectProxy since all subproperties will
    then be bindable:
    private var _xml:XML =
    <item><label>list1</label></item>;
    private var _opXML:ObjectProxy = new ObjectProxy(_xml);
    then in your init() function you declare _opXML as the host
    object with the bindable property "label"...
    // initialize code for application's initialize event
    public function init(): void {
    BindingUtils.bindProperty(txtDemo, "text", _opXML, "label");
    //click event
    private function test(): void {
    _opXML.label = "something";
    You'll notice that if you check your original _xml.label
    property with ChangeWatcher.canWatch(), it returns false. But if
    you create a dedicated object with a property that can be declared
    as bindable, canWatch() returns true. You'd probably be best off to
    write a lightweight class that can act as your model if you want to
    work with dynamic XML binding using Actionscript. This will allow
    you to use a bindable getter and setter that will give you the
    dynamic functionality you're looking for.
    Hope that helps.

  • Binding XML to java types generated using Oracle Class Gen

    Hi,
    how can you bind an XML to the java types generated using the class gen provided byOracle.
    I am using oracle 9i production. as part of my design, i have to read an xml input in my java class and use the contents to create some records and send a response xml back.
    The latter part of i can do as the java types provide setter methods to set the data and conversion to xml.
    Jaxb can be using to bind xml to java datatypes but its not supported in Oracle9i.
    What are the alternatives for achieving the same?
    Thanks
    Ashwin

    Hi Ashwin,
    This is a bit outside my area of expertise, but I did run an older version of TopLink in the Oracle database java VM a few years back so I'll base my advice on that. Hopefully other forum members can correct me if I steer you wrong.
    First you will need to set up your XML environment:
    I believe the Oracle 9i database includes a JDK 1.3 VM. You will first need to determine if the VM includes any JAXP APIs. I believe there is an SQL query that allows you to query the classes available in the VM. First check if javax.xml.parsers.DocumentBuilderFactory is present.
    If the JAXP APIs are already present in the database you will need to do the following. First load the class javax.xml.namespace.QName into the database. You can extract this from xmlparserv2.jar or from Suns Java Web Service Developer Pack jax-qname.jar. Then you will need to load the JAXB APIs. You can load xml.jar or jaxb-api.jar from Sun's JWSDP.
    If the JAXP APIs are not present you will need to load the 10.1.3 version of the XDK jars (these are shipped with the 10.1.3 TopLink install). Load xmlparserv2.jar and xml.jar into the database.
    Second you will need to setup your TopLink environment:
    Load toplink.jar into the database. If the JAXP APIs were already present and you didn't load the 10.1.3 XDK jars into the database you will need to set the following System property.
    toplink.xml.platform=oracle.toplink.platform.xml.jaxp.JAXPPlatform-Blaise

  • Binding xml form with automation in pro 8.1?

    Hi guys,
    im using COM automation to control adobe pro 8.1 to load a pdf document, and bind an xml file with the form. (the pdf has a datasource attached to it, fields are binded and the preview from livecycle desiner works fine).
    anyone know how i can bind the xml file to the pdf WITHOUT user interaction?
    if its not possible by COM, can i do it from the command line?
    thanks!

    Hello If you are recieving this message before Windows loada up then goto BIOS and clear the fingerprint data.
    The driver for WIndows 8 will work fine with Windows 8.1.
    ALSO 
    Try installing HP Support Assistant which will automatically download and install drivers/updates:
    HPSA Link:
    http://www8.hp.com/us/en/campaigns/hpsupportassistant/hpsupport.html
    Wish you luck,
    Karthik
    --Say "Thanks" by clicking the Kudos (purple thumbs up icon in the lower right corner of a post)
    --Please mark the post that solves your problem as "Accepted Solution"

  • Binding xml from web service to java objects

    I would appreciate if someone can tell me where can i get information regarding
    binding of xml from web service to java objects in weblogic 6.1 .
    Thanks,
    ag

    Hi Ag,
    To my knowledge, the only information on this topic is whatever you find in the
    documentation. What exactly do you want to know?
    Can you post a set of specific questions?
    Regards,
    Mike Wooten
    "ag" <[email protected]> wrote:
    >
    I would appreciate if someone can tell me where can i get information
    regarding
    binding of xml from web service to java objects in weblogic 6.1 .
    Thanks,
    ag

  • Binding XML

    Hi all,
    I'm working with XML but creating a binding between the
    xmlconnector, the dataset and the the datagrid with the usage of
    actionscript only (No dragging of components 2 the stage,
    components are in the libary, that's not the problem) isn't working
    at all. The results of the current code return nothing, however,
    binding the XMLconnector to a textarea works fine. The problem lies
    within the binding with dataset and datagrid! PLZ HELP ME Here is
    some code:

    I think something like:
    Name="Child" DataContext="{Binding ElementName=someotherelement, Path=SelectedItem}"
    And then use xpath on that again.
    xpath is very powerful.
    I can't say I use it so much since I do line of business apps and they're very database orientated.  Usually.
    Hope that helps.
    Technet articles: Uneventful MVVM;
    All my Technet Articles
    Excuse me, are not yet practical with XPATH.
    How come it takes me all the PARAM and not just those of the selected PAGE?
    Where am I wrong?
    <DataGrid Name="grid1" Grid.Row="0" DataContext="{StaticResource ConfigData}"
    ItemsSource="{Binding XPath=//Page}"
    AutoGenerateColumns="False">
    <DataGrid.Columns>
    <DataGridTextColumn
    Header="pageName"
    Binding="{Binding XPath=@pageName}"/>
    <DataGridTextColumn
    Header="description"
    Binding="{Binding XPath=description}"/>
    </DataGrid.Columns>
    </DataGrid >
    <DataGrid Grid.Row="1" DataContext="{Binding ElementName=grid1, Path=SelectedItem}"
    ItemsSource="{Binding XPath=//Param}"
    AutoGenerateColumns="False">
    <DataGrid.Columns>
    <DataGridTextColumn
    Header="name"
    Binding="{Binding XPath=name}"/>
    <DataGridTextColumn
    Header="address"
    Binding="{Binding XPath=address}"/>
    </DataGrid.Columns>
    </DataGrid>

  • XML Forms Combobox entries are disappearing after validation error

    In my XMLForm I have a combobox which is filled with items from a property. After submitting the form (when saving) with a validation error (e.g. date invalid) the entires in the combobox disappear and the entry can be saved without an entry (can this be permitted?).
    Also, when opening the saved entry, the combobox is also empty. I think this is a (unpatched?) KM/XMLForms bug, but maybe there a patch or an other solution for this?
    Is it possible the fill the combobox with fixed entries (without using the property)

    ok, fixed it with the following :
    <ice:selectOneMenu id="chosenSystem" value="#{userRoles.selectedSystem}"
                       valueChangeListener="#{userRoles.systemValueChanged}"
                       immediate="true" partialSubmit="true" required="true"
                       requiredMessage="#{fv_msg.ursysmandatory}" >
        <f:selectItem itemLabel="Choisissez un truc" itemValue=""/>
        <f:selectItems value="#{userRoles.remoteSystemItems}"/>                    
    </ice:selectOneMenu>
    <ice:selectOneMenu id="chosenAbstraction" value="#{userRoles.userRole.abstraction}"
                       converter="remoteAbstractionConverter" >
        <f:selectItem itemLabel="Choisissez un truc" itemValue=""/>
        <f:selectItems binding="#{userRoles.remoteAbstractionsHtml}"/>
    </ice:selectOneMenu>The valuechangelistener simply updates the binded component in chosenabstraction.
    Any idea on how to do that with ajax?
    Edited by: hereps on Aug 21, 2010 2:16 AM

  • How to bind XML to Datagrid?

    My xml is here:
    <?xml version="1.0"?><ITRequests><CallInfo><id type="INT UNSIGNED">42</id><request_no type="VARCHAR">1313_IT_220520100709</request_no><requester_uid type="VARCHAR">administrator</requester_uid><request_date type="VARCHAR">22-May-2010 07:09:34 PM</request_date><title type="VARCHAR">Printer Installation</title><status type="VARCHAR">Closed</status></CallInfo><CallInfo><id type="INT UNSIGNED">43</id><request_no type="VARCHAR">1314_IT_220520100718</request_no><requester_uid type="VARCHAR">administrator</requester_uid><request_date type="VARCHAR">22-May-2010 07:17:49 PM</request_date><title type="VARCHAR">Software Installation</title><status type="VARCHAR">In Progress</status></CallInfo><CallInfo></ITRequests>
    I don't know how to bind this to a simple datagrid.
    Can someone help me please?
    PS: The data is in a String variable.
    Thanks,
    Nith

    Getting your data in the form a string is a PITA. Can you just use the XML itself, and convert it to an ArrayCollection? Then you could just use an HTTP request, for instance, to retrieve it.
    Anyway, here is the code you need. It also demonstrates using E4X syntax to filter out the root node.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application 
    xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"creationComplete="initApp()"
    >
    <mx:Script>
    <![CDATA[
    import mx.collections.XMLListCollection; 
    import mx.collections.ArrayCollection; 
    private var strData:String = "<?xml version='1.0'?><ITRequests><CallInfo><id type='INT UNSIGNED'>42</id><request_no type='VARCHAR'>1313_IT_220520100709</request_no><requester_uid type='VARCHAR'>administrator</requester_uid><request_date type='VARCHAR'>22-May-2010 07:09:34 PM</request_date><title type='VARCHAR'>Printer Installation</title><status type='VARCHAR'>Closed</status></CallInfo><CallInfo><id type='INT UNSIGNED'>43</id><request_no type='VARCHAR'>1314_IT_220520100718</request_no><requester_uid type='VARCHAR'>administrator</requester_uid><request_date type='VARCHAR'>22-May-2010 07:17:49 PM</request_date><title type='VARCHAR'>Software Installation</title><status type='VARCHAR'>In Progress</status></CallInfo></ITRequests>";[
    Bindable] 
    private var acData:ArrayCollection; 
    private function initApp():void{     getCallInfo();
    private function getCallInfo():void{ 
    //Convert string to XML:
    var sxml:XML = new XML(strData); 
    //Create an ArrayCollection.
    //Just get the 'CallInfo' nodes (ignoring the root node, 'ITRequests'):
    acData =
    new ArrayCollection(new XMLListCollection(new XMLList(sxml..CallInfo)).toArray()); 
    trace(acData);}
    ]]>
    </mx:Script>
    <mx:DataGrid 
    dataProvider="{acData}">
         <mx:columns>
              <mx:DataGridColumn dataField="id" width="50"/>
              <mx:DataGridColumn dataField="request_no" width="180"/>
         </mx:columns></mx:DataGrid>
    </mx:Application>

  • Binding XML object to XMLConnector

    Is it possible to dynamically bind an XML object to an
    XMLConnector in ActionScript; and if so, how?
    Thanks.

    Any takers on this?

  • How to bind xml generated by guide in Soap request message and then unbind it?

    Hi
    I have issue in "invoke web service" in adobe LC process ?
    Actually , i have process, a long lived, which take input as xml . this xml(data) it get from guide data submission in browser by user?
    Now , what i need to achieve here is that i have to invoke this long lived process in one of my other process via "invoke web service" option.And to do that, i need to bind the xml into Soap message and then it unbind to back same xml in the other process to use it?
    so, my question here is how can i achieve that?

    Hello Iñaki
    Thanks for your reply.
    I had read the blog about the XMLAnonymizerBean. It looks very straightforward, and in theory should do just what I need.
    I've added the anonymizer bean as the first module as the SOAP message is asynchronous, and I want to remove the namespaces from the request.
    I want to exclude all namespaces so I haven't set any parameters.
    The SOAP channel in Communication Channel monitor has a status of 'Channel Started but inactive'. I cannot see any messages in the Processing Details for this channel, even though I have sent test messages from Java code and from RWB (the message from RWB without the namespace does reach the receiver). This makes me wonder if I have not configured the interface to use the new SOAP channel correctly, although I can see it in the Receiver Determination configuration overview.
    I can see the messages in SXMB_MONI but can't find which communication channel is being used by the sender.
    I'm using PI 7.1.
    regards
    Steve

  • Binding XML return queries to an XSLT search results page

    --____XXIVGLQPKHJTRVXLDKBM____
    Content-Type: text/plain; charset=iso-8859-15
    Content-Transfer-Encoding: quoted-printable
    Content-Disposition: inline; modification-date="Thu, 24 Jan
    2007 16:47:17
    -0700"
    Hi,
    I found a web service I'd love to use on my web site at this
    site here: =
    http://www.localcallingguide.com/xmlquery.php
    It's a web service that allows a user to enter an area code,
    a prefix and =
    it will return a bunch of companies in the area within that
    area code in =
    XML.
    So, after going through the XML tutorial in DW, I created
    this page that =
    contains the form:
    http://www.broadbanddesigners.com/iptelesis/prefixlookup_results.html
    I entered a sample query in the data bindings to see the
    schema, then I =
    created a results page (results.xsl) in .XSLT that has
    placeholders for =
    each of the XML nodes in the returned data. After testing it
    it works =
    great! However that's only when I have a fixed query string.
    (i.e.: =
    http://www.localcallingguide.com/xmllocalprefix.php?npa=3D801&nxx=3D226&sel=
    ect=3D1 )
    Here's my problem: Since the user enters the values, what I
    haven't =
    figured out is how to tell this incoming XML file to use
    results.xsl . =
    When I enter queries, I get the raw xml and can't bind it to
    results.xml =
    page.
    Any suggestions/help?
    How to page it is next, but one nut at a time.
    christian
    --____XXIVGLQPKHJTRVXLDKBM____
    Content-Type: multipart/related;
    boundary="____RIGBAOMRMPWQFITRMXNM____"
    --____RIGBAOMRMPWQFITRMXNM____
    Content-Type: text/html; charset=iso-8859-15
    Content-Transfer-Encoding: quoted-printable
    Content-Disposition: inline; modification-date="Thu, 24 Jan
    2007 16:47:17
    -0700"
    <HTML><HEAD>
    <META http-equiv=3DContent-Type content=3D"text/html;
    charset=3Diso-8859-15=
    ">
    <META content=3D"MSHTML 6.00.5730.11"
    name=3DGENERATOR></HEAD>
    <BODY style=3D"MARGIN: 4px 4px 1px; FONT: 10pt Tahoma">
    <DIV>Hi,</DIV>
    <DIV> </DIV>
    <DIV>I found a web service I'd love to use on my web
    site at this site =
    here:  <A href=3D"
    //www.localcallingguide.com/xmlquery.php</A></DIV>
    <DIV> </DIV>
    <DIV>It's a web service that allows a user to
    enter an area =
    code, a prefix and it will return a bunch of companies in the
    area within =
    that area code in XML.</DIV>
    <DIV> </DIV>
    <DIV>So, after going through the XML tutorial in DW, I
    created this page =
    that contains the form:</DIV>
    <DIV> </DIV>
    <DIV><A href=3D"
    http://www.broadbanddesigners.com/iptelesis/prefixlookup_re=
    sults.html">
    http://www.broadbanddesigners.com/iptelesis/prefixlookup_result=
    s.html</A></DIV>
    <DIV> </DIV>
    <DIV>I entered a sample query in the data bindings to
    see the schema, then =
    I created a results page (results.xsl) in
    .XSLT that has =
    placeholders for each of the XML nodes in the returned
    data.   =
    After testing it it works great!  However that's
    only when I have a =
    fixed query string.  (i.e.: <A href=3D"
    http://www.localcallingguide.co=
    m/xmllocalprefix.php?npa=3D801&amp;nxx=3D226&amp;select=3D1&amp;Submit=3DSu=
    bmit">
    http://www.localcallingguide.com/xmllocalprefix.php?npa=3D801&amp;nxx=
    =3D226&amp;select=3D1</A> )</DIV>
    <DIV> </DIV>
    <DIV>Here's my problem:  Since the user enters
    the values, what I =
    haven't figured out is how to tell this incoming XML
    file to use =
    results.xsl . When I enter queries, I get the raw xml and
    can't bind it to =
    results.xml page.</DIV>
    <DIV> </DIV>
    <DIV>Any suggestions/help?</DIV>
    <DIV> </DIV>
    <DIV>How to page it is next, but one nut at a
    time.</DIV>
    <DIV> </DIV>
    <DIV>christian</DIV></BODY></HTML>
    --____RIGBAOMRMPWQFITRMXNM____--
    --____XXIVGLQPKHJTRVXLDKBM____--

    Liceth,
    For both the Quick Search and the Advanced Search, a call is made to JhsApplicationModule.advancedSearch(), as described in the JHeadstart Developer's Guide, chapter 5.
    You can change the way the where clause is constructed by creating your own subclass of JhsApplicationModuleImpl, making sure that your own Application Module(s) extend the new class, and overriding JHeadstart's advancedSearch(String, ArrayList, Boolean) method. You can start by copying the source code from JhsApplicationModuleImpl, and then make some changes to use bind variables.
    One word of warning: if the search is applied to a child group (like in your example the employees of a certain department), ADF BC will already use :1 for the ViewLink where clause.
    Hope this helps,
    Sandra Muller
    JHeadstart Team
    Oracle Consulting

Maybe you are looking for

  • Is there a way to download music from the cloud at one time without selecting each one individualy

    just looking to see if all your songs in the cloud can be downloaded into your device without selecting each one individually

  • E51 update and memory card password problem

    This morning I updated the software of my e51. But after update, it asks me password of my memory card and I entered all the possible passwords but it doesn't accept.  What can I do about it? I searched internet tried some ways to unlock but they jus

  • Material Description getting truncated in LI04 print

    Hi All, When we print Physical Inventory document in LI04 and using standard report  RLLI0400 the system takes on 20 char in material description and truncates rest of the description. However SAP given Note 538759 - Modif.note to extend material Des

  • Function Moudule not showing under the Function Group in SE80

    Hi guys I  transported a couple of newly developed Function Modules to the R3Q ( Quality System) under an exsitng Function Group. the FM are all transported perfectly and the report is also working but in SE80 where u can see a function group and all

  • Stock control

    Dear friends, how can i maintain the safety stock so that when issuing the material if the quantity falls below the safety stock quantity , the system should issue a message thanks