Adding logic to the hide/show

Hi Guys
I am pretty new at this so please excuse my ignorance. I have added hide/show regions into a cell of an advanced table. In the VO I also coded in the boolean decode.
So now when I run my page I get the the following: where there is details for the cell the cell is in Hide status, when the details are null its in show status.
The decode is as follows: decode(contact_details.contact_name,Null,'0','1'). The attribute is set to Boolean.
My issue is when I click on the hide/show link on the page it does not "work". ie: if I click on the show status it does not toggle to hide status and visa versa.
Am I meant to add logic to the controller?
Thanks

Is your page embedded in a workflow page or notification? If so, then you cann't have hide/show action rather any action on your page as per workflow standards. They require you to embed a region and not a page.
--Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • Can we hide the arrow icon in the hide/show link ?

    well
    i need to hide the arrow icon in the hide/show link because this icon makes the printer prints many page for only one page print request
    so if anybody have any idea about this please inform ...
    thanks in advance

    i alreay use printable page and when i print the page prints many pages the first one with the page itself while the others blank white papers but have only the arrow of hide and show links
    ???

  • Change the Hide/Show text in a OATable

    Hi All,
    Be default when you add a detail region to the table, it displays the text Detail as column header and Hide/Show text in the column(along with +/-). I want to change the text to something else.How can i do it.How do i access the bean programatically?
    Thanks
    ~

    Hi,
    It is not possible to change the text of the hide/show header.You need to log an ER with oracle to get this fixed.
    Regards,
    Guru Krishnan V.

  • The recent upgrade for i-tunes prevents me from adding and using the Field, "Show". How can I add this field in i-tunes?

    The recent upgrade for i-tunes prevents me from adding and using the Field, "Show". How can I add this field in i-tunes?

    Hold down shift as you right-click > Get Info to get the old style dialog box.
    tt2

  • DetailStamp - Don't want the Hide/Show feature

    Hi,
    Showing master with detail table using detailStamp facet and following the the instruction posted to expand all initially.
    Is there a to skip the ">Hide" and "+Show" altogether?
    I tried to switch using af:showDetail instead of detailStamp and is able to only show icon with no text of show/hide but the default expansion is no longer working.
    Any help is appreciated.
    Mel

    My view source is actually showing x2n x5y for the Hide/Show cell but wrapped inside a div.
    <td class="x2n x5y" nowrap><div><a onclick="return _submitHideShow('_id37',1,'hide','masterTable','masterTabledd1','1')" href="#" id="masterTabledd1"><span title="Select to hide information" class="x52">&#9660;</span></a><a onclick="return _submitHideShow('_id37',1,'hide','masterTable','masterTabledd1','1')" href="#" class="xl">Hide</a></div></td>
    So I tried to do the sugesstion
    <afh:head title="My page">
    <f:verbatim>
    <style type="text/css">
    .x2n x5y { display: none; }
    </style>
    </f:verbatim>
    </afh:head>
    and it didn't worked.
    I have also tried .x2n .x5y which does not worked too. However, if I do just .x2n, it works but all the .x2n cells content disappeared which is not what good.
    Any more ideas would be greatly appreciated.
    Mel

  • Problem in Hide/Show in a Table Row

    Hi,
    i have to create 4 pages and each page has a table region with displaying records and a column "LINK" to go to the next page with the parameters from that record. Every link has a batchId and one another Id as parameter to next page. The next page reads the parameters and queries the corresponding table for details of that results table region contained in that page.
    Thus i have 4 pages with 4 table regions and each table region is associated with a view object which is based on an EO connected with a database table. (4 VO's).
    Now in every table i have a detail region (hide/show) which shows error records for a row ....
    thus there are 4 ViewLinks for all 4 VO to a single ERROR VO.
    I have 4 instances of ERRORVO in AM like ERRORVO1, ERRORVO2, ERRORVO3, ERRORVO4.
    Now, the hide/show region is working properly on the first 3 pages with proper navigation to pages.
    Then, i created the 4th page and created the table region in the 4th page.
    From the 3rd page i have passed 2 parameters through the link and also retainAM=Y.
    i have captured both parametres and call a method to populate data in table of 4th page.
    Successfully done..running properly....
    Now i added the detail region which is a table as previous pages in the 4th page with ERRORVO4...
    Then when i run the page i get the 1st page and thrugh link i move to 2nd and to 3rd page. But when i click on the link on 3rd page to move to 4th page i m getting "NullPointerException" with "check Inner table properties"
    Now i removed the detail region (Hide/show) only from the 4th page and again run the page . its working properly for all 4 pages with proper navigation but i am not able to see errors with hide/show on 4th page and it is required.
    i m not getting what could be the reason...
    do i need to remove retainAM=Y from the page navigation links.?????
    and is there anything like we cant create more no. of instances (4) of a single VO in an AM.....????
    Any alternative for showing the errors on 4th page with Hide/Show or without Hide/Show????

    Thiago,
    Thanks for the quick reply.
    I am now getting the following error below:
    Am I suppose to add another field to my VO select?
    oracle.apps.fnd.framework.OAException: Detail View Attribute Name is not set for the table even though a detail named child has been specified. Please specify a Boolean or String ("Y" or "N") view attribute for this table property.
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1146)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1794)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:463)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:384)
         at OA.jspService(OA.jsp:40)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:139)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)

  • Knowing which Row was selected when Hide/Show is clicked

    Hi everyone,
    I have an advanced table, with some search criteria that works. I have added a "detail" flag and when I click the link Hide/Show, the details are displayed.
    How can I get in the code which Hide/Show link was clicked? I am more interesting in getting the Row from the VO which the Hide/Show link was clicked?
    When I get the "event" parameter from the pageContext (pageContext.getParameter("event") ) it returns "hide" or "show", but I don't know which was row that was clicked.
    What I am trying to accomplish is the following. In my advanced table I have "Select" checkBoxes. I want to add the "Hide/Show details" functionality and try to have the details displayed in an advanced table with its own "Select" checkBoxes.
    Can it be done?

    Hi,
    Create a Primary Key in View Object's Query for the table.
    Now to know on which row hide/show has been clicked you need to capture the row reference which is nothing but Primary Key for that row.
    Use this code in processformrequest:
    if(("hide".equalsIgnoreCase(pageContext.getParameter("event"))))
    String rowReference = pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
    TestMassDeleteSearchVORowImpl row = (TestMassDeleteSearchVORowImpl)am.findRowByRef(rowReference);
    String lname = (String) row.getSelectFlag();//to get the value of checkbox
    Thanks,
    Gaurav

  • How is a JQuery Vertical Accordian Different Than A Hide-Show Region

    Hello Everyone.
    I an using Apex 4.0.1. I recently learned how to create a JQuery vertical accordian. I'm using the sample accordian that Patrick Wolf recently created/posted. It uses a really nice "accordian template" that he put together. It's really quite useful when it comes to saving space and all on a page.
    Then I began wondering: How is this accordian different than Apex's own builtin Hide-Show Region template?
    And so, I created a sample page on my workspace in apex.oracle.com. I placed a JQuery vertical accordian that consists of 3 regions: 2 reports and a chart. I added a little bit of JQuery to Patrick's template that causes all 3 accordian slices to be closed as opposed to the default behavior of having one slice always open. I also added code that allows a user to re-size the entire accordian either vertically and/or horizontally.
    I then created 3 additional regions that mimic the first 3 regions above. These I placed in "column 2" on the page. For each region I assigned the "Hide-Show" template.
    As far as I can tell, both the accordian and the Hide-Show regions provide the same functionality.
    For the interested, here is a link to my page:
    http://apex.oracle.com/pls/apex/f?p=49919
    The app has open authentication assigned, and so, no login credentials are needed. Please click the "Accordian" tab.
    I realize that the accordian has more flexibilty in that one may add features like choosing to collapse/not collapse all slices and re-sizing, etc. I suppose one could do similarly for the Hide-Show regions using Javascript or JQuery but it would likely be an effort.
    Admittedly, such added features are cool and all. Still, it's been my experience that in the majority of business-like production environments, such "cool" features are pretty much useless. For example, I do not see how re-sizing the accordian or Hide-Show regions has much purpose. In fact, such "cool" features often get in the way of the main goal of the application.
    Of course, a JQuery accordian may also be created that expands/contracts slices "horizontally". I do not know of any way to do the same thing using Hide-Show regions. If someone does know how to do this, I (and likely others) would sure appreciate you sharing how.
    So, then, with respect to basic functionality (saving page real estate by encapsulating several regions), how is a JQuery vertical accordian any different than Apex's own builtin "Hide-Show" region?
    Thank you all for your thoughts/adice/code.
    Elie

    Hello Jari.
    Thank you for your help.
    Yes. Now I do understand what it is you are doing in your accordian page. And also I want to thsnk you for providing the sample code on your page showing how to go about preserving the current state of the accordian when you navigate from/to the page.
    You commented that this kind of state preservation is not available with the Hide/Show region. I'm thinking that you are correct, though I think I once saw something about doing this posted in this Forum. I'll search through and see if I can locate it.
    In any case, have you (or anyone else reading this thread) any other differences between a JQuery vertical accordian and Apex's own Hide/Show region? Other than being able to apply Javascript to an accordian to do things like preserve it's state (like you did), what else may one do with an accordian that is not doable (or at least not easily doable) with a Hide/Show region?
    Thank you for any further advice.
    Elie

  • Error while trying to search in advanced table with hide/show region

    Hi
    I have search region and a results table with a hide.show in it.I did a search initially and got the results.I clicked on the hide/show region to see the details.
    I put another search criteria in the search region and tried to do a search.
    I am getting the following error
    The search cannot be executed because the table has pending changes that would be lost...
    Can anybody help me on this please....
    Message was edited by:
    user580745

    Any setter/getter method being used on hide/show action? How are you enabling the details? Is there a transient column in your VO?
    --Shiv                                                                                                                                                                                                                                                                                       

  • Hide / Show region template - how to make it stay visible after NEXT& PREV?

    Hello,
    I am using the Hide / Show region template (by the way great idea to create this template ;)
    By default the region is hidden. If i want to see the region content (it is a report) I click on that icon and it becomes visible. For my report I use the pagination "ROW Ranges X to Y of Z (with pagination)".
    The issue is that if I click NEXT of Previous, the region is closing (hidding).. and in order to see the next / previous page of my report I have to re-open it..
    Is there any known workaround for this?
    Thank you in advance
    Anca

    I would start at Re: Toggle all hide show regions on a page open/closed
    It references the using javascript to manipulate your hide/show regions. It should get you started in the right direction. It is about the most straight-forward example I have seen for what you are trying to do<br><br>
    You could trigger the javascript after your page is rendered by calling it from the page footer and reference the values of page items to determine if you are supposed to hide the region(s).<br>
    Create a page item called P88_HIDESHOW_REGION1 and set it's value to Y or N depending on whether the #REQUEST# has a string in it that is part of report pagination. If you hover over a "next page" button in a report, check out the resulting URL that pops up in your browser.....it looks like ..../f?p=900:210:8352027355600111016:pg_R_241403738845262873:NO&pg_min_row=31&pg_max_rows=30&pg_rows_fetched=30
    <br>
    You could do an instr(:REQUEST,'pg_R_') > 0 then set P88_HIDESHOW_REGION1 = 'Y' else P88_HIDESHOW_REGION1 = 'N'. Your javascript called at the footer of the page could set the display of the region to on or off depending on the result of P88_HIDESHOW_REGION1

  • Validation on items in Hide/Show Region

    I have a validation on an item that is in a hide/show region. I display all my errors in-line with the field. When the validations fires, after the page is submitted, the hid/show region is closed so the user can't see the error. Is there a way in the validation to open the hide/show region so the error can be seen? I had tried this in my validation, but it doesn't work.
    htp.p('<script language=javascript>
    document.getElementById(' || '''' || 'P507_REPORT_SCHEDULER' || '''' || ').style.display=' || '''' || 'block' || '''' ||
    '</script>');

    Hi,
    You can try below steps:
    1) In PR, get handle to Hide Show bean.
    OADefaultHideShowBean hsb = (OADefaultHideShowBean)findIndexedChildRecursive("beanID") ;
    2) Expand the bean by using 'setDefaultDisclosed' property.
    hsb.setDefaultDisclosed(pageContext, Boolean.TRUE) ;
    --Sushant                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Getting warning when trying to hide/show subforms

    hi,
    i have a pdf form with several subforms on it. I made the hide/show form option with the click event of some buttons.
    It worked fine.
    I then tried to do the same using the initialize method for the form.
    form1.page1.Subform1.presence = "hidden";
    It works ok. However i´m getting two warnings on designer preview. The warnings are
    unsupported 'presence=hidden' value on subform object 'Subform1'
    I know that somethimes the preview option of adobe designer is not the best way to test this. Could this be an error on my code or is it a "bug" from designer ? Should i rely on the form to work like this (with this warnings)?
    thanks

    Hi,
    the schema is already registered at another control center (belonging to another workspace).
    You cannot deploy from two different repositories into the same target schema.
    Unregister the location first from the old control center.
    Regards,
    Carsten.

  • How to control "hide/show" in a table on row level

    I was trying to implement controlling/rendering of "hide/show" in a table on row level, but no luck. Is is possible to render the "hide/show" in a table based on the row attribute? If the row attribute is "true", then render the "hide/show" at that row; If the row attribute is "false", then not render the "hide/show" for that row. Is this feasible? Thanks.

    I think this should be possible, what u need to do is as follows:
    1) Add a decode statement to your VO query to get 0/1 based on your condition like
    decode('',true,0,1) render_flag
    2) In VO attrinute mappings caste this attribute as boolean instead of number.
    3) Attach this attribute to render flag of hide/show via SPEL.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Disabling hide/show in finder sidebar

    Is there anyway to disable the hide/show feature in the sidebar of Mountain Lion. 

    HI Peter,
    Try repairing disk permissions on the 2nd MacBook.
    Quit any open applications/programs. Launch Disk Utility. (Applications/Utilities) Select MacintoshHD in the panel on the left, select the FirstAid tab. Click: Repair Disk Permissions. When it's finished from the Menu Bar, Quit Disk Utility and restart your Mac. If you see a long list of "messages" in the permissions window, it's ok. That can be ignored. As long as you see, "Permissions Repair Complete" when it's finished... you're done. Quit Disk Utility and restart your Mac.
    See if that helps.
    Carolyn

  • APEX Hide/Show Keep Expanded or Collapsed Upon Form Submit

    Hello all,
    I have a hide/show region that I'd like to keep expanded after clicking expand, entering something in a search entry box and clicking "Go". When the page refreshes, with the report results, I'd like the hide/show region to remain expanded. And I don't want it to collapse unless the user explicitly collapses it.
    I tried working with Carl Backstrom's Sticky Hide/Show code but I'm afraid that
    A) It seems to have been designed to work well with multiple pages (which I'm not necessarily trying to do ... I've only got one page I'm working with in this instance), and
    B) Template 20 (the one I am working with) seems to be somewhat (very?) different from Template 18 (the last template I see that Carl provided example edits for).
    So ... has anyone else tried this? Or is there a website or blog entry or forum thread I could look at that would provide me with the starting point for the direction I'd like to go with this?
    Any information or advice you can provide would be most appreciated.
    Kind regards,
    Melanie

    I have the same issue - did you ever come up with a solution?
    Thanks, Stephen

