This site is currently read-only as we are migrating to Oracle Forums for an improved community experience. You will not be able to initiate activity until January 31st, when you will be able to use this site as normal.

    Forum Stats

  • 3,890,795 Users
  • 2,269,776 Discussions
  • 7,916,827 Comments

Discussions

Refresh Interactive Grid

guilhermesobreira
guilhermesobreira DublinMember Posts: 12 Blue Ribbon
edited Jan 14, 2020 11:51AM in APEX Discussions

Hello,

I am working in APEX version 19.1.

I am not succeeding creating dynamic actions to refresh an interactive grid in a situation, and I need a help!

My scenario has the following pages:

1. An interactive grid returning data from a table. This is my main page.

2. A "details page", that shows (as view only) the information of a specific line from my interactive grid, and have an option to add attachments (I have a child table for attachments). This is a modal page, called from a column of my interactive grid.

3. A form to edit data. This form is called from a "Create" button in my interactive grid page, and also is called in the details page to "Edit" data. When creating new record, after save, this page redirects to the "details page", so the user can add attachments.

I need to refresh the interactive grid after create or update record, so I did the basic thing:

1. Created a dynamic action under my interactive grid region (event: Dialog Close) to refresh my interactive grid region.

2. Created a dynamic action under my create button (event: Dialog Close) to refresh my interactive grid region.

None of the options worked for me.

Does anyone have any idea?

Thanksss!

Guilherme

guilhermesobreira

Best Answer

Answers

  • Veerendra Patil
    Veerendra Patil Member Posts: 625 Gold Badge
    edited Jan 13, 2020 4:03PM Answer ✓

    Based on your other question - Redirect to page after delete record - You are trying to redirect to calling page.

    Do you have a process - "Close Dialog"?

    Screenshot 2020-01-13 at 20.58.44.png

    DA on IGs will be listening to Close Dialog event from modal page.

    This will refresh your IG.

    Thanks,

    Veerendra.

    guilhermesobreira
  • guilhermesobreira
    guilhermesobreira DublinMember Posts: 12 Blue Ribbon
    edited Jan 14, 2020 5:18AM

    Hi Veerenda, thanks, it was very helpful!

    In my "Detail" dialog, I did not have a close dialog process.

    It worked when I associated a button with dynamic action to close dialog (the "new" below), but it didn't work only creating the close dialog process (and using the "X" button to close the dialog).

    Are there any way to make it work with "X" without needing the creation of this "new" button?

    pastedImage_1.png

    Thanks,

    Guilherme

  • Veerendra Patil
    Veerendra Patil Member Posts: 625 Gold Badge
    edited Jan 14, 2020 7:23AM

    Hi,

    I think No... clicking the 'X' wont do "Close Dialog" process.

    If you want you can hide 'X' with CSS.

    Thanks,

    Veerendra.

    guilhermesobreira
  • guilhermesobreira
    guilhermesobreira DublinMember Posts: 12 Blue Ribbon
    edited Jan 14, 2020 11:51AM

    That is what I did, I hided the exit icon with javascript (Page / JavaScript / Function and Global Variable Declaration).

    I will let the command here if someone read this post in the future:

    var button = parent.$('.ui-dialog-titlebar-close'); //get the button

    button.hide(); //hide the button

    Thanks!