Expand all and collapse all functionality in adf accordion
Hi
I need to implement a functionality where in there are two links "Expand All" and "Collapse All" on clicking these links the accordion should behave accordingly.
Was wondering if this feature is possible by using <af:panelAccordion> component. Or is there any work around for this? Would using jquery be better for this fuctionality.
Some help in here asap is appreciated.
Thanks
You should ask this in the ADF forum: JDeveloper and ADF
Similar Messages
-
Expand All and Collapse All with Data table
Hi Guys,
I have a data table as shown in code pasted . where the first and second column have row category which gives a categorization with a twisty.
When i click on the twisty or item name the level beneath it expands. Eerything works fine.. but i need to have to links Expand All and Collapse All which when clicked open the entire hierarchy or collapse it. Can anyone suggest a way of doing. Can it be done using javascript, I am not comfortable with java script .If someone has done this before please share the piece of code.Also please suggest the different ways of doing it. I am using RAD 7 and IBM JSF components.
<hx:dataTableEx border="0" cellpadding="2" cellspacing="0"
columnClasses="columnClass1" headerClass="headerClass"
footerClass="footerClass" rowClasses="rowClass1, rowClass2" binding="#{masterPublList.tablebindData}"
id="tableEx1" styleClass="dataTableEx" value="#{masterPublList.lst_publication}" var="varlst_publication">
<hx:columnEx id="columnEx3">
<hx:panelRowCategory id="rowCategory2"
styleClass="panelRowCategory"
value="#{varlst_publication.publCategory}" collapsed="true">
</hx:panelRowCategory>
</hx:columnEx>
<hx:columnEx id="columnEx2">
<hx:panelRowCategory id="rowCategory1"
styleClass="panelRowCategory" value="#{varlst_publication.publSubCategory1}">
<h:outputText id="text5" styleClass="outputText"></h:outputText>
</hx:panelRowCategory>
</hx:columnEx>
<hx:columnEx id="column1">
<hx:outputLinkEx id="linkEx1" styleClass="outputLinkEx" value="#{varlst_publication.publUrl}" target="_blank">
<h:outputText id="text3" styleClass="outputText" value="#{varlst_publication.publName}"></h:outputText>
</hx:outputLinkEx>
</hx:columnEx>
<hx:columnEx id="columnEx1">
<h:selectManyCheckbox disabledClass="selectManyCheckbox_Disabled"
id="checkbox1" styleClass="selectManyCheckbox" value= "#{varlst_publication.publLang}">
<f:selectItems value= "#{masterPublList.lst_lang}"/>
</h:selectManyCheckbox>
</hx:columnEx>
</hx:dataTableEx>
Thanks in anticipationHi Naamkeek,
Per my understanding that you have added the Expand All and Collapse All button in an drill down report by adding the "Go to report" action, now you got the report always refresh and return to the first page, right?
I have tested on my local environment and can reproduce the issue, no matter whether to add two buttons or using the parameter to do the Expand All and Collapse All, it is always return to the first page.
Gernerally, SQL Server Reporting Services does a postback while clicking a expand/collapse icon. SSRS re-renders reports because it need to regenerate the pages to fit the defined width & Height. That is why SQL Server Reporting Services reloads
the whole report.
This is by design. And, currently, we are not able to turned it off.
I would suggest you submitting a wish at
http://connect.microsoft.com
If the service requests frequently, we may include it in the next release.
Appreciate your understanding, and if you have any more questions, please feel free to ask.
Regards
Vicky Liu -
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 -
How to disable "Expand All" and "Collapse All" when no node in a tree
I have a <af:tree> inside <af:panelCollection>.
All items under viewMenu like "Expand", "Expand All Below", "Collapse All Below", "Expand All" , "Collapse All", "Scroll to First" and "Scroll to Last" are implemented by default.
When there is no node in a tree, "Expand", "Expand All Below", and "Collapse All Below" are grey out.
However, "Expand All" , "Collapse All", "Scroll to First" and "Scroll to Last" are still enabled to be clicked.
Is there any way we can diable them when no node?When I highlight last node in the tree and all nodes are collapsed, I see "Expand All Below" enabled but "Collapse All Below" disabled. Which is expected. Expand All Below will expand all the child nodes under a node.
QA filed a bug said that "Expand All Below" should be disabled since no node below it. However, I don't find any place to control them. Can you confirm this? Or you know some way to do this?It it not a bug then. You don't have to control it and framework takes care of enabling and disabling it accordingly.
If you need to expand all the nodes programatically, check this out.
http://www.oracle.com/technetwork/developer-tools/adf/learnmore/78-man-expanding-trees-treetables-354775.pdf
-Arun -
Post RH 9 Upgrade Expand All and Collapse All not working.
After upgrading to RoboHelp 9 from 7 - the Collapse All and Expand All is not working. I am taking over after attending a RoboHelp 9 Training Class a little over a week ago, so any help would be appreciated.
Hi,
What is your output? Where are the show/hide buttons placed: In the topic or in the toolbar? You're using RoboHTML right?
Did you use any kind of twisties in your RoboHelp 7 project? The show all hide all buttons are controlled by a custom script and I'd like to know which method you are using. (If you know which.) See also http://www.grainge.org/pages/authoring/twisty/twisty.htm
If you're not sure which method you are using, can you post the HTML of the show/hide all button/link?
Greet,
Willam -
Adding a link to expand and collapse all DHTML drop downs
Hi, can anyone help me adapt the "Skinny on Skins" example "Add a Toolbar button to expand and collapse all DHTML drop downs" so that it will work with just a simple HTML link in RH8, instead of being attached to a custom skin button?
The example looks like this:
Step 1. Open the Skins Editor for the skin where you want to add the button.
Step 2. After the preview loads into the window, ensure that the Toolbar tab has focus, then click the plus symbol. The Custom Toolbar Item dialog should display.
Step 3. Type the Item Name (This is simply an internal reference for the button).
Step 4. Type the Text (This is the text that will be seen by the end user. The field must contain something. So if you don't want any verbiage to display for your toolbar item, simply type a space.)
Step 5. Choose your Image Options, then click the Action tab.
Step 6. Click the JavaScript option button.
Step 7. Enter the following code in the OnClick field:
javascript:toggle()
Step 8. In the JavaScript area, ensure the Inline JavaScript option button is selected, then click the edit (Pencil) icon located to the right.
Step 9. Enter the following code in the Inline JavaScript dialog
var show = "false";
function toggle() {
parent.frames[1].bsscright.focus();
var arrayofDivs = parent.frames[1].bsscright.document.all.tags('DIV');
if (show == "false") {
for (x=0;x<arrayofDivs.length;x++) { arrayofDivs[x].style.display = "block";}
show = "true";}
else {
for (x=0;x<arrayofDivs.length;x++) { arrayofDivs[x].style.display = "none"; }
show = "false"; }
Step 10. Click the OK button to close the Inline JavaScript dialog.
Step 11. Click the OK button to close the Custom Toolbar Item dialog.
Step 12. Click the OK button to close the Skin Editor.
Step 13. Generate WebHelp via File > Generate > WebHelp and ensure that you have the new button selected with a check mark. This will probably require stepping through some screens to see the place where you can select it.
Many thanks
JonathanHi again
I want to use it in the header of one of my Master Pages, so it will only be created/maintained once. Not all my pages have drop downs in so rather than have a toolbar button available for every page, I was trying to be a bit cuter by having two Master Pages - one for normal pages and one for pages with drop downs in.
I'm no javascript expert so I'll see if one of my developers can help.
Thanks anyway
Jonathan -
Select all and deselect all in table control
Hi experts,
I want to make the select all and deselect all options in my table control.
But i can't able to do that one. Kindly suggest me how to do that one.
one more thing, if i select some rows in the table control, and press save it should be saved in some other table. how can i implement that one.
Waiting for ur reply.
Regards...
Arun.Hi Arun,
In the context node that you bind to the table, set the cardinality as 0..n and selection as 0..n. In the UI element Table, set the property selectionMode as 'multi'. Then a toggle button for select/deselect all will appear automatically in your table. You can see it in the top left corner.
For your second question, after selecting the elemets and pressing 'save', in your event handler, do a get_selected_elements( ) on your node. This will return you a set of context elements. Loop through each element and do a get_static_attributes to get the rows. Then you can append these rows to another internal table and bind it to the context. Bind your second table to this node. If the two tables are in different views, the context nodes need to be present in the component controller and mapped to the views.
Hope this helps.
Regards
Nithya -
My music is completely messed up: many songs shortened to 3:01, many songs in different versions. Should I delete all and reimport all my purchases? Or is there a more elgant way of cleaning the media center?
I think you should just rebuild your library.
Clear it out, then drag all the song files back in. You'll lose your ratings and playcounts, etc but I don't see what else you can do. -
Select all and dselect all can any body provide a code for these buttons
hi
i have taken 4 buttons for select all and dselect all and sort up and sort down can any body provide a code for these buttons.
thankshi,
Refer this link...
code for select_all and deselect_all in modulepool -
Link symbol (Hand symbol) in " Show all" and "Hide all"
Hi peter,
With respect to the same topic posted by me, can u help me in
one more requirement (definitely simple for u)
When i try to click these show all/hideall buttons (the hand
symbol) should appear which usually appears when we click any
link.....how this can be done........Hi peter, apart from adding the cursor pointer (per ur
guidance), i also add some "screen tip text" (For ex. "Click to
view instructions of all fields)...i included the tag <a
title="Click to view -----------">
i'm getting the same screen tip text for both "Show all" and
"Hide all" buttons (that is obvious)
If i click "Hide all" button, i want the screen tip text as:
"Click to hide all instructions"..............probably i need to
change this in the "showhide.js" (how to do this).............can
you help me to achieve even this :-) Thankx a lot in advance :-)
Note: You may thing that this screen tip text is not required
for these two buttons (as it is self-explanatory) (I too
know)..........however, i can use this method in any other
requirement........... -
Expanding and Collapsing All Nodes in a TreeByNestingTableColumn
Hi Experts,
I'm using NWDS 7.0.18.
I have a table with TreeByNestingTableColumn (master column).
The child nodes are recursive nodes and are loaded at runtime with an action onLoadChildren when clicking the master column. My question is, when the hierarchy is in its initial state, only the root node is loaded into the table. But I want to add functionality for expanding all nodes in the tree. Is there a way to achieve this, I'm a little confused because the Hierarchy children havent been loaded yet.
Any suggestion will greatly help.
Regards,
Kunal.Hi Kunal,
I got your problem.
To expand & collpase all the child nodes please modify the code as below.
Create two methods exapndAll & collapseAll and call these two methods in existing button actions.
as below.
public void expandAll( com.sap.tut.wd.treetable.wdp.IPrivateTreeTableView.ICatalogEntriesNode node )
//@@begin expandAll()
for (int i = 0; i < node.size(); i++) {
node.getCatalogEntriesElementAt(i).setExpanded(true);
if(node.getCatalogEntriesElementAt(i).getIsLeaf()==false)
expandAll(node.getCatalogEntriesElementAt(i).nodeChildCatalogEntries());
//@@end
public void collapseAll( com.sap.tut.wd.treetable.wdp.IPrivateTreeTableView.ICatalogEntriesNode node )
//@@begin collapseAll()
for (int i = 0; i < node.size(); i++) {
node.getCatalogEntriesElementAt(i).setExpanded(false);
if(node.getCatalogEntriesElementAt(i).getIsLeaf()==false)
expandAll(node.getCatalogEntriesElementAt(i).nodeChildCatalogEntries());
//@@end
public void onActionCollapseAll(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
//@@begin onActionCollapseAll(ServerEvent)
collapseAll(wdContext.nodeCatalogEntries());
//@@end
public void onActionExpandAll(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
//@@begin onActionExpandAll(ServerEvent)
expandAll(wdContext.nodeCatalogEntries());
//@@end
We are invoking the methods recursively to expand/collapse all the child nodes.
This works.
Regards,
Charan -
i thought i did but when i go to actualize the app it keeps asking me for his password cuase his apple id shows ....
what should i do? do i reset it completly and lose all the muisic and pictures?- Go to settings>Store and sign out and sign into your account.
- Apps are locked to the account that purchased them.
- To update apps you have to sign into the account that purchased the apps. If you have apps that need updating purchased from more than one account you have to update them one at a time until the remaining apps were purchased from one account. -
create check all/clear all button for listbox
Hi Arien,
Parthabe is right, next time, try to create a new thread.
So when others try to search for a topic, they can actually find it.
I developed this example code that you can take a look at.
It's using property nodes of the chart to control which plot to show and to force invisible
Message Edited by Van_L on 03-06-2008 07:19 PM
Van L
NI Applications Engineer
Attachments:
choose plot.vi 25 KB -
Cover artwork, the be-all and end all?!
Just spent the day with my Napster hard drive (yes, t'was old) and Itunes. I believe I have found the reason for the problems with cover artwork.
1) In general, artwork will not load if the file is a WAV.
2) Itunes does not have everything.
For the first, right click the file, choose "convert to AAC". When done, erase the WAV file. This will save a LOT of space on your Ipod, too. I suspect similar with MP3 files, but I didn't have any.
For artwork, Google Images, Amazon, and others have artwork. 300 X 300 is the size of the pane, larger will resize, but smaller will not. However, smaller will still work, it will just not fill the pane.
To insert artwork: right click the file, choose "get info" then click the "artwork" tab. Either click "add", or first "delete" then "add", and then load the image. You can also drag the image into the lower left corner where the artwork displays in Itunes, if you have this option open.
Note: artwork means just that, you do NOT need to use album cover artwork. You could use pictures of your cat, dog, or next door neighbour, as long as it's a format that is recognised by Itunes (jpg is great). You do not necessarily need square pictures, either, the pic will simply not fill the pane is all.
JeffI found out that there is no need to convert MP3 files to obtain the same results. Do the following:
- right click on the first track
- click on "Get info"
- click on "artwork"
- right click on the picture and click on "copy"
- click "cancel"
- highlight all tracks of the album by clicking on the first track, then hold "shift" and click on the last track
- right click anywhere on the highlight and click on "get info"
- right click in the box labeled "Artwork" and click on "paste"
- click on OK.
Your artwork will be generated for all the tracks. Next time you synch your iPod, the artwork will also be tranfered.
This is something else that is not well documented in the iPod or iTunes manuals!!!!!! -
I would just like to know why Itunes isn't the be all/end all when it comes to being the center of anyone's home entertainment system?
I would also like to know why Itunes hasn't changed ANY in many years?
Just curious ...
GregIt has changed and it is bloated enough as it is. Since the early days they have added Ping, Match, Genius, a whole media store interface, concomitant movie playing, the whole syncing business with a multitude of i-devices.
There is no need to add a DVD player since DVD Player stands alone quite nicely as it is. Additionally Apple is phasing out DVDs (note the demise of iDVD, all software now being downloads only, and the disappearance of DVD drives from newer models) since of course you're supposed to just get your movies from the iTunes Store.
Maybe you are looking for
-
What's wrong with my Progress Monitor and how do I fix it?
Hello, My progress monitor fails to draw its insides, except when the task is already finished Inside a class that extends SwingWorker<Void, Void> ... @Override public Void doInBackground() throws Exception try this
-
The frustrating 'bug' of the oracle java page if you want 64 bit support.
gosh, i wish there were a way to simply contact the oracle webmaster/webdev team. there isn't, as far as i can find. here's what i just emailed to [email protected] figured i'd share it here, on the outside chance someone at oracle might know how to
-
Mail POP outgoing emails not received (seemingly random) - Experts needed!
Please, please help... I'm having a very strange, very frustrating problem that I believe comes down to the Mail application on my Mac. I am running Snow Leopard (10.6.4) and using three email accounts I access through Mail via POP, and have done so
-
Count the number of message in remote queue.
Does any method in MQSeries or JMS, can count the number of message in remote queue. I try to use QueueBrowser to browser, but got exception when browse the remote queue. thanks.
-
How do you put one in series of the same photo in a new album
I have tried to put just one edited shot, while there are still others "connected" to it.I only want the one I highlight to go in a new folder..but,,it always takes all the other ones as well.I have tried duplicating the one I like and transferring t