Delaying a function so ADF will get all the selected rows and run only 1 time ?

Hello,
I'm using JDeveloper 12.1.2.0.0.
I have a group of functions that are executed after i click on one or more rows, which is called:
public void onDimProjectSelect(SelectionEvent selectionEvent)
Whenever i shift-click some rows (lets say, for the purpose of this example, that i shift-click the 1st row to the 5th row, so i shift select and i get selected the rows: 1,2,3,4 and 5).
I did notice that what happens is that the function onDimProjectSelect will execute with the 1st row, and after it runs all the functions, it will run again the function onDimProjectSelect with the 1, 2, 3, 4 and 5 rows as it should in the first place.
Why is this happening? I've tried to add a delay but i did not work.
This is really a pain because its spending time executing a function without all of the rows that is suppose to have, so it will run again.
I think the problem here is how ADF does the selections for the function but i don't know how to change it.
Any ideia of why is this happening? What can i do to correct this?
Regards,
Frederico.

Hey Frank,
I mean that my function onDimProjectSelect has other functions inside that need to be executed so when i say that is runs all the functions i mean the functions that are suppose to execute when onDimProjectSelect is executed.
Maybe the problem is my implementation approach but it was required to use the selection. But the funny part is that i select with the shift-click and he knows that, since it will run the function with all the rows that are selected but firstly he will execute the function with just the first selected row.

