Adding Item into XMLListCollection

Hi
I store my data into a XMLListCollection variable (name XC).
The initial lengt of this XMLListCollection is 10 items (for
example: XC.length==10). I leave the user to filter this data and I
added a filterfunction to this variable. I set another function
named sync() that run every 10 seconds (for example). This function
is trying to insert an element into XC:XMLListCollection at a
specific position (for example 8 XC.additemat(item,8)). After the
user filter the data, the length is 2 and when the sync() function
is activated, this function call "addItemAt(item,8)" and I receive
"Index out of Bound...".
I know how to read the entire list (XMLList) using the
.source properties but I don't know how to insert an element at a
specific position (for example 8).
Please help me (if you know)
Thanks in advance
Cristy

I want to store this variable on the local disk into a
SharedObject. So, if I stored the entire collection (with 10
items), and the server send to the user another item I want to
insert this item into the collection even the item received from
the server is not visible by the user (because of filtefunction).
When the user want to save the data I want to use
sharedobject.flush() and I expect to save the entire collection (11
items). When the user enter again in this form I want to show 11
items and the user can filter this items in multuple ways. Thanks
for your replay.
Cristy

Similar Messages

  • Old items are not populated after adding items into a master/detail form

    Hi,
    I am relatively new to APEX. I am creating a master/detail form. It works well. When I add new items the older items are no more populated. Why ?
    For example I have an itme which is a select list as a Named LOV. At creation of the row I want the user to choose from this select list. It works well.
    But when modifying the record, I don't want the user to change this name. For that purpose, I create an item which is a display only item. This item is conditional and appear only when the record has been created.
    And this is where the problem comes. It seems to work but, if I logout of the application and login, then values are no more populated to the items and I get an error when trying to update the form.
    I hope I make it clear. I have been trying a lot of times and found that if I add items, then everything goes wrong.
    Thank you for your kind help.
    Christian

    Hi Christian,
    You don't say what the error is that you are getting - this may help us with your problem!
    On the form, do you now have TWO fields - one being the original select list and the other being a read-only version of it? Is it likely that BOTH fields could appear on the page at the same time AND that both are connected to the field on the table?
    You can set the select list to be read-only conditionally - in this case you could make it read-only on the condition of the primary key field not being null.
    Andy

  • Adding items into JTree

    Newbie here need help designing a form using NetBeans 5.5.
    Is there a document that details all the components available in Swing e.g JToolbar, JTree, etc...
    For instance, after adding a JTree object, how does one add additional nodes or edit the default nodes?
    How does one change the icon of a toolbar buttom to display common file open. file save, etc.....
    TIA.
    Klaus

    Read the [url http://java.sun.com/docs/books/tutorial/uiswing/TOC.html]Swing Tutorial. There are sections on "How to Use Trees" and "How to Use Button".
    You can find standard icons [url http://java.sun.com/developer/techDocs/hi/repository/index.html]here.

  • HT1473 Adding items into iTunes (music and other contents)

    Would I be crossing lines (breaking the law) if I wanna collect music I already purchased from iTunes, put them in one album and name the album and upload it into iTunes Store? I need help.

    According to the DMCA.... yes. Unless you have express written permission from:
    The artist(s)
    The record labels
    The promotion company
    You purchased the right to play the songs for personal listening, not redistribution... whether for sale or not.

  • How to modify Ship-to address when adding item into SC

    Hello,
    I need to modify a Delivery address (ship-to) address of a shopping cart.
    I tried to create a implementation of BADI BBP_DOC_CHANGE_BADI, method BBP_SC_CHANGE where I tried to loop at et_partner, searching for ship-to address partner (partner_fct = 00000027)
    I updated the building, floor and room fields for this partner
    <fs_partner>-building_p = l_usr_addr-building.
    <fs_partner>-floor_p    = l_usr_addr-floor.
    <fs_partner>-room_no_p  = l_usr_addr-roomnumber.
    but it's ignored in Delivery address tab (the data is not shown) until I clear the ADDR_NO field:
    CLEAR <fs_partner>-addr_no.
    In this case the Delivery address tab displays correct data
    But when this shopping cart requires to be approved (ie because of not enough spending limit of the requistioner), the Approver opens the shopping cart, the delivery address is OK. But when he choose Reject (or any kind of edit action), then click on Delivery address tab, all address fields are empty
    Please suggest how can modify the Delivery adrress ?

    Hello Miroslav,
    As you cleared ADDR_NO, address data for partner Ship-To are deleted: this is logic...
    You need to populate correct ADDR_NO to your Ship-To partner.
    Have a look at wiki below:
    [Delivery Address in Shopping Cart - How does it work ?|http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=230261594]
    Regards.
    Laurent.

  • SSRS 2008 Work order Report , when added item descriotion , somehow costgroup id is not working , donot know why, ( need help)

    SSRS 2008 Production orders created report, when I added item description some how cost group id is not working ,
    my costgroup id did not break into labor , only Mat Cost showed in the total,
    my query is as below,  did I link the wrong field,   I want to show Labor total also
    can some one suggest what I did wrong .
    any advise will be great
    SELECT        PRODTABLE.PRODID, PRODCALCTRANS.COSTGROUPID, PRODTABLE.QTYCALC, PRODTABLE.PRODSTATUS, PRODCALCTRANS.COSTAMOUNT,
                             PRODCALCTRANS.COSTMARKUP, PRODCALCTRANS.REALCOSTAMOUNT, PRODCALCTRANS.CALCTYPE, PRODTABLE.DATAAREAID, PRODCALCTRANS.KEY3,
                             PRODCALCTRANS.CONSUMPVARIABLE, PRODCALCTRANS.REALCONSUMP, PRODTABLE.ITEMID, PRODTABLE.SCHEDDATE, PRODTABLE.FINISHEDDATE,
                             PRODCALCTRANS.KEY1, PRODCALCTRANS.TRANSDATE, PRODCALCTRANS.QTY, PRODCALCTRANS.KEY2, PRODCALCTRANS.COLLECTREFLEVEL,
                             PRODCALCTRANS.LINENUM, INVENTTABLE.ITEMNAME, INVENTTABLE.ITEMID AS Expr1, PRODTABLE.INVENTTRANSID
    FROM            PRODTABLE INNER JOIN
                             PRODCALCTRANS ON PRODTABLE.PRODID = PRODCALCTRANS.PRODID AND PRODTABLE.DATAAREAID = PRODCALCTRANS.DATAAREAID INNER
    JOIN
                             INVENTTABLE ON PRODCALCTRANS.DATAAREAID = INVENTTABLE.DATAAREAID AND PRODCALCTRANS.KEY1 = INVENTTABLE.ITEMID
    WHERE        (PRODTABLE.PRODSTATUS = 7) AND (PRODTABLE.DATAAREAID = N'AR1') AND (PRODTABLE.ITEMID = @itemid) AND
                             (PRODTABLE.FINISHEDDATE >= @Paramfromdate) AND (PRODTABLE.FINISHEDDATE <= @Paramtodate) AND (PRODCALCTRANS.COLLECTREFLEVEL
    = 1) AND
                             (PRODCALCTRANS.CALCTYPE >= 0)

    Hi Bitia,
    As per my understanding, after you add Item field to the report, it does not calculate total of matl group, right? If that is the case, please refer to the following steps to troubleshoot the problem:
    Modify the dataset used to retrieve data, delete the fields will not be used in the report.
    Run the query in SQL Server Management Studio (SSMS) to make sure that there is data for matl cost group.
    Make sure that row group and totals are correctly added.
    In addition, do you want to add Finished date to page header? If that is the case, we can use ReportItem to achieve the goal. Please refer to the following steps:
    In design surface, right-click the report and click Insert, then click Page Header.
    Drag Text Box from Toolbox to page header.
    Right-click inside of Text Box, then click Expression.
    In the expression text box, type the code like below:
    =ReportItems!FinishedDate.Value
    If the problem remain unresolved, please provide the screenshot of the report in design view, the following screenshot is for your reference:
    Reference:
    ReportItems Collection References
    Adding Grouping and Totals
    Thanks,
    Wendy Fu

  • How to move excluded items into Measures in OBIEE 11g Pivot Table

    Hi All,
    Need your help. Previously I have about 25 facts in my pivot table as rows. Now I need to add about 10 more. Adding new criteria only put the items into Excluded section. How can I move all these new items at once to the end of the existing facts? What I can do now is moving them one by one, and in the middle of existing facts, then move it again, because I can point my cursor to the end of them directly.
    Thanks a lot,
    Gajah.

    I've tried to drag the fact heading, but I can't point my cursor to the end of existing list of facts (unfortunately they are all in the same fact group name). Do you have any suggestion on how to put the new facts at the end of the list?
    Thanks.

  • Moving checkbox items into other group

    I have a very simple Word doc that when I have Acrobat automatically create a form from it, puts checkbox items into groups I need to change. For example, the grouping should be
    GroupA
    Item1
    Item2
    Item3
    Item4
    but what I get is
    GroupA
    Item1
    Item2
    GroupB
    Item3
    Item4
    I can't select and slide item3 and 4 into GroupA. And if I delete item3 and 4 and add a new field, the new field is always outside of GroupA, even if I select GroupA or any item inside of it first.
    I do have a way out: I can delete them all and then add multiple checkboxes as a group, but I would rather slide them around, as there are a lot more checkboxes than the four shown.  Anyone know how I can accomplish this?

    Jeff,
    Thanks for the response. I had tried the apex_item before but I couldn't get it to work. I have changed the SQL to include the apex_item commands then used them to define parameters in the javascript function then added parameters to the Application Process but I get no data found. Am I using the apex_item wrong in the SQL or the apex_application wrong in the javascript?
    Thanks,
    Bob
    SQL:_
    q := 'select apex_item.checkbox(1, empno||''~''||ename||''~''||job||''~''||hiredate, ''onclick="f_UpdateCollection(this)"'',a.c001) cbox, '||
    ' apex_item.display_and_save(2,empno) "EMPNO", '||
    ' apex_item.display_and_save(3,ename) "ENAME", '||
    Javascript:_
    function f_UpdateCollection( cb ){
    var get = new htmldb_Get(null,$v('pFlowId'),'APPLICATION_PROCESS=UpdateCheckboxValue',0);
    get.addParam('x01',cb.value);
    get.addParam('x02',apex_application.g_f02);
    get.addParam('x03',apex_application.g_f03);
    get.GetAsync(function(){return;});
    get = null;
    Application Process:_
    declare
    l_value varchar2(4000);
    l_empno  varchar2(4000);
    l_ename  varchar2(4000);
    begin
    l_value := wwv_flow.g_x01;
    l_empno := wwv_flow.g_x02;
    l_ename := wwv_flow.g_x03;
    apex_collection.add_member(
    p_collection_name => l_collection_name,
    p_c005            => l_empno,
    p_c006            => l_ename,
    p_c010 => l_value );
    ...

  • Cannot combine sales order item into one DN cause LC exchange rate differ

    Our users want to combine all items into one DN(delivery notice) to save their effort on packing.
    But it is not possible because some items were added(modified) into the sales order afterward and resulted in a situation where Exchange rate for letter-of-credit procg in foreign trade(vbkd-akkur) is changed. Which makes inconsistency between Header's vbkd-akkur & items' vbkd-akkur.
    Is there any way to bypass this limitation and let those items combine into one DN?
    Edited by: Chih-Chieh Chan on Dec 10, 2008 9:56 AM

    Yes, all items share the same pricing date.
    BTW, it made me wonder that (color:red)VBKD-AKKUR is something to do with exchange rate. I used TCode ob08 to check out all of the exchange rate users maintained. To my surprise, all exchange rate records exist no such identical value as shown in VBKD-AKKUR where that Sales Order number is under my concern. That's odd.

  • Putting multiple items into a single column in a datagrid

    Okay,
    So I can put information into a datagrid, I can select a row
    and make sure that it populates that row. I can even make it hit
    that specific row and column.
    How do I got about having several different buttons all
    writing in the same column? And perhaps even ordering it? i.e. The
    column would look like this: buttonOneInput, buttonTwoInput,
    buttonThreeInput etc etc
    I'd also like to sort the way this information goes in (just
    being able to sort by alpha right now would be fine, but better yet
    if I could sort it so button one always was in the front, button
    two always in the middle, button three always in the end)
    The end application of this is that I need to populate a
    datagrid with several different button groups, there are 5 groups,
    each group contains about 10 buttons. The groups need to appear in
    a specific order in the datagrid, and I need to be able to add as
    many button's information to the grid as possible.
    After this stuff all goes in, I need to get it back out too.
    I think I'll be able to figure that part out.
    Now, I know this is a lot of stuff. I don't even know if it's
    possible, but it seems like it should be, I've been trying to
    figure it out all day to no avail.
    Any tips / suggestions / code snippets / links to tutorials
    would be helpful.
    Thanks.

    Well, specifically. They're binded data (swfs) I need the
    ability to add as many of these as possible to a datagrid. I'll be
    extracting them and using them in a list.
    So to break it down, I've got a bunch of different strings I
    need to add to a datagrid item. I need to add these in the proper
    order. I then need to pop them back out to a list (I know how to do
    this part).
    Basically what I'm going on right now, is I'm calling a
    flashfile.source from a selected item. Then I'm adding it into a
    datagrid, I just need to know how to add it in without destroying
    the current items.
    Would something work where I'd ask for the current data
    datagrid.selectedItem.column and then also add the new data work?
    Thanks for your help miaomm, I'd really appreciate some code
    showing this .

  • Integrating APEX items into an HTML Login Screen

    I've just been presented with an attractive html login screen that our art department has created for our new application. The only problem is that the art department doesn't know a thing about APEX. They've drawn a nice looking screen using several images laid out into tables and even included an html form for the login credentials.<br>
    <br>
    I'd really like to use as much of their page as possible and I'm close to getting something that at least looks like it might work. I've encapsulated the entire thing into htp.p statements inside of a PL/SQL region on my Login page. I've removed their form elements and placed my own fields using HTMLDB_ITEM.TEXT calls. I also believe that I will be able to read back the values using calls to HTMLDB_APPLICATION.G.Fxx for each of my IDX values. I haven't tested that part yet, but it seems like it should work.<br>
    <br>
    The part that has me stumped right now is modifying the TEXT item into a PASSWORD item type. I've tried adding type="password" into the attributes parameter and I do see that in the page source, but it's after the default type="text" statement and is therefore ignored. The statement I'm executing for my password field is: <br><br><b>htp.p(htmldb_item.text(22,NULL,30, 100, 'type="password" onkeypress="return submitEnter(this,event)"', 22, 'Password:'));</b><br>
    <br>
    It doesn't seem like there is much reason to go on if I can't hide the contents of my password field, so I though I should ask for some advice before going too much further.<br>
    <br>
    Am I missing a better way to override the item type here, or is there a better way to place my login fields at specific locations inside of an existing html document? I can get the fields above, below or next to their page but that looks terrible. I could also break up their page into a top section and a bottom section with my fields in a middle region, but that would also ruin the look of the page.<br>

    Hi, Etown88.
    You've learned two important lessons:
    1. Undocumented features are undocumented for a reason.
    2. Never try "tricks" you read in magazines or on the Web unless they also clearly specify how to undo the trick. In fact, you should skip tricks like this: review Lesson 1 above.
    The specific "trick" you cite was in Macworld recently and can be found on their web site here and here, the latter under the heading "Make your login window informative".
    You'll also note at the end of the second article that it contains a correction: sometimes tricks have typos that can really ruin your day.
    The "trick" probably originated as a post on the Mac OS X Hints site since the column was written by Rob Griffiths who runs that site.
    To "undo" this, simply specify HostName, which is the default:
    defaults write /Library/Preferences/com.apple.loginwindow AdminHostInfo HostName
    This is stated in the articles cited above, but one has to realize it as its stated subtly, e.g."• HostName to show the default display"Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X

  • JList dynamically adding items

    I am inserting items into a Jlist dynamically by reading from a network port .The items get added but my problem is list box always shows the top portion of the list.
    Is there any way i can make the list to scroll down as and when i add items into it.
    Thanks

    No its still not working i am doing in an applet
    heres my code
    public class QueryResults extends JApplet implements Runnable{
            Thread resultReader =null;
            Socket sock =null;
            BufferedReader in =null;
            PrintWriter pw =null;
            JList resultList = new JList(new DefaultListModel());
            JScrollPane sp =new JScrollPane(resultList);
            public void init(){
                try{
                    sock= new Socket("localhost", 4444);
                    pw=new PrintWriter(sock.getOutputStream(), true);
                    in=new BufferedReader(new InputStreamReader( sock.getInputStream()));
                    resultList.ensureIndexIsVisible(resultList.getModel().getSize());
                    sp.setAutoscrolls(true);
                    Container contentpane=getContentPane();
                    contentpane.setLayout(new FlowLayout());
                    contentpane.add(sp);
                }catch(IOException e){
                    e.printStackTrace();
            public void start(){
                resultReader=new Thread(this);
                resultReader.start();
            public void run(){
                try{
                    String line;
                    while((line=in.readLine())!= null){
                        ((DefaultListModel)resultList.getModel()).addElement(line);
                        resultList.repaint();
                        SwingUtilities.invokeLater(new Runnable(){public void run()
                            sp.getVerticalScrollBar().getModel().setValue(sp.getVerticalScrollBar().getModel().getMaximum());
                            //spane.getVerticalScrollBar().setValue(spane.getVerticalScrollBar().getMaximum() );
                        //resultList.ensureIndexIsVisible(resultList.getModel().getSize());
                        //resultList.repaint();
                        //sp.getVerticalScrollBar().getModel().setValue(sp.getVerticalScrollBar().getModel().getMaximum());
                }catch(IOException e){
                    e.printStackTrace();
            public void stop(){
                try{
                    pw.close();
                    in.close();
                    sock.close();
                }catch(IOException e){
                    e.printStackTrace();
    }

  • Recently purchased a scanner which I connect my iPad to.  everything scanned goes into iPhoto. I purchased FileApp Pro to place scanned items into files. I still can't move the scanned items to a file.  Help!

    Scanning items into iPad. Scanned items go directly to iPhoto. Purchased FileApp Pro to create file folders on iPad. Still cannot move items from iPhoto to file folder.  Help?

    Is this a NAS type of setup (of which I know very little)?  Mine is not a response based upon strong technical knowledge but iTunes seems to have problems with those.  Just about everybody has issues with iTunes but you say it is not fit  for the purpose.  What is that?  I bet for 99% of people it does.  Not  everybody has 8TB collections they are trying to use with a RAID structured  external server. iTunes is really a mass consumer piece of software.  Yes, many people have expanded beyond internal drives, but NAS arrangements seem to add levels of complexity beyond a direct external drive that is Mac formatted and at most served by an Apple brand wireless router which I suspect is probably how everything is tested. Anything more is fortuitous in terms of support.  Except that you say the library files are on the external drive too it sounds to me like the server is asleep when you say it cannot find files and then suddenly can when you go to find one.

  • How to get a value from one item into another

    How can i get value from one item into another item.
    Ex: I have a report, in there i have check boxes, and when i have checked some rows, and press submitt, a prosses computates it into a item on another page, and a branche redirects to page 3. Then i'm going to use the value in the item into a PL/SQL script in an report to show the submittet items.
    How can i do this?
    Computation script, pages and all that is fixed. But i dont know which PL/SQL statement to use to get th value from the item.

    Hi Fredr1k,
    Use the V() function from pl/sql.
    e.g. V('P3_MY_ITEM')
    will return the value of that page item.
    As long as the pl/sql is called from within the Apex environment.
    Regards
    Michael

  • Working on a logo. Converted type to outlines. Can I paste more than one item into the outlines?

    I'm working on a logo. Text converted to outlines. I pasted one element into the outlines and when I went to past a 2nd item into it, it replaced the original. How can I go about doing this?
    CS3

    >No..the objects you want to paste into it.
    AHHHHHH... cool. Thanks.

Maybe you are looking for

  • Can I view Microsoft word on my iPad?

    Can I view Microsoft word on my iPad?

  • Satellite Pro A200 PSAE4E - WLan speed regularly drops out

    Hi Does anyone know what causes my laptop to lose wifi on a regular basis? It is a Satellite Pro A200 PSAE4E running on XP. I purchased the laptop new back in February and it came with Vista loaded but the wifi kept dropping out and was advise to swa

  • Export to Word document

    Hi, Is there any way to export the tables (along with their columns) into a Word document from my data model?

  • Manual Excise Condition

    Hi All We are Using  TAXINJ  as our tax procedure, Please advice accordingly. My user  wants  that  the following three tax are automatically  calculated at the time of Excise invoice creation (J1IIN)  . i.e (1) BED  basic excise duty (2) Edu CESS (3

  • Help with data services to run a job

    Hi, I have a xcelsius file (swf) that run a job using webservices from data services, and verything works good, the problem is when i publish the file in thw web server IIS, the webservice dont start the job. There is some configuration of IIS that c