On a button click need to load a select one menu

Hi,
1) I have a text field, one button and a select one menu.
2) Its actually a search option, user will enter some text inside text field and click button, then those data will be loaded to the select one menu.
3) Also i have some text fields with attribute required="true".
4) Actually this is an add/edit organization form.
5) User can create new organization or search and edit existing organization.
6) But now what is happening is search button is a command button, so when i click search button the validation of the text field is happening and no action is going to the backing bean.
7) So what i required is when i click on the search button, no validation should be called, but action need to go to the backing bean..
8) please provide me a solution.
9) please see the source code attached here
<%@ page language="java" contentType="text/html; charset=UTF-8"
     pageEncoding="UTF-8"%>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@ taglib prefix="a4j" uri="http://richfaces.org/a4j"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Add/Edit Organization</title>
</head>
<body>
<f:view>
     <jsp:include page="../header.jsp"></jsp:include>
     <center><h:form id="organizationForm" style="height: 326px; ">
          <table cellspacing="10">
               <tr>
                    <td><h:panelGrid border="0" styleClass="number labelWidth"
                         columns="1">
                         <h:outputLabel value="Search"></h:outputLabel>
                    </h:panelGrid></td>
                    <td>
                    <table cellpadding="0" cellspacing="0">
                         <tr align="left">
                              <td>
                              <table cellpadding="0" cellspacing="0">
                                   <tr>
                                        <td align="left"><h:inputText id="searchTextId"
                                             value="#{organizationJSFBean.searchText}"></h:inputText></td>
                                        <td style="width: 5px;"></td>
                                        <td><h:commandButton image="../icons/search_lens.png"
                                             action="searchSuccess">
                                        </h:commandButton></td>
                                   </tr>
                              </table>
                              </td>
                         </tr>
                         <tr>
                              <td><h:selectOneMenu id="loginNamesId"
                                   value="#{organizationJSFBean.organization.organizationId }">
                                   <f:selectItems
                                        value="#{organizationJSFBean.searchedOrganizationNameItems}" />
                                   <a4j:support event="onchange"
                                        action="#{organizationJSFBean.handleSelection}"
                                        reRender="organizationForm" />
                              </h:selectOneMenu></td>
                         </tr>
                    </table>
                    </td>
                    <td><h:message for="searchTextId" styleClass="errorLabel"></h:message></td>
               </tr>
               <tr>
                    <td><h:panelGrid border="0" styleClass="number labelWidth"
                         columns="1">
                         <h:outputLabel value="Name"></h:outputLabel>
                    </h:panelGrid></td>
                    <td><h:inputText id="nameId"
                         value="#{organizationJSFBean.organization.name}" required="true"
                         requiredMessage="#{errorMessageBean.cannotBeBlank}"></h:inputText></td>
                    <td><h:message for="nameId" styleClass="errorLabel"></h:message></td>
               </tr>
               <tr>
                    <td><h:panelGrid border="0" styleClass="number labelWidth"
                         columns="1">
                         <h:outputLabel value="Short Name"></h:outputLabel>
                    </h:panelGrid></td>
                    <td><h:inputText id="shortNameId"
                         value="#{organizationJSFBean.organization.shortName}"
                         required="true"
                         requiredMessage="#{errorMessageBean.cannotBeBlank }"></h:inputText></td>
                    <td><h:message for="shortNameId" styleClass="errorLabel"></h:message></td>
               </tr>
               <tr>
                    <td><h:panelGrid border="0" styleClass="number labelWidth"
                         columns="1">
                         <h:outputLabel value="Website"></h:outputLabel>
                    </h:panelGrid></td>
                    <td><h:inputText id="websiteId"
                         value="#{organizationJSFBean.organization.website}" required="true"
                         requiredMessage="#{errorMessageBean.cannotBeBlank }"></h:inputText></td>
                    <td><h:message for="websiteId" styleClass="errorLabel"></h:message></td>
               </tr>
               <tr>
                    <td><h:panelGrid border="0" styleClass="number labelWidth"
                         columns="1">
                         <h:outputLabel value="Status"></h:outputLabel>
                    </h:panelGrid></td>
                    <td><h:selectOneMenu id="statusId"
                         value="#{organizationJSFBean.organization.status}">
                         <f:selectItems value="#{organizationJSFBean.searchedStatusItems}" />
                    </h:selectOneMenu></td>
                    <td><h:message for="statusId" styleClass="errorLabel"></h:message></td>
               </tr>
          </table>
          <h:panelGrid border="0" columns="2">
               <h:commandButton value="Save"
                    action="#{organizationJSFBean.saveOrganization}"
                    style="width: 78px; "></h:commandButton>
               <h:commandButton value="Cancel" style="width: 78px; " action="cancel"
                    immediate="true"></h:commandButton>
          </h:panelGrid>
     </h:form></center>