Similar Messages

  • The old computer is broken so I bought a new one. I have downloaded itunes but will not sync iphone with the new itunes. What should I do to get all the apps, songs and photos on itunes?

    The old computer is broken so I bought a new one. I have downloaded itunes but will not sync iphone with the new itunes. What should I do to get all the apps, songs and photos on itunes?

    See Recover your iTunes library from your iPod or iOS device.
    tt2

  • I just bought an ipad. How do I get all the apps, music and photos from my iphone to my ipad?

    I just purchased an iPad 2. I currently have an iPhone 4 (not 4s). I was told that I could get all the apps, music and photos from my iphone onto my ipad. I tried backing up my phone and restoring my ipad from my phone. Didn't work. It setup successfully but nothing transfered over. iCloud only gave me my contacts and calendar. HELP!

    Copy music from iTune with 3rd party Apps using File Sharing

  • How can I capture and take screenshots of all the browser tabs and not only windows ?

    This class identifies all minimized windows and take a snapshot (screenshot) of them. I want to take screenshots also of all the broswer for example chrome tabs windows that are open but not in the front. Same idea that it get now the minimized windows but
    to get the screenshots of the broswer opened tabs ! What should I change in the WindowSnap class? Since both classes are a bit long I added them to pastebin.com
    What i'm doing now is to get all the minimized windows i mean all the the windows in the back if it's chrome browser windows or open tabs if it's program games other windows. This is what i'm doing in form1 constructor:
    this.listBoxSnap.Items.AddRange(WindowSnap.GetAllWindows(true, true).ToArray());
    int numitems = this.listBoxSnap.Items.Count;
    for (int i = listBoxSnap.Items.Count - 1; i >= 0; i--)
    string tt = listBoxSnap.Items[i].ToString();
    if (tt.Contains(" ,"))
    listBoxSnap.Items.RemoveAt(i);
    listBoxSnap is just a regular listBox1 in my form1 designer.
    And this is the WindowSnap class code, it's a bit long code but it's all connected:
    I'm not sure what to show here from this class what is the most important part so i added all the class code to a link to pastebin.com:
    WindowSnap.cs
    What i'm calling/using in form1 constructor from this WindowSnap.cs class is the GetAllWaindows method:
    public static WindowSnapCollection GetAllWindows(bool minimized, bool specialCapturring)
    windowSnaps = new WindowSnapCollection();
    countMinimizedWindows = minimized;//set minimized flag capture
    useSpecialCapturing = specialCapturring;//set specialcapturing flag
    EnumWindowsCallbackHandler callback = new EnumWindowsCallbackHandler(EnumWindowsCallback);
    EnumWindows(callback, IntPtr.Zero);
    return new WindowSnapCollection(windowSnaps.ToArray(), true);
    EnumWindowsCallBackHandler is:
    private delegate bool EnumWindowsCallbackHandler(IntPtr hWnd, IntPtr lParam);
    EnumWindows is:
    [DllImport("user32.dll")]
    [return: MarshalAs(UnmanagedType.Bool)]
    private static extern bool EnumWindows(EnumWindowsCallbackHandler lpEnumFunc, IntPtr lParam);
    Then i have the class called WindowSnapCollection:
    WindowSnapCollection.cs
    The problem is in form1 constructor i'm getting only 23-24 windows in the listBox1. When i'm doing this two lines:
    this.listBoxSnap.Items.AddRange(WindowSnap.GetAllWindows(true, true).ToArray());
    int numitems = this.listBoxSnap.Items.Count;
    I see in numitems about 30 windows and after filtering i'm getting 20 windows and i checked that's the correct number of opened minmizied windows i have in this example 20.
    Now what i want to do is somehow to get with all this windows in the listBox also all the opened tabs in chrome.
    For exmaple i have only 4 opened chrome windows. But in one of the chrome windows i have almost 40 tabs opened !
    I want somehow to add to the listBox all this opened tabs also as captured screenshots like i'm doing now with the windows.
    This is a screenshot of my program showing what i'm doing and what i get:
    So now i have 19 windows captured in the next refresh it will show 20.
    My question is if there is any way to capture also all the chrome opened tabs in all the windows if any opened tabs are opened at all ? Now i'm getting only the chrome opened windows captured screenshot. But i want to get also the chrome tabs captured screenshots.

    Hi Chocolade1972,
    Since this forum is discussing about Windows Forms general like winform controls, and your issue is related with Windows Desktop SDK, I will move this thread to the more related forum.
    Thanks for your understanding.
    Best Regards,
    Edward
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

  • How do i get the data present in the selected row at run time in Multicolumn list box?

    Hi,
    I am using multicolumn list box with three columns and i am having OK button.
    If the user selects particular row and then press ok then that row datas(that 3 values) has to get update in the file.
    Can u tell me how to get that selected row values alone and also how to append the list box value at run time?
    Thanks
    Meenatchi

    You can simply use the Value property of the MLBox to get the row selected & wire it to the Delete from array function with the Itemnames of the MLBox as the Input & Output of the Delate from array function.
    See the attached VI.
    - Partha
    LabVIEW - Wires that catch bugs!
    Attachments:
    Dbl-click Row to get Data & Delete.vi ‏41 KB

  • HT4113 Trying to get my new iPad up and running so many times it is now disabled...help

    I have been trying to get my new iPad air up and running .  Now it says disabled.  What do I do now?

    Try recovery mode. See:
    http://support.apple.com/kb/ht1808

  • How to get all the Model name and Entity name through programmatically

    I am using this code to get Model name
    clientProxy = GetClientProxy(mdsURL);
    ModelMembersGetRequest request = new ModelMembersGetRequest();
    ModelMembersGetResponse response = new ModelMembersGetResponse();
    response=clientProxy.ModelMembersGet(request);
    Model member count i am getting zero
    Error count is 1(required parameter is missing)
    please help me to resolve the issue

    The model/entity/attribute name can be retrieved by MetadataGet.
    You can found some sample code here:
    http://sqlserversamples.codeplex.com/wikipage?title=SQL%20Server%202012%20Master%20Data%20Services%20

  • Everytime i try and update my ipod touch to version 5.0 its gets all the way through and then says internet has timed out. how do i update it then???

    cant update my ipod to version 5.0. it keeps saying my internet has timed out.. what do i do!?!?!?!?!

    Disable your computer's security software during the download and update. Kasp...  AV is epecially bad.

  • I can't get my shuffle to play through all my playlists. Once I pick a playlist, it will play that one all  the way through and start over instead of playing the next one.

    How do I get my shuffle to play all my playlists through their entirety?  I will select one and it will play all the way through and start over.  I want it to finish that one and move to the next playlist, and so on.

    I think that's the way it's supposed to work. 
    You should just create another "merged" playlist that has ALL the songs from those playlists, with songs in the order you want them played, then use the play in order setting on the shuffle.
    It won't take up any more space on the shuffle, because all of the songs will already be on the shuffle due to the separate playlists.

  • Is there any REST API to get all the Site and site Collections from Sharepoint Online

    Hi,
    I have one SharePoint Online tenant. We are using REST API to integrate SharePoint to our internal System.
    For my use case I need to get all the SharePoint sites ans Sitecollections. From each SiteCollection I need all the subsites under this.
    I have used below REST Query
    http://<Base site url>/_api/web
    This doesn't give me all the Site collections
    Could any one please give me some way to get all the Site collections and sites from my sharepoint tenant through REST API.
    Thanks,

    Hi Abhiram,
    There seems no such endpoint in SharePoint REST API can retrieve a list of site collections in a SharePoint Online tenant:
    https://msdn.microsoft.com/en-us/library/office/jj860569.aspx#Reference
    If Client Object Model can be an option for you, you can use Tenant object to achieve what you want:
    http://social.technet.microsoft.com/wiki/contents/articles/24050.perform-basic-admin-operations-using-csom-in-sharepoint-online.aspx#Scenario_3_Fetch_All_Site_Collections
    Anyway, I would suggest you submit a feedback to the Office Developer Platform if there any expectation about the future version of REST API of Office 365 SharePoint
    Online:
    http://officespdev.uservoice.com/
    It
    is a place for customers provide feedback about Microsoft Office products. What’s more, if a feedback is high voted there by other customers, it will be promising that Microsoft
    Product Team will take it into consideration when designing the next version in the future.
    Thanks 
    Patrick Liang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How can I get the index of the selected row, ALV

    In alv I need to get the selected row id and then calling a screen to show the detailed infomation on this row and providing the ability to update the row.
    I know how to do but do not know how to get the selected index of the alv grid.
    If it was desired based on just double click, it was ok but I have to provide a button and when it is clicked the detailed screen will come with the selected row details.
    Thanks everyone.
    Deniz.

    Hi Deniz,
    While defining the internal table which u pass in ALV_GRID function module, define a field (suppose CHECK type c) in the structure of that internal table.
    and while defining field layout, pass the value 'CHECK' to the field BOX_NAME of the layout.
    Now, when you execute the report, a selection box will be displayed infront of every record. If you select that record and press the button on application tool bar, the field 'CHECK' in the internal table will be having the value 'X'... By looping throught this internal table where check = 'X', you can achieve your functionality.
    Example:
         Structure for output details
    TYPES: BEGIN OF GS_OUTPUT.
            INCLUDE STRUCTURE ZAS_WATER_QLTY_REP.
    TYPES: CHECK(1) TYPE C,
           END OF GS_OUTPUT.
        Internal    table for output details
    DATA: GT_OUTPUT   TYPE STANDARD TABLE OF GS_OUTPUT.
    Before calling the function module to display ALV
    grid, define a layout usine
    Local workarea
      DATA: LW_LAYOUT  TYPE SLIS_LAYOUT_ALV.
    Local constants
      CONSTANTS: LC_UFORM  TYPE SLIS_FORMNAME
                        VALUE 'ALV_USER_COMMAND'.
    LW_LAYOUT-BOX_FIELDNAME = 'CHECK'.    "Field for checkbox
    This function module outputs an internal table with whatever
    structure in the form of a formatted single- order multi-line list
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
           EXPORTING
                I_CALLBACK_PROGRAM       = LV_REPID
                I_CALLBACK_PF_STATUS_SET = G_FORM_SET_PF_STAT
                I_CALLBACK_USER_COMMAND  = LC_UFORM
                I_STRUCTURE_NAME         = LV_ZAS_WATER_QLTY_REP
                IS_LAYOUT                = LW_LAYOUT
                IT_FIELDCAT              = G_FIELDCAT_TAB[]
                I_DEFAULT                = GC_X
                I_SAVE                   = LC_A
                IS_VARIANT               = G_VARIANT
                IT_EVENTS                = G_EVENTS_TAB[]
                IT_EVENT_EXIT            = G_EVENT_EXIT_TAB[]
                IS_PRINT                 = G_PRINT
                I_SCREEN_START_COLUMN    = G_SCREEN_START_COLUMN
                I_SCREEN_START_LINE      = G_SCREEN_START_LINE
                I_SCREEN_END_COLUMN      = G_SCREEN_END_COLUMN
                I_SCREEN_END_LINE        = G_SCREEN_END_LINE
           TABLES
                T_OUTTAB                 = GT_OUTPUT
           EXCEPTIONS
                PROGRAM_ERROR            = 1
                OTHERS                   = 2.
    and in the form alv_user_command
    FORM ALV_USER_COMMAND USING UCOMM SELLINE TYPE SLIS_SELFIELD.
    case ucomm.
    Lets hope that the user command of the push button in * PUSH
    when 'PUSH'.
    loop at gt_output where check = 'X'.
    You can write your code here...
    endloop.
    endcase.
    ENDFORM.
    Hope this helps...
    Best Regards,
    Phani.
    Message was edited by:
            Sivapuram Phani Kumar

  • Setfilter to display all the duplicate rows pb7

    Friends,
    my version is powerbuilder 7.
    i am checking the duplicate rows in the datawindow before inserting.
    in a button click event...i have the below code
    dw_master.SetSort ("rollno A")
    dw_master.Sort()
    dw_master.SetFilter("rollno = rollno[-1]")
    dw_master.Filter()
    if dw_master.RowCount() > 0 then
        MessageBox('Duplicate Rows','Check the Duplicate Roll numbers',StopSign!,OK!)
        Return 1
    end if
    //no dups, so clear the filter and do the update...
    dw_master.SetFilter ("")
    dw_master.Filter()
    i have 2 duplicate rows...but this setfilter is displaying only one row....
    if it displays all the duplicate rows then it will be very useful for me...
    how can i modify this code to get all the duplicate rows in this datawindow before inserting?
    thanks

    Instead of a filter you could do this...
    boolean lb_dupe_found=false
    long ll_row, ll_rowcount
    string ls_val1, ls_val2
    ll_rowcount = dw_1.rowcount()
    for ll_row = 2 to ll_rowcount
    ls_val1 = dw_1.getitemstring(ll_row, 'col1')
    ls_val2 = dw_1.getitemstring(ll_row -1, 'col1')
    if ls_val1 = ls_val2 then
      // duplicate
      lb_dupe_found = true
      exit
    end if
    next
    if lb_dupe_found then
    messagebox('DUPE', 'Houston we have a problem!')
    else
    messagebox('SAVE', 'Data valid for saving')
    end if

  • Why does all the apps - default and the ones I downloaded - shut down by themselves repeatedly?

    For the past few days, every single one of my apps seems to shut down by themselves, as soon as I try to open them. I can try to open them several times in a go but still the same thing. Even restarted my phone a few times and deleted the background app, which usually works...
    Also it doesn't save any of my photos or theres a plain grey 'picture' with 'JPEG' on it. Moreover, on my camera roll, when I tap a photo to enlarge it, none of them focuses, so all them are blurry. I can't seem to send messages either: that said I usually get all my notifications shown on my lock screen, but lately it doesn't show at all.
    Another thing, my phone keeps repeatedly buzzing when there is no notification - or email - shown either on the lock screen and/or home screen.
    Please help! I'm running out of options what to do!
    MetalRockKat x

    Your best bet is to back up your device to iCloud or iTunes, then reset your device to Factory Settings (Settings>General>Reset>Reset All Content & Settings, but do not restore it from the backup. Add your apps back onto your phone one at a time (download them from iTunes in the Cloud by tapping on the App Store icon, then on Updates>Purchased>All, then click on one or two apps and download them and see if the problem persists.
    Continue to download apps to see if you start running into the issue again at any point. If you are able to get all the apps downloaded and functioning without any issues, then reset the device back to factory settings, and then restore it from your backup, and see if the issues starts up again.
    If it does start up again, then there is something in your backup that is corrupted, and your best bet at that point is to "rebuild" your device from Factory Settings rather than to keep the backup on your device.
    Cheers,
    GB

  • How to get the selected rows in a table

    Hi,
    How to get the ids of all the selected rows. On Page load a query is executed that shows the data in a table with a checkbox in the first column to select the rows and delete. Now if a user select multiple rows how do I get the ids of selected rows in the backend code.
    Thanks

    Please search the forum before posting questions.
    refer following thread for table selection.
    Re: Record selection with MessageCheckBox and print the selected record.
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                           

  • Getting the contents of the selected row in table webitem

    Hi,
    If i have a table web item in a web template,how do i get
    the selected row and row contents of the table.
    regards
    kaushik

    Just incase if you have not looked at the following documents:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/6eb89190-0201-0010-89bf-ad46d1503ef9
    http://help.sap.com/saphelp_nw04/helpdata/en/99/08629bd3e41d418530c6849df303c9/frameset.htm

Maybe you are looking for

  • HP Laserjet M1132 MFP is too slow over the network!

    Hi, My HP Laserjet M1132 MFP is too slow over the network! I have connect the printer to a windows XP 32bit SP3 using UBS port. The printer works fine on the local computer but when sharing it over the network it works too slow, for example with prin

  • Directory error when deployed in enterprise

    I have a project when ran on Studio, lists the right applications on the workspace for the participant. I exported the project and deployed on the standalone enterprise version. When I log in as the participant, the applications are not listed. I und

  • Can I put 64 bit software on my 2014 mac mini?

    Can I put 64 bit software on my 2014 mac mini?

  • Help! Macbook Pro running Slow. I have ETRECHECK results

    Help! I have a Macbook Pro, and in the past month or so my applications have stopped responding on a very regular basis. iphoto, Word, Firefox, etc. Really, almost no application is working on my computer. VERY frustrating! I started in safe mode and

  • Jvmti environment query

    How does the jvmti env work.. I read that usually when we invoke the GetEnv method on jvm we get a pointer to the jvmti envt. Now i m storing this pointer for future reference, in a global datastructure. When I use this pointer later to retrieve a ta