Expand All for Hierarchy in Layout
Hi all
Has anyone developed an 'Expand All Nodes' function for a BPS Web application? I have a layout which contains a hierarchy and I would like to be able to provide two buttons which perform an 'Expand All' and 'Collapse All'.
Cheers
Dimitri
If you want expand all levels in hierarchy then you could choose the appropriate level in the 'Expand to Level' option in layout cutomization in Web Interface Builder.
In our case i have set it to 5 so that when the layout opens all the cost elements appear.But it takes time if the layout is going to read lot of data.
There is also another option for layout customization called 'Collapse Lead Columns'.If you want both these options in the form of button then you may have to write BSP codes for this task.
Similar Messages
-
I am creating a level based hierarchy for the Date Dimension
year --> quarter --> month --> date (one path)
year .--> month --> date (the second path).
I create the pivot table using these dim hierarchies. But the problem is,
when I click on, say "Month" under year 2012, it expands everything above 2012 (such as 2010, 2011 etc).
I don't want to expand all the years, but only the one I clicked. Anyone knows what is the solution for that.
I am sorry that I cannot attach any screen shots to explain better.
I would really appreciate your help on this.
Thanks
JDI am using OBIEE 11.1.1.7.0.
ok, I tried one hierarchy per dim table but didn't work too. When I created a logical column as Month + Year (e.g Jan 2014) and added to the hierarchy, its working fine. But that creates other issues on the
client side.
I guess, since the month is common to all the years its expanding when clicked. I also added month and year as "chronological key", but that didn't work either.
Please advice any solution if you know it. -
Nightwolfx03 has asked this same question as question #822903, but with different wording. To maximize the matches for searches, I'm re-stating it.
When I right click on a link and select "Open Link In New Window" to display a new webpage, Firefox restores (expands) ALL the windows which have been minimized on my taskbar. Multiple windows cascade upwards onto my screen, taking several seconds and being incredibly annoying. HELP!This issue can be caused by the ASK.com Toolbar
Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
*Don't make any changes on the Safe mode start window.
*https://support.mozilla.com/kb/Safe+Mode
*https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes -
Design Studio : How can I expand all hierarchy at once in dimension filter
Dear Colleagues.
I am currently working on design studio. I need your advises to implement BW hierarchies in my dashboard.
Is it possible to expand all hierarchy in Dimension Filter of Design Studio?
I tried to expand hierarchy in data source api, like 'expandNode' or 'setDrillLevel'.
These functions can be expanded all hierarchy in Cross tab. but it can not be applied to Dimension Filter.
Please help me to achieve this.
Thank you in advance.
Best Regards,
K.MinI don't see a way to achieve this with the Dimension Filter or the Filter Panel
I think it would be a great idea to add to Idea Place at ideas.sap.com -
Web Interfaces: BPS-Hierarchy: Collapse/ Expand all nodes
Hello,
having a bps hierarchy in a web interface, is there any way to collapse/ expand all nodes at once (via a button)?
Cheers,
SimonSimon
Web interface does not support the collapsing of hierarchy.
it will automatically expands hierarchy.
Thanks,
Raj. -
Standard Reports for Hierarchial Displays
Hi All,
Can anyone please post the reports which are similer to ENGR T-code. I need some sample reports which should have a hierarchy just as in case of ENGR we have in Create Periodic Declarations.
Thanks in Advance,
KishoreFOR HIERARCGIAL REPORT HERE IS CODE
Report Zalv_interactivehierarchy *
*& AS : ALV code for hierarchical sequential list display(single child)
*& List of SAP tables as the parent node with interactive features(as a pop up)
*& and List of fields as the child node with interactive features too(as a pop *& up)
REPORT zalv_interactivehierarchy.
type-pools declarations for alv and icon
TYPE-POOLS: slis,icon.
*structure declaration for table details
TYPES : BEGIN OF ty_dd02l,
tabname TYPE tabname,
tabclass TYPE tabclass,
expand,
END OF ty_dd02l.
*internal table and wa decln for table details
DATA : it_dd02l TYPE STANDARD TABLE OF ty_dd02l,
wa_dd02l TYPE ty_dd02l.
*structure declarations for field details
TYPES : BEGIN OF ty_dd03l,
tabname TYPE tabname,
fieldname TYPE fieldname,
keyflag TYPE keyflag,
checktable TYPE checktable,
rollname TYPE rollname,
datatype TYPE datatype_d,
leng TYPE ddleng,
END OF ty_dd03l.
Internal table and wa decln for field details
DATA : it_dd03l TYPE STANDARD TABLE OF ty_dd03l,
wa_dd03l TYPE ty_dd03l.
*Internal table and wa decln for tabletext details
DATA : it_dd02t TYPE STANDARD TABLE OF dd02t,
wa_dd02t TYPE dd02t.
data declarations for ALV
DATA : it_fieldcat TYPE slis_t_fieldcat_alv,
wa_fieldcat TYPE slis_fieldcat_alv,
it_layout TYPE slis_layout_alv,
key TYPE slis_keyinfo_alv.
*Input the tables.User cannot enter a range but can enter any number
*of tables one by one in this select-options
SELECT-OPTIONS : s_table FOR wa_dd02l-tabname NO INTERVALS.
*initializatin event
INITIALIZATION.
*start-of-selection event
START-OF-SELECTION.
*subroutine to fetch the data from the tables
PERFORM fetch_tabledata.
*subroutine to build alv hierarchy output
PERFORM hierarchyalv_build.
*& Form hierarchyalv_build
text
--> p1 text
<-- p2 text
FORM hierarchyalv_build .
*fieldcatalogue
PERFORM build_fieldcat.
*layout
PERFORM build_layout.
*key information for hierarchy
PERFORM build_key.
*output
PERFORM list_display.
ENDFORM. " hierarchyalv_build
*& Form build_fieldcat
text
--> p1 text
<-- p2 text
FORM build_fieldcat .
CLEAR wa_fieldcat.
wa_fieldcat-col_pos = 1.
wa_fieldcat-fieldname = 'TABNAME'.
wa_fieldcat-tabname = 'IT_DD02L'.
wa_fieldcat-seltext_m = 'Tablename'.
wa_fieldcat-key = 'X'.
wa_fieldcat-hotspot = 'X'.
wa_fieldcat-emphasize = 'C610'.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-col_pos = 2.
wa_fieldcat-fieldname = 'FIELDNAME'.
wa_fieldcat-tabname = 'IT_DD03L'.
wa_fieldcat-key = 'X'.
wa_fieldcat-hotspot = 'X'.
wa_fieldcat-seltext_m = 'Field'.
wa_fieldcat-emphasize = 'C510'.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
ENDFORM. " build_fieldcat
*& Form build_layout
text
--> p1 text
<-- p2 text
FORM build_layout .
*to expand the header table for item details
it_layout-expand_fieldname = 'EXPAND'.
it_layout-window_titlebar = 'Interactive Hierarchical ALV'.
it_layout-lights_tabname = 'IT_DD03L'.
it_layout-colwidth_optimize = 'X'.
ENDFORM. " build_layout
*& Form build_key
text
--> p1 text
<-- p2 text
FORM build_key .
*key infomation for the header and item table
key-header01 = 'TABNAME'.
key-item01 = 'TABNAME'.
ENDFORM. " build_key
*& Form list_display
text
--> p1 text
<-- p2 text
FORM list_display .
*ALV output
CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
EXPORTING
i_callback_program = sy-cprog
i_callback_user_command = 'USER_COMMAND'
is_layout = it_layout
it_fieldcat = it_fieldcat
i_tabname_header = 'IT_DD02L'
i_tabname_item = 'IT_DD03L'
is_keyinfo = key
TABLES
t_outtab_header = it_dd02l
t_outtab_item = it_dd03l.
ENDFORM. " list_display
*& Form fetch_tabledata
text
--> p1 text
<-- p2 text
FORM fetch_tabledata .
*select table data
SELECT tabname
tabclass
FROM dd02l
INTO CORRESPONDING FIELDS OF TABLE it_dd02l
WHERE tabname IN s_table.
*select field data
IF it_dd02l[] IS NOT INITIAL.
SELECT tabname
fieldname
keyflag
checktable
rollname
leng
datatype
FROM dd03l
INTO CORRESPONDING FIELDS OF TABLE it_dd03l
FOR ALL ENTRIES IN it_dd02l
WHERE tabname EQ it_dd02l-tabname.
ENDIF.
*select table texts
IF it_dd02l[] IS NOT INITIAL.
SELECT tabname
ddtext
FROM dd02t
INTO CORRESPONDING FIELDS OF TABLE it_dd02t
FOR ALL ENTRIES IN it_dd02l
WHERE tabname EQ it_dd02l-tabname
AND ddlanguage = 'EN'.
ENDIF.
ENDFORM. " fetch_tabledata
*& Form user_command
text
*User actions on ALV
FORM user_command USING r_ucomm TYPE sy-ucomm
rs_selfield TYPE slis_selfield.
CASE r_ucomm.
WHEN '&IC1'.
READ TABLE it_dd02l INDEX rs_selfield-tabindex INTO wa_dd02l.
IF sy-subrc = 0.
PERFORM select_table.
EXIT.
ENDIF.
READ TABLE it_dd03l INDEX rs_selfield-tabindex INTO wa_dd03l.
IF sy-subrc = 0.
PERFORM select_field.
EXIT.
ENDIF.
ENDCASE.
ENDFORM. "user_command
*& Form select_table
text
--> p1 text
<-- p2 text
*Subroutine to display the details of the parent node selected
FORM select_table .
DATA : title(20),
category(10),
description(60),
texts(40),
text(60).
title = wa_dd02l-tabname.
category = wa_dd02l-tabclass.
texts = 'The table category : '.
CONCATENATE texts category INTO text separated by space.
READ TABLE it_dd02t INTO wa_dd02t WITH KEY tabname = wa_dd02l-tabname.
description = wa_dd02t-ddtext.
CALL FUNCTION 'POPUP_FOR_INTERACTION'
EXPORTING
headline = 'Selection'
text1 = title
text2 = description
text3 = text
button_1 = 'Back to List'.
ENDFORM. " select_table
*& Form select_FIELD
text
--> p1 text
<-- p2 text
*Subroutine to display the details of the child node selected
FORM select_field .
DATA : title(20),
text1(35),
table(10),
text2(45),
check(20),
datype(6),
length(3),
roll(8),
key(10),
flag(2),
keytext(15),
typedet(18),
details(25),
text3(15),
text4(25),
text5(15),
text6(25),
text7(15),
text8(25).
text1 = 'The table for the selected field is'.
title = wa_dd03l-fieldname.
table = wa_dd03l-tabname.
check = wa_dd03l-checktable.
datype = wa_dd03l-datatype.
length = wa_dd03l-leng.
roll = wa_dd03l-rollname.
key = 'Keyfield '.
flag = wa_dd03l-keyflag.
typedet = 'Datatype & Length'.
text4 = 'Selected field is'.
text5 = 'Check table'.
text7 = 'Data Element'.
CONCATENATE text1 table INTO text2 separated by space.
CONCATENATE key flag INTO keytext separated by space.
concatenate typedet datype length into details separated by space.
concatenate text3 title into text4 separated by space.
concatenate text5 check into text6 separated by space.
concatenate text7 roll into text8 separated by space.
CALL FUNCTION 'POPUP_FOR_INTERACTION'
EXPORTING
headline = 'Selection'
text1 = text2
text2 = text4
text3 = text6
text4 = details
text5 = text8
text6 = keytext
button_1 = 'Back to List'.
ENDFORM. " select_FIELD -
Collapse All and Expand All functionality in Tree
Hi All,
I am using TreeByNestingTableColumn element to display the tree hierarchy .
Does anyone knows how to implement Collapse All and Expand All functionality for this tree (if someone have sample code for these functionality then it will be great for me) ?
Thanks in advance.
Ravi.Hello Ravindra Sahu,
Code for EXPAND ALL button:
*step 1:Access node
lo_nd_tree_hierarchy = wd_context->get_child_node( name = wd_this->wdctx_tree_hierarchy ).
*step2: Extract all the table entries from node which is binded to table
lo_nd_tree_hierarchy->get_static_attributes_table(
IMPORTING
table = lt_tree_hierarchy ).
*step3:set element attribute Expanded to abap_true
loop at lt_tree_hierarchy ASSIGNING <ls_tree_hierarchy>.
<ls_tree_hierarchy>-expanded = abap_true.
endloop.
*step4: Finally the updated data needs to be binded.
lo_nd_tree_hierarchy->bind_table( lt_tree_hierarchy ).
Code for COLLAPSE ALL button:
*step 1:Access node
lo_nd_tree_hierarchy = wd_context->get_child_node( name = wd_this->wdctx_tree_hierarchy ).
*step2: Extract all the table entries from node which is binded to table
lo_nd_tree_hierarchy->get_static_attributes_table(
IMPORTING
table = lt_tree_hierarchy ).
*step3:set element attribute Expanded to abap_true
loop at lt_tree_hierarchy ASSIGNING <ls_tree_hierarchy>.
<ls_tree_hierarchy>-expanded = abap_false.
endloop.
*step4: Finally the updated data needs to be binded.
lo_nd_tree_hierarchy->bind_table( lt_tree_hierarchy ).
Please don't forget giving REWARD points...:-)
Edited by: Bharath Komarapalem on Jul 11, 2008 9:17 AM -
Expand all and collapse all in page
Hi all,
I need to implement* expand all and collapse all *in a custom page where I have some Link beans generated dynamically to show the allowable responsibilities.I have added the link beans and respective hide show regions in a stack layout.How to implement expand all/collapse all for this hide show in the page.
If I'm not clear about my requirement please let me know.
Thanks ,
Krishna Priya BandyopadhyayHi Krishna,
Are your hide/show items within a table or separate hide/show regions?
Thanks,
LC -
Is there a way to expand all drop-down text in a single topic in the editor?
I'm going through all the topics in a large RH10 project manually checking various things. A lot of topics contain drop-down text and to view the contents, I'm having to right click on each one and select 'Drop-down text properties'. Which is taking FOREVER. So:
a) is there an option to expand all drop-down text in the current topic? I'm sure I remember this from a previous version but can't find it now.
b) is there a keyboard shortcut to open drop-down text?
Please say yes.a] Yes.
b] No.
There is nothing in Rh but there is a method on my site and on htttp://wvanweelden.eu The same scripts, just different explanations.
See www.grainge.org for RoboHelp and Authoring tips
@petergrainge -
How to expand all frames in the document using a script?
Hi,
I have used the ImageCatalog script to place a 1000+ images of different dimensions in the document. On the ImageCatalog dialog box, I have unchecked the Proportional and Frame to Content option to place the images in 100%. I am looking for a way to expand all the graphic frames to reveal all the images it placed on the document. When you double-click the bottom-right handle, it would expand the frame to see the full content. (it would time consuming when you do this one by one)
Let me know. Thank you very much.If I understand you correctly, you placed the images without using Fit Frame To Contents and now you are trying to rectify this? Do you get that making just the frames larger, at this point, may make them overlapping others? If that's going to be a problem, just run the script again but this time with the correct settings ...
Anyhow. Typing on my iPad so I can't check; but something in the lines of
g = app.activeDocument.allGraphics;
for (i=0; i<g.length; i++)
g[i].fit (FitOptions.FRAME_TO_CONTENT);
See http://jongware.mit.edu/idcsjs5.5/pc_Graphic.html#fit -
How do i expand all the nodes in a jtree
Hi,
I am working on a project where i need to expand all the nodes of a jtree i have tried a few different ways but it never seems to expand all the nodes..
I would be very greatful if someone could point me in the right direction
cheers
Maryyou could use the following method that expands nodes recursively
expandNode( myTree, myRootNode, new TreePath( myRootNode ) );
public static void expandNode( JTree tree, TreeNode node, TreePath path ) {
tree.expandPath( path );
int i = node.getChildCount( );
for ( int j = 0; j< i; j++ ) {
TreeNode child = node.getChildAt( j );
expandNode( tree, child , path.pathByAddingChild( child ) );
} -
Change Sender of Mail for PO pdf layout
Dear All,
We send PO layout via mail to the vendors .For this process , we use standard program SAPFM06P .
According to standard program , the sender of mail is creation of PO ,however , We need to change the sender . Is there any way to change the sender as user-exit or any way ?
Thanks ,
Best Regards
DashHello,
do you find a sollution for this problem?
We have the same problem.
regards! -
Folio Builder: An error has occurred opening the source file for the article layout.
I have been working on a Folio. When I sat down to work on my folio, I was instructed by indesign to update my Folio producer tools, which I did.
Since then I can no longer view any article layout from that folio in indesign. Indeed any folio that I create that does not reside on my desktop give the same problem. I can import articles, add articles and they all upload to the proper place at adobe and I can view them. But I simply cannot open them up through folio builder as I previously.
The exact error message is as below:
An error has occurred opening the source file for the article layout.
The InDesign file for the layout cannot be found.
Another strange thing that seems to be happening is that the folio will randomly reoder the articles in the folio.
I have dumped my indesign prefs, tried creating an entirely new project, made a new account and even reinstalled the entire software.
But the problem of opening an article that I have imported or added to a folio, simply not being found to open has got me stumped. I can't proceed with a major project until I can sort this out.
Can anyone help.
Many thanks
Steve
The problem initially seemed very similar to the one linked below, but I dont get the content generation error
http://forums.adobe.com/thread/901804?decorator=print&displayFullThread=trueQuestions about the Adobe Digital Publishing Suite should be posted in the DPS Forum.
http://forums.adobe.com/community/dps -
ADF TreeTable - How to hide Disclose/Expand icon for leaf node
We are using ADF Tree Table in our application.
Whenever a node is expanded - all the child nodes have the disclose/expand icon along with it.
But, we don't want to show the disclose/expand icon if it is a leaf node.
How can this be done?
JDeveloper Version: JDeveloper 11.1.1.3
Thanks,
NavaneethI have a hierarchical tree based on single POJO based class exposed as data control.
(i.e) a node can have many levels.
Can you specify how we can use the folder icon for this - Can you please provide some detailed information?
Thanks in advance,
Navaneeth -
Collapse all below and expand all below
hi,
Expand all below & collapse all below action are not working for <af:treeTable/> UI component which are provide by <af:panelCollection/> component by default (we dont have control over them). But Action 'expand all below' on selected row is just expanding itself (selected one.)
Here is the code of implement of treeTable
<af:panelAccordion inlineStyle="width:100%;" discloseMany="true"
discloseNone="true" id="regional_panel1">
<af:panelCollection
inlineStyle="width:100%;height:100%"
id="regional_collection_table_tags">
<af:treeTable rowSelection="single" contextMenuId="treeTableMenu"
rowBandingInterval="1" inlineStyle="width:100%;"
columnStretching="last"
value="#{bindings.result.treeModel}" var="node"
id="TagTree"
binding="#{pageFlowScope.TagHelper.tagTree}"
selectionListener="#{pageFlowScope.TagHelper.tableSelectionListener}">
<f:facet name="nodeStamp">
<af:column headerText="#{bundle.TAG_NAME}">
<af:outputText value="#{node.name}"/>
</af:column>
</f:facet>
<af:column headerText="#{bundle.DESCRIPTION}">
<af:outputText value="#{node.description}"/>
</af:column>
</af:treeTable>
</af:panelCollection
>
</af:panelAccordion>
Note: Collapse All & Expand All actions are working fine which are also provide by <af:panelCollection/> component.
Please provide me any info to fix this.
kind revert me for more info.
Thank
KSBHi,
your panel accordion does not have a showDetail item as a child containing the panelCollection, The IDE should have flagged this as an error. Your problem doesn't reproduce for me
Frank
Ps.: component ID should be kept short (less than 7 characters) because they add to the download size and thus contribute to performance degradation
Maybe you are looking for
-
How do I transfer my music from one computer to another?
I just bought a new Mac. My iTunes library was on an external hard drive associated with my old Mac. When I import the music, it creates a large "unknown album" with music that was previously identified -- mostly WAV and AIFF files. How do I get iTun
-
Using RisPort to get phone IP address
Hi all, I want to use Risport dll to get real time information about phones, specifically their assigned ip address in CCM 4.1(2). ( I know that in CCM4.1 devicelist can give me the same information but we are going to upgrade to CCM5 and I have real
-
I need to stock available qty at long term planing (ms05) not calculate some location that qty status nettable. Example : Location yy stock onhand 100 EA (Nettable) Location xx stock onhand 10 EA (Nettable) MRP
-
Script to update your mirrorlist based on up2date mirrors
I got tired of manually updating my mirrorlist file so I wrote a small script today to update my mirrorlist, you might find it useful as well: NOTE: I assume ZERO responsibility whatsoever for any harm caused by this script and by using it you agree
-
MethodBinding from commandLink not being called
Hello, I am building a dynamic datatable and everything is being rendered fine. However, now I want to implement row selection on the table and am doing so by rendering a commandLink on each row that the user can click to select the row. I would like