This discussion is archived
4 Replies Latest reply: Mar 4, 2013 9:07 AM by user3282753 RSS

Skillbuilders Modal Plugin

984359 Newbie
Currently Being Moderated
I am using Skillbuilders Modal Page Plug-in and it is working fine.

However, in my pop-up page, I have a simple wizard-based tabular form. If the user clicks on ‘Apply Changes’ without making any changes, the pop-up doesn’t close. I think this is because there is no success message. I have scratched my head, but I can’t figure out how to trap this scenario and prevent the inner page from closing and a nasty looking plug-in left behind.

Any help would be much appreciated.

Application Express 4.1.0.00.32
  • 1. Re: Skillbuilders Modal Plugin
    dmcghan Oracle ACE
    Currently Being Moderated
    Hi 981356,

    A simple solution is to remove the success message from the DML process (which as you know doesn't display the success message unless an actual DML update is made). Then create a new PL/SQL process with just "NULL;" as the source and add the success message there.

    Problem solved.

    Regards,
    Dan

    blog: http://DanielMcghan.us/
    work: http://SkillBuilders.com/APEX/
  • 2. Re: Skillbuilders Modal Plugin
    user3282753 Newbie
    Currently Being Moderated
    Hi Dan
    Thanks for the reply. I tried something along these lines, but I cannot seem to be able to access #MRI_COUNT# and #MRU_COUNT# except in the DML update process.

    Clare
  • 3. Re: Skillbuilders Modal Plugin
    dmcghan Oracle ACE
    Currently Being Moderated
    Clare,

    Ok, put your success message back in the main DML process (I didn't know it was a tabular form process). Then make the success message for your NULL process something generic and static. Make sure your NULL process is after the main DML process and make it conditional. Use the PL/SQL Expression condition type and enter the following for the condition:
    wwv_flow.g_print_success_message IS NULL
    Let me know if that does it for you.

    Regards,
    Dan

    blog: http://DanielMcghan.us/
    work: http://SkillBuilders.com/APEX/
  • 4. Re: Skillbuilders Modal Plugin
    user3282753 Newbie
    Currently Being Moderated
    Thanks, again, Dan.

    The new conditional process has done the trick. I can now put in a 'No changes to apply' message and the pop-up always closes neatly.


    Clare
    ps if I knew how to put reward points on for you, I would, but I'm sure you don't need them ;)

    Edited by: user3282753 on 04-Mar-2013 09:06

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points