$x_Show('Region')

Hi All,
Please let me know how to show the hide region by using html button? The above command is not working.
Thanks.

user-Rachna
user-Rachna wrote:
That's what I am doing it, using the static id in the html of the rendered page. This works fine but we have more than 10 hide regions on one page and I want to handle all of them with one button and one id. I am looking for a way to assign all of them manual static id.Are all those 10 regions renderd at the same time?
If only one is renderd at the time there is no problem. If there are several renderd at the same time you have a problem with all of them having the same ID. The $x_Show() function simply cann't handle that.
Are they all show at the same time? If yes then wrap them all up in one parent region and call the parent region.
Why you need to create a dynamic action, when you can handle in JS function and call from the button? The $x_Show() function can only take a DOM element or a ID of a DOM element as parameter
With a dynamic action you can besides selecting a apex element (item, region) or a DOM element also use a jQuery selector. Using this selector you would be able to show multiple regions with one action.
Or have multiple actions under 1 dynamic action. Where each action is associated with one region. This has the benefit of clearly showing there are multiple regions involved.
I really believe that dynamic actions are easier to work with they also have the benefit of documentation. The actions are right there in the apex builder. When a colleague comes along in a years time he/she doesn't have to go looking in the attributes of every button on the page. Just open up all the branches in the page overview page and there is a overview of everything that is happening on a buttons click. This becomes even more important with less obvious action like a onchange on a item that sets a application item with no visible change for the user.
And secondly for a simple action as show or hide there is no need to know javascript so your colleague without any knowledge of javascript can work with it too.
Nicolette

