Tree in tablecell

Hello,
I hope somebody can help me.
I have a Table (DefaultTableViewModel and so on) and a tree. Now I want to integrate the tree in a tablecell in the jsp-file.
nancy

Hi,
a TableViewModel contains in each Cell a com.sapportals.htmlb.Component.
Such a Component can be a simple TextView or a Tree.
Regards,
Gerhard

Similar Messages

  • Cannot insert the OpenXmlElement "newChild" because it is part of a tree.

    hi,
    am getting this error(Cannot insert the OpenXmlElement "newChild" because it is part of a tree.) when i try to give border values to the table.
    here is my code,
    if
    (sValue ==
    InsideVerticalBorder insideVBorder =
    new
    InsideVerticalBorder();
    insideVBorder.Val =
    new
    EnumValue<BorderValues>(BorderValues.None);
    tblBorders.AppendChild(insideVBorder);
    else
    InsideVerticalBorder insideVBorder =
    new
    InsideVerticalBorder();
    insideVBorder.Val =
    new
    EnumValue<BorderValues>(BorderValues.Single);
    tblBorders.AppendChild(insideVBorder);
    banupriya

    private void FindBookmarksAndReplaceWithTable(OpenXmlElement sliblingElement, string text, string partType, object part, System.Data.DataTable dt, WordprocessingDocument activedoc, string stylename)
    Run nRun = new Run();
    DocumentFormat.OpenXml.Wordprocessing.Table table = new DocumentFormat.OpenXml.Wordprocessing.Table();
    TableProperties props = new TableProperties();
    TableBorders tblBorders = new TableBorders();
    TopBorder topBorder = new TopBorder();
    topBorder.Val = new EnumValue<BorderValues>(BorderValues.Single);
    tblBorders.Append(topBorder);
    InsideHorizontalBorder insideHBorder = new InsideHorizontalBorder();
    insideHBorder.Val = new EnumValue<BorderValues>(BorderValues.Single);
    tblBorders.Append(insideHBorder);
    TableLook tableLook = new TableLook()
    Val = "04A0",
    FirstRow = true,
    LastRow = false,
    FirstColumn = true,
    LastColumn = false,
    NoHorizontalBand =false,
    NoVerticalBand = true
    props.Append(tableLook);
    int iRowCnt = dt.Rows.Count;
    int iColCnt = dt.Columns.Count ;
    Paragraph pp = new Paragraph();
    DocumentFormat.OpenXml.Wordprocessing.TableStyle tableStyle = new DocumentFormat.OpenXml.Wordprocessing.TableStyle() { Val = "ITIS_RFP_Table" };
    props.Append(tableStyle); table.AppendChild<TableProperties>(props);
    for (var i = 0; i < iRowCnt + 1; i++)
    var tr = new DocumentFormat.OpenXml.Wordprocessing.TableRow();
    for (var j = 0; j < iColCnt; j++)
    Paragraph para = new Paragraph(); ParagraphProperties prop = new ParagraphProperties();
    Run rn = new Run();
    Text txt = new Text();
    RunProperties rp = new RunProperties();
    Bold bld = new Bold();
    TableCellProperties tableCellProperties3 = new TableCellProperties();
    TableCellWidth tableCellWidth3 = new TableCellWidth() {
    Width = "2394", Type = TableWidthUnitValues.Auto
    Shading shading3 = new Shading()
    Val = ShadingPatternValues.Clear, Color = "grey", Fill = "grey", ThemeFill = ThemeColorValues.Accent1
    tableCellProperties3.Append(tableCellWidth3);
    TableCellWidth tableCellWidth3 = new TableCellWidth() { Width = "2394", Type = TableWidthUnitValues.Auto };
    Shading shading3 = new Shading()
    Val = ShadingPatternValues.Clear, Color = "grey", Fill = "grey", ThemeFill = ThemeColorValues.Accent1
    tableCellProperties3.Append(tableCellWidth3);
    if (i == 0)
    sValue = dt.Columns[j].ColumnName.ToString();
    if(sValue == "F1" || sValue == "F2" || sValue == "F3" || sValue == "F4"||sValue == "F5")
    sValue = "";
    } tableCellProperties3.Append(shading3);
    Justification justification1 = new Justification()
    { Val = JustificationValues.Center };
    prop.Append(justification1);
    para.Append(prop);
    rp.Append(bld);
    rn.Append(rp);
    else
    sValue = dt.Rows[i - 1][j].ToString();
    var tc = new DocumentFormat.OpenXml.Wordprocessing.TableCell();
    tc.Append(tableCellProperties3);
    txt.Text = sValue.ToString();
    rn.Append(txt);
    para.Append(rn);
    tc.Append(para);
    ApplyStyleToParagraph(activedoc, stylename, stylename, para);
    tr.Append(tc);
    if (sValue == "") {
    InsideVerticalBorder insideVBorder = new InsideVerticalBorder();
    insideVBorder.Val = new EnumValue<BorderValues>(BorderValues.None);
    tblBorders.Append(insideVBorder);
    else
    InsideVerticalBorder insideVBorder = new InsideVerticalBorder();
    insideVBorder.Val =new EnumValue<BorderValues>(BorderValues.Single);tblBorders.Append(insideVBorder);
    props.Append(tblBorders);
    table.Append(tr);
    nRun.Append(table);
    pp.Append(nRun);
    sliblingElement.InsertBeforeSelf(pp);
    yes, i did not post entire code here . but i got errors in this part .if you want full code of that particular function  i can put it here for ur testing purpose.
    banupriya

  • Create tree and store it's value in an array

    I have to create a tree as shown below:
    2--->7-->6-->5-->3
    ---->4
    ---->8
    Here the numbers are the nodes of the tree and --->denotes the connection between them.
    2
    7 8
    6
    5 4
    3
    Another representation
    2 is connected to 7and 8, 7 is connected to 6 and 4, 6 is connected to 5 and then 5 to 3.
    Currently I am able to display the graph as shown in the first diagram but while storing the value, I am facing a problem.
    I have declared a double dimensional array to store the array index.This gives me 2 as a[0][0],7 as[0][1],6 as [0][2],5 as [0][3], 3 as [0][4] and 8 as [0][1] and lower(2nd) 5 as [0][2].
    Now since the timestamps are same for 7 and 8 and that for 6 and 5 so I saved them in the same array location.Instead I want 7 as [0][1][0] and 8 as[0][1][1].
    I am using recursion to built and I knw I cant add a new [] everytime.
    Can any1 of u suggest me how to store my array?
    Thanks
    The display I am trying to show instead coming proper in this windows so ------- means the connection between parent and children.
    Edited by: abheyb on 25 Mar, 2008 5:45 PM

    Hi,
    Here you have to use the pure object oriented concept rather than using procedure oriented(like c).
    Design a user defined class according to your problem that extends with any Collection. For Example. TableCell
    Declare a attribute TableCell tableCell in your class.
    Write the method called addCell(TableCell tableCell)
    and printTablecell()
    In this method you need to follow the recursion concept.
    Design as u need...! If you are designing for binary tree, then you need to declare two attribute called tableCell1 and tableCell2
    Bye.....!

  • Problem with trees and memory handling.

    Hi there, I just want to know if, when I create a large binary tree, and I re-"pointed" the root pointer to another node somewhere below in that same tree (say, a terminal node), will the "upper" parts of the tree (starting from the new root node) be removed/deleted from memory? Please explain your answers.
    Thank you.

    f I changed the root to B, will A and its children be
    deleted from memory?If you do root = B, AND if nothing else is referring to A or C or anything else beneath them, then A, C, and all of C's children will become eligible for garbage collection.
    Whether the memory actually gets cleaned up is something you can't really predict or control, but it doesn't really matter. If it's needed, it will get cleaned up. If it's not needed, it may or may not get cleaned up, but your program won't care.
    So, in short, yes, for all intents and purposes, A's, C's, and C's descendants' memory is released when you re-root to B.

  • How to blick tree view few specific nodes

    here i got a code which show how to blink tree view node but i am confuse that how to blink few node.
    Answered by:
    Avatar of Tamer Oz
    20,185
    Points
    Top 0.5
    Tamer Oz
    Partner Joined Sep 2009
    2
    8
    17
    Tamer Oz's threads
    Show activity
    Treeview control - How to make a node blink?
    Visual Studio Languages
    .NET Framework
    >
    Visual C#
    Question
    Alert me
    Question
    Vote as helpful
    0
    Vote
    Hi,
    Is there a "elegant" way to make blink a treeview node?
    I am thinking to use a timer with the collection of nodes that I want to make the blink effect, and update the icon ...
    Friday, November 06, 2009 6:19 PM
    Reply
    |
    Quote
    |
    Report as abuse
    Avatar of Kikeman
    Kikeman
    R. BOSCH
    105 Points
    All replies
    Question
    Vote as helpful
    0
    Vote
    Hi,
    You can develop your custom control for this purpose. The logic you mentioned was correct. Here is a sample control that I developed by the logic you mentioned.
    public class BlinkingTreeView : TreeView
    private Timer t = new Timer();
    private List<TreeNode> blinkingNodes = new List<TreeNode>();
    public BlinkingTreeView()
    t.Interval = 1000;
    t.Tick += new EventHandler(t_Tick);
    bool isNodeBlinked = false;
    void t_Tick(object sender, EventArgs e)
    foreach (TreeNode tn in blinkingNodes)
    if (isNodeBlinked)
    //update Icon
    tn.Text = tn.Text.Substring(0, tn.Text.Length - 1);//to test
    isNodeBlinked = false;
    else
    //update Icon
    tn.Text = tn.Text + "*";//to test
    isNodeBlinked = true;
    public void AddBlinkNode(TreeNode n)
    blinkingNodes.Add(n);
    public void RemoveBlinkNode(TreeNode n)
    blinkingNodes.Remove(n);
    public void ClearBlinkNodes()
    blinkingNodes.Clear();
    public List<TreeNode> BlinkingNodes
    get { return blinkingNodes; }
    public int BlinkInterval
    get { return t.Interval; }
    set { t.Interval = value; }
    public void StartBlinking()
    isNodeBlinked = false;
    t.Enabled = true;
    public void StopBlinking()
    t.Enabled = false;
    just show me how to use BlinkingTreeView class. i will have tree view which will have few node and few nodes may have few child nodes. now how to achieve by this class BlinkingTreeView and show me how to blink few specific node not all. thanks

    better to come with code. first populate tree view with some dummy node this way
    Root
           Child1
                    Child1-sub1
                    Child1-sub2
           Child2
                    Child2-sub1
                    Child2-sub2
    now blink Child1-sub2 & Child2-sub1. please come with code. thanks

  • Follow up Tree Question

    Hey,
    Using the arrows, when I open one tree node, I want other
    tree nodes to close. I saw a sample that sepiroth had done, but I
    don't want to click on the whole bar. I just want to use the arrows
    to expand and contract. Any help would be great. I have attached
    the code

    If you just wish to make a duplicate of one hard drive to another hard drive in the same G5, then do this:
    Clone using Restore Option of Disk Utility
    Open Disk Utility from the Utilities folder.
    Select the destination volume from the left side list.
    Click on the Restore tab in the DU main window.
    Check the box labeled Erase destination.
    Select the destination volume from the left side list and drag it to the Destination entry field.
    Select the source volume from the left side list and drag it to the Source entry field.
    Double-check you got it right, then click on the Restore button.
    Destination means the second internal drive. Source means the internal startup drive.

  • How can I display and change built-in symbols of a tree control programmatically?

    I want to set the built-in symbols of a tree control during runtime.
    I only found an example to assign custom pictures but not how to select one of the 40 built-in symbol.
    Many Thanks 
    Solved!
    Go to Solution.

    The ActiveItem.SymbolIndex will allow you to select the symbol for the active item. You can use the ListBox Symbol Ring Constant (Dialog and User Interface palette) to select a symbol (or you can just enter the number directly if you know what it is).
    Message Edited by smercurio_fc on 07-10-2008 09:36 AM
    Attachments:
    Example_VI_BD6.png ‏2 KB

  • How can I create a Tree with Color Picker icons?

    I'm a newbie to Flex. I want to create a tree which has color
    picker icons.
    As an analogy for the Mac users out there, I envision a
    control like the Calendars section in iCal, where you can specify
    the color for each individual node. These colors are then used in
    other parts of the application.
    The Flex 3 documentation specifies four methods for setting
    node icons on a Tree control, none of which seems to suit my needs:
    -The folderOpenIcon, folderClosedIcon, and defaultLeafIcon
    properties
    -Data provider node icon fields
    -The setItemIcon() method
    -The iconFunction property
    In other words, I want to "setItemIcon" to an mx:ColorPicker,
    if that makes any sense.
    Is there a standard way of doing this? If not, how can I go
    about implementing such a control? Thanks in advance!

    well, Network UI should be used.

  • To get  node value in a tree

    I have a tree with 3 level and it is working fine.. In view mode I need the First child value of the 3rd level with out clicking / Selecting from teh Tree node..
    for eg;
    A -- ist level
    Ap -- 2nd level
    Apple -- 3rd level
    So What I need is that I should get a message 'Apple' While landing teh Form itself without clicking on teh Tree
    Thanks in Advance...

    To my knowledge it is not possible to get the value of a node which is not selected.
    What you have to do is to build up a memory structure similar to your tree, then you can access any node at any time.
    Peter

  • A tree-view in HTML page with nodes generated with java script in run time is not visible in the UI Automation Tree. Need Help

    I have a HTML page with an IFrame. Inside the Iframe there is a table with a tree view
    <iframe>
    <table>
    <tr>
    <td>
    <treeview id="tv1"></treeview>
    </td>
    </tr>
    </table>
    </iframe>
    In UIA, i am able to traverse till the tree view but not able to see it.
    I have used the TreeWalker.RawViewWalker Field to traverse the node from the desktop Automation.RootElement. 
    I tried to use AutomationElement.FromPoint method to check whether i am able to get that element. Fortunately i was able to get the automation element. 
    i tried to get the path to root element from the node element using the TreeWalker.RawViewWalker. I was able to get the parent path to the root element.
    But trying the reverse way like navigating from root element to tree node, was not getting the element for me. 
    Please help me with suggestions or inputs to resolve this issue. 

    Thanks Bernard,
    It works fine with JInitiator but not working with
    the JPI. For JPI what settings I need to do ??hi TKARIM and Bernard, i am having similar problem even with the Bernard's recommended setup. could you post the webutiljini.htm (i presume you are using config=test) ?
    i am actually using jinitiator 1.3.1.28 with Oracle HTTP Server of OAS 10gR2) calling Forms Server 6i (f60cgi). After setting up according to Bernard's recommended setup steps, the java console showed that it loaded the icon jar file when it could not read the form, but it skipped the loading of the icon jar file once it read and started the form. How do we specify in the form to pick up the icon from the jar file instead from a directory ? Or do we need to specify ? Any ideas ?
    Thx and Regards
    dkklau

  • How to create a tree view in adobe configurator

    Hi
              How to create a tree view in adobe configurator
    Thanks 

    Please, can you explain what you mean exactly?

  • Issue with creation of ADF Table from ADF Tree selection

    Hi,
    Following is the usecase.
    I've created ParentVO & ChildVO from a single table with view criteria to filter the nodes.And then created two View links ParentToChild & ChildToChild.
    Added VOs & corresponding ViewLinks to ApplicationModule. It's got created hierarchy as Parent1->Child1->Chiled2 in Data model section of AM.So Iam done with tree creation process in Model.
    As VC can't be applied for sub levels. In order to set the VCs for sublevels, followed the below approach.
    Created a bind variable for tree. I've set the VC for both parent & child VOs in managed bean before setting the tree variable in setTree method. So now Iam able to display the required tree in UI with applying VCs.
    Now , I can select the required nodes from tree and then click on command button to display the selection list as a table.
    In order to achieve this, I tried below two options.
    1) Created separate Child VO instance (Child3) from Child VO and applied same view which applied initially. and the dragged the Child3 from Datacontrol to UI(jsff) as a table. When I run the application,it's displaying all the records from the DB table without applying VCs.
    2) Dragged the Child2 as a table on UI. When I run the application, it's displaying first record from the table without applying VC.
    But no luck in getting the required functionality.
    I've Following queries.
    a) If we update any transient attribute value for an VO instance, will it effect at VO level or only for that particular instance?
    Why because, I've created new instance of same VO. But the changes are not effecting for transient attributes in the new instance of VO.
    b) Can some one suggest on my usecase to display the selected nodes from a tree in table format?
    I tried my level best to explain the usecase. But let me know,if you have any queries on my usecase.
    Thanks in advance,
    Samba.

    This is my code:
    <af:column id="c1" headerText="Sponsor Status">
    <af:selectOneChoice label="Label 2" id="soc1" value="#{row1.sponsorStatusDesc}"
    validator="#{backingBeanScope.EditSponsorDetails.OnSponsorStatusChange}"
    valuePassThru="true">
    <f:selectItems value="#{pageFlowScope.confLists.spStatus}"
    id="si1"/>
    </af:selectOneChoice>
    </af:column>
    and this i what HTML code says..
    <select id="confSponsor:r2:0:tbIEEEsp:0:soc1::content" class="x2h" name="confSponsor:r2:0:tbIEEEsp:0:soc1">
    <option _adftmpopt="t" value="" title=""></option>
    <option value="4" title="Approved">Approved</option>
    <option value="3" title="Declined">Declined</option>
    <option value="6" title="New">New</option>
    <option value="2" title="Not Valid">Not Valid</option>
    <option value="5" title="On Hold">On Hold</option>
    <option value="1" title="Pending Approval">Pending Approval</option>
    <option value="7" title="Unidentified">Unidentified</option>
    </select>
    Stll i cannot see any value populated in SelectOneChoice

  • Help Needed in tree Creation

    Hi Friends,
    I need to create a Tree with functionality of creating the Nodes dynamically.In the window we need to have 2 buttons Add Node and Remove Node.Can we achieve this requirement.
    Please provide me your valuable inputs.
    Reagrds,
    ravikanth

    Hi Ravi,
    For this, you can go thru the following components
    DEMODYNAMIC AND WDR_TEST_UI_ELEMENTS in your system.
    Hopes this will helps you.
    Regard
    Manoj Kumar
    Edited by: Manoj Kumar on Mar 2, 2009 4:51 PM

  • How to populate list in tree view  dynamically

    Hi,
    I am new to  Indesign Plugin creation.
    I want to create list in tree view dynamically.
    I tried wlistboxcomposite sdk sample in indesign cs4.
    I have some doubts in this.
    1. Can i write my own method in  WLBCmpTreeViewAdapter class because it's implements ListTreeViewAdapter
    If it's possible how can i call this method.
    2. In this example they populating static string in constructor like this
    WLBCmpTreeViewAdapter::WLBCmpTreeViewAdapter(IPMUnknown* boss):ListTreeViewAdapter(boss){
    K2Vector<PMString> lists;
    for (int32 i = 0; i< 12; i++){PMString name(kWLBCmpItemBaseKey);name.AppendNumber(i+1);name.Translate();lists.push_back(name);}
    InterfacePtr<IStringListData> iListData(this, IID_ISTRINGLISTDATA);}
    and this list is populating on loading time but my requirement is i have one button "get list" after clicking this button i have to populate the list, how can
    i achieve this.
    Pls do needful.
    Thanks
    Arun

    The TreeViewAdaptor is responsible for mapping your custom data to the tree view itself.  I almost always start by making it return some fixed number of objects with names "item 1" etc. That way you get the tree view working first.
    Then, after you get it laid out and displaying properly, you can worry about using real data.  At that point, you have your adaptor return the actual number of items in your list and each individual item.  Then you can populate your list when you push your button and then invalidate the IControlView of the tree view widget to cause it to redraw.  At that point your adaptor will get called and your data should appear.
    Jon
    "Expert for hire"

  • How do I build a family tree on macbook pro

    Any suggestions/recommendations on how to build a family tree on my MacBook Pro? Should I use Numbers or Pages? I am used to using Window based programs. Not interested in paying $100 for a template.
    I am starting with my grandparents, then their 8 children (my aunts and uncles), then my generation (cousins), then our children, and 1 more generation. Would like to add birth/death/married dates, and possiblly geographical info.
    I appreciate your help and time - thank you.

    Best of all would be an application designed for the purpose, such as (for example) MacFamilyTree, but you can make a mock family tree using cells in Excel or Numbers.

Maybe you are looking for

  • I have a problem in activate Alaaclaud account and I can not open the device

    السلام عليكمI have a problem in activate Alaaclaud account and I can not open the device

  • Problem installing  jdeveloper

    Can't seem to install the jDeveloper either. Were is jdevw.exe. Its not in .jdev/bin. The only executable is jdexec and it does nothing. It look like a great set of development tools. If only I could get it to work. Would like comments on what other

  • Corrupted file with new Pages

    I have used Pages for about 3 years and found it to be a good editor for documents.  I have recently upgraded to Mavericks which brings a new version of Pages.   I have the latest level of pages and OS installed.  When I opened a pages document, it a

  • Most SharePoint DBs are not supported with AlwaysOn for Disaster Recover?

    Hi ... I'm in the middle of testing and assessing DR site for our SharePoint MSQQL instance. I found a lot of talking about ALwaysOn. I try to figure it out. It is nice and easy, combine DR and HA in single solution- Wow. After proceeding with some r

  • Show an on-premise webpage in HCP Portal page

    Hi all, I'm new to the HCP Portal, though I've already some experience on HCP Java/Hana development, and I think it definitely rocks! I'd be glad if anyone could assist in the following scenario. I need to expose on HCPortal a url belonging to an on-