Af:tree - how do I highlight the selected tree node?
af:tree
I checked the generated CSS file. I found that when a tree node is selected, the related CSS attribute is:
.xj:link{
font-family:Arial,Helvetica,Geneva,sans-serif;
font-size:10pt;
font-weight:normal;
color:#663300
I created a customized CSS attribute, but then all of the links have the customized CSS attributes.
How do I just highlight the selected tree node link?
Thanks,
--Todd
try doing the onclick javascript method
you have to place it on the node element and id must be made dynamic
for this use 'this.id'
by which the current id of the node is passed
and by capturing the id name in a var
use the same for invoking its selected property and make it true
like this
var currentid = this.id;
this.form.currentid.selected = true;
Similar Messages
-
How do I highlight JTree selection ?
Hi,
How do you highlight the selected node in a JTree from code ?
I am deleting a node and want to highlight the preceeding node. I select it via this code :-
jTree.setSelectionPath( newSelectedPath);
jTree.scrollPathToVisible( newSelectedPath);
jTree.repaint();
But that does not highlight the node.
Many thanks in advance,
AaronWith the Move tool selected, this seems to be the only way to enlarge a selection.
What I'd want to do in Joshua's situation though is to draw a marquee around the clips I want to select. The inability to hold down shift or control and draw a second marquee to add more clips to a selection seems like a flaw! Is there a key combination or do I have to always select individual clips (or groups) after the initial selection? -
Highlight the selected Tree Node
Hello Everyone,
Can someone plz tell me how to highlight the selected tree node ?
After selection, user should be able to see which node was last selected.
ThanksHello,
for me it is not really clear what you have done. Sorry!
Because I have problems to paste code, I will describe how you can test that function.
Take the BSP application HTMLB_SAMPLES and copy it to ZHTMLB_SAMPLES. Take page "treeviewSample.htm" and add the following node behind node22:
<htmlb:treeNode id = "node23"
text = "Node 2.2, normal text"
selection="PRIMARYSELECTION">
Perhaps this will show you how it works and help you.
As far as I can see the attribute "selection" can't be set via table.
Best regads
Renald
Edited by: Renald Wittwer on Jan 21, 2010 1:36 PM -
ADF Tree 10.1.3.1, not highlighting the selected node.
Hi,
I'm having a problem highlighting the selected node in the ADF CoreTree.
I use the treehandler and model as described in the link: http://technology.amis.nl/blog/2116/much-faster-adf-faces-tree-using-a-pojo-as-cache-based-on-read-only-view-object-showing-proper-leaf-nodes-again
I use this objects because my tree was showing leaf node with the image to collapse.
The tree now looks great, the only problem is that when i click on a node the focusRowKey is set accordingly(debugging the getter and setter) but is not show as the selected node.
The tree jspx code looks the follow:
<!--TREE-->
<af:tree value="#{ActosTreeHandler.treemodel}" var="node"
focusRowKey="#{ActosTreeHandler.focusRowKey}"
id="treeActos"
varStatus="nodeStatus" binding="#{ActosTreeHandler.jsfTree}">
<f:facet name="nodeStamp">
<af:commandLink text="#{node.description}" partialTriggers="treeActos"
action="#{backing_documentos_detalhesDocumento.treeAction}">
<!--disabled="#{node.nodeType != 'ACTO'}"-->
<af:setActionListener from="#{ActosTreeHandler.jsfTree.rowKey}"
to="#{ActosTreeHandler.focusRowKey}"/>
<af:setActionListener from="#{node}"
to="#{ActosTreeHandler.selectedNode}"/>
<af:resetActionListener/>
</af:commandLink>
</f:facet>
</af:tree>Does anyone know how this can be solved?
Best Regards.Hi,
is this the same as
Re: Facing a problem in programmatically setting focus on a node in <af:tre
Frank -
Win 7, 64 bit
RH 9 (latest patch)
HtmlHelp (CHM) output
I have many TOC pages that are identical.
For example, in our software some toolbar icons are repeated on different screens. In the built CHM help, if I click on a later identical page reference in our TOC, the TOC automatically jumps focus to the first entry. It doesn't stay on the selected entry.
This causes confusion as all of a sudden the user is in an entirely different context. How can I get it to highlight the selected item and not jump to the first reference?Hi Jared
Note that this issue is generically related to any help system and isn't a "RoboHelp specific thing". When multiple points in a Table of Contents reference the same page, how is the system supposed to determine exactly which TOC node is the correct one?
The way past this is to create multiple distinct nodes from the TOC to the topic.
One way involves never creating an actual link from the TOC to the topic. Instead, create as many distinct topics as you need in the TOC and have them redirect to the desired topic. The bottom line is that the correct page is presented and the correct TOC node is highlighted.
Another way involves a similar approach. Create distinct topics that simply present an inline frame (IFRAME) that has the single "real" topic.
Yet another way involves another variation. Create a Snippet that is essentially the single entire topic. Then create distinct topics that only contain the snippet.
Hope this helps... Rick
Helpful and Handy Links
RoboHelp Wish Form/Bug Reporting Form
Begin learning RoboHelp HTML 7, 8 or 9 within the day!
Adobe Certified RoboHelp HTML Training
SorcerStone Blog
RoboHelp eBooks -
How to highlight the selected value in a table
Hi All,
I have list of roles in a table like admin,dba...etc.
i will select the current selected role using
Stgin role =wdCotext.currentElement().getRole();
After getting the role i bind this value in context.
now my requiremnet is i will navigate to other table view containing all roles like admin,dba,networkadmin .
I have to highlight the selected role in previous table to new table containing the all the roles.
means selected role should be highlight in a next table view list of roles.
please help.Hi mohammad,
To achieve this functionality, use another integer variable to store the index of the currently selected element in the first view. Pass this variable's value to the next view (either as plug parameter or throgh mapping) and set the Lead selection for the table as this index in the second view.
In the first View ....
int n = wdContext.current<your_node>Element().index()
pass this value from first view to second view.
In the second view
wdContext.node<your_node>().setLeadSelection(n)
Hope this helps,
Best Regards,
Nibu.
Message was edited by: Nibu Wilson -
How could i get the selected node in the JTree
getLastSelectedPathComponent() �returns the parent node of currenr selected, so how could I get the selected node itself in the JTree
I will appretiate for any help!i think you can get by....
TreePath treePath = tree.getSelectionPath();
DefaultMutableTreeNode treeNode = (DefaultMutableTreeNode) treePath.getLastPathComponent(); -
How can I see the selected tags in the tag bar clearly
How can I see the selected tags in the tag bar clearly (they used to be in black, now they do not change color; a highlight or Bold would help)
The History menu lets you revisit the page where you can drag any page element from it.
How would you sort through thousands (tens of thousands) of files found in a cache? -
IMac desktop using OS X Lion How can I highlight a selected text in an email?
iMac desktop using OS X Lion
How can I highlight a selected text in an email?Send the table as an attachment, either a spreadsheet (if the recipient needs to be able to edit it) or a PDF.
-
How i can show the selection screen input field in the top of page in alv
hi ,
how i can show the selection screen input field in the top of page in alv grid output.
tell me the processHi,
excample from my program:
FORM topof_page.
DATA: l_it_header TYPE TABLE OF slis_listheader WITH HEADER LINE,
l_info LIKE l_it_header-info.
DATA: l_it_textpool TYPE TABLE OF textpool WITH HEADER LINE.
DATA: l_key LIKE l_it_textpool-key.
READ TEXTPOOL c_repid INTO l_it_textpool LANGUAGE sy-langu.
DEFINE m_selinfo.
if not &1 is initial.
clear l_it_header.
l_it_header-typ = 'S'.
l_key = '&1'.
translate l_key to upper case.
read table l_it_textpool with key key = l_key.
if sy-subrc = 0.
shift l_it_textpool-entry left deleting leading space.
l_it_header-key = l_it_textpool-entry .
endif.
loop at &1.
case &1-option.
when 'EQ'
or 'BT'
or 'CP'.
write &1-low to l_it_header-info.
when others.
write &1-low to l_it_header-info.
concatenate &1-option
l_it_header-info
into l_it_header-info
separated by space.
endcase.
if not &1-high is initial.
write &1-high to l_info left-justified.
concatenate l_it_header-info
l_info
into l_it_header-info
separated by space.
endif.
if &1-sign = 'E'.
concatenate ']'
l_it_header-info
into l_it_header-info.
endif.
append l_it_header.
clear: l_it_header-key,
l_it_header-info.
endloop.
endif.
END-OF-DEFINITION.
m_selinfo: s_trmdat,
s_trmext,
s_trmint,
s_fkdat,
s_delno,
s_vbeln,
s_deact,
s_kdmat.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = l_it_header[].
ENDFORM.
I hope, this will help you.
Regards
Nicole -
How can we pass the select-option value to modulepool program?
hi,
how can we pass the select-option value to modulepool program ?
Because if i declared select-options in executable program and i used SSCRFIELDS to define push buttons in selection screen.
My requirement if enter the values to select-options and press UPDATE pussbotton then i want call screen which contains tablecontrol.
How i get select-option values to PAI of call screen for getting the data from database table to my internal table?Oh I thought that you have selection-screen and again you are working on dialog programming.
if you want to use select-option directly in module pool then it is not possible.
but you can do other way.
create two varaiables
data : v_kun_low like kna1-kunnr,
v_kun_high like kna1-kunnr.
use these two variables in layout ,let user knows that he can not give options like gt,lt,eq ,it will be always BT.
and also when you see normal report program,you can use multiple values in either low or high,but here it is not possibel.
use can enter only low value and high value.
when you come to program point of view
declare one range
ranges r_kunnr for kna1-kunnr.
do the coding like
r_kunnr-low = v_kun_low.
r_kunnr-high = v_kun_high.
r_kunnr-options = 'BT'.
r_kunnr-sign = 'I'.
append r_kunnr.
now you can use r_kunnr in select query ,it will work like select-option.
other than this there is no option.
Thanks
Seshu -
How to find out the selected column in Table Control
Hi all,
How to find out the selected column in Table Control?
Thanks & Regards,
YJRHi,
Let your table control name in Screen painter be TC1.
READ TABLE TC1-COLS INTO WA_COLS (some wok area)
WITH KEY SELECTED = 'X'.
IF SY-SUBRC = 0.
CLEAR: W_DUMMY, W_COL_NAME.
SPLIT WA_COLS-SCREEN-NAME AT '-' INTO W_DUMMY
W_COL_NAME.
endif.
W_COL_NAME gives you the column name.
Hope it helps.
cheers
sharmistha -
How can I reduce the selection for the characteristics value in a BW query
Good morning,
I need to find out how I can reduce the selection for the characteristics values in a BW query.
In a BW query I have a characteristic "Due month".
The characteristic values shown in the query are from 01.2001->03.2007. I would like to reduce it to the last 2 years,in the query view, without deleting the data for the other years in the cube.
Do you know how this can be done?
Thank you in advance for your feedback.
Kind regards,
Linda Verding
Staff Consultant - CSChi,
First thing you have to do is check the report how the data is being restricted only to those months.
1) one it can be variable in which the code is written for that to populate for last few years.
or else it must have been hardcoded for these months.
Go into your report and underneath the characteristicsCALMONTH there must be an variable or hardcoding.
You need to change this here in the report.
You dont have to delete anything there.
Regards, Siva -
How can I access the selected element of a DropDownByIndex-box?
Hi,
I want to create a WebDynpro with two web services. I created the first request with the first web service and the results are displayed in a DropDownByIndex-Box. Now the user should choose one of the results and I would like to use this for the request with my second web service. How can I access the selected Element of a DropDownByIndexBox in the Code?
Thank you!!
JuliaHi Julia,
when user select one element in drop down it automatically set lead selection of node binded to dropdown.
For example if you bind a dropdown to node myNode with value attribute myAttribute the lead selection of node myNode is set in the position of element choose from user.
So to take this chooised element use this code:
wdContext.currentMyNodeElement.getmyAttribute()
bye
Andrea -
How to find out the selected line in list
Hi all,
Can any one tell me how to find out the selected event in the listYour subject said 'selected <b>line</b> in list' and your description says 'selected <b>event</b> in the list'. Which one is it you want to know?
For line you will use the event AT LINE-SELECTION and for event you will use AT USER-COMMAND.
Please reward and close if answered, if not, please revert back to the forum with more details.
Thanks,
Srinivas
Maybe you are looking for
-
I currently have my credit card on my iTunes account and when I have no money in my bank account it won't let me download the free apps even though they don't cost anything. How do I stop this so I can download or remove my credit card?
-
I've tried installing flash player a dozen times, with both the instructions on the adobe page and the mozilla page. I'm running Fedora Core 11 with Mozilla 3.5.9. I've gotten "libflashplayer.so" and copied it to every "mozilla/plugins" directory on
-
How to install the olds special effects of voices EAX in the Sound Blaster X-Fi Fatal1ty Platin
Dear forum Members:? Today I acquired the new Sound Blaster X-Fi Fataty Champion Series Platinum, but I have taken myself the surprise that the sound effects EAX - that in?the old card included voice effects like? ZEUS, Man -> Woman, Woman -> Man, Sq
-
i updated to windows 8 and whenever i plug my iPod in it says it syncs but nothing is downloaded onto my iPod
-
Report painter - eliminate zero columns/rows
Dear Experts, Can anyone tell me how to hide (or) remove the columns and rows contains zero values, in a report which is developed by report painter. Thanks Balu Edited by: balu 18 on Feb 20, 2010 11:05 AM