Link in tray header to expand/collapse it.
Hi All,
How can i place a link in the tray header .
<htmlb:tray id = "tray_addr"
title = "If the item is to be delivered to a different address, you enter the new address here."
tooltip = "Enter the shipping address here"
width = "945"/>
In the title i need to make the word here a link , which when clicked , expands the tray.
Thanks,
Anubhav.
Hi Raja,
I did it as follows:
<htmlb:tray id = "tray_addr"
tooltip = "Enter the shipping address here"
width = "935"
isCollapsed = "<%= iscollapsed %>"
design = "BORDERLESS"
title = "If the item is to be delivered to a different address , you enter the new address <a h r e f='ja v a script: c h eckL i n k();' id = ' mylink ' > here< / a>" >
fu n c tion che c k Li n k( )
d o c u ment. g e t Ele m e n t B yI d ( 'b l a nk _a dd r ' ).c li c k ( );
<%-- -Blank image to triger server event- --%>
<htmlb:image id = "blank_addr"
s r c = "1X1.GIF"
o n C l i c k = "link_click" />
</htmlb:gridLayoutCell>
In Oninputprocessing:
IF event IS NOT INITIAL AND event->event_name = htmlb_events=>image.
CASE event->event_server_name.
when 'link_click'.
my ABAP code.
ENDCASE.
ENDIF.
Set a flag in oninput processing , check it in layout and use the attribute isCollapsed of the tray .
Just thought the idea might help someone.
Thanks for the help.
Regards,
Anubhav.
Similar Messages
-
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 -
Show 'Expand'/'Collapse' Icon in Tray
Hi All,
I have done the following configuration in the portal and the result is confusing, can you please help me understand why?
1. I have created 2 pages, first is a standard portal page and second a webdynpro page in a test folder
2. copied a standard SAP iView to the test folder and added it to both the pages as a delta link
3. opened the iview property from the std. page and set the "Show u2018Expandu2019/u2019Collapseu2019 Icon in Tray" property to NO
4. opened the iview property from the webdynpro page and set the "Show u2018Expandu2019/u2019Collapseu2019 Icon in Tray" property to NO
When i preview the standard page the iView appears without the "Expand/Collapse" icon, but when i preview the webdynpro page the iview appears with the "Expand/Collapse" icon.
Thanks,
AnandHi Raghu,
Our portal version is 7.01 SPS15.
Hi All,
Any suggestions?
Edited by: Kirupanand Venkatapathi on Oct 4, 2010 11:32 AM -
How to Expand/Collapse Select Option Tray
Hi,
I have a View in which I have dynamically created a select-option Tray and then added select-options within the Tray using:
DATA lr_cost_ctr TYPE REF TO data.
DATA lr_interfacecontroller TYPE REF TO iwci_wdr_select_options.
DATA lr_select_options TYPE REF TO if_wd_select_options.
* Initialise the selection screen.
lr_interfacecontroller = wd_this->wd_cpifc_select_options_search( ).
lr_select_options =
lr_interfacecontroller->init_selection_screen( ).
* Add a tray.
lr_select_options->add_block(
i_id = 'TRY_ACCT_***'
i_block_type = if_wd_select_options=>mc_block_type_tray
i_title = 'Account Assignment' ).
* Add a Select Option.
lr_cost_ctr = lr_select_options->create_range_table( 'KOSTL' ).
lr_select_options->add_selection_field(
i_id = 'COST_CTR'
i_within_block = 'TRY_ACCT_***'
it_result = lr_cost_ctr ).
This works fine, but how do I dynamically expand and collapse the select-option Tray ? There are plenty of examples for expanding/collapsing normal Trays by binding the "expanded" attribute at design time or dynamically. But with a Tray created as a select-option block I do not have a reference to the Tray.
I have searched high and low but cannot find how to do this.
I don't want to create the Tray at design time because there will be select-options above and within the Tray.
Any help will be appreciated.
Thanks & regards,
GroganHi,
My Approch is:
---Initially set the webBean property in processReq
Hgrid.setAutoQuery(false);
---On Button click navigate to the same page n set the webBean properties..
put var in session.
pageContext.forwardImmediatelyToCurrentPage(null, true, null);
---in process req get teh value of var from session.
if(pageContext.getSessionValue(var)!= null)
Hgrid.setAutoQuery(true);
Hope it will helps..:)
Note:
---We cant modify the webBean properties in processformReq and processformdata.
Regards
Meher Irk -
Expand/Collapse feature in table maintenance view
Hello experts,
We have created a custom table and maintenace view. For some table rows, the only key value difference is an EFFECTIVE DATE. The generated table maintenace dialog by default "Collapses" the rows that only differ by Effective Date. Using the Expand <-> Collapse button, we can see the missing detail for individual rows.
Can the maintenace dialog be expanded by default?Hi,
See the given link, It may help to you.
maintenance view
Regards,
Shamma -
Outlook 2013 - Online Archive folders do not remember expand / collapse
For our QA group, we have just upgraded them from Office 2010 to Office 2013 SP1. We have one user that noticed something. With Outlook 2010, the client would remember which folders he had expanded or collapsed under his "Archive" (the online archive
generated by the Archiving feature of Exchange server). However, once we upgraded him to Outlook 2013, this is no longer true. Now, the "Online Archive" header is fully collapsed when he open Outlook every time.
To test, I created a small folder structure with some items in my own "Online Archive" section and was able to reproduce this behavior. Outlook 2013 will remember which folders are expanded or collapsed for the folders in my Inbox but not for the
folders in my Archive. Is there a way to have Outlook 2013 remember the expand / collapse settings for the Archive?Hi,
I'm marking the reply as answer as there has been no update for a couple of days.
If you come back to find it doesn't work for you, please reply to us and unmark the answer.
Best Regards,
Steve Fan
Forum Support
Come back and mark the replies as answers if they help and unmark them if they provide no help.
If you have any feedback on our support, please click
here -
Dynamic tree structure (expand/collapse)
i want to do one tree struc example (expand /collapse)
using xml;
like
WOrld
|
|
----INDIA
|
-------Andhrapradesh
|
|
-----------------Hyderabad
| | | Visakhapatnam
Karnataka
|
|
Tamilnadu
America
|
Australia
in the frame at left side tree structure will be there ;when i click world hyperlink and at the right side one forum will come like this;
country name ---------
description ---------
when i enter america and enter submit;the country should come in the left frame;i will refresh left frame when click submit;ofcourse i know that;like wise when i click state hyperlink
state name ---------
description ---------
statename should come under state tree node;
i will also maintain this info in database also;i am using oracle9i;how can i do this the tree structure;how to approach;if anybody give me any links revelant to this?atleast give me some idea what to do?please dont give me the DOM tutorial or SAX Tutorial cos i already gone through but i didnt get any idea.
bye
chaitanyaInitailly set xerces.jar (parser, freeware download from apache site) to calss path
Suppose
<WORLD>
<INDIA>
<ANDHRA>abc</ANDHRA>
<VISHAKHA>fsdfd</VISHAKHA>
<UP>dss</UP>
</INDIA>
<USA>
<FLORIADA>bsbs</FLORIADA>
<NEWYORK>dsds</NEWYORK>
</USA>
</WORLD>
try{
dbf = DocumentBuilderFactory.newInstance();
db = dbf.newDocumentBuilder();
mapDocument = db.newDocument();
Element worldElement = mapDocument.createElement("WORLD");
Element indiaElement = mapDocument.createElement("INDIA");
Element andhraElement = mapDocument.createElement("ANDHRA");
andhraElement.appendChild(mapDocument.createTextNode("sdsd");
Element vishakhaElement = mapDocument.createElement("VISHKHA");
vishkhaElement.appendChild(mapDocument.createTextNode("sdfdf");
Element upElement = mapDocument.createElement("UP");
upElement.appendChild(mapDocument.createTextNode("fsfs");
indiaElement.appendChild(andhraElement)
.appendChild(vishkhaElement)
.appendChild(upYElement)
//lly do for usaELement
//finally add indiaElemebnt and usaElement to worldElement
worldElement.appendChild(indiaElement)
.appendChild(usaElement)
mapDocument.appendChild(worldElement);
}catch(FactoryConfigurationError fce){
fce.printStackTrace();
}catch(ParserConfigurationException pce){
pce.printStackTrace();
I think this u need -
JSF Datatable row data - Expand/Collapse
Hi,
I just started learning the JSF concepts. I read articles by BalusC which are very clear and easily understandable. Thanks to BalusC.
I have a requirement to implement expand and collapse data using JSF datatable. The data comes from the backing bean is in the form of java.util.List which contains StudentInfo. I will have to display following data from the list.
*{color:#0000ff}name {color}(this is to be displayed a link), firstname, lastname, dob*
I am able to display the data in a nice formatted table using h:datatable. My main hurdle is to display an expanded info when the name link is clicked. The expanded info should be displayed below the row spanning all columns. The additional info being the comments, instructions whic are the part of the row data. Here is the code describing the StudentInfo.
Appreciate if someone help me with suggestions. Very helpful if any sample code is avaialble.
Regards,
Smitha
public class StudentInfo {
//Following fields to be shown in row data
private String name;
private String firstname;
private String lastname;
private String dob;
//Following fields to be shown in expanded form
private String comments;
private String instructions;
public String getName() {
return name;
public void setName(String name) {
this.name = name;
public String getFirstname() {
return firstname;
public void setFirstname(String firstname) {
this.firstname = firstname;
public String getLastname() {
return lastname;
public void setLastname(String lastname) {
this.lastname = lastname;
public String getDob() {
return dob;
public void setDob(String dob) {
this.dob = dob;
public String getComments() {
return comments;
public void setComments(String comments) {
this.comments = comments;
public String getInstructions() {
return instructions;
public void setInstructions(String instructions) {
this.instructions = instructions;
}That's not possible with plain h:dataTable.
Consider Tomahawk t:dataList where in you can specify rows and colspans yourself using plain HTML. Show/hide rows should be easy with JavaScript. -
Expand/Collapse option in Portal - SP13
Hi everybody!!
We have EP7.0 NetWeaver 2004s and we upgraded the SP from 5 to 13. When SP13 was installed, the icon to expand/collapse doesn't work correctly (Detail Navigation in Navigation Panel in the Light Framework). The icon always send the user to the main and first page. With the SP5 it works well.
Do you have any idea about how can I solve this??
Thanks in advance for any help that you can give me!
Best Regards,
ClaudiaHi Claudia,
Take a look at this thread maybe it gives you some answers...
How to disable automatic loading of iView/Page in detailed navigation?
We have SP13 at this moment and its working "fine":
1. When clicking on the expand/collapse icon (the triangle) the first navigation node in this folder/workset is NOT loaded automatically.
2. When clicking on the text part of the link (the actual url) the first navigation node in this folder/workset IS loaded.
In addition to step 2 you can steer what navigation node is loaded by setting the parameter "Default Entry for Folder" this property is by default set to No.
Also take a look at the property: "Clicking Folder Name Launches First Node" of the Detailed Navigation iView.. Maybe this is by some reason got set properly...
Good Luck,
Benjamin Houttuin -
Expand/Collapse option in Portal iviews
Hello,
I am on EP7.0 NW04s and have problem with the Expand/Collapse Tray option for each of the services in ESS because when the user by some chance collapse the Tray and then logout and log back in and come to the same service it still shows collapsed .....rather than being Expanded ....So I want to know whether there is an option in the Portal to make the Default setting for the Tray as Expanded always unless the user change it to Collapsed....
Any help would be highly appreciated.Hi,
In the iview properties -> initial state [open or close] -> Set it to Open
Then, Expand the property -> in the Inheritance [ sub property] [drop down] -> [set to] Locked in target object
Then, make the property End-User Personalization to Hidden -> save.
Please reward if found useful.
Cheers,
Mohan -
How to implement expand/collapse property for custome components
can any one tell me how to implement the expand/collapse
property for the custom components in flex. i need something like
hierarchy of custom components which on the expand should be able
to show the children of the corresponding component and a line
linking between them and collapsing property too.. can any one help
me out.."hanu106" <[email protected]> wrote in
message
news:gfr2co$biq$[email protected]..
> can any one tell me how to implement the expand/collapse
property for the
> custom components in flex. i need something like
hierarchy of custom
> components
> which on the expand should be able to show the children
of the
> corresponding
> component and a line linking between them and collapsing
property too..
> can any
> one help me out..
Tree?
AdvancedDataGrid?
Nested Acordions -
Expand Collapse Functionality on Left Vertical Navigation
Hi,
I am trying to implement an expand/collapse functionality for subcommunities and their links in the left vertical navigation menu. My communities appear as horizontal tabs (as in the support center navigation). Once i have a community selected, the left navigation is rendered with all subcommunities and their links. If i now want to collapse/expand a specific subcommunity, how do i do it?
More specifically, how do i identify what subcommunity i clicked on the vertical nav, so that the next time i am rendering the display of the left nav, i can appropriately expand/collapse only that subcommunity.
regardshi,
go through the sample code , in this there are 2 radiobuttons, if one is pressed then first sunscreen will come and if second radiobutton is pressed then second subscreen will come
write this where u r decleraing code for selection screen:
PARAMETERS: par_cust radiobutton group g1 DEFAULT 'X' USER-COMMAND sel ,
par_vend radiobutton group g1.
PARAMETERS: par_cust radiobutton group g1 DEFAULT 'X' USER-COMMAND sel ,
par_vend radiobutton group g1.
*selection criteria for venodr if par_vend radiobutton is ticked
SELECT-OPTIONS: s_txcd1 FOR bset-mwskz MODIF ID M1,
s_txcd2 FOR bset-mwskz MODIF ID M1,
s_txcd3 FOR bset-mwskz MODIF ID M1,
*selection criteria for customer if par_CUST radiobutton is ticked
s_txcd12 FOR bset-mwskz MODIF ID M2,
s_txcd13 FOR bset-mwskz MODIF ID M2,
*write this code at : AT SELECTION-SCREEN OUTPUT
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF par_vend = 'X' AND SCREEN-GROUP1 = 'M2'.
SCREEN-INPUT = 0.
SCREEN-ACTIVE = 0.
SCREEN-INVISIBLE = 1.
MODIFY SCREEN.
ENDIF.
IF par_cust = 'X' AND SCREEN-GROUP1 = 'M1'.
SCREEN-INPUT = 0.
SCREEN-ACTIVE = 0.
SCREEN-INVISIBLE = 1.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
regards
rahul -
Expand/collapse all regions
I have 5 show/hide regions on a page. is it possible to Expand/collapse all regions by clicking a "Show/Hide All" link or a button. any ideas are appreciated.
thanks,
SuryaHi Surya
Create a new HTML region at the top of your page, using No Template and use this as the Source:
<script type="text/javascript">
function showHideAll(displaystyle)
var hideIMG = "/i/htmldb/builder/rollup_plus_dgray.gif";
var showIMG = "/i/htmldb/builder/rollup_minus_dgray.gif";
var k;
var r = document.getElementsByTagName("DIV");
if (r)
for (k = 0; k < r.length; k++)
if (r[k].className == 't12Hide')
r[k].style.display = displaystyle;
var i = document.getElementsByTagName("IMG");
if ( i )
for (k = 0; k < i.length; k++)
if (i[k].id.substr(0, 5) == 'shIMG')
i[k].src = (displaystyle == 'block') ? showIMG : hideIMG;
</script>
<a href="javascript:showHideAll('block');">Show All</a>
<a href="javascript:showHideAll('none');">Hide All</a>The image names and className (t12Hide) are based on my test page - change these as appropriate for your own page (you may need to do a View Source on the page to check these values).
Andy -
Expand/Collapse in Navigation Panel
I need to remove the entire bar containing the expand/collapse and scroll buttons just above the detailed navigation section.
Now I am using the Light framework page which I copied from Standard Portal Users.
I am aware that in com.sap.portal.layouts.framework.par file there is a JSP wherein I can make the modifications.
But I do no want to change the sap par file. Instead I wish to make a new framework out of this modified PAR file.
Can anyone please tell me how to go about this.
Thanks!!Hi Prem,
u can do this without changing the par file...goto content admin..select ur framework page and open this..in this, select desktop innerpage....select detailed navigation and open it...in property section...remove tray option...hope this will solve ur problem
regards
Amit
P.S. reward points if helpful -
Remove the expand/collapse image for af:treeTable
I am showing some data in a treeTable, which some rows will not have any further childs. How can I remove the expand/collapse image for those rows in the component <af:treeTable> ?
Regards,
UdayHi,
according to http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/doc/tagdoc/core/treeTable.html you can only hide the expand/hide all link
Frank
Maybe you are looking for
-
Error message: "Attempt to capture video without a video device selected."
When trying to log and capture, I'm receiving the following error message: "Attempt to capture video without a video device selected. Please select a video device in your capture presents and try again." In Capture Presents under DV NTSC 48 kHz it sa
-
Could i use visual studio to make a windows form that could interact with facebook?
I'm a beginner to windows forms and have just read my way through tutorials at learnc++.com so i want to get started on a project to practice my c++ and also a project that i could find usefull. What I want to do is check a facebook group page every
-
Cable Needed For Dual Monitors iMac 9.1
Hi, I want to connect a (VGA) lcd screen to my imac 9.1 - Intel Core 2 Duo, but i have no idea what cable to buy... A DVI to VGA, Mini displayport to VGA, mini DVI to VGA... I want to buy this because i want to run 2 monitors, so i have more screen s
-
Play video clip button on thumbnail...
Hello! Is there a way to customize that button yet? In the beginning stages of FCServer, I remember it only allowed you to play the clip proxy. I'd REALLY like to have the ability to click the button there for original media and maybe another button
-
Question on HTMLB page form Validation
Hi Group, How to validate a HTMLB page? Like suppose, I have a few input fields and I hope we can go with using a Java Script in it to validate the form. But, how to do validate? Please let me know how to valid some input fields in HTMLB page? Thanks