Saturday, September 19, 2009

Apex Modal Windows with updates...

LOL - and just when I thought I'd get away with being lazy...

Here's an example to keep Vikas happy


Marnus said...

Hi Mark,

I appreciate the examples you giving for using Ext JS in APEX. I just have a couple of questions if you don’t mind. I’ve managed to make the edit link and cancel button work but I’m struggling to call the Modal Popup Window with the create button. Also how do I get the region id and rid of the horizontal scroll bar on the popup window?

Any help would be appreciated.



Mark Lancaster said...

Hi Marnus

The create button to launch the popup window has the following onClick event:

onClick="{url: 'f?p=&APP_ID.:20:&APP_SESSION.::&APP_DEBUG.:20::', height: 450},4009224866130853); return false;"

Adapt to suit your app.

To get the region id, I simply inspect the html source using Firebug.

To get rid of horizontal scrollbar in the popup:
- inspect the css for the body element, it probably has something causing the issue
- otherwise, some other element is causing the issue.

You may also want to use a specific template for your popups.

Marnus said...

Hi Mark,

Thanks for the help.