Hide region

Greetings to all,
I have a region called addexist under that p6_search(txtbox),p6_item(hidden),p6_item2(hidden),p6_searchbutton,p6_viewall.
Under the region AddExist i created a sub regions named hidden1(Report type=Sql Query) and hidden2(Sql Query).
I have created process hidden1,hidden2(before comp and val) and dyanmic actions hidden1,hidden2 and proces hidden1,hidden2(on load after region).
For hidden1(before comp and val) when button pressed = p6_viewall. For hidden2(before comp and val) when button pressed = p6_search button.
The problem is when i press the view all button it displays the hidden1 region But the hidden2 region also displaying it is not hidden. When i press the p6_searchbutton it displays hidden1 region and hidden2. And I have selected the two regions is body(1) position. hidden1 sequence=60, hidden2=70.
Now i want to disply hidden1 region when when the p6_view_all button selected it should not display hidden2 region likewise, when i press the p6_searchbutton it should display hidden2 region only not along with hidden1 region.

You could make that region 'conditional' </br> i.e. Have a hidden (control) variable that determines if the region is to be seen or hidden. </br></br>
For example, if 'no data found' then the hidden variable can be set to numerical value '0' and accordingly, should hide the region; otherwise, the region will be visible. </br></br> I guess this is what you are looking for.</br></br>
Vasan</br></br>
Message was edited by: Vasan

