Trinidad Nested Tables Collapse and Expand Functionality Change

I am using JSF Trinidad 1.2 for JSF Implementation.
I am using <tr:table> and f:facet's detailStamp component's of Trinidad to get Nested Table functionality. I have three tables i.e. table1, table2, table3. Each row of Table1 has nested Table2 and each row of Table2 has nested Table3. It seems that the collapse and Expand functionality of these component makes AJAX call to the server and fetches the relevant data.
My requirement is to have data populated to all the three tables during initial Load and use clientSide Javascript function to collapse the Table2 and Table3 rows on initial Display. Once all the table1 rows are displayed, I should have collapse and expand at row level of Table1 that should make Table2 data visible and invisible on click using Javascript i.e. no server side call.
I am not sure If I can disable the inbuilt AJAX calls on click to expand and collapse. If yes, how I can do that?
Second Thing will be how I can populate my custom Javascript on those collapse and expand onclick event?
Thanks In Advance

Hi Suvidha,
Thanks for the response, but in my scenario I have a viewset in component A and overview page in component B. I am using viewset as assignment block in component B where i need to change the title on Lazy and Direct mode. Method of IF_BSP_WD_HISTORY_STATE_DESCR for viewset does not work in this scenario.
I am trying to get a method which get called on change of Lazy and Direct mode for an assignment block .

