Show Hide Details AJAX

I tried to be slick and include a yui/javascript function in my report page.
The link being a column in the report table.
Trouble is I don't know where to put:
onclick="YAHOO.example.resize.panel.show(f?p=&APP_ID.:100:&SESSION.::&DEBUG.::P100_INFO_ID:#ID#)"

I was reading a blog about someone able to do AJAX stuff .. so I tried again only to get
"Illegal Characters" error in the javascript console
This is what I put :
onKeyUp="javascript:getSIDS(this);”
and this is what my header has
<script language="JavaScript" type="text/javascript">
function getSIDS(servID)
var ajaxRequest= new htmldb_Get(null,&APP_ID.,null,100);
ajaxRequest.add('P100_INFO_ID',servID.value);
alert('ajaxRequestis '+ ajaxRequest);
ajaxResult = ajaxRequest.get();
alert('ajaxResult is '+ ajaxResult);
if(ajaxResult)
html_GetElement('sid_div').innerHTML = ajaxRequest;
else
html_GetElement('sid_div').innerHTML = '.. No Data ..';
ajaxRequest = null;
</script>

Similar Messages

  • Show/hide detail row

    Carl:
    See http://htmldb.oracle.com/pls/otn/f?p=24317:6
    I modified your nifty example at http://htmldb.oracle.com/pls/otn/f?p=11933:1
    to use images instead of the show/hide detail labels.
    I had to make some minor mods to the code, but it works fine...for the most part.
    I used the option to show only 1 detail row at a time.
    If I click the show/hide images rapidly (actually I am not sure it is the rapidly part, haven't been able to reproduce it consistently), I end up with a situation where more than 1 detail row is visible at the same time.
    Can you please take a look and see if I am doing anything wrong?
    Thanks

    Mostly in IE, here is an example
    http://i3.tinypic.com/vo3bbn.jpg
    I am not sure of the exact sequence of clicks I did to land up at the screenshot, but I think rapidly clicking that show/hide image does it.
    Taking a look at the code
    function showdetail(t,i)The "t" that I am passing in to the function would be the IMG element in my case.
    I modified the Toggle function as
    function ToggleLabel(pThis)
            var l_show_img="/i/themes/theme_10/showhide_show.gif";
            var l_hide_img="/i/themes/theme_10/showhide_hidden.gif";
            var l_show_re=new RegExp(l_show_img+"$");
            pThis.src = (pThis.src.match(l_show_re)) ? l_hide_img : l_show_img;
    }where I flip the src attribute of the image.
    I am not sure what is wrong. If something were wrong, why would it work at all? Why would clicking stuff fast cause it to break?
    Thanks for any help.
    And I am not using AJAX at all, just your plain DHTML example at 11933:1
    Ah, I got it. Doing the following reproduces the bad state in both IE and FF consistently
    1. Launch the page in a new session
    2. Click the show/hide image on the first row to show the text
    3. Click it again to hide it
    4. Now click the image on the 2nd row.
    This shows the 2nd row's description...but it also shows the first rows description!
    Any idea why?
    Thanks

  • Question for Carl about Show/Hide Detail Rows

    Carl,
    In your example http://htmldb.oracle.com/pls/otn/f?p=11933:1:2549476012987299
    is there a way to modify the javascript code to include multiple variables being passed in, vs just the pID being passed in?
    How can I pass the additional variables below:
    function ShowHideDetailRow(pThis, pTable, pTR, pID,pID2, pID3){
    var l_Detail = 'detail' + pID; //how can I append pID2 and pID3 here?
    var l_NumCells = pTR.cells.length;
    if (pTR.rowIndex == pTable.rows.length - 1 ||
    pTable.rows[pTR.rowIndex+1].className != "detail")
    gURL = 'f?p=&APP_ID.:12:'+html_GetElement('pInstance').value+'::NO:RP:P12_SID:'+ pID;//how can I append pID2 and pID3 here?

    Hello,
    Sure just add the parameters in like you have shown javascript is very lenient when it comes to adding parameters.
    And as for the URL all you have to do is follow the APEX URL syntax.
    http://download-west.oracle.com/docs/cd/B31036_01/doc/appdev.22/b28550/concept.htm#BEIFCDGF
    Carl

  • Show/ hide child row in the same report

    Hi,
    The whole day i'm looking for the trick/ example to get the following done.
    i want to have one report on a region, what is showing as default only parents, like:
    company name | total_employees
    A | 200
    B | 250
    When clicking on a a record or + sign (or something like this) the child records of each parents must also show on the report.
    So something like the following:
    company name | department | total_employees
    A | dep: T | 150
    A | dep: P | 50
    B | dep: K | 250
    The functionality must be something like this. The most importent thing is that the data will be in the same report. So i don't want to go to a other page.
    Hope someone can help....... tnx in advanced.

    Hi,
    Have a look at: [http://apex.oracle.com/pls/otn/f?p=11933:13]
    And/or look at: Show Hide Details AJAX
    Andy

  • Dynamically show and hide detail columns according to master column value

    i want to create a page where 2 level master detail.
    that is main master region with search option for query (query region)
    2nd detail with table
    and 3rd detail. (1-2-3)
    Here in 3rd detail region, some fields should be shown and some fields hide according to the value of one filed in 2nd detail table(for the current selected row).
    please advice
    or
    please point me to any similar posts

    Zam,
    show/hide is only beneficial if its optioanl for user to hide or show the fields at your detail region.If it is not , you will have to use PPR and transient VO approach.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to get Hide/Show using details in advanced table

    Hi,
    I develeoped one custom page using advanced table region and i used detail from advanced table for getting hide/show functionaliy in one column in that table. It is showing hide/show properly..but if I click on Show it is not doing any action..pls let me need to write any code in CO for getting action..
    Thanks in advance,
    Hanimi......

    If you are using the same VO and you execute in on page load then it must populate all view attribute.
    Check in back end that is there any data in that VO attribute exists or not.
    Thanks
    --Anil                                                                                                                                                                                                                                                                                                                                                                                                               

  • Error while trying to view the details table from Show/Hide icon

    What we are having is two tables, Outer and Inner, having Outer VO and Inner VO,outer VO is linked with inner VO. Now when I am trying to view the inner table
    through Show/Hide icon to see the details of the table ,I am getting an error like ...
    The record with primary key values {2280} could not be found in view object MisForecastHeadOfiiceAM.InnerTableVO_OuterInnerVL_InnerTableVO.
    I want to know how this error can be resolved

    Hi Abdul,
    We are not getting error while searching. As said earlier
    While search for the first time > We could see proper results in out table and Even show/hide is working fine and display correct data in Inner table
    When searching for the second time with different criteria > We could see proper results in outer table and on clicking show/hide (to view inner table data), we are getting error.
    The record with primary key values {2280} could not be found in view object AM.ViewLinkVL_InnerTableVO
    From the error message, we found that its trying to get the row (of inner table) pertaining to first search results and not for the outer table row in context to second search results.

  • Changes in detail-disclosure aren't kept over show/hide

    Dear forum,
    In a table with detail-disclosure is the filled-in data in hidden fields not kept when using the show/hide function.
    Is this is a bug in build 10.1.2 build 19? Is this solved in the new build? Or is this expected behavior?
    Is there anyone who encountered this problem or who found the solution for this?
    Your help is much appreciated.
    Arjen

    Arjen,
    This is fixed in release 10.1.2.1.
    Steven Davelaar,
    JHeadstart Team.

  • Report row with detail (AJAX)

    Hi,
    In Carl's report row with detail (AJAX) demo, is there any way to show all detail row by default when the page is loaded?
    http://apex.oracle.com/pls/otn/f?p=11933:13
    Thanks.
    Andy

    Hi Andy,
    In Carl's example, the "details" content seems to be from a table that has a one-to-one relationship with the main table. If this is the case, you would probably find it easier to use a "Named Column (row template)" type of report template and lay out the report as you need it rather than use Ajax
    Otherwise, I'm sure it would be possible to loop through a report and make a series of Ajax calls to retrieve the details should there be multiple records required.
    Andy

  • FM9 crash during show/hide of conditional text

    I'm having a vexing problem with two of my chapters: whenever I attempt to show/hide the conditions, FM9 crashes with "Internal Error 9004, 6921852, 9677150, 0. Framemaker has detected a serious problem and must quit".
    A few things I've tried (as culled from posts on here):
    Updating to FrameMaker p250 from p237
    Saving as .mif, then opening and saving as .fm
    Changing the conditions on all chapters with the book open
    It's somewhat unpredictable. Saving as a .mif, then opening and saving as .fm worked once, but after performing an edit to the doc, it crashed again when toggling the conditions. Similarly, changing the conditions to all chapters with the book open seemed to avoid a crash, but trying it again crashed when it reached the problem chapter.
    It's definietly something in the file, as my co-worker will occasionally get the crashes with the the same chapters when showing/hiding conditions, but not always.
    Other details:
    My XP installation is up to date with all the Microsoft updates
    I'm using FM9 (unstructured)
    The docs in question are not "fresh" per se, but have been upgraded from FM8 to FM9
    Also:
    Our documents have conditions A, B, C, and D.
    In previous versions of Frame, we had been using the shuttle box interface for showing/hiding conditions: show A and B, hide C and D.
    Starting with FM8, we started using equivalent logical expressions: NOT "C" AND NOT "D".
    The crashing appears *not* to occur if I use the shuttle box interface. However, I'm told that we have use the logical expressions for some reason.
    Any ideas are appreciated. Thanks!

    SOLVED
    Here's my fix for Internal Error: 9004, 6921852, 9677150, 0 when saving as PDF, printing PDF, or printing to PS from FrameMaker 9 using Acrobat 9. YMMV.
    I could not reproduce this  Internal Error: 9004, 6921852, 9677150,0 when using conditions, so I do not know if this solution fixes the condition-provoked instance of  Internal Error: 9004, 6921852, 9677150, 0.
    Anyway, I uninstalled FM, rebooted, searched for leftover files, deleted them, rebooted, uninstalled Acrobat Pro Extended 9, searched for leftover files and registry entries, deleted them (probably missed a few), rebooted, removed the Xerox Phaser PS printer driver for my local printer (because it was PostScript, figured I should), rebooted, installed the Xerox Phaser PS driver, rebooted, installed FrameMaker, rebooted, installed Acrobat Pro Extended 9, rebooted, installed each patch for FrameMaker and Acrobat Pro Extended 9, rebooted, installed the MS Hotfix discussed here (http://blogs.adobe.com/techcomm/2008/07/hotfix_for_framemaker_1.html), and rebooted.
    All is now well for making PDFs.
    Sean

  • Show/Hide tabs in a report using profiles

    Hi,
       There is a need to show hide/show tabs based on User Profile or any other method.
       There are 1. Summary  2. Detailed Tab in report.
       For data analysts client want to show Detailed tab so that Analysts can work on Analysis.  Managers shoud be able to see only Summary tab.
      This is required to reduce no of modificatiosn required for reprots. This helsp to avoid prolifiration of reports as well.
      Pleas help on techniques/ tools to get this requirement at the earliest.
    Regards,
    Nanda Kishore B

    Hi Nanda,
    I do not think this functionality is currently available in WebI.
    However you could break these report tabs into two different reports and using access privilges make these two reports available to the concerned team.
    You can log a request at https://ideas.sap.com to directly work with the product group to check if this exact functinality could be included or not.
    Hope this helps.
    Regards,
    Manpreet

  • Show/hide bahavior not working in firefox or safari

    Here is my problem. The show hide behavior incorporated in DW
    CS3 is working fine in IE6 and 7 but not working at all in firefox
    and safari (both latest version). I have tried it on different
    event but nothing.
    My web site is configured that if someone click on details, a
    layer will become visible and the details will be showed. I know
    there is a work around and the simplest would be to have a new
    window open but this is not the style I want.
    Any help would be much appreciated.
    Thanks
    ASP

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <title>Untitled Document</title>
    <style type="text/css">
    <!--
    #apDiv1 {
    position:absolute;
    visibility:hidden;
    left:16px;
    top:14px;
    width:512px;
    height:394px;
    z-index:1;
    background-color: #FFFF00;
    #apDiv2 {
    position:absolute;
    left:14px;
    top:431px;
    width:513px;
    height:88px;
    z-index:2;
    -->
    </style>
    <script type="text/javascript">
    <!--
    function MM_reloadPage(init) { //reloads the window if Nav4
    resized
    if (init==true) with (navigator) {if
    ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight;
    onresize=MM_reloadPage; }}
    else if (innerWidth!=document.MM_pgW ||
    innerHeight!=document.MM_pgH) location.reload();
    MM_reloadPage(true);
    function MM_showHideLayers() { //v9.0
    var i,p,v,obj,args=MM_showHideLayers.arguments;
    for (i=0; i<(args.length-2); i+=3)
    with (document) if (getElementById &&
    ((obj=getElementById(args
    ))!=null)) { v=args[i+2];
    if (obj.style) { obj=obj.style;
    v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
    //-->
    </script>
    <script src="../Scripts/AC_RunActiveContent.js"
    type="text/javascript"></script>
    </head>
    <body>
    <div id="apDiv1"></div>
    <div id="apDiv2">
    <p>
    <script type="text/javascript">
    AC_FL_RunContent( 'codebase','
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','wid th','130','height','20','title','test','onfocus','MM_showHideLayers(\'apDiv1\',\'\',\'show \')','src','../Flash/liendurabilte','quality','high','pluginspage','http://www.adobe.com/s hockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','../Flash/liendurab ilte'
    ); //end AC code
    </script>
    <noscript>
    <object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0"
    width="130" height="20" title="test"
    onfocus="MM_showHideLayers('apDiv1','','show')">
    <param name="movie" value="../Flash/liendurabilte.swf"
    />
    <param name="quality" value="high" />
    <embed src="../Flash/liendurabilte.swf" quality="high"
    pluginspage="
    http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"
    type="application/x-shockwave-flash" width="130"
    height="20"></embed>
    </object>
    </noscript>
    Click here to show layer</p>
    <p>
    <script type="text/javascript">
    AC_FL_RunContent( 'codebase','
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','wid th','130','height','20','onfocus','MM_showHideLayers(\'apDiv1\',\'\',\'hide\')','src','../ Flash/lienGarantie','quality','high','pluginspage','http://www.adobe.com/shockwave/downloa d/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','../Flash/lienGarantie'
    ); //end AC code
    </script><noscript><object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0"
    width="130" height="20"
    onfocus="MM_showHideLayers('apDiv1','','hide')">
    <param name="movie" value="../Flash/lienGarantie.swf"
    />
    <param name="quality" value="high" />
    <embed src="../Flash/lienGarantie.swf" quality="high"
    pluginspage="
    http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"
    type="application/x-shockwave-flash" width="130"
    height="20"></embed>
    </object></noscript>
    Click here to hide layer
    </p>
    </div>
    </body>
    </html>

  • Show/Hide DVT Admin Menu Based on Entitlements

    Hi,
    We're using the DVT framework provided in Weblogic Portal 10.3.2 to create My Page functionality within our portal project. Part of the requirement is to offer limited functionality to non-admin users.
    For example:
    Portal Level Customization Menu
    - Show/Hide based on entitlements (we tried setting an entitlement of the Main page Book, and that worked, however after that we were unable to see the Customize Menu for any child Books/Pages)
    - Limit entries based on entitlements
    Book Level Customization Menu
    - Limit menu entries based on entitlements
    - Restrict the ability to rename book based on entitlements
    Page Level Customization Menu
    - Limit menu entries based on entitlements
    - Restrict the ability to rename page based on entitlements
    Portlet Level Customization Menu
    - Limit menu entries based on entitlements
    - Restrict the ability to rename portlet based on entitlements
    We've been able to eliminate DVT functionality for entire Books and Pages based on entitlements, however we can't find a way to provide limited functionality as described above.
    Any suggestions on how to accomplish this?
    Thank you.

    Sorry about the confusion. What I meant was, I tested with both setting entitlement and DA roles (separately) and found that the usecase you are describing works. BTW, you are right in that only visitor entitlement roles effect dvt functionality. I just wanted to check if setting DA roles wasn't causing some undesirable behavior.
    Back to the issue you are having, I am assuming you are talking about setting a 'view' entitlement for 'role1' on the primary book and logging in as a user that is not in 'role1' but has 'edit' rights on a child page or book of the primary book. In that case you shouldn't be able to see anything since you don't have view rights to the main book. If that is not the case, can you provide details about your setup?
    Here is what I tested and found working. Set an 'edit' entitlement for 'role1' and a 'view' entitlement for 'role2' on the primary book. When logged in as a user from 'role2' I cannot see the 'Customize' gear icon on the primary book but I can see the gears on child books, pages and portlets. I tested the usecase with non-primary books and that works too.
    Thanks

  • Show/Hide Permissions on the upload iview

    Hi All,
    I wonder, if there is some way to solve my problem?
    What I need is to add <u>Show/Hide Permissions</u> to the upload iview.
    Do you remember, we have  <u>Show/Hide Properties </u> on the upload iview, so that users can upload files and also add properties on the same screen (and they find it very useful). But if they want to change permissions, they have to return to the KM navigation and open permissions iview for the item. If I'll be able to add entrance to the permissions on the same screen, it will help a lot.
    Thanks in advance.
    Regards,
    Inna Karp

    Hi Inna,
    you would have to extend the upload screenflow by yourself, means to decompile the concernced classes and add your extra logic. But be warned: The upload screenflow has been grown in a long time, obviously without a cut and a redesign after having added different functionality. It's no fun at all to work with the sources. And it is full of (minor) bugs, what means that it will be under development with probably every patch arising. So if you make your own, extended screenflow, you will have the choice to work under a complete new namespaces (carrying old bugs over the time) or to make the extension again and again with every patch. Anyhow, it won't be that straight forward.
    > they have to return to the KM navigation and open
    > permissions iview for the item
    Normally, you will have come from the Navigation iView, so returning to it will happen automatically, won't it? Maybe as a workaround, you could add the command to open the permissions screen directly on the resource command list, so that one does not always have to use the Details command before?!
    Hope it helps
    Detlev

  • Show Hide transient attribute making row dirty

    Hi All
    I am using an advanced table where one of the columns(Description) is shown in detail region. To implement detail region, we need a transient attribute on the VO. I was able to get everything working. But I have the following problem.
    When the user clicks Add Rows, new rows are created for user to enter information. If the user does not make any changes and clicks Apply, no transactions are committed(which is working as expected). But when the user clicks on "Show" for one of these rows and does not enter information on any of the fields for that row, the system is throwing error on some of the mandatory fields. This is because the framework is identifying them to be dirty(Since clicking show changes the value of transient attribute on VO).
    I tried the following option to get around it, but it did not work.
    * When Show/Hide is clicked, capture that event and get the row that was clicked. Perform row.setNewRowState(row.STATUS_INITIALIZED) on that row to let system know that the row is not dirty. The problem here is that when control comes to this part of the code(be it in Controller or AM), the row status is STATUS_INITIALIZED. It becomes dirty after the Show action is processed in ProcessFormRequest(I think so..)
    To get around the issue, I had to remove the Mandatory flag on some of the fields, and implement the same manually. Also, just before committing all changes, I had to loop through all rows and see those that do not have any information entered but are still dirty. Perform row.setNewRowState(row.STATUS_INITIALIZED) on them before committing.
    Can any of you tell me a better way other than how I implemented it? I want to keep the mandatory flag on the field set(VO is based on a EO) and nto remove it. The error for no value entered should not be triggered by Show/Hide being clicked. I hope I was clear enough.
    Thanks
    Kumar
    Edited by: kvsankar on Feb 5, 2013 11:20 AM

    I did that. But I wanted the Server side validations to fire if the row was touched by the user before Submit as this is a middle page in set of pages implemented via train. I think I found the solution.
    I overrode the set method for DetailAttribute item on the VO and added the logic to set the row to STATUS_INITIALIZED if no other attribute was entered and it worked like a charm.
    Thanks
    Kumar

Maybe you are looking for