This discussion is archived
1 2 Previous Next 21 Replies Latest reply: Feb 4, 2013 8:40 PM by anbarasan RSS

Apex region button /page issue.

anbarasan Newbie
Currently Being Moderated
Hi All,
I have Created Page and created Search Region with button ...in this Page have jquery -On Mouseover popup displaying.
On mouseout in the report then region- Button ,if trying to click BUTTON,no action
can you please help me on this...
if need more info Please le me know
Edited by: anbarasan on Jan 31, 2013 7:09 PM

Edited by: anbarasan on Jan 31, 2013 8:31 PM
  • 1. Re: Apex region button /page issue.
    scott.wesley Guru
    Currently Being Moderated
    What is the action of your button when clicked?
    What version APEX to you run?

    Mouseover stuff seems irrelevant
  • 2. Re: Apex region button /page issue.
    anbarasan Newbie
    Currently Being Moderated
    Hi Scoot,
    I am having APEX 3.2 Version and in the Page have Search region with Search button..like Filtering Region/Country Etc..
    in the Page report On mouse over/Mouse out...then i was trying to do filter Region/Country and Hitting Search button..no Action at all...
    Please support on this

    Edited by: anbarasan on Jan 31, 2013 11:28 PM
  • 3. Re: Apex region button /page issue.
    anbarasan Newbie
    Currently Being Moderated
    HI Scoot ,i have jquery and javascript in my page below are...Please verify...
    -------------------------------------------
    </script>

    <script type="text/javascript" src="#WORKSPACE_IMAGES#jquery.js"></script>
    <script type="text/javascript">
    $(function()

    var hideDelay = 500;
    var currentID;
    var hideTimer = null;

    var container = $('<div id="personPopupContainer">'
    + '<table width="" border="0" cellspacing="0" cellpadding="0" align="center" class="personPopupPopup">'
    + '<tr>'
    + ' <td class="corner topLeft"></td>'
    + ' <td class="top"></td>'
    + ' <td class="corner topRight"></td>'
    + '</tr>'
    + '<tr>'
    + ' <td class="left"> </td>'
    + ' <td><div id="personPopupContent"></div></td>'
    + ' <td class="right"> </td>'
    + '</tr>'
    + '<tr>'
    + ' <td class="corner bottomLeft"> </td>'
    + ' <td class="bottom"> </td>'
    + ' <td class="corner bottomRight"></td>'
    + '</tr>'
    + '</table>'
    + '</div>');

    $('body').append(container);
    $('.personPopupTrigger').live('mouseover', function() { 
    var settings = $(this).attr('rel').split(',');
    var linkid= settings[0];
    var linkpage= settings[1];
    var linkitem= settings[2];

    if (currentID == '')
    return;
    if (hideTimer)
    clearTimeout(hideTimer);

    var pos = $(this).offset();
    var width = $(this).width();
    container.css({ 
    left: (pos.left + width) + 'px',
    top: pos.top - 5 + 'px'
    });
    $('#personPopupContent').html(' ');
    $.ajax({ 
    type: 'GET',
    url: 'f?p=&APP_ID.:'+linkpage+':&APP_SESSION.::::'+linkitem+':'+linkid,
    dataType: 'html',
    success: function(result)
    {               
    $('#personPopupContent').html(result);
    }
    });
    container.css('display', 'block');
    });

    $('.personPopupTrigger').live('mouseout', function()

    if (hideTimer)
    clearTimeout(hideTimer);
    hideTimer = setTimeout(function()

    container.css('display', 'none');
    }, hideDelay);
    });

    $('#personPopupContainer').mouseover(function()

    if (hideTimer)
    clearTimeout(hideTimer);
    });

    $('#personPopupContainer').mouseout(function()

    if (hideTimer)
    clearTimeout(hideTimer);
    hideTimer = setTimeout(function()

    container.css('display', 'none');
    },hideDelay);
    });
    });
    </script>

    <style type="text/css">
    #personPopupContainer { 
    position:absolute;
    top:0;
    right:0;
    display:none;
    z-index: 20000;
    margin-top: 0px;
    margin-left: -10px;
    }

    .personPopupPopup { 
    }

    #personPopupContent { 
    background-color: #FFF;
    min-width: 175px;
    min-height: 50px;
    }

    .personPopupPopup .personPopupImage { 
    margin: 5px;
    margin-right: 15px;
    }

    .personPopupPopup .corner { 
    width: 19px;
    height: 15px;
    }

    .personPopupPopup .topLeft { 
    background: url(#APP_IMAGES#balloon_topLeft_blue.png) no-repeat;
    }

    .personPopupPopup .bottomLeft { 
    background: url(#APP_IMAGES#balloon_bottomLeft_blue.png) no-repeat;
    }

    .personPopupPopup .left { 
    background: url(#APP_IMAGES#balloon_left_blue.png) repeat-y;
    }

    .personPopupPopup .right { 
    background: url(#APP_IMAGES#balloon_right_blue.png) repeat-y;
    }

    .personPopupPopup .topRight { 
    background: url(#APP_IMAGES#balloon_topRight_blue.png) no-repeat;
    }

    .personPopupPopup .bottomRight { 
    background: url(#APP_IMAGES#balloon_bottomRight_blue.png) no-repeat;
    }

    .personPopupPopup .top { 
    background: url(#APP_IMAGES#balloon_top_blue.png) repeat-x;
    }

    .personPopupPopup .bottom { 
    background: url(#APP_IMAGES#balloon_bottom_blue.png) repeat-x;
    text-align: center;
    }



    }


    </style>
  • 4. Re: Apex region button /page issue.
    anbarasan Newbie
    Currently Being Moderated
    Any body can please give me ONMouseove need to make popup report......step...
  • 5. Re: Apex region button /page issue.
    scott.wesley Guru
    Currently Being Moderated
    I'll ask again - what "action", as declaratively defined in APEX, does your button do?

    This is what seems to be your complaint - you click on the button and it does nothing. So what have you defined it to do?

    This seems to have nothing to do with mouseover events.
  • 6. Re: Apex region button /page issue.
    anbarasan Newbie
    Currently Being Moderated
    Hi Scoot,
    ONmouse over of report displaying the child popup report..once Mouseout...in the main page have Search region with BUTTON..if trying to hit Search button no action at all..

    Edited by: anbarasan on Feb 3, 2013 10:50 PM
  • 7. Re: Apex region button /page issue.
    scott.wesley Guru
    Currently Being Moderated
    Forget mouse events.

    What is your Search button defined to do? The code above does not detail this.

    Are you able to put an example on apex.oracle.com?
  • 8. Re: Apex region button /page issue.
    anbarasan Newbie
    Currently Being Moderated
    Hi Scoot,
    Search region-have Filter Region=select list,country=Select list..if click search button need to filter According to filter,
    but if se;ected Region=IN ,Country=IN.and hitting Search button No Action..
  • 9. Re: Apex region button /page issue.
    scott.wesley Guru
    Currently Being Moderated
    I know, you've already defined what you want - I'm asking what you already have

    When you edit the page, then edit the button - what is shown under "Action when button clicked" ?

    Scott
  • 10. Re: Apex region button /page issue.
    scott.wesley Guru
    Currently Being Moderated
    I also remember you're on 3.2 - label descriptions may differ as I have 4.2 on hand, but the concepts are the same.
  • 11. Re: Apex region button /page issue.
    anbarasan Newbie
    Currently Being Moderated
    yes,might be ..can you please help me to solve my case...
  • 12. Re: Apex region button /page issue.
    fac586 Guru
    Currently Being Moderated
    anbarasan wrote:
    yes,might be ..can you please help me to solve my case...
    He's trying to. You're not.
  • 13. Re: Apex region button /page issue.
    anbarasan Newbie
    Currently Being Moderated
    on BUTTON Clikc Action -Pang in this Application and Page no i have in Button Action.......
  • 14. Re: Apex region button /page issue.
    scott.wesley Guru
    Currently Being Moderated
    Now we are getting somewhere.

    Any criteria you enter needs to be set in session state before it can be used to filter your query. Directing to a page in your application won't help - instead you need the button to submit the page

    You would then incorporate the values in your region's SQL, either by something like
    AND t.state = COALESCE(:P1_STATE, t.state)
    or constructing your SQL dynamically using PL/SQL.

    In a 4.x environment you can define a dynamic action that can set this information to session state and refresh your report region without submitting the page.

    Let's start with that...
1 2 Previous Next

Legend

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