Similar Messages

  • Returning a nested table in a constructor function

    Hi there is it possible to return a nested table in a Constructor Function or do I need to create a package?
    I have this package spec it gives me an error
    create or replace type
    INTERFACE.PDE_BKRF_NTB
    as table of
    PDE_BKRF_TYP,
    -- Define a constructor for REF_TYP_CD and REF_KEY to return a list.
    constructor function
    PDE_BKRF_TYP
    (P_REF_TYP_CD varchar2
    ,P_REF_KEY number
    ,P_EXTR_DT date)
    return SELF as result
    /

    No, a NESTED TABLE type can't have a constructor I think.
    Check the documentation:
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/statements_8001.htm#i2121881
    It distinguishes between object type, varray type and nested table type. Only object types can have constructors.
    As a workaround you could create another object type that has an attribute of your nested table type:
    Note: untested code
    create or replace type
    INTERFACE.PDE_BKRF_NTB
    as table of
    PDE_BKRF_TYP;
    create or replace type INTERFACE.PDE_BKRF_NTB_2
    as object (
    a INTERFACE.PDE_BKRF_NTB,
    constructor function
    PDE_BKRF_NTB_2
    (P_REF_TYP_CD varchar2
    ,P_REF_KEY number
    ,P_EXTR_DT date)
    return SELF as result)
    create or replace type body INTERFACE.PDE_BKRF_NTB_2
    as
    constructor function
    PDE_BKRF_NTB_2
    (P_REF_TYP_CD varchar2
    ,P_REF_KEY number
    ,P_EXTR_DT date)
    return SELF as result as
    /Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

  • Remove collapse and expand icons from tray header

    Hi all
    Is it possible in any way to remove the collapse and expand icons from the tray header, and have the menu icon aligned with the end of the underline?
    Uploading a transparent gif does'n help, because the collaps and expand icon has the same width and heigh as the menu icon. Thus if I upload a transparent gif, and the width of the icons is set to 14px, the menu icon is not aligned with the line which underlines the whole header. There is 14px of blank / transparent.
    Removing the menu icon is easy, all I have to do is deselect all the 'show xxx' options in the iView editor.
    It should be possible to remove the collaps and expand icons, and still be able make it look good.
    Has anyone else had this problem??

    Amit,
    Thank you for replying twice, much appreciated.
    I am sorry for my late response. Thank you for the tip, but as far as I can see this is related to SP 15. We are currently on SP13. I should have of course have mentioned which SP in my problemdescription, and had we been on SP 15 I would have tried this solution.
    Anyway, points rewarded for being helpful.
    Markus,
    I did not find a solution for our problem. However during this summer our customers have decided that it was not very important to remove this icon, so I have left it. I hope the suggestions from Amit and Prem can give you some tips if you have a similar problem.
    Prem,
    as far as I understand you are suggesting to override the jsp for the iViews-trays, like you suggested for the detailed navigation? Anyway, it sounds like a good idea, and worth a try. But, as I mentioned above, we have deceided not to remove the icon. However, it sounds interesting, and I would like to investigate these possibilities when I have the time. points rewarded for being helpful
    Kind regards,
    Reidun
    Message was edited by: Reidun Mongstad

  • Collapse and Expand Rows in GRID

    Hi all,
    I want to Collapse and expand some set of rows in the GRID? is it possible???
    If it is please give me a sample code to me????
    Regards,
    Suresh.G

    Suresh,
    Please see the SDK Sample code for this at ...
    ..\Program Files\SAP\SAP Business One SDK\Samples\COM UI\VB.NET\19.Grid
    Eddy

  • Programmatically Collapse and Expand Trays in WDA View

    I have 2 trays in my ABAP Web Dynpro View.  First tray is a filter selection tray and the second tray is a content tray where I will display the results based on the filter criteria user selected in the first tray.  When the user clicks OK in the filter selection tray, I want to automatically collapse the tray to make more rooms for the content tray.  Does anyone know how to collapse and expand the tray programatically?
    Your help will be really appreciated.
    Thanks!
    Pat Hong

    I made it work by adding the following code in WDDOMODIFYVIEW method:
      DATA lr_tray TYPE REF TO cl_wd_tray.
      lr_tray ?= view->get_element( 'TRAY_NAME' ).
          CALL METHOD lr_tray->set_expanded
            EXPORTING
              value = abap_false.
    Pat

  • How do you "Instantiate" a Nested Table from within a FUNCTION?

    , I managed to compile and create the FUNCTION.
    But when I invoked it,
    ORA-06531: Reference to uninitialized collection
    ORA-06512: at "DEV.SPGETPARENTSTABLE", line ...
    I think I need to somehow *"Instantiate"* the Nested Table and I didn't:
    CREATE OR REPLACE FUNCTION spGetParentsTable
    ObjectId number,
    ObjectClassifier varchar2
    RETURN types.TmpHiearchyMapTableType
    IS
    TmpHierarchyMap types.TmpHiearchyMapTableType;
    ThisTempId varchar2(32);
    CURSOR spGetParents_cursor IS
    SELECT
    ReferencedId Id,
    ParentId,
    ChildId,
    FROM TMP_HIERARCHYMAP
    WHERE TmpUID = ThisTempId;
    BEGIN
    SELECT sys_guid() INTO ThisTempId FROM dual;
    spRecursiveGetParents(ObjectId, ObjectClassifier, ThisTempId);
    FOR oMap in spGetParents_cursor LOOP
    TmpHierarchyMap.Extend(); **** BUT I haven't "Instantiate" the Nested Table yet ****
    TmpHierarchyMap(TmpHierarchyMap.Count) := TmpHierarchyMapObjType( oMap.Id
    , oMap.ParentId
    , oMap.ChildId
    END LOOP;
    DELETE FROM TMP_HIERARCHYMAP WHERE TmpUID = ThisTempId;
    RETURN TmpHierarchyMap;
    END spGetParentsTable;

    It's annonyingly trivial to fix. In your declaration section try
        TmpHierarchyMap types.TmpHiearchyMapTableType :=  types.TmpHiearchyMapTableType();
        ...Cheers, APC
    blog: http://radiofreetooting.blogspot.com

  • Nested Table columns and ADF BC 11.1.2

    I'm thinking ahead to a new application design, including a new database design. In this application, there are users who may not change the production tables directly, but their changes must be approved (and possibly modified) before they are applied to the production tables. The production tables are part of an existing system, and are fairly well normalized, with a master table and several detail tables.
    So for the new design, I want to have a staging table, mirroring the master table, where user changes are stored until they are approved and applied to the production tables. The staging table contains a few extra columns for "add, change or delete", user who submitted the change, date the change was requested. After applying the change, the staging record is to be copied to a change history table, and deleted from staging. That way, the staging table never has a lot of data in it.
    Here's the question:
    I need to deal with the detail tables. I could have staging versions of each detail table, but I was thinking that it might be easier to handle if the detail tables were included as nested table columns of the master staging table. Most of the detail tables only contain a few rows per master row. But can ADF BC 11.1.2 handle nested table columns? Is it easy to use in an application?

    Thanks for the quick response. I was thinking I might get a response from someone who had tried it, so I didn't waste time trying it myself. I consider your response is pretty authoritative, and I'll take that as a sign that I should forget the nested tables design.
    No, polymorphic views probably won't do the job. I think I'll just go ahead and create staging versions of each detail table with foreign keys back to the master staging table. Then I'll let the wizard create the needed association objects and view links in ADF BC. It will complicate the procedure for applying changes, particularly adding a row to the change history table. But that's the price we'll need to pay.
    OTOH - I just had a thought - since the change history table is mostly for auditing, it appears in some reports, but has no CRUD in the application, other than the insert when the changes are applied. If I did that insert with a trigger or some other PL/SQL, then the change history could still be a single table with nested table columns for the details.

  • Nested Tables, Forms and Portal

    I am trying to implement a form in Portal that accesses a nested table. I can access normal tables but not my nested table. The nested table within the master table are object tables.
    When trying to access from the designer page I get an error indicating that table does not exist even though it was displayed in the pick list.
    Has anyone had success with this and can it be done.

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by chetan.kashyap ([email protected]):
    Actually nested tables are not supported by portal till now.<HR></BLOCKQUOTE>
    Chetan, can you be a bit more specific. What do you mea by 'till now'. Does this mean the next release can do it, or the current release shipped with Oracle 9i Application Server 1.0.2.0.0 for linux that I received.

  • DisplayTag Nested tables, simple and yet Sooooo unclear, assistance needed.

    Hi there,
    With reference to displayTag Nested tables, I wonder if someone can assist me here:
    Say i have a List of the following class (empl):
         public Empl()
              private String name;
              private List projects;
                    //getter and setter
         public Projects()
              private int id;
              private Date dateFinish;
                    //getter and setter
         }Q: how would the nested will work out?
    I have tried:
    <display:table name="sessionScope.empl_list" class="dataTable"  pagesize="50" id="parent">
    <display:column property="empl.name"                      title="ID" />
    //how this is going to be rearranged ????
      <c:set var="nestedName" value="test.item[${parent_rowNum -1}].subList" />
      <display:column title="Related address">
           <display:table name="${nestedName}" id="child${parent_rowNum}" class="simple sublist">
              <display:column property="name" class="textRed" />
              <display:column property="email" />
         </display:table>
      </display:column>
    </display:table>I have tried murmurous combinations, none worked.
    Thanks for any help

    I think your problem was the EL.
    Use <c:set var="nestedName" value="${test.item[parent_rowNum -1].subList}" /> instead of <c:set var="nestedName" value="test.item[${parent_rowNum -1}].subList" /> as the whole row contains a value.
    <display:table name="sessionScope.empl_list" class="dataTable"  pagesize="50" id="parent">
    <display:column property="empl.name" title="ID" />
    //how this is going to be rearranged ????
      <c:set var="nestedName" value="${test.item[parent_rowNum -1].subList}" />
      <display:column title="Related address">
           <display:table name="${nestedName}" id="child${parent_rowNum}" class="simple sublist">
              <display:column property="name" class="textRed" />
              <display:column property="email" />
         </display:table>
      </display:column>
    </display:table>

  • Streams to do a table view and then monitor changes

    Hi,
    I want to do a real time table view in a GUI.
    I know I can use Streams to watch table changes and pass these to the GUI, but how do I get the table to the GUI first and be sure to get all changes after that.
    The problem is that if I get the table and then start listening, I could miss a update between the table load and the start of listening.
    If there was any way to get the table to Stream itself I could get the table load and the subsequent updates via Streams, which would ensure I never miss an update.
    Is there a simple way to do this.
    I had thought about using streams from a Materialised View, and forcing a refresh on the view might then dump the whole view into Streams, although I do not know enough to be sure this will work.
    Has anyone got any ideas ?
    Thanks
    john

    Hi John,
    I think Morgan is right. You are perhaps adressing wrong technology. It will not designed for providing what you want...
    Please clarify, What do you mean by ur GIU?
    Main purpose of Stream replication is to replicate the changes done in one database/schema/table to the other database/schema/object (Oracle or nonoracle).
    Regards,
    Dipali..

  • Collapse and expand mobile menu?

    Can someone please tell me how to make a close all and expand menu for mobile sites in Muse. I did find some information about this on the web, but I cannot find the "expand and collapse"  tick box in CC 2014 (latest version). I have spent ages trying to find this and could do with help asap.
    Thank you.

    Hi,
    In order to create a Close all and expand Menu for your mobile site, I would suggest you to use the Accordian widget available in Muse. You can make the 'label' of the accordian as the link to your top level pages and you can add links to the child pages under the content area inside each label. This would help you create the kind of effect that you want.  Also, dont forget to check the box which says "can Close all" in the options of the accordian widget.
    Hope this helps
    Regards,
    Rohit Nair

  • Is there a way to collapse and expand a whole table within a sheet?

    I have sheets where I'd like to keep many tables all within the same page, and each table has quite a bit of data in it. Is there a way that I can collapse a table and then expand it to accomodate the need to stay within a page? Also, changing the content scale is not a solution I'd like to go with as it would require me to keep all tables visible-- I'd like a cleaner look to each sheet.

    Hi David,
    Welcome to Numbers discussions.
    In a table you cannot drag up or to the left past the final occupied cell. Of course you can make the table bigger.
    Yes that would be a nice feature for sure.
    The folks on these Discussion boards are as yourself end users not Apple employees. Please accept my following suggestion: at the top of your screen to the right of the blue Apple please click "Numbers" > "Provide Numbers Feedback". This makes your request known to the Pages team directly. I've sent many as well. I've sent many as well.
    Let's hope that the next version of Numbers (iWork) will incorporate many of the requested enhancements.
    Thank you in advance for doing that.
    Sincerely,
    RicD

  • Collapse and Expand Splitter via code

    Experts,
    I have a pannelSplitter which i am expanding and collapsing using JS on click of a button (in doing so my button gets enabled or disabled). I want to have the same functionality on clicking on the collapse of the splitter - so that the button gets enabled or disabled as above.
    I tried using the clentListener on pannelSplitter with type as propertyChange but my page hangs in Jdev 11.1.1.5
    Please advise.
    thnks

    Use "propertyChange" event in client listener. Please check the sample below.
    PanelSplitter.jspx:
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <jsp:directive.page contentType="text/html;charset=UTF-8"/>
      <f:view>
        <af:document id="d1">
          <af:resource type="javascript">
            function onPanelSplitterClick(event) {
                component = event.getSource();
                AdfCustomEvent.queue(component, "PanelSplitterServerEvent", null, true);
                event.cancel();
          </af:resource>
          <af:form id="f1">
            <af:panelSplitter id="ps1" binding="#{PanelSplitterBean.panelSplitter}">
              <f:facet name="first">
                <af:outputText value="Facet1" id="ot1"/>
              </f:facet>
              <f:facet name="second">
                <af:outputText value="Facet2" id="ot2"/>
              </f:facet>
              <af:clientListener type="propertyChange" method="onPanelSplitterClick"/>
              <af:serverListener type="PanelSplitterServerEvent" method="#{PanelSplitterBean.panelSplitterServerEventListener}"/>
              </af:panelSplitter>
          </af:form>
        </af:document>
      </f:view>
    </jsp:root>
    PanelSplitterBean.java:
    package com.samples;
    import oracle.adf.view.rich.component.rich.layout.RichPanelSplitter;
    import oracle.adf.view.rich.render.ClientEvent;
    public class PanelSplitterBean {
        private RichPanelSplitter panelSplitter;
        public PanelSplitterBean() {
        public void setPanelSplitter(RichPanelSplitter panelSplitter) {
            this.panelSplitter = panelSplitter;
        public RichPanelSplitter getPanelSplitter() {
            return panelSplitter;
        public void panelSplitterServerEventListener(ClientEvent clientEvent) {
            if (panelSplitter.isCollapsed()) {
                // Do necessary logic for collapsed
                System.out.println(":::: Collapased ::");
            } else {
                // Do necessary logic for Expanded
                System.out.println(":::: Expanded ::");
    }Thanks,
    Navaneeth

  • Adf TreeTable,  collapsed and expand property.

    Hi,
    I want to set some instructional text on UI based on whether af:treetable row is expanded or collapsed. Is there any property that I can use on UI that give this information?
    I am using adf, Oracle JDeveloper 11g.
    Thanks
    -Rishabh

    Hi Frank,
    In Treetable I have two columns and one column in nodeStamp. For example, node column show name of "application", second column show names of scholarships and the third column has commandbutton to apply for that application. Each row in application can be expanded to see list of scholarships attached to that application. Here is the code for this....
    <af:treeTable value="#{bindings.SaAppListVO1.treeModel}"
    var="node"
    selectionListener="#{bindings.SaAppListVO1.treeModel.makeCurrent}"
    id="treeTable" expandAllEnabled="true" rowBandingInterval="0"
    width="94%" columnStretching="column:application"
    columnBandingInterval="0"
    disableColumnReordering="true"
    summary="List scholarships attached to application"
    rendered="#{ bindings.SaAppListVO1.estimatedRowCount > 0}">
    <f:facet name="nodeStamp">
    <af:column headerText="Application"
    id="application">
    <af:outputText value="#{node.AppName}"
    rendered="#{node.AppId1 ne null}"
    inlineStyle="font-size:12px; font-weight:bold;"/>
    </af:column>
    </f:facet>
    <f:facet name="pathStamp"/>
    <af:column headerText="Scholarships" width="300" noWrap="false">
    <af:panelGroupLayout layout="horizontal">
    <af:goLink styleClass="csaLink" text="#{node.ScholarshipsName}">
    <af:showPopupBehavior triggerType="click"
    popupId="::notewindow"/>
    </af:goLink>
    <af:image shortDesc="Need-Based"
    source="/images/gold.png"
    rendered="#{node.IsNeedBased == 'y'}"
    inlineStyle="text-align:left;"/>
    </af:panelGroupLayout>
    </af:column>
    <af:column align="center">
    <af:commandButton text="Apply!"
    rendered="#{node.AppId1 != null}"
    action="apply_new">
    <af:setPropertyListener from="#{node.AppId1}"
    to="#{pageFlowScope.appId}"
    type="action"/>
    </af:commandButton>
    </af:column>
    </af:treeTable>
    My question here is, where node row is in collapsed mode there is nothing in "scholarship" column. And when it is expanded it list all the scholarship. What I want is to add a text message in that column showing how many scholarships are there for that application in collapsed mode.
    Is there any way for doing this?
    Thanks,
    -Rishabh

  • GTS tables relations and important function modules

    Hi Friends,
    I am totally new for the developments in GTS.  Wanted some help on the  tables for master data, transactional data in GTS. 
    Also what are the important function modules used in GTS.
    Anybody can give me some inputs on the above..?
    regards
    Nalin

    Well, passing a table thru the interface with no type is easy, just don't assign a structure when defining the interface.  It will then take its structure by what is being passed to it. 
    So if you would pass an internal table to it with the structure like so.
    Data: begin of itab occurs 0,
          line(1000) type c,
          end  of itab.
    Then that is the structure inside the function module. 
    Did this answer your question?   Please explain further if not.
    Regards,
    Rich Heilman

Maybe you are looking for