</f:view>
</body>
</html>

8) please provide me a solution.Put immediate="true" on the button in question, like you did on the cancel button.
The next time you post code, put it between { code } tags to make it not only more readable, but the forum won't try to interpret the special characters.

Similar Messages

  • I already have adobe digital editions on my mac pc and download books from the library to my android e-reader. Can I use the same digital editions on my ipad air, or do I need to load a different one onto my ipad?

    I already have adobe digital editions on my mac pc and download books from the library to my android e-reader. Can I use the same digital editions on my ipad air, or do I need to load a different one onto my ipad?

    Try following forum:
    Adobe Digital Editions

  • Premier Elements 3 crashes when 'Burn' button clicked or 'Export to DVD' selected

    After compiling a slide show in Premier Elements ( including rendering, previewing, saving) and I then try to either “Burn” or “Export to DVD” the programme immediately shows “Adobe Premier Elements.exe application error.  The instruction at 0X0000000 reference memory 0X0000000.  The memory could not be read.” OK or Cancel immediately shuts the program down and can’t be re-opened until the computer is re-started. On shut down a second message is displayed “The instruction at 0x00f96cb7 reference memory at 0x00000000.  The memory could not be read. OK to terminate.’ I have replaced the RAM. I have repaired the programme many times with my original disc. I have uninstalled and reinstalled the programme many times. I have uninstalled Nero in case of a conflict. These fixing attempts seemed to have stopped message 2 appearing and the programme can now be restarted after it crashes without having to reboot. I have not been able to cure message 1, it crashes completely at any attempt to ‘burn’ a DVD or ‘export to a DVD’. I can use Windows to burn other discs without problems. I have previously burnt many other slideshow DVD’s without problem.
    I cannot find anything similar to this fault in PE forums.
    Hope to find some help.

    Rosemary,
    Trying to remember the full article, I do not think that I used too much "jargon," but in case that I did, I'll give you a quick distillation. You might want to still read on, as much more will be covered in that article.
    When one starts a Project and then does a Save, a file is written to the location that the user chose. That file is [Project Name].prel. That file uses a computer language called XML. In the article, I show and example of a little bit of that language. That file ONLY contains a series of lines that link to the location of all Imported Asset files - the AV files, the still images, etc.. Those links are to where the various files were located on one's computer, when they did the Save. Next, there are a series of instructions for PrE to work with those linked Assets. These might be along the lines of "cut Shot_01.AVI at 00;00;30;00 and then again at 00;00;45;00," or "apply the Gaussian Blur Effect to Shot_02.AVI." Things like that. PrE is what is called a non-destructive NLE (Non Linear Editor) program, in that it never directly does anything to your original Assets, but only to the info gathered from them though those links. Your files are untouched, unless you were to do an Export/Share to that location, with the exact same name.
    The .prel file only has some programming language inside. It is basically a database of links and instructions - not one Asset. It is not until a user does an Export, or Share (those terms basically mean the same thing, but in later versions, some of the old Export functions are now only under the Share tab), that any playable file is generated from PrE. Until then, there is nothing to play, only to Open in PrE (so long as the linked Assets still exist).
    I hope that this makes sense. Many users are under the mistaken impression that Save will yield a playable file, or that one can play a .prel file. That is not the case, as explained above. This question has come up often enough, that I did the article to point out the differences, and give some tips on how to really get what one wishes.
    After you read through the article, please do not hesitate to post any questions. What I want is something that is useful to all, regardless of their level of computer expertise, or their knowledge and familiarity with PrE, or any other NLE program.
    Just let me know,
    Hunt

  • Help needed to load different xml playlists by clicking button

    Hi there,
    I have a series of buttons, when i double click a button i want to load a new xml file
    I have some functioning code, but when i click on more than one button per run of the application, it will only use the first xml that was clicked / loaded.
    Does anyone have any suggestions I would be really grateful
    Thanks!
    // Music player populated via XML formatted data with associated .mp3 audio files
    // songs to play structured as an XMLList class
    // displays artist and song title in the interface
    cover.visible = false;
    cover2.visible = false;
    // song list base on an XMLList class
    var songList:XMLList;
    // total number of songs in list
    var songsTotal:Number;
    // sound class variable
    var sound:Sound;
    // sound channnel variable to play, pause and stop the sound
    var soundChannel:SoundChannel;
    // holds a reference to the current song playing
    var currentSong:Number = 0;
    // variable to store the song position when paused
    var songPosition:Number;
    // flag to check if current song is paused
    var songPaused:Boolean;
    //  loader for XML via a URL
    var XMLLoader:URLLoader = new URLLoader();
    // various buttons to control songs via the interface
    next_btn.addEventListener(MouseEvent.CLICK, onNext);
    prev_btn.addEventListener(MouseEvent.CLICK, onPrev);
    pause_btn.addEventListener(MouseEvent.CLICK, onPause);
    play_btn.addEventListener(MouseEvent.CLICK, onPlay);
    album1.doubleClickEnabled=true;
    album2.doubleClickEnabled=true;
    album1.addEventListener(MouseEvent.DOUBLE_CLICK, loadalbum1);
    album2.addEventListener(MouseEvent.DOUBLE_CLICK, loadalbum2);
    // check the data has loaded correctly
    XMLLoader.addEventListener(Event.COMPLETE, processXML);
    // this function processes the XML data
    function processXML(e:Event):void {
    // create an XML playlist structure
    var anXMLplayList:XML = new XML(e.target.data);
    // associate the playlist songs with the internal song list
    songList = anXMLplayList.SONG;
    // set the total songs to those found in the XML data
    songsTotal = songList.length();
    // remove the eventlistener and restore variables
    XMLLoader.removeEventListener(Event.COMPLETE, processXML);
    XMLLoader = null;
    // this function starts the first song in the list
    // when the play_btn is pressed via the onPlay function
    function playSong(aSong:Number):void {
    // variables for the Title, Artist and associated song in the song list
    var aTitle = songList[aSong].@TITLE;
    var anArtist = songList[aSong].@ARTIST;
    var aURL = songList[aSong].@URL;
    // populate the interface with the current song data
    title_txt.text = aTitle;
    artist_txt.text = anArtist;
    // check to see if the sound channel is active
    if (soundChannel) {
      soundChannel.stop();
      soundChannel.removeEventListener(Event.SOUND_COMPLETE, onNext);
    // create a new sound object
    sound = new Sound();
    // load the sound from the URL song data
    sound.load(new URLRequest(aURL));
    // activate the sound channel via the play method
    soundChannel = sound.play();
    // when the current songh completes - play the next song via the onNext function
    soundChannel.addEventListener(Event.SOUND_COMPLETE, onNext);
    // this function plays the next song in the list
    function onNext(e:Event):void {
    // increment the current song
    currentSong++;
    // reset the current song if no more to play
    if (currentSong>=songsTotal) {
      currentSong=0;
    // else play the current song via the playSong method
    playSong(currentSong);
    // this function plays the previous song in the song list
    function onPrev(e:MouseEvent):void {
    currentSong--;
    if (currentSong<0) {
      currentSong = songsTotal-1;
    playSong(currentSong);
    // this function pauses the current song playing and sets the boolean flag
    // accordingly
    function onPause(e:MouseEvent):void {
    if (soundChannel) {
      songPosition = soundChannel.position;
      soundChannel.stop();
      songPaused=true;
    // this function plays the current song or restarts a paused song
    function onPlay(e:MouseEvent):void {
    if (songPaused) {
      soundChannel = sound.play(songPosition);
      songPaused=false;
    } else if (!soundChannel) {
      playSong(currentSong);
    function loadalbum1(e:Event):void {
    cover.visible = true;
    cover2.visible = false;
    // load the XML formated playlist
    XMLLoader.load(new URLRequest("playlist1.xml"));
    function loadalbum2(e:Event):void {
    cover2.visible = true;
    cover.visible = false;
    // load the XML formated playlist
    XMLLoader.load(new URLRequest("playlist2.xml"));

    You should try to limit the code you post to what is relevant to the problem... it is hard to track things down, especially when your code is not formatted properly with indentations.
    I didn't search farther than finding that you remove the event listener for the URLLoader...
    XMLLoader.removeEventListener(Event.COMPLETE, processXML);
    so if you remove it after you load the first file and do not restore one for it, then chances are you don't "processXML" any more than the first file you load

  • Need Help Removing XML Photo Gallery on Button Click

    Hi, I'm new to flash so this might seem like a dumb question, but I'm right in the middle of designing a photography site and need some help.  I have 4 buttons in my timeline that go to the corresponding frame labels when clicked, above each frame label is a keyframe with actionscript applied to it, that will load an external XML photo gallery. I need the current photo gallery that's on the screen to disappear when I click on a new button to load the new XML photo gallery.  this is the code that will be above each frame label with a few changes, then below this is the code for my buttons. Any help is greatly appreciated. Thank you  Code: Select all var imageX:XML; var imageList:XMLList;  var canvas:MovieClip = new MovieClip(); var picLoader:Loader; addChild(canvas); canvas.x = -155; canvas.y = 160;   var req:URLRequest = new URLRequest("gallery.xml"); var imageLoader:URLLoader = new URLLoader(); imageLoader.addEventListener(Event.COMPLETE, onComplete); imageLoader.load(req);  function onComplete(e:Event):void { imageX = new XML(imageLoader.data); imageList = imageX.image; picLoader = new Loader(); picLoader.contentLoaderInfo.addEventListener(Event .COMPLETE, imageLoaded); picLoader.load(new URLRequest (imageList[0].url)); }  function imageLoaded(e:Event):void  { canvas.addChild(picLoader); }    Code for the buttons in different keyframe.  Code: Select all stop();  kids_btn.addEventListener(MouseEvent.CLICK,onKidsClick); couples_btn.addEventListener(MouseEvent.CLICK,onCouplesClick); portraits_btn.addEventListener(MouseEvent.CLICK,onPortraitsClick); bellies_btn.addEventListener(MouseEvent.CLICK,onBelliesClick);  function onKidsClick(e:MouseEvent):void { gotoAndStop("kids"); }  function onCouplesClick(e:MouseEvent):void { gotoAndStop("couples"); }  function onPortraitsClick(e:MouseEvent):void { gotoAndStop("portraits"); }  function onBelliesClick(e:MouseEvent):void { gotoAndStop("bellies"); }

    Hi, I'm new to flash so this might seem like a dumb question, but I'm right in the middle of designing a photography site and need some help.  I have 4 buttons in my timeline that go to the corresponding frame labels when clicked, above each frame label is a keyframe with actionscript applied to it, that will load an external XML photo gallery. I need the current photo gallery that's on the screen to disappear when I click on a new button to load the new XML photo gallery.  this is the code that will be above each frame label with a few changes, then below this is the code for my buttons. Any help is greatly appreciated. Thank you  Code: Select all var imageX:XML; var imageList:XMLList;  var canvas:MovieClip = new MovieClip(); var picLoader:Loader; addChild(canvas); canvas.x = -155; canvas.y = 160;   var req:URLRequest = new URLRequest("gallery.xml"); var imageLoader:URLLoader = new URLLoader(); imageLoader.addEventListener(Event.COMPLETE, onComplete); imageLoader.load(req);  function onComplete(e:Event):void { imageX = new XML(imageLoader.data); imageList = imageX.image; picLoader = new Loader(); picLoader.contentLoaderInfo.addEventListener(Event .COMPLETE, imageLoaded); picLoader.load(new URLRequest (imageList[0].url)); }  function imageLoaded(e:Event):void  { canvas.addChild(picLoader); }    Code for the buttons in different keyframe.  Code: Select all stop();  kids_btn.addEventListener(MouseEvent.CLICK,onKidsClick); couples_btn.addEventListener(MouseEvent.CLICK,onCouplesClick); portraits_btn.addEventListener(MouseEvent.CLICK,onPortraitsClick); bellies_btn.addEventListener(MouseEvent.CLICK,onBelliesClick);  function onKidsClick(e:MouseEvent):void { gotoAndStop("kids"); }  function onCouplesClick(e:MouseEvent):void { gotoAndStop("couples"); }  function onPortraitsClick(e:MouseEvent):void { gotoAndStop("portraits"); }  function onBelliesClick(e:MouseEvent):void { gotoAndStop("bellies"); }

  • Technical help needed  for button click

    Hi All,
    Im new to abap, just  now started working in my first project. I need some help and start from you.
    In my webdynpro component FPM_OIF_COMPONENT  : CNR_VIEW, Participate button  is there,
    so by default u201CCreate Responseu201C button is grayed out. By clicking the participate button, I need to enable the create response button. For this requirement, I need to create a custom class with two static methods : setvalue and getvalue methods. In that methods I need to set the variable = X, if participate button is pressed. And when loading WDDOMODIFY VIEW method, I need to check the value of the variable, if the value is X, then create response button will be enabled.
    For this logic, Can you please frame some sample code.
    Or please guide me throug some materials.
    Please help me in this regard.
    Regards,
    Rani.
    Moderator message: moved from ABAP forums.
    Edited by: Thomas Zloch on Jun 29, 2011 11:14 PM

    Hi Rani,
    I understand you are new to ABAP basically the webdynpro questions are posted in webdynpro-ABAP, Forums going forward you should adapt the same practice to get a better response.
    As you said u201CCreate Responseu201C button  is already grayed out it must be already linked to attribute of type wdy_boolean
    check the "enable property" of the button.
    Coming to your question :
    In the "OnAction" event of Participate button write a method for example  get value
    "Make the attribute" linked to create response button as abap_true hence whenever participate button is pressed it
    will make your create response button enabled.
    Regards
    Bhanu Malik

  • Need help placing tracking script on button click

    Howdy.
    We're trying to track the button clicks on a landing page we're producing. I've got the "landing page" script in the header via the page properties but now I need to put script on a button that fires when the person clicks the button. Any help would be greatly appreciated!
    website: maysweb.tamu.edu/open-enrollment
    script:
    <script type='text/javascript'>
    // Conversion Name: Finance & Accounting - Non-Finance Managers button
    var ebRand = Math.random()+'';
    ebRand = ebRand * 1000000;
    //<![CDATA[
    document.write('<scr'+'ipt src="HTTP://bs.serving-sys.com/Serving/ActivityServer.bs?cn=as&ActivityID=1&rnd=' + ebRand + '"></scr' + 'ipt>');
    //]]>
    </script>
    <noscript>
    <img width="1" height="1" style="border:0" src="HTTP://bs.serving-sys.com/Serving/ActivityServer.bs?cn=as&ActivityID=1&ns=1"/>
    </noscript>

    Anyone got any ideas on this?

  • Loading movie clip to stage with button click AS3

    I'm trying to figure out how to load a movie clip to the stage with a button click and have the movieclip close again using a close button. Does anyone have a step by step on how to do this or links to some tutorials.
    Below is an example of what I'm trying to do.

    Alrighty I changed the publish settings to as3. I'm still getting two errors:
    Scene 1
    1046: Type was not found or was not a compile-time constant: Popup1Btn.
    Scene 1, Layer 'as', Frame 1, Line 3
    1061: Call to a possibly undefined method addEventListener through a reference with static type Class.
    So my setup on my main timeline is I have an actionscript layer with this code now:
    var popup1:Popup1
    Popup1Btn.addEventListener(MouseEvent.CLICK,addF);
    ClosePopup1.addEventListener(MouseEvent.CLICK,closeF);
    function addF(e:MouseEvent):void{
    popup1=new Popup1();
    addChild(popup1);
    function closeF(e:MouseEvent):void{
    removeChild(popup1);
    popup1=null;
    On the stage I have a button with the isntance/AS linkage name Popup1Btn. Inside my Popup1 MC I have a box with text and then a button with the instance/linkage name ClosePopup1 to close the popup.
    What am I missing?

  • 'loading' symbol on button click

    Hi,
    I have a requirement where user want to see 'loading' icon (the circle that rotates in center of window when backend operation is in process) below a search button.
    Is there any way to have this 'loading' icon at the place we want on screen?
    Please help.
    Thanks & Regards,
    Amey

    Hi,
    To my knowledge, this is not possible in a direct way.
    However, you could use the following workaround:
    - export a portal theme, unzip, and extract the image from ur.zip under common/loading
    - store this image in the mime folder of your WD component, and embed this image at the preferred position in your view, showing and hiding upon a button click
    Hope this helps!
    Robin van het Hof

  • Hello i have a problem with onfocus function on ipad. i am trying to bring my cursor on a text box on a button click. It works fine with safari web browser but not on ipad. Need a solution.

    Hello i have a problem with onfocus function on ipad. I am trying to bring my cursor on a text box on a button click. It works fine with safari web browser but not on ipad. Need a solution.

    I don't think that a software update from Apple will solve the issues that you are having. You have a rogue installation. After you posted I have just done the following:
    Disk Utility can verify  my partitioned Volume (including my boot disk) AND REPAIR the non-boot disks on the same Volume without a glitch. It repairs the non-boot disks containing data smoothly.
    I have used Mail to send some mails from some Yahoo and Hotmail accounts to my Thunderbird client containing GMail accounts - absolutely normal.
    I have iLife '09 but my iMovie '09 and iPhoto '09 open in a jiffy and I see no issues here. I have 6GB RAM (Maximum) on an early 2008 Macbook Pro with a 750GB hard drive partitioned with 120GB reserved for the Boot Drive.
    I am sorry that I cannot help further but I am sure there must be a way to reinstall the software without having to revert to restoring your ML backup. I have two clones and if you have such I would attempt to do that through that rather than through Time Machine - that is of course if you have a cloned drive.
    Good luck!

  • Certain sites do not load properly. I have to click the Stop loading page button, the click reload page to fully load the site.

    Using Firefox 6.0.1 on Windows XP SP3. When I navigate to certain sites (nytimes.com for example), Firefox loads most of the page, but some graphics are missing and the green circle in the tab keeps spinning. Typically I have to click the Stop Loading Page button, then click the Reload Page button to get Firefox to load the remaining items in the website. Seems to get stuck with images.

    This type of problem is normally caused by using an incompatible add-on. For details of how to troubleshoot this to find out what one is causing the problem see https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Radio button state on region load...

    Is there a way to set the radio button state (click event) on a region load? The default value of 0 (read-only) works when clicked, but doesn't when the page initially loads, and it's like the button click event needs to take place at the region load time. The values are 1 and 0 set statically if that matters, and the hidden value does not get changed when the radio button with the value of 1 is selected.
    The button makes the button visible when 'edit' is selected and the button disappears when 'read-only' is selected which is the expected behavior.
    I do have a condition on the 'save' button for the value to not be zero which is based on the value from the radio button.
    My gut says it'll be a region header attribute or Java Script sort of thing and I've not found anything so far, and I'm hoping there's an Apex guru out there that has a recommendation.
    Thanks in advance!
    Matt

    I used some source I found on Denes' web site and added the call, but it didn't yield the result I was hoping for.
    <script type="text/javascript" language="javascript">
    $s('P8_RADIO_BUTTON','0');
    function f_showhideButtonRadio(pThis, pValue)
    {     var show_or_hide = html_RadioValue(pValue);
    if (show_or_hide == 0)
    {html_HideElement(pThis);}
    else
    {html_ShowElement(pThis);}
    function f_showhideButtonSelect(pThis, pValue)
    {     var show_or_hide = $x(pValue).value;
    if (show_or_hide == 0)
    {html_HideElement(pThis);}
    else
    {html_ShowElement(pThis);}
    </script>
    I'm quite new to the Java Script in Apex, so if I hosed this up, please let me know. Also, does that set the click event on or does that just set the value? The reason I ask is with a 0 or 1 it yielded the same result.
    Thanks!
    Matt

  • Link to xml from xml ( mx:Button click="function({...});" )

    links.xml contains links for page1, page2
    links.xml
    |
    +-- page1.xml
    |
    +-- page2.xml
    I try:
    <mx:Button click="loadXML2({ getField( XML(
    linksItems.currentItem ), how1Link ) });" label="Link" />
    Debugger says:
    Error: Repeater is not executing.
    at mx.core::Repeater/get currentItem()
    at LinkFromXML2/___LinkButton1_click()
    <!-- File: links.xml -->
    <?xml version="1.0" encoding="UTF-8"?>
    <rdf:RDF xmlns="
    http://web.resource.org/cc/"
    xmlns:dc="
    http://purl.org/dc/elements/1.1/"
    xmlns:rdf="
    http://www.w3.org/1999/02/22-rdf-syntax-ns#">
    <item>
    <dc:title>Page 1</dc:title>
    <dc:link>page1.xml</dc:link>
    </item>
    <item>
    <dc:title>Page 2</dc:title>
    <dc:link>page2.xml</dc:link>
    </item>
    </rdf:RDF>
    <!-- File: page1.xml -->
    <?xml version="1.0" encoding="UTF-8"?>
    <rdf:RDF xmlns="
    http://web.resource.org/cc/"
    xmlns:dc="
    http://purl.org/dc/elements/1.1/"
    xmlns:rdf="
    http://www.w3.org/1999/02/22-rdf-syntax-ns#">
    <dc:Work>
    <dc:title>Page 1</dc:title>
    </dc:Work>
    </rdf:RDF>
    <!-- File: page2.xml -->
    <?xml version="1.0" encoding="UTF-8"?>
    <rdf:RDF xmlns="
    http://web.resource.org/cc/"
    xmlns:dc="
    http://purl.org/dc/elements/1.1/"
    xmlns:rdf="
    http://www.w3.org/1999/02/22-rdf-syntax-ns#">
    <dc:Work>
    <dc:title>Page 2</dc:title>
    </dc:Work>
    </rdf:RDF>
    <!-- File: LinkFromXML.mxml -->
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute"
    creationComplete="loadXML('links.xml');">
    <mx:Script>
    <![CDATA[
    import mx.collections.XMLListCollection;
    public var pathxml:String;
    public var pathxml2:String;
    private var how:Namespace = new Namespace("
    http://web.resource.org/cc/");
    private var dc:Namespace = new Namespace("
    http://purl.org/dc/elements/1.1/");
    [Bindable]
    private var how1Title:QName = new QName(dc, "title");
    [Bindable]
    private var how1Link:QName = new QName(dc, "link");
    [Bindable]
    private var how2Title:QName = new QName(dc, "title");
    [Bindable]
    private var how1externalXML:XMLListCollection;
    [Bindable]
    private var how2externalXML:XMLListCollection;
    private function loadXML(pathxml):void {
    trace (pathxml);
    var loader:URLLoader = new URLLoader();
    var request:URLRequest = new URLRequest(pathxml);
    loader.load(request);
    loader.addEventListener(Event.COMPLETE, onComplete);
    private function loadXML2(pathxml2):void {
    var loader2:URLLoader = new URLLoader();
    var request2:URLRequest = new URLRequest(pathxml2);
    loader2.load(request2);
    loader2.addEventListener(Event.COMPLETE, onComplete2);
    private function onComplete(event:Event):void {
    var loader:URLLoader = URLLoader(event.target);
    var how1Items:QName = new QName(how, "item");
    var dataXML:XML = XML( loader.data );
    dataXML.addNamespace( dc );
    var how1base:XMLList = dataXML.descendants( how1Items
    how1externalXML = new XMLListCollection( how1base );
    private function onComplete2(event:Event):void {
    var loader2:URLLoader =
    URLLoader(event.target);
    var how2Items:QName = new QName(dc, "Work");
    var dataXML:XML = XML( loader2.data );
    dataXML.addNamespace( dc );
    var how2base:XMLList = dataXML.descendants( how2Items
    how2externalXML = new XMLListCollection( how2base );
    private function getField( itemXML:XML,
    field:QName):String {
    return itemXML.descendants( field ).toString();
    ]]>
    </mx:Script>
    <mx:Canvas id="HowView" backgroundColor="#FFFFCC"
    label="How"
    width="100%" height="100%">
    <mx:HBox width="100%" height="100%">
    <mx:VDividedBox width="400" height="100%" id="how1Box"
    backgroundColor="#B9C5A0">
    <mx:Repeater width="80%" id="linksItems"
    dataProvider="{ how1externalXML }">
    <mx:VBox width="80%" horizontalAlign="center"
    creationCompleteEffect="Fade">
    <mx:LinkButton click="loadXML2('{getField( XML(
    linksItems.currentItem ), how1Link )}')" label="{ getField( XML(
    linksItems.currentItem ), how1Title) }" />
    </mx:VBox>
    </mx:Repeater>
    </mx:VDividedBox>
    <mx:VDividedBox width="100%" height="100%" id="how2Box"
    backgroundColor="#6BA1A3">
    <mx:Repeater width="100%" id="workItems"
    dataProvider="{ how2externalXML }">
    <mx:VBox width="534" horizontalAlign="center"
    creationCompleteEffect="Fade">
    <mx:Label text="{ getField( XML(
    workItems.currentItem ), how2Title) }" color="#000000"/>
    </mx:VBox>
    </mx:Repeater>
    </mx:VDividedBox>
    </mx:HBox>
    </mx:Canvas>
    </mx:Application>

    "Cole_62" <[email protected]> wrote in
    message
    news:gd2q5r$f08$[email protected]..
    > no i dont think this will work because i need to iterate
    through each
    > <item> in
    > the XML...below is an exmaple of possible tree structure
    of the XML:
    > channel
    > -->item1
    > ----->title
    > ----->imgs
    > --------->imgUrl
    > --------->imgUrl
    > -->item2
    > ----->title
    > ----->imgs
    > ---------->imgUrl
    > -->item3
    > ------>title
    > ------>imgs
    > ----------->(no imgs)
    >
    > i thought to handle this using something like the
    ATTACHED CODE below:
    >
    > ...i need to be able to go through each <item> and
    <imgUrl> (because i
    > dont
    > know how many (if any) there are!) sorry if my PHP
    background shines
    > through!
    >
    > THANKS!
    >
    > <mx:Repeater id="feed"
    dataProvider="{XML.channel.item}">
    > <mx:HBox>
    > <mx:Text text="{feed.currentItem.title}"/>
    > <mx:Repeater id="item"
    dataProvider="{feed.currentItem.imgs}">
    > <!-- PSEUDO CODE I NEED HELP RESOLVING:
    > if ("{item.currentItem.imgURL}")
    > -->
    > <mx:Image source="{item.currentItem.imgUrl}"/>
    > </mx:Repeater>
    > </mx:HBox>
    > </mx:Repeater>
    How bout
    <mx:Repeater id="feed"
    dataProvider="{XML.channel.item}">
    <mx:HBox>
    <mx:Text text="{feed.currentItem.title}"/>
    <mx:Repeater id="item"
    dataProvider="{feed.currentItem.imgs}">
    <mx:Image
    source="{item.currentItem.imgURL.length()>0?item.currentItem.imgURL:null}"
    includeInLayout="{item.currentItem.imgURL.length()>0}"/>
    </mx:Repeater>
    </mx:HBox>
    </mx:Repeater>

  • ___ I just got a new Mac (2x2.8 ghz) - and I don't need to load fonts?!

    ___ I just got a new Mac (2x2.8 ghz) - and I don't need to load fonts?!
    I just realized Suitcases X1 won't work w/o upgrade, and my Font Book won't load new fonts, but it doesn't seem that I need to load fonts anymore - any idea why?

    Hello, might try this...
    Make a New Location, Using network locations in Mac OS X ...
    http://support.apple.com/kb/HT2712
    10.5, 10.6, 10.7 & 10.8…
    System Preferences>Network, top of window>Locations>Edit Locations, little plus icon, give it a name.
    10.5.x/10.6.x/10.7.x/10.8.x instructions...
    System Preferences>Network, click on the little gear at the bottom next to the + & - icons, (unlock lock first if locked), choose Set Service Order.
    The interface that connects to the Internet should be dragged to the top of the list.
    IFor 10.5/10.6/10.7/10.8, System Preferences>Network, unlock the lock if need be, highlight the Interface you use to connect to Internet, click on the advanced button, click on the DNS tab, click on the little plus icon, then add these numbers...
    208.67.222.222
    208.67.220.220
    (There may be better or faster DNS numbers in your area, but these should be a good test).
    Click OK.

  • Need to load the data through excel for plan data through IP?

    Hi all,
    The user needs to load the data through the excel and click on the save button so that the data is saved in the cube through integrated planning.
    The objects used are
    customer, material, plant, calendarmonth sales qty, gross billing!!
    Can anyone pls let me know how to do this?
    Thanks

    Hi,
    You can use the following How to guide to load data from file into transactional cube.
    If using IP :
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90cef248-29e0-2910-11bb-df8dece7e22c?quicklink=index&overridelayout=true
    Can also Refer to Marc's Blog:
    /people/marc.bernard/blog/2007/11/25/how-to-load-a-file-into-sap-netweaver-bi-integrated-planning-part-1
    If you are using bPS you can get the details in Wiki also for the same.
    You can then create the hyperlink in Excel ,which user can use to upload data which can then be saved to cube using save button.

Maybe you are looking for

  • Oracle 9.0.1 on Solaris/SPARC infinite connection timeouts

    Hello, All! I have the following system configuration: Solaris 5.9 Maintenance Update 4; Sun Ultra 10, 1 UltraSPARC IIi 440Mhz CPU, 1024M RAM; Oracle 9.0.1 (9i Release 1). The database was created with JServer option turned on (we're using the integr

  • Actions on the main page..do they affect actions on movie buttons?

    ON the home page I've created, the buttons I used with the code in my previous thread ("two questions about HTML publishing and buttons"), I added an on rollover action to the actions layer of the main timeline (not the movie button timeline) so that

  • [SOLVED] Possible issue with makepkg or gnupg 2.1???

    I am quite willing to admit that it's possible I'm totally stupid and missing something basic, but I just wanted to see if this makes any sense to you folks. Basically, I'm wondering if there's a regression in makepkg or gpg-agent with GnuPG 2.1. Ste

  • ABAP BASIC INFORMATION

    Hi.., I am nwe to abap and i completed my sd. So i want to learn basic points of abap like(/.,:,=,SKIP,parameters, if conditions, logical informations...etc... Eagerly waiting for ur help. Thank you gurus..                                            

  • What applications are on my iPhone?

    Is there a way to programmatically determine what applications are on my iPhone? Is there an API I can call?