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

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

  • 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

  • ALV user interface - hide details rows - show only sub-total rows

    Is there a way using the ALV interface for a user after sub-totalling to hide all the detail rows and only show the sub-total and grand total rows?

    Sure, you can force this in the code.  Please see the sample program.
    report zrich_0004
           no standard page heading.
    type-pools slis.
    data: fieldcat type slis_t_fieldcat_alv.
    data: sort     type slis_t_sortinfo_alv.
    data: begin of ivbap occurs 0,
          vbeln type vbap-vbeln,
          kunnr type vbak-kunnr,
          vkorg type vbak-vkorg,
          netwr type vbap-netwr,
          end of ivbap.
    * Selection Screen
    start-of-selection.
      perform get_data.
      perform write_report.
    *  Get_Data
    form get_data.
      select vbak~vbeln vbak~kunnr vbak~vkorg vbap~netpr
                  into table ivbap
                          from vbak
                             inner join vbap
                                on vbak~vbeln = vbap~vbeln
                                      up to 100 rows.
    endform.
    *  WRITE_REPORT
    form write_report.
      data: layout type slis_layout_alv.
      layout-totals_only = 'X'.
      perform build_field_catalog.
      perform build_sort.
    * CALL ABAP LIST VIEWER (ALV)
      call function 'REUSE_ALV_GRID_DISPLAY'
           exporting
                it_sort     = sort
                is_layout   = layout
                it_fieldcat = fieldcat
           tables
                t_outtab    = ivbap.
    endform.
    * BUILD_FIELD_CATALOG
    form build_field_catalog.
      data: fc_tmp type slis_fieldcat_alv .
      clear fieldcat. refresh fieldcat.
      clear fc_tmp.
      fc_tmp-reptext_ddic    = 'Sales Org'.
      fc_tmp-fieldname  = 'VKORG'.
      fc_tmp-tabname   = 'IVBAP'.
      fc_tmp-outputlen  = '4'.
      append fc_tmp to fieldcat.
      clear fc_tmp.
      fc_tmp-reptext_ddic    = 'Customer'.
      fc_tmp-fieldname  = 'KUNNR'.
      fc_tmp-tabname   = 'IVBAP'.
      fc_tmp-outputlen  = '10'.
      append fc_tmp to fieldcat.
      clear fc_tmp.
      fc_tmp-reptext_ddic    = 'SD DOC'.
      fc_tmp-fieldname  = 'VBELN'.
      fc_tmp-tabname   = 'IVBAP'.
      fc_tmp-outputlen  = '10'.
      append fc_tmp to fieldcat.
      clear fc_tmp.
      fc_tmp-reptext_ddic    = 'Net'.
      fc_tmp-fieldname  = 'NETWR'.
      fc_tmp-tabname   = 'IVBAP'.
      fc_tmp-outputlen  = '15'.
      fc_tmp-do_sum  = 'X'.
      fc_tmp-datatype = 'QUAN'.
      append fc_tmp to fieldcat.
    endform.
    *       FORM build_sort                                                *
    form build_sort.
      data: tmp_sort type line of slis_t_sortinfo_alv.
      clear sort. refresh sort.
    <b>
      clear tmp_sort.
      tmp_sort-fieldname = 'VKORG'.
      tmp_sort-tabname   = 'IALV'.
      tmp_sort-up        = 'X'.
      tmp_sort-subtot    = 'X'.
      tmp_sort-group     = 'X'.
      append tmp_sort to sort.
      clear tmp_sort.
      tmp_sort-fieldname = 'KUNNR'.
      tmp_sort-tabname   = 'IALV'.
      tmp_sort-up        = 'X'.
      tmp_sort-subtot    = 'X'.
      tmp_sort-group     = 'X'.
      tmp_sort-expa      = 'X'.
      append tmp_sort to sort.
      clear tmp_sort.
      tmp_sort-fieldname = 'VBELN'.
      tmp_sort-tabname   = 'IALV'.
      tmp_sort-up        = 'X'.
      tmp_sort-subtot    = 'X'.
      tmp_sort-group     = 'X'.
      tmp_sort-expa      = 'X'.
      append tmp_sort to sort.</b>
    endform.
    Regards,
    Rich Heilman

  • Question for Carl Backstrom

    Carl:
    Regarding
    http://htmldb.oracle.com/pls/otn/f?p=11933:1
    Can you share some implementation details on how you did this? What is the query for the query region? Where do all the Javascript snippets go?
    Thanks

    Hello,
    >
    I was hoping to use this technique to show a one-many
    relationship i.e. show the order header on the page
    and click on "show_detail" to show the order line
    items.
    How can that be done?Yes the easiest way would be to just create an iframe in the detail row to access whatever content you want and use the show_detail column to set the URL, this would be the best way if you are opening another HTML DB page with a form that you might want to edit/update.
    Or you can go the AJAX route and pull the content from a procedure or package and insert into the detail. This would work best if you are just displaying some data or you need some very particular formatting. It would also be a bit faster than an iframe.
    Given some time this week I'll see if I can add those examples.
    Also, I didn't quite understand your "disclaimer"
    about clicking on that checkbox, everything works
    fine without touching that checkbox. Can you clarify
    please?If you uncheck the checkbox before you start clicking the show_detail only one detail will be shown at a time. The javascript code will automatically hide the last opened detail row and reset the label. I just didn't write any code to reset the variables between the two different functionality because I figure that most people will have it work just one way or the other.
    Thanks,
    Carl

  • How to make a layer from the ADF pivot table invisible , show-hide column-row-data

    Hello all ,
    I need to create a pivottable with ADF 12c for reporting purposes.
    I have a table or view with 10 items of type VARCHAR2 , C1,C2,C3,C4,C5,C6,C7,C8,C9,C10  and   10 items of type NUMBER N1,N2,N3,N4,N5,N6,N7,N8,N9,N10
    The items of type VARCHAR2 are for Column and Row areas and the items NUMBER are for Data Areas
    I want to create a jsf page with one empty pivottable and in code Show or Hide the items in the Column area , Row area , Data area
    Con you send me a small sample ?
    I test with this code that i find in oracle OTN but not work.
    <dvt:pivotTable id="pt2" value="#{bindings.WebPivotDataView1.pivotTableModel}" var="cellData"
    varStatus="cellStatus" splitMode="enabled"
    binding="#{backingBeanScope.CmfPivotBean.pivotTable}"
    >
    <dvt:headerCell>
    <af:switcher facetName="#{cellData.layerName}" defaultFacet="Default" id="s1">
    <f:facet name="DataLayer">
    <af:outputText value="#{cellData.label}" id="ot1"/>
    </f:facet>
    <f:facet name="C01">
    <af:outputText value="#{cellData.dataValue}" id="ot2"/>
    </f:facet>
    <f:facet name="Default">
    <af:outputText value="#{cellData.dataValue}" id="ot3"/>
    </f:facet>
    </af:switcher>
    </dvt:headerCell>
    <dvt:dataCell>
    <af:switcher facetName="#{cellStatus.members.DataLayer.value}" defaultFacet="Default" id="s2">
    <f:facet name="N01">
    <af:outputText value="#{cellData.dataValue}" id="ot4">
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.WebPivotDataView1.hints.N01.format}"/>
    </af:outputText>
    </f:facet>
    <f:facet name="Default">
    <af:outputText value="#{cellData.dataValue}" id="ot5"/>
    </f:facet>
    </af:switcher>
    </dvt:dataCell>
    </dvt:pivotTable>
    DCBindingContainer bindingContainer = (DCBindingContainer)ADFContext.getCurrent().getRequestScope().get("bindings");
    CubicBinding cubicBinding = (CubicBinding)bindingContainer.findCtrlBinding("WebPivotDataView1");
    CubicEditor cubicEditor = cubicBinding.getCubicEditor();
    cubicEditor.removeLayer(DataDirector.ROW_EDGE, 0); //remove 1st row edge
    cubicEditor.removeLayer(DataDirector.COLUMN_EDGE, 0); // remove 1st column edge
    cubicEditor.removeDataItem(0);
    CubicDefinition def;
    def = cubicBinding.getProjection();
    LayerDefinition layerDefinition = new LayerDefinition("C3");
    cubicEditor.addLayer(DataDirector.ROW_EDGE, 0, layerDefinition);    
    LayerDefinition layerDefinition2 = new LayerDefinition("C4");
    cubicEditor.addLayer(DataDirector.COLUMN_EDGE, 0, layerDefinition2);
    DataItemDefinition def3 = new DataItemDefinition("N1");
    cubicEditor.addDataItem(def3);
    AdfFacesContext.getCurrentInstance().addPartialTarget(pivotTable);
    Can you help me if is possible to create a pivottable binding to a one ViewObject and in code show/hide or compose the layout of the pivottable ??
    I search in google and OTN oracle and not find any code.
    Only find the code of the samples that is very complex for me , the code of the samples create the PivotTableModel from one Array , and i want to binding from one ADB BC ViewObject.
    Thanks in advance

    The solution I presented for your use case an DOAG 2013 was to create a pivot table binding out of user defined attributes from the table. For the defined attributes a VO is dynamically created as well as the pivot binding. The pivot binding is then exchanged at runtime together with the activation of the dynamic VO needed to only get the data needed for the particularly pivot table.
    Your solution using the CubicEditor is hard to implement due to the missing documentation. This was the reason I did not follow this approach, However it's not impossible (done it on a very small scale).
    None of the solution are what I call simple. They are complicated, complex and in part not supported solution (exchanging the pivot table binding at runtime need to use internal classes, which is not supported).
    I can't give you a working sample as it's too complex. I can make the slides available, however they are in German.
    Timo

  • A question for document about 10.2.0.4 on Windows Server 2008

    Hi
    This link - http://download.oracle.com/docs/cd/B19306_01/relnotes.102/b14264/toc.htm#BAB - describes how to install Oracle Database on Windows Vista and Windows Server 2008.
    But I have a question about this document.
    According to the document, the first step is "Install Oracle Database using the 10.2.0.3 media."
    But I don't know which 10.2.0.3 media I should use. Is it this one?
    http://www.oracle.com/technology/software/products/database/oracle10g/htdocs/10203vista.html
    Thanks.

    Hi all
    There are some patches for oracle 10.2.0.3. After I installed 10.2.0.3, I should apply these patches, such as p5746875_10203_GENERIC.zip, p5846376_10203_WINNT.zip, p5916257_10203_WINNT.zip.
    My question is: should I apply these patches before I install 10.2.0.4 on Windows Server 2008?
    Usually I think these patches for 10.2.0.3 should be integrated into 10.2.0.4, so I don't need to apply these patches, just install 10.2.0.4.
    But after I installed 10.2.0.4, I use opatch command to check the patches, I didn't find these patches included in 10.2.0.4. Also I didn't find these patches in 10.2.0.4 patch list...
    Is there anyone can help me? Thanks!

  • Question for BDC about tcode VK12

    Hi, everyone, i encounter a problem when i use BDC to transfer data about vk12.
    when i usd BDC to transfer value to the field F001,F002, F003 and F004-LOW then click run, the detail record are be chosed and displayed, then i must chose them and click delete. if there is only one record accord to the condition, it is easy to deal with it, but, if there are more than one record, what should i do the deal with the detail records, especially how to deal with it dynamicly acoording to the condition.
    for example:
    when i enter first condition through BDC .(see the first record)
    ZPR0|X||RENT-L1-M03||100001||1000|00|01.01.2008|
    the condition value are: zpro, x , rent-l1-m03, 100001,1000, 00 ,01.01.2008 and then i will find only detail record according to this condition, it like this:
    RENT-L1-M03
    2,000.12
    sgd
    1
    ea
    01.01.2008
    31.12.9999
    then flag this detail record and click delete.it is successful
    when i enter second condition through BDC .(see the second record)
    ZPR0
    X
    RENT-L1-M00
    100021
    1000
    00
    01.01.2008
    the condition value are: zpro, x , rent-l1-m00, 100021,1000, 00 ,01.01.2008 and then i will find three detail records according to this condition,  like this:
    |RENT-L1-M00|2,000.12|sgd|1|ea|01.01.2008|31.12.9999
    |RENT-L1-M00|2,000|sgd|1|ea|01.01.2008|31.12.9999
    |RENT-L1-M00|1,000|sgd|1|ea|01.01.2008|31.12.9999
    then if i use the same BDC  record program to deal with this detail record, it is deal with only one detail record, so what should i do to deal with the others.(because all of them should be flaged and deleted)

    Just check if you have a Select All button when you select the record you want to delete.

  • 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>

  • Easy questions for Pro about ASM block size

    hi
    how can we change DB_BLOCK_SIZE in ASM (while instalation)
    we have a default of 4096

    As for databases 'later' is not possible. I'm not sure what happens when you choose another blocksize at creation time. ASM blocksize is only for metadata,it's not related to the actual database data (having the database blocksize) stored in ASM diskgroups.
    These are the blocks which are used for extent maps in shared pool.o you dont need to worry about this blocksize difference.
    here is the actul link that i copied over from(above)
    ASM instance's block size

  • Question for romko23 about getting A.S.D

                             Hello i am ,romko 23 told me to contact him about apple asd for my powermac g5 early 2005 dual 2.7.I replaced my processors and overhauled my l.q.s but now i was told i need the apple asd.How could i get a copy of your asd ?
                                                                                                                   Thank You,
                                                                                                                       connet123896

    Here I am! Given the length and size of this file I will be unable to send it via email.. Leave me your email and I can see what I can do.
    Romko.

  • Question for Turingtest2 about previous instructions

    Hi Turingtest2,
    I tried to follow your instructions to another poster about linking a  new computer to an iTunes library on an external hard drive.  Unfortunately, I've done something wrong and now neither old or new computer will link to the library.  All my files are still on the external hard drive, but I cannot get either computer to link to them!  I'm not very good with computers, and I'm very frustrated (as I've spent 3 hrs on this).  Can you please try to walk me through reconnecting to my external hard drive files?  I am using Windows 7 on the new computer.

    I recently had an eye examination done, and it came back perfect. This is the previous monitor I used: http://www.walmart.com/ip/AOC-931SWL/13890785
    I get that it's completely different, but it didn't cause me any eye strain at all. I also tried calibrating the color, right now it's really warm, with less blue LEDs, and it's easy on the eyes, but it's definitely, still a problem.
    I know that some people don't have any problem with them at all, but some others are having the same issue, but I am just trying to figure out if what Apple has done with the change in the new iMac is their solution to the problem.

  • Question for Carl Backstrom or others  : Tree list

    Hello Marvel team,
    I am looking to build my application menu like the following example :
    http://htmldb.oracle.com/pls/otn/f?p=11933:31
    - The menu must appear in each page.
    - Some options or sub-options can be disabled depending on oracle users privileges or roles.
    - The label menu options will be stored in a table, perhaps with other things ? need ideas?
    Need from where can I start building this menu ?
    Thanks.
    Jina.

    Hello,
    That example is a HTML DB list using one of the builtin DHTML Tree Templates in 2.0 so each element can have conditions associated with it. The drawbacks are that it is static.
    There is also this example which used AJAX to pull the branchs http://htmldb.oracle.com/pls/otn/f?p=11933:49 the problem with this example is it doesn't have any conditions for elements though I'm sure it can be done, It also doesn't have any memory between refreshes, (though I know someone who has taken care of that but I'll let the jump in here if they want)
    You might want to look at the builtin Tree Item it is a little less dynamic but should be able to do most the of the things you want.
    Carl

  • Question for Jacob about inventory

    Jacob, are you able to see if a store has gotten more inventory today?  The list seems to have disappeared.  I went into my store #821 last night and they had only received 5.  I'm wondering if they got more today, as the forums seem to be much more positive overall than they were yesterday. 
    Any idea?
    Thanks for all you've been doing today...and of course every other facet of your job stopped because of the iphone4!  Apple runs the world!
    Solved!
    Go to Solution.

    Hi, beforeyougo, thanks for the feedback!
    I won't be able to check inventory today.  The list went away because all stores should be getting some so it would just be list of "yes." 
    It seems that most stores are getting more shipments today so check with your store tonight to see if they have a phone for you.  Most pre-orders should be filled.
    Thanks!
    Jacob|Web Planner | Best Buy® Corporate

  • Question for Shane about Excel file

    Hi Shane,
    I was reading one of your blogs, and you mentioned that larry jordan has an excel file for timecode? Can you please give me the link where I can find that? I couldn't find it on his site.
    Thanks...

    Don't worry, I found it on his site, under Goodies...
    Thanks though !

Maybe you are looking for