Maybe you are looking for

  • I have a new hard drive, can I pull my contacts and ical from my iphone?

    I have a new hard drive and I would like to pull my ical and contacts from my iphone to replace what I lost but when I sync my phone it doesn't bring the data onto my computer and if I choose sync calendar and contacts it seems to want to erase the p

  • Terminated by signal 11 error for reports

    Hi, I observed in internal concurrent manager log is sh: line 71: 3501 Segmentation fault and like showing the below ======================================================================== Starting PROD_0826@PROD Internal Concurrent Manager -- shell

  • Goods Issue Qty More than Purchase Order Qty ( Intercompany Stock trans. PO

    Hi All, I have following Issue, I can do Goods Issue more than qty which is in Intercompany stock transport purchase Order. I want to restrict this Process, It should not allow more than PO Qty. In the STPO Setting, Checking rule field is blank.Is th

  • Get Agent that triggered SCOM Alert

    Hi Everybody! Is there a way to get the agent id that has triggered an alert in SCOM? Maybe with Powershell or SQL Query? I was searching the Internet and tried some things but still have no solution for it ... We are using SCOM 2012 SP1. I need that

  • How to get the wsdl file

    hi all, here java people have given wsdl file to me, how to do the scenario, and how to get the wsdl file from the java people. regards, priya