BindAggregation After The Control Is Already Created

I would like to create a listBox (an empty one), and then later bind it to data to populate the list Items.
Assume that I have already created an empty list box called _oSourceListBox
Now I want to do the below:
populateSourceData:function()
       var oModel = new sap.ui.model.json.JSONModel();
       oModel.setData(_dataProvider);
       _oSourceListBox.setModel(oModel);
       var oItemTemplate = new sap.ui.core.ListItem({text:"{value}"});
       _oSourceListBox.setItems({path: "/fruits",template: oItemTemplate});
I am not able to get this to work. What is the correct way of bindAggregating after the control is already created. I can do it while creation of control but I do not want that as the data is available only later.
Appreciate your help.
Thanks
Amjad

Aaah I got it to work like this:
_oSourceListBox.bindAggregation("items",{path: "/fruits",template: oItemTemplate}); 

Similar Messages

  • How to Change iWeb page themes after the page has already created?

    Once you have created a page with a theme and saved it, and then later you want to change it to another theme... How does one change theme without recreating the page?
    Also, How does one add background music to a page once it is opened?
    Thanks!
    T.

    I too am wondering about your first question, but I have found a workaround for your second question.
    First save the audio clip as a mov file in quicktime, then place it somewhere on the page. Make it small and out of the way and hide ot from site.
    Now publish the site. Then you will have to change the HTML. Open text edit and select "Ignore Rich Text Commands". Open the iDisk icon on the left and find the Web folder then follow this string Web/Sites/iWeb/<Your Site Name>/<then the page name folder, example: "Home_files">/then "Home.js"
    Once opened find the quicktime file use the find feature it will list the properties twice, the second listings are the ones you want to change. Change controller="true" to controller="false". Then autoplay="false" to autoplay="true" and loop="false" to loop="true".
    If you change that specific page and republish you will have to do this again, but only if you change that page. You will not if you rebublish and you had made no changes to that specific page.
    Hope this helps.
    Pastor Josh
    http://www.kentchristiancenter.org
    http://web.mac.com/highergroundyouth
    MBPro 2 GHZ 2gigs, Ipods: 80gig Video, 512 Shuffle, 4gig Silver Mini   Mac OS X (10.4.8)  

  • [svn] 4709: * Move id assignment to after the instance is fully created.

    Revision: 4709
    Author: [email protected]
    Date: 2009-01-28 09:50:03 -0800 (Wed, 28 Jan 2009)
    Log Message:
    * Move id assignment to after the instance is fully created.
    tests Passed: checkintests, mxunit databinding
    Needs QA: YES
    Needs DOC: NO
    Bug fixes: SDK-16777
    API Change: NO
    Reviewer: Corey
    Code-level description of changes:
    Modified getDefinitionBody() and generateDefinitionBody() by moving
    the id assignment logic to just before the return statement.
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-16777
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/init/ValueInitializer.ja va

    Hi,
    not sure where to find original post. In RDB, it is MSP_EpmTask_UserView.TaskClientUniqueId.
    Sorry, if there are now 2 answers.
    Regards
    Barbara
    To increase the value of this forum, please mark the replies that helped to solve your issue as answer. If you find answers to questions from other forum participants to be helpful, please mark them as helpful. Your participation will help others to find
    an appropriate solution faster. Thanks for your support!

  • The attached VI works when I run it initially creating the XML file, but when run after the XML file is created, it's not updated. What am I doing wrong?

    The attached VI works when I run it initially creating the XML file, but when I change data and run after the XML file is created, it's not updated with new data. What am I doing wrong?
    Thank you.
    Solved!
    Go to Solution.
    Attachments:
    Attractive Force XML.vi ‏23 KB

    That looks like the logic which was written into the VI
    Inner true/ false case:
    (file exists : false) write to XML file, unflatten for display
    (file exists : true) read from XML file, unflatten for display
    At no time when the file exists (true case) is the XML file updated...

  • HT201302 How can I transfer my pictures from my iPad onto my Mac without loosing all the albums I already created on my iPad?

    During my holidays I placed all my camera pictures while using the sd card reader adapter to my ipad mini. Now i'm back home and I want to transfer all the pictures to my mac. But i've already created albums on the the ipad and sorted all the pictures and placed them in the different albums. How can I transfer also these albums onto the mac?

    I haven't used iTunes on my laptop in a while but I believe that if you authorize your computer it will allow you to transfer the pictures. Not 100% sure though.
    How do I authorize a computer?
    Open iTunes on the computer you want to authorize.
    Choose Store > Authorize This Computer from the menu bar.
    You might need to show the menu bar to see this option in Windows. In earlier versions of iTunes, you can access this option from the Advanced menu.
    Enter your Apple ID and click Authorize.
    If iTunes asks you to authorize your computer again, it won't use a new authorization. iTunes uses the same authorization for the same computer.

  • Not able to post the Time for already created timecard

    Hi All,
    I have a question on OTL, already time is posted for a week say 29-MAY-2010 to 06-JUN-2010 (for 5 working days), now I need to post the time on saturday & sunday too.
    I'm using all the mentioned API's given by the oracle. But while processing the API's, it is throwing an error saying 'Time is already posted for this period'.
    Time is posted for the week (start date & end date) but not on saturday & sunday.
    Can any one help me out of this issue.
    Below is the list of API's I'm using.
    1.hxc_timestore_deposit.create_timecard_bb - To create the timecard for the period (in this case it is week)
    2.hxc_timestore_deposit.create_day_bb - To create the day wise records for the above timecard id.
    3.hxc_timestore_deposit.create_detail_bb - To create the detail hours for the above day wise records.
    4.hxc_timestore_deposit.execute_deposit_process - To submit the timecard for the approval.
    Thanks in advance..
    --Raja                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Can you share your code you are using for update? It looks like you are treating the update case as create case. Make sure you use the update apis' during timecard update.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                           

  • User exit  for MIGO  after the material document is created?

    hi  guys ,
    I have requirement like after the   material document was creted in migo  i need to call my new transcation. can any one please let me know how  i have to solve this ?
    Moderator Message: Unfortunately, this is not a training forum and we can teach all about Exits and Badi's. I suggest you take a classroom course..... or do some R&D first
    Edited by: kishan P on Nov 30, 2010 11:57 AM

    Hi
    U need to create a FM with UPDATE MODULE attribute checked: so you fm can be run in UPDATE TASK
    This fm has to have the same interface of the method of the BAID (or user-exit) or a parte of it, if you don't need to use all parameters of the interface.
    All code to schedule the job has to be placed in this fm: you can use the fm JOB_OPEN and JOB_CLOSE in order to scheule a job programmatically.
    Call this fm in the BADI, the call has to be in UPDATE TASK, in this way your porgram can start as soon as all updating processes are over
    Max

  • How to change the Variant Particulars already created for FBCJ.

    Hi
    All Experts ,
    I want to change & edit some particulars for already created variant in FBCJ ( Cash Journal ).
    So how can change them & form where  ?
    Your help is highly appreciated.
    Thanks in advance !
    Regards,
    Pankaj.

    Hi,
    Ravi,
    When I went to status option I found these fields :-
    Transaction          FBCJ
    Program (screen)    SAPMFCJ0
    Screen number        100
    Program (subscreen)  SAPMFCJ0
    Screen number        110
    Program (GUI)       SAPMFCJ0
    GUI status           CJ0100
    Which programme to select  ?
    Please explain.
    Thanks in advance !
    Regards,
    Pankaj.
    Edited by: pankaj_ab on Jun 1, 2009 11:31 AM

  • Switch On versioning after the decision table is created

    Hi All,
      I have created a custom application and created some decision tables etc in it. While creating and activating the application, i did not switch on the versioning and hence all the decision tables i created did not have the version switched on and also the switch is not editable. Now we have realised that we need versions to be created for these decision tables when ever there is a change in the content. I have turned on the versioning at the application level, but still the versioning option at the Decision Table is not editable. Can you please suggest on how i can change the versioning option on the Decision Tables now.
    Thanks & Best Regards,
    Kiran

    On application level you can set the default for objects. You may have to manually switch the versioning on for your objects. In NW >= 7.03 you can use the mass change tool. Further the default can be set to enforced which will not let you change and activate an object unless versioning is switched on.
    Anyway, I highly recommend to use the mode to version on transport and/or deployment (also on application level). This will make sure the current version is frozen whenever there is a transport or a deployment (with NW DSM only).
    Do you have this feature or are you on an older version?

  • How do I bring up the Page I already created?

    I wanted to copy "Domain.sites2" from my computer to another one. I dragged it to my desktop from its original place and now it doesn't show my website in my iWeb when I open it. But the file is still in its original place!!!! Please help!

    In Lion the Library folder is now invisible. To make it permanently visible enter the following in the Terminal application window: chflags nohidden ~/Library and hit the Enter button - 10.7: Un-hide the User Library folder.  Then rename the domain file on the Desktop to something that relfects the site inside and put it in your Users/Home/Library/Application Support/iWeb folder.
    To open your domain file in Lion or to switch between multiple domain files Cyclosaurus has provided us with the following script that you can make into an Applescript application with Script Editor. Open Script Editor, copy and paste the script below into Script Editor's window and save as an application.
    do shell script "/usr/bin/defaults write com.apple.iWeb iWebDefaultsDocumentPath -boolean no"delay 1
    tell application "iWeb" to activate
    You can download an already compiled version with this link: iWeb Switch Domain.
    Just launch the application, find and select the domain file you want to open and it will open with iWeb. It modifies the iWeb preference file each time it's launched so one can switch between domain files.
    WARNING: iWeb Switch Domain will overwrite an existing Domain.sites2 file if you select to create a new domain in the same folder.  So rename your domain files once they've been created to something other than the default name.
    OT

  • How to restore Firefox windows after the restore has already been done?

    System:
    Firefox 3.6.16
    Windows Vista Business 64-bit
    Service Pack 2
    Core2 Extreme Q9300 4 x 2.53 GHz
    8 GB RAM
    I had 187 Firefox windows open when Firefox crashed. I had restore on. When the window that asks which windows I want to restore appeared, I deselected a few pages that I thought might be causing problems. I've never done this before (choose not restore all the windows that were open) and Firefox has always managed to restore all my windows. But having chosen 3 out of 187 not to open, Firefox only opened 30. The rest seem to be lost. In principle I should be able to find them in my history, but I visit hundreds of pages per day and only keep open a couple until the next day. My open Firefox windows to some extent constitute my to-do list, and some have been open for months. Stupidly, I had not backed up this to-do list (with for example screen captures) and I would really like to get it back. I am not afraid of a little hacking. Is there anything I can do?
    [And by the way, this is not really related to the above problem: after a while it often becomes impossible to actually open some of the Firefox windows that I have open. I probably average around 80, but range from 15 or so 150 usually. [I try to close them as I work through them with some success, so that the numbers don't just keep on increasing.] But this is not so much a problem because when click on Firefox in the task bar, I still get to see the titles of the webpages I am on and I can easily relocate them if I can't open a particular page. Yes, I do realise that the real solution to my problems would be to have less windows open, but that ill suits the way I work.]

    Hi Tejasav,
    For assistance with this issue please see the following link which should help you out;
    https://service.sap.com/sap/support/notes/1292374
    Best of luck,
    Derrick Hurley
    ABAP Development Workbench
    SAP

  • How do I add items to a collection after the collection has been created?

    I can't figure this out. I click on the gear icon next to my collection name but I don't see the feed you initially see when you create the collection?

    +1
    Join this issue!

  • Inspection lot not getting cancelled after the inbound delivery is created

    Hello,
    The scenraio is like this.
    1. Material was procured in plant A.
    2. Using the stock transfer purchase order, transferred the material from Plant A to Plant B.
    3. Outbound delivery was created, Handling units were assigned and Post Goods issue was done.
    4. As soon as this was done, inbound delivery got created automatically in plant B and Handling units were assigned.
    5. Inspection lot was created with origin "08".
    6. Now I want to reverse all the transactions, so I did as mentioned below.
    7. Handling units were deassigned from the inbound delivery and inbound delivery was successfully deleted.
    8. Now tried to do the reverse post goods issue and got the error "Handling unit XXXXXX cannot be reversed"..Goods movement cannot be reversed for handling unit XXXXX because it has been changed or assigned to object since the last goods movement posting".
    The issue is that as soon as the inbound delivery is deleted, the inspection lot status should change, which has not changed. So kindly let me know how to make the system cancel the inspection lot as soon as the deassignment of handling units is done in inbound delivery or the inbound delievry is deleted.
    Regards,
    Narendra Bora

    Hello,
    Can anyone please reply.
    Regards,
    Narendra Bora

  • TS1389 iTunes repeatedly prompts to authorise computer even after the computer is already authorised

    iTunes repeatedly prompts me to authorise computer before playing a particular song. The problem persists even after I've authorised my computer. When I try to authorise again, it acknowledges that my computer is alrady authorised but the song will still not play.

    Bought a song off iTunes Store on my iphone, came home, synced with my computer, and had the same problem with being asked for authorization. I authorized and recieved messages telling me my computer was authorized, yet it kept asking for authorization repeatidly every time I attempted to play the song. The song no longer worked on my iphone as well once I synced with my computer.
    I took newriii's advice, deleted the song off my iTunes, logged on the iTunes Store, viewed my purchases, downloaded the song once again, and it now works fine.
    Weird bug, yo.

  • Material Blocked for delivery after delivery is already created

    Is it true that if a material is placed on block after the delivery has already been created but before the PGI is done, the delivery needs to be manually updated with a block status to prevent picking and PGI? I would expect SAP to determine if a material is blocked and read from txn OVSU and OVLS to determine whether picking and PGI are allowed.
    I know it works fine before the delivery is created but if a material is blocked post delivery creation it seems SAP doesnt recognize the fact that the material is blocked and will still allow it to be delivered unless you manually change each delivery. Is this correct?

    James..my friend...use simple business logic....when are you blocking the delivery...if in case customer credit is due, or that material sale is not allowed to the customer etc etc.....so ideally, that should happen before delivery...now you want the system to act like a human and determine if something goes wrong after delivery and do not allow PGI to happen...SAP standard program is like that my friend..you can not control that...if you want to check that again after delivery...take the help of you abaper for putting up the validation after delivery.
    Reward points if it helps
    Regards,
    N

Maybe you are looking for

  • DATETIME To Format mm/dd/yyyy hh:mm am/pm

    I have a column in a database set as a DATETIME datatype, when I select it, I want to return it as: mm/dd/yyyy hh:mm am or pm. How in the world can I do this? I looked at the function CONVERT() and it doesnt seem to have this format as a valid type.

  • Problem in populating PO item text using FM:SAVE_TEXT

    Hi All, I am having an issue with SAVE_TEXT FM, I need to populate the item text field: This FM works fine if the Item text field is blank and i am populating it with text, say "This is a test case", How ever if the text field is already populated sa

  • How to include custom taglib in javascript on a given jsp page

    Hi, How to include custom taglib in javascript on a given jsp page? i have a jsp page on which i am adding selectboxes using javascript. But now i have created my own custom select box and want to add it on a given jsp page. is the code to create the

  • Tabs no longer remembered after upgrading to Norton 360

    My Firefox is set to remember tabs from my last session, but it no longer remembers the setting after installing Norton 360. I've checked the setting several times and have rebooted the computer several times. Hopefully you can help because all I get

  • Windows keeps shutting down itunes because of DEP

    When I try to upgrade to the new version of iTunes, the installation fails. Now the old version (10.4.0.80) won't work. Windows shuts it down siting it is because of the data execution prevention. I've tried disabling DEP for iTunes, but it makes no