Devloping Tree element
work with Tree Ui element i know the element at design time .
so i taken Tree item typenode under Tree ui.
and bind the data source cursponding node in context.
when come to deployed .
under tree the elements are not displayed.
what to do.
Is there any thing to do.
i gone through the sap help.
instead of sap help, help me by providing exact info regarding to Tree ui element.how to work with that.
immediate pionts are availble
Hi
see this link it will help you to some extent
Tree UI Element
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/de59f7c2-0401-0010-f08d-8659cef543ce
Thanks,
Tulasi Palnati
Edited by: Tulasi Palnati on Jul 30, 2008 8:40 AM
Similar Messages
-
Tree element: How to make nodes editable
Is it possible to make the nodes of a Tree element (a design time element visible in the view editor) editable? Or is there a tree component that can be used via "component use" with which to accomplish that?
I don't want to use a table with embedded TreeByKeyTableColumn or similar!Hi Klaus,
It's not possible for a tree ui element. As you pointed out you could achieve it using a TreeBy* master column of a table. The ByNesting variant uses a similar context structure as a tree. In addition, using a table will enable scrolling - which is not possible for the Tree ui element.
Best regards,
Thomas -
Hello!
I'm trying to create a kind of a navigation tree for my application.
It should represent some elements of an XML structure and some other nodes for other options.
The binding with the context is not a problem, I can create the tree up to all the levels I want to.
The problem now is, that I don't know, how to get the "current tree element", when there is any action.
For example:
public void onActionSelect(...) {
String test = wdContext.currentTreeNodeElement().getText();
wdThis.wdGetContext().currentContextElement().setSelectedElement(test);
With this method I can get the text of the "first level nodes". If I want to get the "second level node", I can do
String test = wdContext.currentTreeNodeElement().currentChildElement.getText();
..and for the next levels so on.
Isn't there any general method to get the information of the selected element without knowing before, whether it is a nodeElement or a nodeElement.currentChildElement or a nodeElement.currentChildElement.currentChildElement, ...?
Greetings,
RamóHi,
if you following that pdf ,
i think your not implemented the below code in DomodifyView method
if (firstTime) {
IWDTreeNodeType treeNode = (IWDTreeNodeType) view.getElement("TheNode");
/* The following line is necessary to create parameter mapping from parameter "path" to parameter "selectedElement".
Parameter "path" is of type string and contains the string representation of the tree element (its corresponding context element to be exact)
that raised the onAction event. Parameter "selectedElement" is of type IWDNodeElement (or extends it) and is defined as parameter in the event handler
that handles the onAction. The parameter mapping defined here translates the String "path" into the corresponding context element that then can
be accessed within the event handler
treeNode.mappingOfOnAction().addSourceMapping("path", "selectedElement");
/* The following line is necessary to create parameter mapping from parameter "path" to parameter "element".
Parameter "path" is of type string and contains the string representation of the tree element (its corresponding context element to be exact)
that raised the onLoadChildren event. Parameter "element" is of type IWDNodeElement (or extends it) and is defined as parameter in the event handler
that handles the onLoadChildren. The parameter mapping defined here translates the String "path" into the corresponding context element that then can
be accessed within the event handler
treeNode.mappingOfOnLoadChildren().addSourceMapping("path", "element");
please cross check once.
Thanks,
Ramesh -
How to give url to an tree element?
I have created a 2 views
The first view contains a Tree Control like:
MainMenu 1
- submenu 1
- submenu 2
MainMenu 2
- submenu 1
- submenu 2
MainMenu 3
- submenu 1
- submenu 2 and a tranparent container in the right side of tree.
The second view contain some contents.
I want to give action for the tree element like if I click the submenu , it should display the second view in the transparent container of the first view.
Can anyone pls suggest me?
Thanks.Hi Abdul,
I guess what you need is a Link To Action table column. You can achieve same by following the below mentioned steps:
1) click on table and try to bind it to the context node
2) change the property "cell editor of table column" to "link to action" of the column/attribute from where you would like to trigger the action.
3) bind the "visible" property of VC to a context attribute of type boolean
4) set this attribute to abap_true in event OnAction__()
this will display your view at that location.
Hope this helps.
Regards,
Anoop -
Problem by activating Monitoring Tree Element in NW Administrator
Hi All,
I try to activate the monitor tree element in http://<host>:<j2ee port>/nwa but I find not active the entry server and the related entry "applications". The step necessary for my configuration is to select the tab Configuration of the Details pane, select Data Collection from the Show drop-down menu, and activate all monitors of the subtree by selecting the Enable All Children.
The button [Enable All Children] is in a gray colour as all path starting from the "Server" entry.
For my configuration I'm following the information in "How to Monitor Exchange Infrastructure.pdf".
Any suggestion will be well appreciated.
Many thanks in advance for your support.
Regards,
Edited by: GiovanniB on Jul 1, 2009 4:19 PMmay be below tags would help you
Re: IT0019 Date of Monitoring TAsk
How to create a Customizing Monitoring Tree Element(MTE) for CCMS alerts.
regards
nag -
Hi,
i implemented a tree structure in a table with MasterColumn UI element . I added also to MasterColumn two Menu UI Elements. It schould be possible for user, after clicking one of the tree element to choose function -add to filter-, and this currently used element name must be copied and transferred to another view. Unfotunataly i can't find any solution for these problems:
nodeTable()->root element,
1)wdContext.nodeTable().getTitle() , it gives only currently selected element, or the first element if nothing was selected, i can't get the Element who has called this menu action.
2) if i even select some line in table, i can get only the root element name, not child element name
Could you please help?
Thank you very much.
Kind Regards,
DariaHi Armin,
Thank you very very much!!!!!
i added a parameter("filterParam") as you sad in Filter action and mapped in wdDoModifyView() this way:
IWDMenuActionItem menu =(IWDMenuActionItem)view.getElement("MenuActionItem");
menu.mappingOfOnAction().addSourceMapping("nodeElement","filterParam");
Now it's working!!!
I only need now to differ nodes (wich level it is) to copy it to the right view Inputfield. I hope it's possible just by adding a new value attribute such as typeOfnode to Table(datasource) Node ...
One question.
Is "nodeElement" parameter defined in meta model of Mastercolumn UI?
Thank you once more for help!
Kind regards,
Daria -
How do I get text value in column next to tree element?
I can only get elements from the left column...how do I read from other column.
For example if I want "Version 1.0" i get the section1 tag, then the first child...and then?
thanks
Attachments:
get_tree_column_elements.JPG 17 KBThank you
in the mean time I came up with a similar solution.
What is the difference between the property and invoke node I used and yours? Maybe my version is more flexible because require a generic tree reference? But yours looks more simple and clear...
I'm not an expert of these functions I was just wondering about the theory beyond them and which is best in which case.
diego
Attachments:
get tree attributes.JPG 55 KB
tree example.JPG 21 KB -
[BUG] showPopupBehavior not working for af:tree elements
Hi,
It's currently impossible to have a showPopupBehavior showing a different noteWindow for each elements of an af:tree. However, it works correctly with a table so I assume it's a strange tree bug. The test case is the following:
<?xml version='1.0' encoding='windows-1252'?>
<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=windows-1252"/>
<f:view>
<af:document title="Test showPopupBehavior">
<af:form>
<af:panelHeader text="Test showPopupBehavior">
<af:popup id="tooltip">
<af:noteWindow>
<af:outputText value="Tooltip"/>
</af:noteWindow>
</af:popup>
<af:panelGroupLayout layout="vertical">
<af:outputText id="src1" value="Outside" clientComponent="true">
<af:showPopupBehavior alignId="src1" popupId="tooltip" triggerType="mouseOver"/>
</af:outputText>
<!-- tableValues is an Integer array -->
<af:table value="#{showPopup.tableValues}" var="val">
<af:column headerText="Value">
<af:popup id="tableTooltip">
<af:noteWindow>
<af:outputText value="Tooltip: #{val}"/>
</af:noteWindow>
</af:popup>
<af:outputText id="src2" value="Texte avec popup: #{val}" clientComponent="true">
<af:showPopupBehavior alignId="src2" popupId="tableTooltip" triggerType="mouseOver"/>
</af:outputText>
</af:column>
</af:table>
<!-- treeValues is a ChildPropertyTreeModel containing node objects supporting a value attribute -->
<af:tree value="#{showPopup.treeValues}" var="node">
<f:facet name="nodeStamp">
<af:group>
<af:popup id="treeTooltip">
<af:noteWindow>
<af:outputText value="Tooltip: #{node.value}"/>
</af:noteWindow>
</af:popup>
<af:outputText id="src3" value="Node with popup: #{node.value}" clientComponent="true">
<af:showPopupBehavior popupId="treeTooltip" alignId="src3" triggerType="mouseOver"/>
</af:outputText>
</af:group>
</f:facet>
</af:tree>
<f:facet name="separator">
<af:spacer width="1" height="20"/>
</f:facet>
</af:panelGroupLayout>
</af:panelHeader>
</af:form>
</af:document>
</f:view>
</jsp:root>Thanks,
~ SimonSimon,
the difference seem to be the difference between a component child (table) and facet (tree). I can open a popup for the tree when pacing the popup outside of the tree. Then however this doesn't show dynamic data (at least none that is available on mouse over). I see how this could be done with a clientListener but this then wont be declarative
Frank
Ps.: Hope the tootip was just the sample to illustrate the problem and not the usecase you are after, because for this you could have used the shortDescr property on the node's outputText -
Any function like 'SEARCH', 'SEARCH NEXT' available in tree element?
As we know, the tree control in EnjoySAP Controls provides the functions 'Search' and 'Search Next'. Are these functions available in a tree UI element in WebDynpro?
Hi
According to my information i dont think functions like 'Search' and 'Search Next' are available for a tree UI element in WebDynpro.
If you want to check any value follow the below instructions:
1. In the test script editor, open the command interface.
2. Expand the tree in the left side of the structure editor to display the relevant element.
3. From the context menu, choose Insert Check. The element is copied to the GETS_AND CHECKS node.
4. Under the GETS_AND CHECKS node, double-click the element to display it for editing in the right-hand pane.
5. Parameterize the CheckAction field and ExpectedValue field as required. Optionally, parameterize the Value field to perform a GET as well.
For further clarifications please go through the link:
http://help.sap.com/saphelp_nw2004s/helpdata/en/84/ef2a41b108f523e10000000a155106/frameset.htm
Rergards
Elizabeth -
Dear All:
I've created a tree node.
In a action after I update some values, I reconstructed the tree node.
That means I do context invalidate first and create many elements in it
Now my question is when I reconstructed the node, whichever element on the tree in view,the tree will expand all.
I just want to expand the node which one i click.
Did anyone face the same problem?
Any hint would be help, thanks.
Allenhi Allen,
Is the expanded property of the tree bound to an attribute?
Create this attribute directly under the tree node.
Set it to true/false depending on the node selected. -
Copying / Cloning component tree elements to different pages
I am copying a DataTable element to a session bean so that I can use it on a different page.
On the new page I have a DataTable tag in the JSP which is bound to the DataTable in session. However, only the attributes of the DatatTable element are rendered (e.g. <DIV style='height:999px; width:99px;'>, not the children components (e.g Columns).
I presume the problem is because most of the references in the session bean component refer to a different view. Am I correct in my thinking? If so, is there a way to clone? (I know it is not supported in UIComponent)?
PS. Fundamentally, I am have many pages with tabbed or scrollable datatables. I want to 'send' these to one generic page. Here I can disable the scroll bar / pages, so that all rows are visible and then the user can print the table content.
Edited by: lafual on Feb 6, 2008 3:34 AMThinking this blog would indicate we would need to create a new viewset for the additional view on the window for CatDDLB
then figure out how to get / code the data to the window?
/people/vikash.krishna/blog/2009/10/08/crm-70-how-to--5b-create-an-overview-page-with-content -
Using Tree Elements as parameters to a CFC function using AJAX
I would like to use a <CFTREEITEM> tag element ("value") as a parameter to a CFC function. I regret that I am fairly new to AJAX and I do not have te exertise to accomplish this. Does anyone have a method? Page 671 of the Coldfusion 8 Developers Guide indicates that it is not posiible to do this "directly", but I am hoping to find a way through possibly less direct means.
Hi kanishka wickrama
Here is an example of passing parameters from SAP to a Stored Procedure:
In the stored procedure you need your variable with the word output as follows:
@FromDate varchar(12) OUTPUT,
@ToDate varchar(12) OUTPUT
Then in your query in SAP pass them as follows (in this example the dates are pulled from OPCH, but you can also use OFPR as it contains all the start and end dates for each financial period)::
DECLARE @FromDate DATETIME
DECLARE @ToDate DATETIME
SELECT @FromDate = T0.DocDate FROM dbo.OPCH T0 WHERE T0.DocDate = '[%0]'
SELECT @ToDate = T1.DocDate FROM dbo.OPCH T1 WHERE T1.DocDate = '[%1]'
EXEC MY_STORED_PROCEDURE @FromDate, @ToDate
Hope this helps
Kind regards
Peter Juby -
Check box in Tree ui element.
Hi All
I am using org.eclipse.swt.widgets.TreeItem for creating tree structure. Now I am trying to incorporate check box for last tree element. For example if I am preparing tree structure for files the check box should appear only for text file not for directory. User would select the file by checking the box. Here is my code..
for (int i = 0; i < files.length; i++) {
TreeItem item2 = new TreeItem(item1, 0);
item2.setText(files.getName());
item2.setData(files[i]);
if (!files[i].isDirectory())
//here i have to do some thing so that i can select the file in check box
if (files[i].isDirectory()) {
new TreeItem(item2, 0);
I cant use java script here. So pls help me out without using js.
Thanks a lot.
Sunitin oninputprocessing use the following code to read all the form field values
data: fields type tihttpnvp,
field type ihttpnvp.
call method request->get_form_fields
changing
fields = fields. -
Tutorials and Documentation on Tree UI Element for ABAP
Hi Everyone,
I am having trouble finding documentation or tutorials on creating Tree structures in web dynpro for ABAP.
Basically, I need some tutorials on using the "Tree" UI Element. Also, how would I go about adding Check Boxes to such a control? For example, someone would like to select the lowest item in a Tree using a check box.
Tank you.
Christiaan.Hi
>a) How to check or how to write the code to check whether the current selected node is first level or second level or third level etc from the above example tree structure
In the context node you have to have attribute level (integer). When you populate context nodes for the tree you have to set correct value 0, 1, 2, ... for the attribute. Then it'll be easy for you to read the value and understand what is the level.
>b) How to insert a node only at the first level , second level and third level i etc from the above example
It slightly depends on whether you use recursive nodes or not. But in general it's simple - just create a new element in the corresponding node
>c) How to delete only leaf node . i have a requirement which says that i can delete only leaf nodes , if i delete a node which having children then it should not allow to me. i can delete a node which is not having any child
IWDNode node;
if (node.getChild("<child node name>").size() <= 0) {
// leaf node
>4) How to rename any node, once user selects any node then on click of any button then popup opens which retrieves the current textvalue of a node and user have an inputfield where he enters then on click of save then that new textvalue needs to be updated to the selected tree element
Just bind the text property of a tree item to some node attribute (let say NAME). The just update a value of the attribute.
BR, Siarhei -
Simple Requirement in Tree UI element
Hi All
I have the following requirement which is very simple in webdynpro java but the same changes are not reflecting in Tree UI element.
I have created the context struture as follows and i added this context node to the dataSource property of the Tree UI element.
but at the runtime the tree elements are not displayed as i added the context structure to the dataSource property.
i am getting the blank tree at runtime there is no elements at all.
Can you let us know if any settings are required to change the Tree UI properties.
Context Node Structure
A
A1
A2
B
B1
B2
C
C1
C2
Any pointers on this then it would be great help to me
Thanks
Trisha Rani
Edited by: Trisha Rani198 on May 21, 2009 6:25 PMI gave you a complete example in your other thread.
Armin
Maybe you are looking for
-
Problems adding and removing dual monitor
using FCE to do some light editing at work. continually need to flip between a single and dual monitor setup due to other things i need to do on a different computer. having problem with FCE not moving all windows back to the main monitor after remov
-
why this doest work? error: float cannot be dereferenced System.out.println(Float.parseFloat(3.0).toString()) can any expert tell me? thx your terry
-
TS3989 Photo Stream not uploading to computer
My Photo Stream has stopped automatically uploading to a folder on my pc. Any ideas why? How can this be fixed?
-
This document is not Valid PDF file
Hello I had tried many application beside Adobe Reader touch and all of them give the Same Result I moved the file to my PC it works normally. So any suggestion?
-
JSP ERROR! Can't run "DATE"example
Hello All, I am gettin a pretty simple error. I am trying to build and deploy the jwstutorial13\examples\web\date example. What happens is the it builds perfectly but when i install it says it is installed but when i go into the directory manager and