XML data is not loading inside buttons !

Hi there... it is an urgent issue: My application only loads
the XML data to the "main" dynamic text fieds.. but all the rest
which are "inside" a button do not load them !!! why ? is there any
special way to load them ?
the way I loaded to the "main" text fields is:
promo01title_txt.text =
obj_xml.firstChild.childNodes[0].firstChild.nodeValue;
I do the same for the buttons but it does not work.. am I
supposed to type a prefix or something like that before the text
field ??? I will appreciate your answer, thanks in advance.
Jiten

If I understand your post you have dynamic text fields on the
stage that you are loading string values from an XML file into the
text property. It sounds like you are trying to take XML strings
and then load them to a text field that is part of another movie
clip. Based on your code it would be simply
myButton.mytextfield.text =
xml.firstchild.childNodes[0].firstchild.nodeValue
You need to give the complete movieclip path of the
textfield. If it is part of another movie clip then you need to
start with that movieclips name then the name of the
textfield.

Similar Messages

  • Page data does not load with goButton? (new window of identical page)

    Hi guys. I ran into a problem. Essentially, I need to print a .jsff page but before I do, I have to alter its format a little bit. The solution I decided to use was to create a new .jspx page containing almost the exact same content. I even copied the data bindings and everything. Finally, I created a goButton on my original page like so:
    <af:goButton text="Print as BOSSMON" destination="SubmitPrint.jspx?org.apache.myfaces.trinidad.agent.email=true"
                        targetFrame="_blank">
    </af:goButton>This opens my page nicely in the format I want. But...there is no data on the page! It just opens a frame of the page. Can someone help me resolve this?
    Otherwise, is there any other technique I could use to accomplish my goal?

    Hi guys. Thanks to everyone for their suggestions. I finally got a working solution, something totally different from the suggestions.
    My goal was to print a .jsff page nicely. But before I could do that, I needed to modify some data on the page. I also wanted to do this in as few clicks as possible. I tried the goButton technique but the binding data would not load. I couldnt figure out why.
    Nonetheless, I finally managed to make my own version (albeit, not that neat!). I accomplished this by essentially making a template which automatically opens in showprintablebehavior format. I tried to follow a bunch of online tutorials/blogs but nothing worked for me. Here are the steps I used:
    1) Creating a new .jspx page.
    2) Copy the entire source of the .jsff page (the one which needs to be printed) into our new template .jspx page. (do have to modify the beginning parts by adding <af:document> <af:form> etc)
    3) Create a pageDef for the template page and copy the entire pageDef as well (do have to change the name of the pagedef)
    4) Modify your print template to your liking.
    5) Add a taskflow rule that links the original .jsff page to the new template page
    6) Add a commandButton on the original .jsff page which opens this printing page in a new window (remember to use "dialog:....."). Here is mine:
    <af:commandButton text="Open Printer Friendly Version" id="printer_popup" action="dialog:edit_print" useWindow="true"
                                  windowEmbedStyle="window" inlineStyle="display:block;"
                                  windowHeight="100" windowWidth="100">
    </af:commandButton>7) Now, in the printing template page, add a command button which simply has the showprintablebehaviour tag within it as well as a client listener to invoke some javascript. Here is what I used:
    <af:commandButton text="Printer Page" id="sha_print">
        <af:clientListener method="do_loading" type="focus"/>
        <af:showPrintablePageBehavior/>
    </af:commandButton>8) In the beginning of this page, you will have an <af:document> tag. Modify it so it sets focus to our print button above when the page loads. Like so:
    <af:document id="d2" initialFocusId="sha_print">9) Now add a resource tag to your page which has the "do_loading" javascript method.
    <f:facet name="metaContainer">
        <af:resource type="javascript">
              function do_loading(event) {
                  var target = document.getElementById('sha_print');
                  target.click();
                  top.close();
                  //alert("got focus sir!");
        </af:resource>
    </f:facet>Thats it! What this does is when you click on the command button to open the printer template, our template page opens but as it opens, it automatically sets focus to the printer button using the document tag. The printer button has a listener which activates when it receives focus (in our case, as soon as the page loads). This listener invokes the javascript method, which progamatically clicks the printer button and closes this window. What your left with is a printer friendly page of your modified page!
    All the data is present there too!
    If anyone has any questions/comments, please do ask.

  • JDEV 10.1.3  XML Editor does not load XML file

    I am trying to edit a large (300MB+) xml file with JDEV 10.1.3 running on a Windows XP Pro workstation with a 2.8 ghz processor and 1GB of memory. The XML file has application data in it. The file loads just fine into the Oracle database using the XML Developer's toolkit so I don't thing there is anything wrong with the XML.
    I'm finding that the XML editor does not load the file. Many minutes elapse, then JDEV appears to simply give up - JDEV is no longer busy. There's no XML data to edit - that window is empty. There are no error messages displayed.
    I'm new to JDEV so I need to know if there is an error log file I should examine.
    BTW, other XML editors (XML Spy, Stylus Studio, etc) simply run out of memory and lock up the machine - it appears they are tryign to convert the XML file contents into 32-bit unicode in memory, build a list of pointers to impose a DOM-like structure, and then load their editor.

    Do you really want to manually edit the 300MB file? how much scrolling will you need to do to get to the last row?
    In any case it is likely that JDeveloper also runs out of memory - you can try running the [jdev-root]\jdev\bin\jdev.exe file and see if you get any error message in the log window.

  • How to create XML data source/ and load data from a web service to BI

    All,
    I m trying to find a 'how to' document (or any document) that shows how to create an XML data source to load data directly from a web service or from an XML file.
    I appreciate any help.

    Hi Mike,
    Two more for you:----
    /thread/111488 [original link is broken]
    http://help.sap.com/saphelp_nw70/helpdata/en/e6/1dd53bb90cbb1ae10000000a11402f/content.htm
    Regards,
    Suman

  • CDC Error (JOURNALIZED DATA is not loading into tartet database)

    HI,
    I have enabled source database for CDC and got green mark on source database model tables.
    while inserting data into source, J$ tables updating JRN_SUBSCRIBER and other filed.
    when I run the package/ interface JOURNALIZED DATA is not loading into target database.
    i have implemented cdc for 7 source table.
    and using JKM MSSQL Simple
    and enable JOURNALIZED DATA in interface level.
    and
    source database is : MSSQL Server
    Target Database : Oralce 11g.
    please advice me.
    thanks in advance.
    Zakeer Hussain

    Zakeer look into this link , -http://odiexperts.com/?p=1096 . Hope this helps.
    also before running Can you right click on the Source Datastore and click on Journal Data and can you see the data ? and if still the data is not passing through ,in that case make temporary objects t- yes in LKM , IKM and debug and see at which step data is not flowing through and look if there is any filter or condition which is stopping it .
    Still not able to figure out please tell us which step the data is not flowing through we will try to guide you.

  • Data is not loading into the target table in BODS

    BODS job is executing successfully but data is not loading.
    can anyone please let me know what is the problem
    Regards,
    Deva

    Hi Deva
    The Information provided is very limited, what are your Source and Target Databases?
    What is the structure of the job design?
    If the job completed without error, review the job logs to confirm that rows were indeed processed.
    Regards
    Charles

  • PSA data change not loaded to the target.

    Hi all,
    We have the data in PSA (it is the master data)- while transferring the data from PSA to the target, system throws error - on analysing the error we found that the characters in the data is wrong, the same was corrected in the PSA - on reloading after correction to the target, system is ignoring the corrected records and loading only the other records.
    What could be the reason for this behaviour.
    Can experts help.
    Regards,
    M.M

    Dear Mr.Goud/Murali,
    Thank you for your immediate reply and instructions.
    Mr. Goud,
    The PSA QM status is only green but even then the corrected record is not loaded to the target.
    Mr. Murali,
    As per your information we do not have an Error DTP -  i have only one DTP and we are in BI7.00 - I have deleted the request from the target and corrected the erroneous record and am trying to load only that record by using the filter option in the DTP - still the data is not loaded.
    Can you suggest method of adopting - i am not able to understand why that corrected record is not loaded. Is it that manually corrected record in the PSA will not be loaded into the target?
    Kindly clarify.
    Regards,
    M.M

  • Impact on transactional Loads if Master data is not loaded

    Scenario for your reference:
    The loads to ZPO_LINE from PC3 was failing for past 20 days from The fix was applied on April 21. 
    I need help to decide the effects of not loading ZPO_LINE for past 20 days. And create a detailed plan for data loads required.
    If the master data is not loaded for 20 days will it affect the transaction loads happened during those days?
    And how can i find out the impact and correct the transaction data if it does?
    Can any 1 help me with this?

    Hi,
    If i understand your scenario, you have a scenario where the Master data load has not been updated for the last 20days but, the transaction data was loaded without any interruption.
    In such a scenario, the Transactional loads will only be affected if there is some field which undergoes transformation after looking up on the master data.
    So, first load the master data and run the attrib change run process.
    After this, if the transaction data is in full update mode, then you dont need to do anything as data will be refreshed with correct values in the next load.
    If delta loads are there, you might need to performa  full repair.
    Regards,
    Rahul

  • Urgent::::Data is not loaded for a perticular info object in ods

    Hi All,
    We have loaded data into an ODS( 0PRC_DS01) in development server. It was successfully loaded into it all info objects.Reports were working well.
    When we transported it to production, data loading was taking longggg  time (15000 for 9 hours).So, we have done two things to improve the loading speed.
    1) we have created an index based on the fields in the where clause RCLNT,RLDNR,RYEAR, DOCNR, POPER in JVSO1 table.
    (JVSO1 is an R/3 table from where key data coming to datasource 0EN_JVA_2.)
    2)We have updated the optmizer statistics.
    Now the problem is, data is not loaded to one perticular info object JOINT VENTURE PARTNER in dso. Which was loaded successfully in development.
    Please help us........We will assign points for helpful answers

    Hi Chek in the transfer and update rules whether u mapped the fields with target and also check whether u have routine. and check whether the data is coming for that object from the source.
    Khaja

  • AWM - After successull cube maintainance data does not load

    Hi All,
    After creating the cube when i maintain the cube the data does not load. I went back and looked at the mapping at the cube level and the dimension level and everything looks fine. Any clues why the data does not get loaded. Also, i did not recieve any error while maintaing the cube.
    thanks

    Hi,
    I was able to resolve this issue. I did not map the cube properly especially the time dimension. Due to this the data did not get loaded in the cube. ReMapping fixed the problem.
    Hope this helps other newbies..

  • Embedded Database - data does not load

    Hello.
    I am currently using NetBeans 6.5 and am experimenting with the CarsApp tutorial.
    Whenever I create an application using the server database, the data loads automatically when the application starts.
    However, when I create the application using an embedded database, the data does not load and I just get a blank table.
    For more information, go to: http://forums.sun.com/thread.jspa?threadID=5366394&tstart=0
    Thank you in advance!

    I'm sorry, I didn't know it was so looked down upon.
    I thought that since this topic pertained to both Destop Applications and JDBC, I could get the best and quickest answer if I posted in both.
    Apparently, that was a mistake.
    Thanks, anyways!

  • XML grid gallery not loading full images(except for one)

    hi,
    I just created my first flash website, but one of my XML image galleries is not working properly. I am using the same (code, layout, just different pics and xml files) gallery on 4 of my pages, however, one("products")  of the 4 will not load the "full" images. The thumbnails load, they decrease opacity when moused over, but once you click on one, the progress bar loads till complete and just stops. You can see the problem in action atwww.erikhigbee.com on the "Products" page. This problem, however, only occurred after I hosted it on iPage.com. When I test it (Ctrl+Enter) in Flash, test it in Dreamweaver or open the .html of it from my computer, everything works perfectly. It is only after I FTP upload all the files to iPage's server that this problem occurs. I made sure to keep the filetree the same and everything. Is it a problem with Ipage? Are too many images trying to load??
    Furthermore, for some odd reason the 1st image(left), 4th row down on the s"Products" page DOES load the full image but the others still dont and I can't for the life of me figure out why. All the code is exactly the same as on the other pages.
    Thanks for any and all help/advice you can give me!
    one thought(from posts on other forums) could be inefficient code.  Error #2044: Unhandled IOErrorEvent:. text=Error #2036: Load Never Completed. pops up whenever the thumbs are clicked.  idk if that helps.
    below is the code i used for the gallery. Could anyone take a quick look over it and see if any problems/inefficiencies jump out at ya??
    [CODE]import flash.net.URLLoader;
    import flash.net.URLRequest;
    import flash.events.Event;
    import flash.display.MovieClip;
    import flash.display.Loader;
    import flash.events.MouseEvent;
    import fl.controls.ProgressBar;
    import fl.transitions.Tween;
    import fl.transitions.easing.*;
    import fl.transitions.TweenEvent;
    var columns:Number;
    var my_x:Number;
    var my_y:Number;
    var my_thumb_width:Number;
    var my_thumb_height:Number;
    var my_images:XMLList;
    var my_total:Number;
    var container_mc:MovieClip;
    var preloaders_mc:MovieClip;
    var full_mc:MovieClip;
    var x_counter:Number = 0;
    var y_counter:Number = 0;
    var my_tweens:Array = [];
    var container_mc_tween:Tween;
    var full_tween:Tween;
    var myXMLLoader:URLLoader = new URLLoader();
    myXMLLoader.load(new URLRequest("gallery_hats.xml"));
    myXMLLoader.addEventListener(Event.COMPLETE, processXML);
    function processXML(e:Event):void{
    var myXML:XML = new XML(e.target.data);
    columns = myXML.@COLUMNS;
    my_x = myXML.@XPOSITION;
    my_y = myXML.@YPOSITION;
    my_thumb_width = myXML.@WIDTH;
    my_thumb_height = myXML.@HEIGHT;
    my_images = myXML.IMAGE;
    my_total = my_images.length();
    createContainer();
    callThumbs();
    myXMLLoader.removeEventListener(Event.COMPLETE, processXML);
    myXMLLoader = null;
    function createContainer():void{
    container_mc = new MovieClip();
    container_mc.x = my_x;
    container_mc.y = my_y;
    addChild(container_mc);
    container_mc.addEventListener(MouseEvent.CLICK, callFull);
    container_mc.addEventListener(MouseEvent.MOUSE_OVER, onOver);
    container_mc.addEventListener(MouseEvent.MOUSE_OUT, onOut);
    container_mc.buttonMode = true;
    preloaders_mc = new MovieClip();
    preloaders_mc.x = container_mc.x;
    preloaders_mc.y = container_mc.y;
    addChild(preloaders_mc);
    function callThumbs():void{
    for (var i:Number = 0; i < my_total; i++){
    var thumb_url = my_images[i].@THUMB;;
    var thumb_loader = new Loader();
    thumb_loader.load(new URLRequest(thumb_url));
    thumb_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, thumbLoaded);
    thumb_loader.name = i;
    thumb_loader.x = (my_thumb_width+10)*x_counter;
    thumb_loader.y = (my_thumb_height+10)*y_counter;
    if (x_counter+1 < columns){
    x_counter++;
    } else {
    x_counter = 0;
    y_counter++;
    var preloader_pb:ProgressBar = new ProgressBar();
    preloader_pb.source = thumb_loader.contentLoaderInfo;
    preloader_pb.x = thumb_loader.x;
    preloader_pb.y = thumb_loader.y;
    preloader_pb.width = my_thumb_width;
    preloader_pb.height = my_thumb_height/10;
    preloaders_mc.addChild(preloader_pb);
    preloader_pb.addEventListener(Event.COMPLETE, donePb);
    function thumbLoaded(e:Event):void{
    var my_thumb:Loader = Loader(e.target.loader);
    container_mc.addChild(my_thumb);
    my_tweens[Number(my_thumb.name)]=new Tween(my_thumb, "alpha", Strong.easeIn, 0,1,0.5, true);
    my_thumb.contentLoaderInfo.removeEventListener(Event.COMPLETE, thumbLoaded);
    function callFull(e:MouseEvent):void{
    var full_loader = new Loader();
    var full_url = my_images[e.target.name].@FULL;
    full_loader.load(new URLRequest(full_url));
    full_loader.contentLoaderInfo.addEventListener(Event.INIT, fullLoaded);
    var full_pb:ProgressBar = new ProgressBar();
    full_pb.source = full_loader.contentLoaderInfo;
    full_pb.x = (stage.stageWidth - full_pb.width)/2;
    full_pb.y = (stage.stageHeight - full_pb.height)/2;
    preloaders_mc.addChild(full_pb);
    full_pb.addEventListener(Event.COMPLETE, donePb);
    container_mc.removeEventListener(MouseEvent.CLICK, callFull);
    container_mc.buttonMode = false;
    container_mc.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
    container_mc.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
    container_mc_tween = new Tween(container_mc, "alpha", Strong.easeIn, 1,0.5,0.5, true);
    function fullLoaded(e:Event):void{
    full_mc = new MovieClip();
    full_mc.buttonMode = true;
    addChild(full_mc);
    var my_loader:Loader = Loader(e.target.loader);
    full_mc.addChild(my_loader);
    full_tween = new Tween(my_loader, "alpha", Strong.easeIn, 0,1,0.5, true);
    my_loader.x = (stage.stageWidth - my_loader.width)/2;
    my_loader.y = (stage.stageHeight - my_loader.height)/2;
    my_loader.addEventListener(MouseEvent.CLICK, removeFull);
    my_loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, fullLoaded);
    function removeFull(e:MouseEvent):void{
    var my_loader:Loader = Loader (e.currentTarget);
    full_tween = new Tween(my_loader, "alpha", Strong.easeOut, 1,0,0.5, true);
    full_tween.addEventListener(TweenEvent.MOTION_FINISH, tweenFinished);
    container_mc_tween = new Tween(container_mc, "alpha", Strong.easeOut, 0.5,1,0.5, true);
    function donePb(e:Event):void{
    var my_pb:ProgressBar = ProgressBar(e.target);
    preloaders_mc.removeChild(my_pb);
    my_pb.removeEventListener(Event.COMPLETE, donePb);
    function tweenFinished(e:TweenEvent):void{
    var my_loader:Loader = Loader (e.target.obj);
    my_loader.unload();
    full_mc.removeChild(my_loader);
    removeChild(full_mc);
    full_mc = null;
    container_mc.addEventListener(MouseEvent.CLICK, callFull);
    container_mc.buttonMode = true;
    container_mc.addEventListener(MouseEvent.MOUSE_OVER, onOver);
    container_mc.addEventListener(MouseEvent.MOUSE_OUT, onOut);
    var my_tween:Tween = Tween(e.target);
    my_tween.removeEventListener(TweenEvent.MOTION_FINISH, tweenFinished);
    function onOver(e:MouseEvent):void{
    var my_thumb:Loader = Loader(e.target);
    my_thumb.alpha = 0.5;
    function onOut(e:MouseEvent):void{
    var my_thumb:Loader = Loader(e.target);
    my_thumb.alpha = 1;
    [/CODE]

    Hi,
    at www.lynda.com there is a great video tutorial.
    Search for Create and Embed a Photo Gallery in a PDF

  • Data is not loaded correctly

    Hi,
    i have loaded data to cube.But when i check the WithDRAW Qty field ,I found Its is not correct with source tcode.
    i think ,some of the records are missed.
    My source tcode.is MCRE.
    Cube 0PP_C06.
    i found that data is not matching for one plant only.,for the remaing plants ,data i.e WithDrawl qty is comming correct.
    Can you please tell how should i find which records are missing
    Regards
    Naresh

    Hi Naresh,
    First Compare the data in the RSA3 with the source tcode MCRE for the field WithDrawl qty against the Plant.
    Thx
    Edited by: satya prasad on May 21, 2010 7:17 AM

  • New i tunes up date will not load says have to remove old bonjour but i tried that and my internet stopped working

    new itunes up date will not down load says i have older version bonjour can not be removed tried removing bonjour with revo uninstaller takes bonjour off but then my internet will not work

    iOS: Unable to update or restore

  • Firefox will not load radio buttons on certain sites and I can't show my choice of items without the ability.

    I have gone to bill pay and ordering sites and have found, what we used to call, radio buttons to mark a choice are not loading. For those that have no idea what I am talking about, Survey sites, bill pay sites and shopping sites use a round button that when clicked on, it shows your choice. These are not loading in the new Firefox and I have had to revert much of my work to Internet Explorer now. Up to this point, I have been impressed with Firefox. Can you restore the confidence and smile on my face?

    Can you post a link to sites where the radio buttons aren't working?
    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]

Maybe you are looking for