Similar Messages

  • Dynamic action - show/hide region based on LOV which returns ID

    Hi folks,
    this should be simple, so someone who works with dynamic actions.
    I have a LOV which is based on below query:
    select OBJECT_ID, KOD
      from x_data x;
    retuns:
       ID          KOD
        492961 BMW
        492964 VOLVO
        492960 MERCEDES
        492963 VOLKSWAGEN
        492959 SKODAItem :P200_KOD is based on LOV which displays KOD and returns ID.
    On my page I have also 1 region called TEST_REGION.
    I would like to set up a dynamic action shich will SHOW/HIDE a TEST_REGION based on selected value in item :P200_KOD (LOV). Region should be showed if displayed (KOD) value of selected ID starts with 'V%'
    By other words, if below query returns any record, then SHOW, else HIDE:
       select *
        from x_data x
      where x.kod like 'V%'
         and x.object_id = :P200_KOD;How should I define a triggering condition for dynamic action, for item :P200_KOD?
    Thanks,
    Tomas

    Hi,
    One way:
    Create advanced dynamic action.
    Name : Hide region
    Event : Change
    Selection Type : Item(s)
    Items(s) : P200_KOD
    Condition : JavaScript Expression
    Value :
    $(this.triggeringElement).children("option:selected").html().substring(0,1) !== "V"Action : Hide
    Fire On Page Load : True
    Hide all page items on the same line : No
    False Action : Show
    Fire On Page Load : True
    Show all page items on the same line : No
    Selection Type : Region
    Region : TEST_REGION
    Regards,
    Jari
    http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0

  • Hide Region When Click On Region Name Then Region is Display

    Hi ,
    I want to hide region click on REGION NAME like This Report
    [http://apex.oracle.com/pls/apex/f?p=267:4:1532929568077413|http://apex.oracle.com/pls/apex/f?p=267:4:1532929568077413]
    thanks

    Hi,
    For that, I have created a "Hide Show Region on Title Click" Region Template
    Create a new Region Template through Shared Components. This should be created "From Scratch" as there is only one setting in the template that requires any content. When that has been created, edit the template and copy the following into the "Template" setting:
    &lt;script type="text/javascript"&gt;
    function toggle()
    var r = $x('#REGION_ID#body');
    r.style.display = (r.style.display == 'none')?'block':'none';
    &lt;/script&gt;
    &lt;table class="t18Region" id="#REGION_ID#" border="0" cellpadding="0" cellspacing="0" summary=""&gt;
    &lt;tbody class="hideshow"&gt;
    &lt;tr&gt;&lt;th class="t18RegionHeader"&gt;&lt;a href="javascript:toggle();"&gt;#TITLE#&lt;/a&gt;&lt;/th&gt;&lt;/tr&gt;
    &lt;/tbody&gt;
    &lt;tbody id="#REGION_ID#body" style="display:none;" class="hideshowcontent"&gt;
    &lt;tr&gt;&lt;td class="t18ButtonHolder"&gt;#CLOSE#  #PREVIOUS##NEXT# #DELETE##EDIT##CHANGE##CREATE##CREATE2##EXPAND##COPY##HELP#&lt;/td&gt;&lt;/tr&gt;
    &lt;tr&gt;&lt;td class="t18RegionBody"&gt;#BODY#&lt;/td&gt;&lt;/tr&gt;
    &lt;/tbody&gt;
    &lt;/table&gt;Note that this example uses Theme 18 - so the class names shown here are "t18....". If you are using a different theme, you can find the correct class names from another region template.
    Andy

  • Is there any way to hide region names?

    I recently switched from garageband to Logic, and my only complaint is that there isn't a way to hide region names, which would give the same words-free editing experience as garageband.  If anyone knows of a way to do it, please post, thanks!

    Hi
    You could use the Text tool or the Region Parameters to clear the default names:
    CCT

  • Hide region if no data found in another region

    I have 2 regions on a page.. I'd like to hide the second region if no data is returned by the SQL query in the first region.
    I know that the obivious way to do this is to use the same SQL in the second region and make it conditionally display. But I don't want to run the SQL twice against the database for performance reasons.
    Is there any (preferably easy) way to check the contents of Region 1 from Region 2 and hide Region 2 if Region 1 has no data in?

    Hello,
    You can write a javascript function, that will check whether you report has any rows, if not will some APEX flag item.
    For example, after the report will be fetched you can write something like this:
    <script type="text/javascript">
    var els = document.getElementById('R1708927825979432').rows;
    if (els==0){document.getElementById('P1_FLAG').value=0;}
    </script>
    I'm not exactly sure that it will work, but you can try....
    Best Regards, Kostya Proskudin.

  • Javascript Help Needed to Show/Hide Regions

    version 4.0.2.00.07
    Hello,
    I'm hoping that someone would help me with creating a Javascript function to Show/Hide regions.
    I have a Select List defined as Checkboxes that when clicked I would like to show specific regions that contain fields that are specific to that checkbox selection. There are currently four selections available. There are two selections that would show one region and the other two selections would show the other region.
    Please let me know if I need to clarify anything.
    Thanks,
    Joe

    There is an out-of-box solution that may help you - check out the "Customisation" section in the region properties.
    Otherwise, you might like to explore using a Dynamic Action to show/hide your region based on an event on your relevant checkbox.
    Either way, you should have a declarative solution when you thought you might need to hand-code some javaScript :-)
    ps - thanks for providing your Apex version.

  • Dynamically show/hide regions out of the application workflow

    hi,
    is it possible to show/hide regions of a page dynamically with a "select list with submit" item?
    regards

    Hi,
    Do you mean "Conditionally display" items based on the value of a Select List with Submit?
    Andy

  • JavaScript to Hide Region

    I would like to hide an entire region based upon JavaScript. I can't use the conditional display of a region because this is on-demand and can't submit the page to check value. I can hide specific values, but the labels remain and the region border remains. Here is what I have so far.
    onchange="Show_On_Selectlist_Value('P15_SIRT_DCSN_ID','6');"
    <script>
    function Show_On_Selectlist_Value(pParent, pValue)
    var rv = $x(pParent).value;
    if (rv == pValue)
    html_ShowElement('P15_RR_COMMENTS');
    html_ShowElement('P15_RR_USER');
    html_ShowElement('P15_RR_DATE');
    else
    html_HideElement('P15_RR_COMMENTS');
    html_HideElement('P15_RR_USER');
    html_HideElement('P15_RR_DATE');
    </script>

    For the region you want to hide, provide a value for the 'Static ID' attribute. You can then use the built-in javascript functions '$x_Hide(pnd) and $x_Show(pnd) 'to display or hide this region.
    example $x_Hide('REGION_STATIC_ID') http://download.oracle.com/docs/cd/E14373_01/apirefs.32/e13369/javascript_api.htm#CHDDAGFE
    varad

  • Hide Region action menu

    Hi,
    I created a region out of taskflow. When I make show header, it shows both minimize icon on the left top and action menu at the right top(control flow case). I need to display only minimize icon and hide action menu at the right top corner. How to hide the action menu from region?
    Thanks,
    $N

    Hi,
    I don't see this in ADF region Which release of JDeveloper do you have ?
    Frank

  • Hide Region from Dynamically

    Hi, everyone
    Is it possible to dynamically hide a region?
    I have an HTML region with an <IMG> in it and i want to hide it after a report is fully displayed. am i able to do something like this?
    Thanks in advance
    Daniel

    Hi Daniel,
    I think what you are looking for will not work, only in case if you use AJAX to call your report.
    To my knowledge APEX doesn't return anything to the browser until it is finished rendering the page. So if your report takes longer to render, the part above the report region will not be sent to the browser until the report and the regions below are rendered.
    If your "please wait" is integrated into a region on the report page it will not have a real effect. Maybe you should go with the example Andy provided.
    Patrick
    Check out my APEX-blog: http://inside-apex.blogspot.com
    Check out the ApexLib Framework: http://apexlib.sourceforge.net

  • Want to Hide region

    Hi All
    i had created one form and report on a single page of application.But in my case if user will insert new data in form and press CREATE button then user will stay on same page and form will disappear from the page and data will insert into intereacirve report also.
    How could i get this?for that should i need to write any java script ya smthing...
    please let me know
    Thanks
    rommy

    Rommy,
    I copy your page to page 2 as I don't want to mess up with your code. Please take a look at it. Again, there might be other easy way to do this. I am also a learner, so, if there is better way, please share with me as well.
    What I have done was,
    1. Create a hidden variable for display status for Form region
    2. add a button in the report region to basically add new customer
    3. when that button click, set the display to 'SHOW'
    4. add conditional display in the form region to display if the display status variable is 'SHOW'
    5. add conditional display in report region to display if the display status variable is not 'SHOW'
    6. add a process to change the value of display status to 'HIDE', and that process will execute only when user click on either 'CREATE' or 'APPLY CHANGE' button
    7. modify the cancel button to set the value of display status variable to 'SHOW'. that way when user click on cancel in the form, it should display the report again.
    HTH.
    SHY

  • How to hide region

    Hi, I created a region in page 0 in my apex application. I understand that anything in page 0 apply to all pages. Anyway my problem is that the region title shows on everything page. Is they a way to hide the region?

    dave_414 wrote:
    Also the region type is html text(escape special characters). I dont have anything in the source but I have  javascript code in the region header.
    Why are you persisting with this flawed approach when it has been repeatedly pointed out that a HTML Text (escape special characters) region is totally unsuitable for use as a JavaScript container? Use a basic HTML region with No Template, put the script in the region source, and none of these absurd workarounds are required.

  • Conditionally Hide Regions based on :APP_USER

    Hey Guys,
    I have a pretty straight-forward question. I'm trying to hide a region unless the user = "ADMIN_JOHN" OR "ADMIN_TOM". Can someone please tell me: 1.) the condition type, 2.) what to write into expression 1 (and possibly expression 2).
    I've tried a ton of things, I must just be getting using the wrong syntax.
    Example:
    Condition type: Value of Item in Expression 1 = Expression 2
    Expression 1:   :APP_USER
    Expression 2:   "ADMIN_TOM" or "ADMIN_JOHN"Thanks a lot,
    Mauricio

    Hello Mauricio,
    Try this:
    Condition type: Value of Item in Expression 1 is Contained within Colon Delimted List
    Expression 1: APP_USER
    Expression 2: ADMIN_TOM:ADMIN_JOHN
    Greetings,
    Roel
    http://roelhartman.blogspot.com/

  • Printing: Hidding Regions

    Hi Everyone!
    I have this page that has 3 regions. the first region has buttons, the second has a list of items and the third contains the table. I would only like to print the region that has the table when going to File->Print without selecting the "Print selected items" option from the web browser. Plus I would like for my people to go green and print less pages as possible, trying to condense everything to one page.
    Is there a way when printing a page some items can be hidden so everything can fit in one page?
    Thanks,
    Bino

    Hello Bino,
    >> I was trying what you suggested and it seems that regions cannot be hidden when I try to print.
    I’m using this technique myself, so I know that when applied correctly it is working.
    >> Any help?
    It’s hard to help you when you didn’t give us any information about what you did, the code you have used, etc. However, the following is a code I’m using in one of my pages, to hide a region:
    <style type="text/css">
    @media print {
      #R3404110703102951 {
         display: none !important;
    </style>The ‘R3404110703102951’ is the specific region ID you want to hide. You must use a specific CSS ID selector so other regions on the page, which are using the same generic region class, will be printed.
    If this example is not enough, please give us some more information about your scenario, or even better, put an example page on apex.oracle.com.
    Regards,
    Arie.

  • Show/ Hide region based on button click

    Hi,
    I have two report regions. When I press generate report button then, one region has to be displayed.
    I have an item "select list with submit " and if select some value from the LOV in the select list then the second region has to be displayed. Over all only one region has to be displayed at a time.
    Thanks in advance.

    See this thread for a possible answer: Hide/Show Region With Javascript
    Thank you,
    Tony Miller
    Webster, TX

  • Show/Hide Regions using list (Button List Template)

    Hi,
    I have a page on which i'm using list (Button list - Template). Below lists, I have multiple form regions. When a user opens that page, all regions should be visible and the focus should be on 'Show All' list. However, Region 'Terms' should only be visible when list 'Terms' is selected. The same functionality should apply to other regions and lists. I have seen that Oracle has used a similar functionality when an Item on a page is clicked or opened.
    Does anybody know how to do it?

    I'm trying to use the hide/show region in the posting to hide a button region when I click the button.
    When I click my button it calls SubmitCmd(sCmd) and hits the alert popup "Here we go!" but then all the AJAX inserts happen and THEN the region hides.
    I guess the alert is Async and the $x_Hide(l_Item); is not or something like that??
    How can I hide the region and then process the rest with the same button click?
    Or how can I hide just a normal button when I click it.. same thing though, need to do it before processing of AJAX inserts.
    function SubmitCmd(sCmd){
    var lQuesID;
    var elmName;
    var elm;
    lcontinue = true;
    showMessage('');
    alert('Here we go!');
    $x_Hide(l_Item);
    var lAdtUseID =html_GetElement('P3_AUDIT_USE_ID').value;
    etc.. a bunch of AJAX inserts, etc..

Maybe you are looking for