DataProvider add item before or after selected row

Hi, guys,
As we know, we may add an item to a data grid by just call
dg1.dataProvider.addItem(x:object)
I wonder if there is a specific function like addItemAt(x:object, y:int) which takes an additional index number as parameter
Eventually, users wanna add a new row before or after the selected row in the data grid.
Thanks!
Alex

ArrayCollection subclasses ListCollectionView.  ListCollectionView contains the function you are looking for , addItemAt( object:Object , index:int ).
Sincerely ,
  Ubu
If this answer was helpful , please mark it as such.

Similar Messages

  • Add Row Before Or After Selected Row In af:Table

    Hi,
    Please let me know how can we add a row either before or after the selected row in the af:table.
    Currently i have a table with 2 toolbar buttons. 1.Add Before 2.Add After.
    User selects the row and clicks either AddBefore/After button ... then, an empty row should get added in the table as per the button clicked.
    Please suggest me your inputs.
    Thanks,
    Kiran

    chk this
    http://mjabr.wordpress.com/2011/07/02/how-to-control-the-location-of-the-new-row-in-aftable/

  • How do I add a before and after transition to a standalone clip in the second or other than primary stack?

    New to FCPX on a project this weekend. I have gotten reasonably comfortable with the basic features but one thing that I CANNOT figure out, is how (what used to be) selecting a track in the timeline to activate it to apply a transition.  I need to select a video clip which stands alone in the stack which is positioned above the primary track and add a blend transition before and after the clip. I have set the opacity to blend with the images in the primary track below but the beginning and end of the clip in the second stack do not fall at the transition points in the lower track which should not matter anyway.  I can’t find it in Help or the third party tutorials that I purchased and completed.  Thanks for your help!

    Tom gave you the answer.  As a follow-on you can then use the Cross Dissolve transition on your newly converted connected clip.  This transition will allow it to dissolve smoothly into the video below it.  Note that the Fade to Black transition will take both that clip and the video below it to black which would probably be undesirable. Use Cross Dissolve instead.  Best wishes.
    stephen

  • BAPI to add items before document creation in FI

    Hello!!
      I need to add 2 items to a document that is being created in transactions FB01 or f-53 (but, hasn't been created yet).  I need to know if there is a bapi that I can call in an User Exit before the document is created?....
      Thanks.,
      Marina Mora

    Hi Mora ,
    which Version of SAP u are using ?, based on that we can add value.
    Regards
    Peram

  • Unable to Make Purchases or Add Items to Cart After iTunes 7.6 Upgrade

    After upgrading to iTunes 7.6, I'm unable to purchase anything (either by adding to my cart or using the 1-click purchase), nor am I able to subscribe to any podcasts. If I wait long enough I get the following HTTP error: "Could not add an item to your cart. An unknown error occurred (414). There was an error in the iTunes Store. Please try again later."
    This happened last night after upgrading and continues this morning. Unfortunately, I applied all four updates available via Software Update, so I don't know if it was iTunes 7.6, QuickTime, or something else.
    netstat reports that I have the following HTTPS connection:
    Active Internet connections (including servers)
    Proto Recv-Q Send-Q Local Address Foreign Address (state)
    tcp4 0 8354 mountcastle-imac.50246 phobos.apple.com.https ESTABLISHED
    Using tcpdump, I'm definitely seeing traffic between my computer and phobos.apple.com, but since it's using HTTPS it's all encrypted.
    This is consistent across all of my computers (unfortunately, I upgraded all of them at the same time) which are all running Leopard (10.5.1).

    I've had the same 5002 error for 3 days: "We could not complete your iTunes Store request. An unknown error occurred (5002). There was an error in the iTunes Store. Please try again later."
    However, I WAS able to purchase songs after I changed Preferences from Shopping Cart option to 1-Click Purchase.
    I know that my Shopping Cart is FULL - (basically used as a pending wish list). Perhaps this is one problem with the iTunes Store. Fortunately, I printed a list of my Shopping Cart several weeks ago.
    I'm going to try deleting and re-installing. Any more ideas would be welcome.

  • [OAF] Magnifying glass of LOV item is moved after selecting a value

    Hi Oracle Community!
    Please help me, the requirement is to make the magnifying glass icon immovable in all cases.
    Before:
    After:
    We've tried re-creating an LOV object but this issue still happens.
    Thank you in advance!

      Hi There ,
    Looking into the screen shot  I believe this is the custom page , looks like its an issue with layout , could you please share the entire screen shot .
    Also you may hide url and other confidential details . A full screen shot and approach you have followed to design the page would help us to understand the issue
    better .
    Regards ,
    Keerthi

  • Data Error in the Query/Report after selective data deletion for infocube

    Hi Experts,
    Please advise what i was missing and what went wrong...
    I got a Query (Forecast) on a Multicube...which is based on 2 Infocubes with Aggregates...
    As i identified some data discrepency..yesteraday i performed selective data deleation on one of the Infocube
    and executed report yesteraday and the results in the query are correct...
    When today i executed the same report i am getting different results..
    When i compared the results of the report with that of data in cube they are not matching
    The report is not displaying the data in cube..for some rows it is displaying the data in the cube but for some rows it is just displaying same as the above row
    there is no data loaded into info cube after selective deleation
    Do i need to perform request compression and fill the aggregated after selective deleation
    Please advise what went wrong

    Hi Venkat,
    No i haven't done anything on aggregates before or after selective delete
    As there is not data load after the selective delete according to SAP Manual we don't need to perform any thing on aggregates...as selective data deletion on cube will delete data from aggregates as well
    Please update how to identify error

  • Get values from selected row in a Table?

    Hello.
    I'm on VC 7.1 (the trial version downloaded from SDN).
    I'm trying to figure out a way to retrieve some values from the currently selected row in a Table element through the output connector.
    I have a web-service which returns results to the Table, and I want the user to be able to select one of the rows and then trigger another web-service call with some of the values from that row -- is this possible?
    Also, I can't find any documentation that lists what can and can't be done with each UI element, is there something like this some where? (the Modeler's guide doesn't help, and the Reference guide seems to focus on menu items and what the VC screen looks like)
    Thanks,
    Alon

    Hi Alon
    This is a very simple task.
    You just need drag the service which you want to execute, after select row, in model.
    Drag output connector from table to input connector of service. Then map the parameter.
    Regards
    Marcos

  • Triggers before and after update

    Hi
    I would like to add triggers before and after update for the following code. I would be thankful if someone give some guidance
    update per_all_people_f a
    set start_date = (select min(effective_start_date)
    from per_all_people_f a1
    where a1.person_id = a.person_id)
    where person_id in (1114,115);Thanks
    anna

    Hi
    I was unable to answer you. I agree with Peter . Also i want to add
    that in HRMS you should check what triggers are already on that table and be carefull with creating your own one. With your own trigger you can influence on some application logic you know.
    ( And i hope that is a table first of all :) - but as i know _F at the end of table name means table  )
    T

  • Problem with showing selected rows

    Hi,
    I have writed ALV report with OO and some input field(dialog programming) in same screen.I want to select rows but rows looking like unselected(all of them) on ALV report when i fill input field after selected rows and use enter key.I didn't understand
    why my input fields reset my ALV report.

    After selecting your Input fields, & when you processing the data, check in debugging mode, whether your ALV report (Table) is getting refreshed or not. If its refreshing, try it not to get refreshed, it solves your problem.
    -Dileep .C

  • If I add artwork by dragging a jpg to the artwork area after selecting several rows, in some instances a single icon is created in the flipper;  in others one is created for each song. Why? How can I get one image per album every time?

    If I add artwork by dragging a jpg to the artwork area after selecting several rows, in some instances a single icon is created in the flipper;  in others one is created for each song. Why? How can I get one image per album every time?

    If I add artwork by dragging a jpg to the artwork area after selecting several rows, in some instances a single icon is created in the flipper;  in others one is created for each song. Why? How can I get one image per album every time?

  • Fetching more than one row from a table after selecting one value from the dropdown

    Hi Experts,
    How can we fetch more than one row from a table after selecting one value from the dropdown.
    The scenario is that I have some entries in the dropdown like below
      A               B               C        
    11256          VID          911256  
    11256          VID          811256
    11256          SONY      11256
    The 'B' values are there in the dropdown. I have removed the duplicate entries from the dropdown so now the dropdownlist has only two values.for eg- 'VID' and'SONY'. So now, after selecting 'VID' from the dropdown I should get all the 'C' values. After this the "C' values are to be passed to other methods to fetch some data from other tables.
    Request your help on this.
    Thanks,
    Preeetam Narkhede.

    Hi Preetam!
    I hope I understand your request proberly, since this is more about Java and less about WebDynpro, but if I'm wrong, just follow up on this.
    Supposed you have some collection of your original table data stored in variable "origin". Populate a Hashtable using the values from column "B" (let's assume it's Strings) as keys and an ArrayList of whatever "C" is (let's assume String instances, too) as value (there's a lot of ways to iterate over whatever your datasource is, and since we do not know what your datasource is, maybe you'll have to follow another approach to get b and c vaues,but the principle should remain the same):
    // Declare a private variable for your Data at the appropriate place in your code
    private Hashtable temp = new Hashtable<String, ArrayList<String>>();
    // Then, in the method you use to retrieve backend data and populate the dropdown,
    // populate the Hashtable, too
    Iterator<TableData> a = origin.iterator();
    while (a.hasNext()) {
         TableData current = a.next();
         String b = current.getB();
         String c = current.getC();
         ArrayList<String> values = this.temp.get(b);
         if (values == null) {
              values = new ArrayList<String>();
         values.add(c);
         this.temp.put(b, values);
    So after this, you'll have a Hashtable with the B values als keys and collections of C values of this particular B as value:
    VID --> (911256, 811256)
    SONY --> (11256)
    Use
    temp.keySet()
    to populate your dropdown.
    After the user selects an entry from the dropdown (let's say stored in variable selectedB), you will be able to retrieve the collection of c's from your Hashtable
    // In the metod you handle the selection event with, get the c value collection
    //and use it to select from your other table
    ArrayList<String> selectedCs = this.temp.get(selectedB);
    // now iterate over the selectedCs items and use each of these
    //to continue retrieving whatever data you need...
    for (String oneC : selectedCs) {
         // Select Data from backend using oneC in the where-Clause or whatever...
    Hope that helps
    Michael

  • The RFX before upgrade does not allow me to add items from catalog

    hello gurus
    I have a problem with the RFX, we did an upgrade to SRM7.0 from SRM5.0.
    The RFX that existed before upgrade in the server does not allow me to add new items from catalog.
    each RFx I created after the upgrade works fine.
    My client needs to work with the RFx still open, add items and make bids.
    I have reviewed the upgrade guide and found nothing regarding an update of purchasing documents.
    I have
    SRM 7.0 SPS03 EHP1
    MDM 7.1 SP06
    MDM catalog 3.0SP10

    in SRM 5.0 the system was MDM catalog. Actually, after the upgrade , i have SRM7.01 with MDM catalog.
    i donn´t know if it is about version, SP or compatability issue, but i believe the upgrade not affect the purchaser documents.
    Those look as locked to modify. on tap Position, the buttom ADD LINE, only i can see Position, not anymore option like MDM catalog, free text.
    it is a big problem, because the client has documents opened. i need to resolve this issue. Actually i am working in a sandbox system, but i afraid to have the same problem in PRD system after upgrade.
    regards

  • SSAS Source - Column selection lost when modifying an existing "Add Item" step

    When developing a Power Query query on an SSAS source, I often need to edit an existing "add items" step in order to add a few columns that I had initially missed out. To do this, I point to the step previously created and click on the small gear
    icon to edit it.
    However, when doing so, the edit dialogue is not initialised with all the columns that I had previously selected. Which means that if I am not careful and do not scrupulously recheck every column that I need, the modification will destroy what I had created
    before.
    Inserting another step rather than modifying an existing one might be a workaround,  but I would rather keep the number of steps to the minimum. Also, if there is an edit button, one should be able to rely on it.
    Has anyone experienced the same issue?
    PQ Version: 2.18.3874.242 - Excel 2013 32bits.

    This is a known issue that will be resolved in an upcoming release.
    A work-around for now when using the UI builder to edit a selection is to expand dimensions that had an attribute added from it before dismissing the dialog.

  • If I edit an item in a datagrid is it possible to add an effect to that entire row?

    If I edit an item (default ItemRenderer) in a datagrid is it
    possible to add an effect to that entire row?

    If you are using the mail app - Tap and hold down on the attachment icon in the email and that should bring up a window that says Open In. Do you not get that? Then you can select Pages from that window - assuming that you have Pages on the iPad.
    The attachment should open when you tap on it anyway, even if you don't have Pages.

Maybe you are looking for

  • Can not view mobile me gallery videos on IPHONE

    Can any body tell me why i can not view my mobile me gallery videos on my Iphone? When i bring up my gallery on my phone it only shows some of my posted video not all of them and the time has 0:00. If you try and play it you get an error message.

  • SYNC Key

    To whom it may concern, I'm currently trying to log in to the Firefox Sync and according to your systems, this SYNC Key is not a good key. The left side of your screen is the saved copy of the Key when I have re-created one. Please verify the server

  • Each time I am playing games on FB firefox enables a 2nd firefox window to kick in.....how do i stop this?

    would you know how to stop my computer from having a 2nd Mozilla firefox kick in while I am playing games? it is frustrating and it lags my computer

  • BUG : DBMS_OUTPUT.put_line and tabs in sqldeveloper 1.2.1 - build 32.00

    Hi Guys. I upgraded from 1.2 and it appears that dbms_output.put_line is now broken. Consider the following: begin    dbms_output.put_line('hello world'); end;Process: 1. Load SQL Developer 2. Open a connection to DB 3. Go to DBMS Output tab 4. Enabl

  • Work Center wise actual activity information.

    Dear All ,               We have  requirement of Z report creation for cost center wise work center wise actual activity report . But we are unable to find work center and actual activity line item wise link up in any table for  development of above