Similar Messages

  • 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

  • Show region on button click

    Hi, I want to show/hide a region when user clicks on a button.
    I saw the example in "http://apex.oracle.com/pls/otn/f?p=11933:29:3342298547087148"
    I created a region with static id = "REGION1"
    I then created a button "Test" with button type as "Template Driven" and action as "Redirect to URL without submitting the page".
    I selected the button template "BUTTON" and selected the Target as URL
    In the URL Target section I have
    $x_Show('REGION1');
    but when I run this page, and when I click on the button Test, I get a javascript syntax error.
    When I checked the call that is being made on clicking the button, I found that the call is as follows:
    javascript:'redirect('$x_Show('REGION1');)'
    This call indeed has syntax errors (notice the single quotes).
    I am not able to solve the issue.
    I read the "Advanced user guide" for APEX. The pdf also mentions the same steps to be able to call javascript function from a button. But this is not working.
    What is wrong here?
    Message was edited by:
    Ketan

    I made the region conditional based on the value of a hidden item. The condition I used is "when item in expression 1 is not null".
    Now initially, since the hidden item is null, the region is not shown.
    When I click the button, I am setting the value of the hidden item to 'yes' using javascript :
    $x('HIDDEN_ITEM').value = 'yes';
    But this does not work. I am guessing that even if I use an application process to set the item's value, I'll have to submit the page to display the region.
    I dont want to submit the page.
    I want the same functionality that Carl has shown in http://apex.oracle.com/pls/otn/f?p=11933:29:3342298547087148
    except the initial condition where the regions are hidden initially.

  • Hiding Columns, Regions and Tabs with Javascript

    Hello fellow Apex users,
    I am using APEX 3.2.1 and am having a Javascript problem. I am trying to make a column disappear as soon as the user selects “No” from the drop-down menu.
    TheAPI for disabling a column works fine: $f_DisableOnValue(pThis,pValue,pThat) and the code Example (goes on HTML Form Element attributes): onchange="html_DisableOnValue(this,'No', 'P16_EXAMPLE_COLUMN');"However, when I try to customize the API to “Hide on Value” nothing happens.
    This is the API: $f_Hide_On_Value_Item(pThis,pThat,pValue) and my code Example:
    onchange="html_ Hide_On_Value_Item (this, 'P16_BUDGET_CODE', 'N');" Please tell me what I am doing wrong. Also, please tell me if it is dynamically possible to make Regions and Tabs disappear.
    Thanks,
    Mauricio

    Okay, I was just trying to exlplain the idea...
    So you would have maybe 2 functions (I still don't know your exact requirement) like this...
    <script>
    function doOneThing(pThis){
    if(this.value == 'option1'){
    $x_Hide('P_ITEM2');
    $x_Hide('P_ITEM3');
    $x_Hide('P_ITEM4');
    else if(this.value == 'option2'){
    $x_Hide('P_ITEM5');
    $x_Hide('P_ITEM6');
    $x_Hide('P_ITEM7');
    function doAnotherThing(pThis){
    if(this.value == 'option1'){
    $x_Show('P_ITEM2');
    $x_Show('P_ITEM3');
    $x_Show('P_ITEM4');
    else if(this.value == 'option2'){
    $x_Show('P_ITEM5');
    $x_Show('P_ITEM6');
    $x_Show('P_ITEM7');
    </script>Then you could have an onload function in the HTML Body Attribute or the page like this...
    onload="doOneThing(document.getElementById('P_ITEM1'));"I can't write all of your code for you unless you give me a real example. These are ideas that I'm showing you - I would suggest that you try and take the time to learn exactly what they're doing and then adapt, change or exapnd on them for your own needs.
    Cheers
    Ben

  • SQL Report Region

    Hi,
    I am using apex 4.0.1 and I have a page with several SQL Report regions. The user can edit the data in the report regions by clicking a column that uses a href link to open a DML page in a modal window. The user can then amend some data in the modal window, press save which closes the modal window and uses the partial page refresh process to refresh the SQL report region. (Using apex.event.trigger('#SOME_REGION'),'apexrefresh')).
    If I navigate through the report to show rows 31-45 and then click on a href to edit a record. On pressing save, the report is refreshed but the rows displayed goes back to 1-15.
    How can I get the report to stay showing the rows 31-45?
    Cheers
    Paul.

    I believe this answers my question
    http://monkeyonoracle.blogspot.com/2010/11/refresh-report-region-and-pagination.html
    Edited by: pjturley on Jan 10, 2012 1:14 PM

  • Double clicking on a region to open it no longer works...

    After installing OS 10.8.2 I have problems with Logic 9.1.8. If I double click on a region in the Arrange window, it used to open on the lower part of the Arrange window so I could edit notes, velocity settings etc. Now, when double-clicking, the lower part opens for very short time (0,1 second) and then disappears. I have deleted prefs files, restarted the iMac etc., but nothing helps. - What should i do? Is there any other way to open a region in the lower part of the Arrange window?
    I just discovered that I have the same problem when double clicking on instruments. They open for a very short while (0,2 sec) and then close. This means that I can't adjust parameters in the pop-up window (instrument, filter etc.). Very strange. I remember I had this problem some weeks ago, but it disappeared. Not now.

    A few ideas..
    Have you checked your mouse/trackpad settings in System Preferences.... in case something got messed up there... as it sounds like an input device issue in some ways
    Also, check Logic Preferences/General/Editing and make sure that Double Clicking a Midi region Opens... is set to Piano Roll (Even if it is.. try unchecking it.. close prefs.. and recheck it again..)
    Finally, you said you had trashed the pref files.. which one(s) did you trash? Did you also trash the CS one too.. as it could be related to a control surface issue.. I mention this because a client of mine had an issue after installing an iPad Controller for Logic...  If you have an iPad/iPhone.. make sure the iPad/iPhone is powered off (Not just asleep) and test after that too...

  • How can I use One Plugin with all his outputs on the region

    Hi All
    In Cubase I have a PlugIn Manager and when I have a Plugin like Omnisphere with 8 outputs I can route each output on one sequencer region.
    Can I do This as same in Logic?
    Exemple
    I will open a new Midi Instrument on a region. Than I Know I have 8 outputs and than I will have 8 Lines and each line I will create Midi comandos for each output separatly.
    can I do this? Or any Idee how can I do this?
    Thanks for help
    Marco

    When you load a plug-in that's capable of multi-output, you do have a menu choice about that when you load it, yeah ?
    You can create the additional channels that you need in the mixer - press the '+' button on the channel strip and it does it for you.

  • Can't fade more than one region at a time?

    Tell me this isn't so... I'm reading the manual, maybe I'm over looking it, I've selected multiple files and tried to use the fade tool and no dice - is this for real? It can't be done?

    1. Select the regions.
    2. In the Region Parameter Box in the Inspector, you can choose fade types, times, etc.

  • Error while running a page which contains a region

    Hi ADF Experts,
    I am having a jsff page fragment. The fragment has panelbox(with some content and button) and a panel group layout(which contains a region).
    On click of the button the panelbox is disclosed to false and the region is to be rendered.
    But on page load I am getting the below exception. Earlier the page was coming fine. After dragging the region I am getting this error.
    Hierarchy is as below:-
    <af:panelBox text="Search Filters" id="pb1" type="stretch"
                     inlineStyle="width:inherit; height:inherit;"
                     binding="#{pageFlowScope.TreeModel.searchFilterPanelBox}"
                     partialTriggers="cb3">
    <af:commandButton text="Search" id="cb3" partialSubmit="true"
                                    actionListener="#{pageFlowScope.TreeModel.searchorderProposal}"/>
    </af:panelBox>
    <af:panelGroupLayout id="pgl15" layout="scroll" binding="#{pageFlowScope.TreeModel.searchResultsDisplay}" rendered="false"
                            partialTriggers="cb3">
       <af:region value="#{bindings.BTFSearchResults1.regionModel}" id="r1"/>
    </af:panelGroupLayout>
    The region contains
    <af:panelGroupLayout id="pgl1" layout="scroll">
        <af:panelGroupLayout id="pgl16" inlineStyle="width:1239px; height:inherit;"
                             layout="horizontal">
    <!--some content-->
    </af:panelGrouplayout>
    onclick of the button the region is rendered as true and the disclosure of the panel box im setting as false.
    But after adding the region im getting below error.
    Caused by: java.io.FileNotFoundException: MDS-01500: The MDSObject /orderproposals.jsff is an XML document and cannot be loaded using StreamedObject API.
    Thanks in advance,
    Roy

    I'm not sure about this but using rendered is always a problem if you want to show show the element during a ppr (which is what you do AFAIK). Once a component has rendered='false' is removed from the component tree and can't be put back in there without a full page refresh.
    Try using the visible property instead or use an af:switcher component.
    Timo

  • Including page in a region : best practice

    Hello all,
    I know that this subject has been already discussed many times but my question is not really "how to do it"...but "is it the best way"?
    So the initial need was the following :
    I had to be able to include the content from a page in an application into the region of another application using a generic solution that allows end user to configure easily what page he wants to render without having to use Apex.
    For this :
    1. I first defined a plugin that allows to render an parametrized iframe into a region.
    2. I defined my plugin region on the first page that is linked with elements to define the parameters (page number to render, items and values to set on the page).
    3. Then the user can easily change the rendered page on the first application changing the database row that specify the page id.
    That is working pretty good but I would like to be sure that there is no proper solution because some customers do not really like the idea to have an application with embedded iframes.
    I considered a solution using PLSQL dynamic region, trying to retrieve the page content using an HTML post in PLSQL. But it was not really a success. After fixing access issues, I just noticed that the page was rendering but nothing was functionnal on it (buttons, process...) because of the unknown session context.
    I did not succeed to fix this.
    I also considered to use an AJAX with htmldb_Get but I do not really like this in that case. Because I want the region to be displayed on pageload. Then that does not really seem logical to make a server call to render first the original page and them refresh the region content.
    Moreover, I already used this in the past, and I also had issues about session context (processes not working and so on...)
    Do you have any other idea? Do you think the iframe solution is the best one?
    Thank in advance for your help and advices.
    Best Regards,
    Max

    Hello,
    because some customers do not really like the idea to have an application with embedded iframes.How do the customers know whether you are using iframes or not. If you apply page templates similar to "pop-up" and if you use same CSS definitions as of calling application for embedded application, then they can't make it out whether is part of application or iframe calling another application.
    Regards,
    Hari

  • Query Scenario Help - Average of Multiple Regions

    Hi, I have a query scenario I can't create and I hope someone can help with.
    The user inputs a sales Area and the report is to output the regions in that area and provide the Volume (easy) and the Average of all the presented regions.  The problem is that the number of regions is dynamic so I don't know how to go about determining the average and making it constant across the regions.  The user can also drill down on a region to present divisions and I would then need the average for the divisions this time instead of regions.  Can you help?
    Example 1
    Input Sales Area 1000000
    Region               1000001  1000002  1000003
    Product1  Volume       100      120      105
    Product1  Average      108      108      108
    Product2  Volume       200      400      325
    Product2  Average      308      308      308
    Example 2
    Input Sales Area 2000000
    Region               2000001  2000002  2000003  2000004
    Product1  Volume       100      120      105      180
    Product1  Average      126      126      126      126     
    Product2  Volume       200      400      325      600
    Product2  Average      381      381      381      381
    To get this layout I have the following in the query builder:
    The 2 Products are in a structue under Rows
    The Key figures structure is also under Rows
    The Region is under the columns

    If you redesign the report slightly to move the "Average" to a column at the end of each row (which really makes more sense, IMHO), then the answer is easy. Just change the Suppress Results Row property to "Never" for Region, and change the Display Results As property to "Average" for Volume.
    You could also make this same change to Division and/or any other free characteristic they might use as a drill-across in the report.
    Hope this helps...
    Bob

  • Help needed for implementing master details region on the search page

    Hi All,
         I am new to Jdeveloper and OAF. I need to develop a sales order search page, for which the VO query is
         SELECT ch.order_number order_number
         , ch.attribute97 order_detail
         , ch.attribute14 sold_to
         , ch.attribute50 business_group
         , ch.source_doc_type source_doc_type
         , ch.line_number line_number
         , ch.transaction_amount transaction_amount
         , ch.split_pct||'%' split_percentage
         , jrs.NAME resource_name
         , jrr.resource_number resource_number
         , ch.processed_date processed_date
         , cq.NAME quota_name
         , ch.attribute34 transaction_type
         , ch.attribute35 order_type
         , ch.attribute51 product_line
         , ch.attribute54 city
         , ch.attribute55 state
         , ch.attribute56 district
         , ch.attribute57 area
         , ch.attribute61 salesrep_number
         , ch.attribute62 region
         , ch.attribute64 sales_org
         , ch.attribute68 terr_order_type
         , ch.attribute58 market_indicator
         FROM cn_commission_lines_all cl
         , cn_commission_headers_all ch
         , cn_quotas_all cq
         , jtf_rs_salesreps jrs
         , jtf_rs_resource_extns jrr
         WHERE cl.direct_salesrep_id = cl.credited_salesrep_id
         AND cl.commission_header_id = ch.commission_header_id
         AND cl.quota_id = cq.quota_id
         AND ch.direct_salesrep_id = jrs.salesrep_id
         AND jrr.resource_id = jrs.resource_id
         AND (NVL(ch.source_doc_type,'X') = 'EVEREST' OR NVL(ch.source_doc_type,'X') = 'SAP')
    AND (NVL(ch.attribute50,'X') = 'EMG' OR NVL(ch.attribute50,'X') = 'LSCA')
    I have 3 query parameters business_group, source_doc_type and sales order number.
    The results region should look like,
    Header region with order_number,order_detail,sold_to,business_group and the source_doc_type columns.
    The remaining fields go into the details region.
    Highly appreciate if anyone could help me on this.
    Regards,

    Hi,
    When I have a messagestyle layout for my header, I am not able to find the items in this region for the querycriteriamap. I need to populate the header region with values entered in the search region.
    For example: I create the OrderNumber messagestyledtext item in the messagecomponent layout of the header region. In simplesearchmappings, for the querycriteriamap, I am not able to find this item in the drop down for Results Item property.
    Please help me to understand.
    Regards,

  • I'm in cycle mode, and 'merge' is clicked in preferences. However, when I record, my previous track data keeps getting overwritten. Does anyone know what I'm doing wrong. Interestingly, I can still see the data in the region.

    I'm in cycle mode, and 'merge' is clicked in preferences. However, when I record, my previous track data keeps getting overwritten. Does anyone know what I'm doing wrong. Interestingly, I can still see the data in the region.

    jamestait wrote:
    when I record, my previous track data keeps getting overwritten.
    since you didn't specify, are you recording in a single take?
    http://www.bulletsandbones.com/GB/GBFAQ.html#multipassrecording
    (Let the page FULLY load. The link to your answer is at the top of your screen)

  • Can't view filtered VO properly in a dynamic region

    Hi all,
    I am using Jdeveloper 11.1.1.0
    I have a view object (myVO) that has some view criterias (FilteredVO1, FilteredVO2, ecc.)
    In myPage I have a dynamic region in which I can view different fragments. These fragments contain filtered data (FilteredVO1, FilteredVO2, ecc.), but I always see all the data (myVO)
    If I run the application module, in FilteredVO1, FilteredVO2, ecc. I see the data properly (I see the filtered data, not all the data).
    Also if I run a normal page (without fragments) with a panel tab for every FilteredVO, I see the filtered (and not all) data.
    In myPageDef I have set the property "refresh" on "ifNeeded".
    What's the problem? Any suggestions?
    Thanks
    Andrea

    Hi Andrea,
    Why do you want to set the refresh parameter? Is your task-flow has any parameters set..? Refresh parameter should be used only when you want the dynamic region to respond based on task-flow parameter. Otherwise, the dynamic region can automatically refresh based on different task-flow selection. So, precisely if you reset this param to default, it should work as expected provided these fragments uses different task-flows. See this document section [16.2 Creating ADF Dynamic Regions|http://download.oracle.com/docs/cd/E15051_01/web.1111/b31974/taskflows_regions.htm] for more info.
    Regards,
    ~Krithika

  • Help!  After validation failure, Detail region of Master Detail page does not refresh.

    Hello.
    I am running a validation to prevent deletion of a purchase order (PO) when invoices exist for the PO.
    When the condition is found (invoices exist), the deletion process is halted and a message is posted to the page.
    I would like for both Master and Detail data of the PO to be refreshed.  However, only the Master
    record is refreshed.  I get the following error for the detail data:  The detail is found through the Master Header primary Key (DetailRecord.PO_ID = :P230_PO_ID )
    ORA:01445: Cannot select ROWID from, or sample, a join view without a key preserved table.
    ORA-06510 - PL/SQL unhandled user-defined exception.
    I'm not sure why this message should come up.  I do not clear cache or reset the page or anything like that.
    Any hints?

    Just an FYI for everybody who may have this very same problem in the future.  I fixed the error and it had nothing to do with ROWID or views or anything like that.  Under the Page Rendering section where you define the region definition under the source section, I had included the 'order by' clause in my SQL statement.  This was the cause of my ORA-01445 error!  When I removed the clause from the source definition and instead included it within the Report Attributes by checking the Sort box for the appropriate column (thus allowing APEX to generate the sort for me), the error disappeared!  The Oracle error message would NEVER have given me a clue into what caused the error.  I just happened to think 'what if I take the order by clause out'!  How's that for a flukey fix! 

Maybe you are looking for

  • Invoice GL Date vs Journal Accounting Date

    I created an invoices in AP. The invoice date and GL date for the invoice is 12-JAN-10. I ran create accounting process. A journal was created in GL. The accounting date for this journal is 31-JAN-10. Why the accounting date for the journal is not th

  • Ipod Touch wont sync but Nano does...any ideas?

    My ipod touch is no longer syncing.  New one - 64gb.  I also have an 8gb nano - latest version and it syncs fine from same itunes.  Wondering if it is a hardware conflict.  I read about hp driver for scanne rconflict and uninstalled to no avail.  Out

  • Q10 USB not detected in Link or Blend

    Q10 SQN100-3 Rogers OS 10.3.1.1.1581 Link 1.2.4.27 Connects wirelessly by default when Link first installed.  Blackberry Device manager shows Y and Z drives. When wireless connections turned off in Link or turned off at device and USB connected: Wind

  • MacBook Air 2.0 Fan Noise While Idling

    I picked up a 1.86, 128 SSD MacBook Air last Sunday and have run into an issue with the fan. At first, the computer was near silent as I've experienced with every Apple laptop I've used. However, while reinstalling OS X to trim the printer drivers an

  • The selected data source is read-only

    Anyone know how to fix this "issue" The selected data source is read-only. You cannot change the view configuration. Thanks in Advance.