Loading...
Mark´s Playpen Integrating ExtJS javascript library with Oracle Application Express
APEX_PUBLIC_USER
Value
Rows Displayed
Notes
Just to keep Vikas happy, here's an example showing a modal window, with an update event to refresh the calling page.

This time, the edit link attributes are:

    onClick="Ext.app.PopupWindow({url: this.href, height: 450},4009224866130853); return false;"


The function is:

Ext.app.PopupWindow = function (config,regionId) {

    var w = new Ext.ux.PopupWindow(config);
    w.on({
        'close': {
            fn: function () {
               /**  
                *  Refresh using Apex call
                *
                *  NOTE: 1. Assumes a "classic" report with Partial Page Refresh enabled
                *
                *        2. Doesn't deal with pagination - an exercise for the reader
                *
                */
                new Ext.LoadMask('report_' + regionId + '_catch', {removeMask: true}).show();
                $a_report(regionId,'1',null,'1');
            }
         }
    });

    w.show();
}

The popup form includes the following javascript in it's success message:

    Action Processed.
    <script type="text/javascript">parent.Ext.WindowMgr.getActive().close();</script>

Ditto for the cancel button.

The custom component js is not minified so it is readable. See popup-window.js.
Existing Customers   
Create
EditFirst NameLast NameStreet AddressCityStatePost CodeHome PhoneMobileCredit LimitEmail
Edit1112222        
Edit1112222        
Edit1112222        
EditArgentinaaaaaAbelism29 Elizabeth Road's AbcdefrRotterdamCA6639715212-555-3923(456)456-0056960support@microsoft.com.ru.tu
EditLindaAd8/27 Notley StECHUNGAWCA515349379536803954123ladams@nowhere.com.au
EditqweAdam hasdfwFlat 33556 4 Bonnington RdLAKE TABOURIENSW253940910032031698 jadams
EditJohn-7777Adams127 Irby Bvd test 3333444444RUSONSW2560790685492620953jadams@nowhere.com.au
EditKathryn2AdamsPO BOX 150INGGARDAWA6701758220260883092333kadams@nowhere.com.au
EditLarry 1121Adams8 Dwyers RdST KILDAVIC31821234567891690778 ladams@nowhere.com.au
EditLynetteAdams11 Hookey St xzvzxcvzxfcvNORTH BOOVALQLD430427039952962726 ladams@nowhere.com.au
EditMattAdams1 Betts Rd akjsMURRUMBONSW284934146934644362 kadams@nowhere.com.au
EditNatalieAdams4 Belton StMUREWA640127136356425060 nadams@nowhere.com.au
EditNigelsAdams186 Preolenna RdEDEN HILLWA605473002812270323 nadams@nowhere.com.au
EditRFQWADGVAER1Adams254 Bathurst Street ffSEACOMBE GARDENSny504736349411965980 cadams@nowhere.com.au
EditRobertAdams203 Woodbury Lane xHAWKERSA543415282725639668120radams@nowhere.com.au
Page Comments

Author Comment
jensenI can get this to work great, thank you for the example.  I have on issue though, on my report I use an LOV as one of my display columns.  Every time I click the edit link the LOV gets wiped out and does not refresh when I press save in the modal window.
momaraI can get the window to pop and the window to close but I don't seem to be getting a refresh from the calling page...Any suggestions would be greatly appriciated.​
xxx​aweweqwe
Marnus VenterI cannot get my cancel button to close the popup window. Any ideas?​
 ​Beautiful!! - So how I can get in touch with you to ask about licensing on extJS?
I am trying to develop/convert desktop applications to APEX for internal use and not commerical use.

Please let me know.
Thank you.

Shaun
shaunATshoaeeDOTnet
Lev​Probably one more issue - if user updates record on the second page grid returns to the 1 page when user saves changes
Mark LancasterHmm, the commenting system seems to have broken (or just slow), thanks for mentioning it.

I've added a mask to show that an AJAX request is in progress.
VikasOf course, the comments widget could benefit from the same treatment!
Vikas​Much better, thanks!
Page Ref: 200801:2032
Generate: 0.19
  Release 1.0
©2008 Mark Lancaster. All rights reserved.
ExtJs