How to get position of a ring in a tree control?

Ok, this is probably a stupid question, but how does one get the position of a ring inside of a tree control?  I have a tree with two columns, with rings in the second column.  I can set the position using SetTreeCellRingValueFromIndex(), but how does one get the position after the user has modified the control?  I found the functions GetTreeCellRingIndexFromValue() and GetTreeCellRingValueFromIndex() but I haven't found a way to get either the Index or the Value of the ring (what I'm looking for is the index, but if I can obtain the value I can go from there).  Thanks in advance!
Solved!
Go to Solution.

Hi,
You can use GetTableCellVal function to get the value of the ring.
There is not special "ring" function for that. Maybe that's what you were searching for
From the value you can get to the index using the functions you are already aware of.
Hope this helps,
S. Eren BALCI
www.aselsan.com.tr

Similar Messages

  • How to get Position from EmployeeInfo in DIAPI

    I am using DIAPI(JCO) for SAP B1. According to one or my reuirement i am in need of Position from the EmployeesInfo. But there  seems no option or method for getting position from that. Can anyone guide me how to get that from EmployeesInfo ? Any help is appreciated..

    Looking at the DI API properties vs. DB fields mapping documentation in the SAP Business One developer area (https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c5f5dbcc-0a01-0010-5d82-f25f2bee715e)
    it seems that this field is not exposed (yet).
    I.e. you could only run a SQL statement to get this information.
    Sorry,
    Frank

  • When and How to get the Text.ScrollPos value of a String control when scroll bar position changed

    Hi, 
    I'm working on a feature triggered by scroll bar position of a string control changed.
    But I could not find a good way to catch the scroll bar position changed event, 
    the scroll bar is controlled manually by mouse down → mouse move → mouse up, I want the get the Text.ScrollPos value when user mouse up, and compare with the maximum value.
    But the problem is,  mouse up on the scroll bar could not trigger String: Mouse up event!
    So I have to get the Text.ScrollPos continuously in the background in Timeout event, but I think it’s not efficient.
    Do you have any better idea on when to get the correct destination value of Text.ScrollPos?
    I plan to store the value of Text.ScrollPos in the bottom(maximum value) in a shift register, then compare the current Text.ScrollPos value with the max one.
    If it comes close to the bottom(90%~100% of the maximum value), then the close to bottom LED will turn on.
    Attachments:
    scroll bar pos changed.vi ‏15 KB

    Hello Cecilia,
    I don't think there is any build-in event for this.
    One solution would be to create your own user event at the initialisation of you main and launch a thread which is going to be pulling the value of your scrollbar position:
    Then you can build your main as if they were a scrollbar move event.
    And dont forget to close the thread and destroy the event at the end.
    Hope it helps.
    Attachments:
    Scrollbar event.PNG ‏10 KB

  • Coded UI -VSTS 2012 How to get the tab details from UITabContainerPane(UI Test Control)

    Hi Team,
    I am quite new to Coded UI. I am trying out the possibility of Coded UI for Spotfire Report Validations which is available in web portal. I have three tabs on my web page. How can get the list of tabs and act on each. In the recorded script i could see that
    under UITabContainerPane I can see the tab coming under UITabContainerPane(UITestControl). I am not sure from this parent how will i get the childs to get access to each tabs. Please advice.
    Thanks & Regards,
    Divya

    I tried the following code however when i do a quick watch on div i get a timeout.
    public partial class UIMap
            public void selectTab()
                HtmlDiv div = new HtmlDiv();
                div.SearchProperties[HtmlDiv.PropertyNames.Name] = "tab";
                HtmlControl controls = new HtmlControl();
                controls.SearchProperties.Add(HtmlControl.PropertyNames.Class, "singleTabContainer");
                UITestControlCollection collection = controls.FindMatchingControls();

  • How to get position texts

    Hi,
    I am retreiving positions texts for the positions existing in infotype it0001 using table T528T.  But the table T528T only display the position text for the first 25 characters. Could any one tell me how can i get the complete text for the position, please suggest if any function module exists.

    Hi Phani,
    Use RH_OBJECT_TEXT function module with PLVAR = 01, OTYPE = S (position), OBJID = position ID, BEGDA = sy-datum, ENDDA = sy-datum.
    Use returning field DISPLAY_TEXT.
    Regards,
    Dilek

  • Order of elements - how to get position of child ?

    Hi,
    I would like to check, if the name of the second element of root is "youngestSon". Is it possible to query this with xpath (I use xquery with xpath-expressions, in fact I already know the name of the element but want to get sure with an exist-statement, that the element's position is 2) ?
    <parent>
    <oldestSon>A</oldestSon>
    <youngestSon>B</youngestSon>
    </parent>
    Note, that the child element names are different. What I dont need is the second son in the following example (therefor I could use /parent/son[position()==2] )
    <parent>
    <son>A</son>
    <son>B</son>
    </parent>
    Thank you for any help!
    Jule

    (XPATH / XQUERY PROBLEM)

  • How to get position of cursor on screen ??

    Hi all,
    I am trying to get the coordinates of mouse cursor on the screen ( which might be outside the java application's window ) from my java application. I tryed to use SystemEventQueue, but it gives me the events only when the cursor is inside the java application's window. Is it not possible using pure Java ? If some body can give me some hints or share their experience, I will really appreciate it.
    Thanks in advance.
    Viju.

    Not possible with pure java - would have to use a c/c++ dll and JNI and what is known as a "MouseHook" in the windows API.

  • When somebody facetimes me, only my iphone 4 rings. I have recently bought a Macbook Pro, 13" and im not sure how to get my mac to ring aswell as my iPhone!?

    Something has really been bugging me. Two days ago i bought a Macbook Pro. I like to facetime my family since they live abroad. Well when a family memeber rang my facetime, i realised that only my iphone rang and not my macbook, i waited for a while to see if it just needed time to introduce the call, however this didnt work out. I was wondering if anybody can help me sort this problem...
    Thanks

    see
    http://support.apple.com/kb/HT5538
    mac 101
    http://www.apple.com/support/macbasics/
    also
    http://support.apple.com/kb/TS4185

  • How to get the selected node value of a tree which is build on java code

    Hi Experts,
    How can i get the selected node value if I build the tree programatically.
    I am using the following code in selectionListener but it is throwing error.
    RichTreeTable treeTable = (RichTreeTable)getQaReasontreeTable();
    CollectionModel _tableModel =
    (CollectionModel)treeTable.getValue();
    RowKeySet _selectedRowData = treeTable.getSelectedRowKeys();
    Iterator rksIterator = _selectedRowData.iterator();
    String selectedQaCode ="";
    while (rksIterator.hasNext()) {
    List key = (List)rksIterator.next();
    JUCtrlHierBinding treeTableBinding =
    (JUCtrlHierBinding)((CollectionModel)treeTable.getValue()).getWrappedData();
    JUCtrlHierNodeBinding nodeBinding =
    treeTableBinding.findNodeByKeyPath(key);
    String nodeStuctureDefname =
    nodeBinding.getHierTypeBinding().getStructureDefName();
    selectedQaCode = selectedQaCode + nodeBinding.getAttribute(0);
    where I am using following link to create a tree with java code.
    http://one-size-doesnt-fit-all.blogspot.com/2007/05/back-to-programming-programmatic-adf.html
    Please help me in resolving this issue.
    Regards
    Gayaz

    Hi,
    you should also move
    JUCtrlHierBinding treeTableBinding =
    (JUCtrlHierBinding)((CollectionModel)treeTable.getValue()).getWrappedData();
    out of the while loop as this is not necessary to be repeated for each key in the set
    Frank

  • How to get the Number of lines displayed in  table control in bdc

    Hi,
    when we write a  bdc for a standard transaction, if we encounter a table control, we fill the values for each record like field(01), and the second record field(02) .......and so on..
    if only 3 records are displayed in the screen and if we have 5 records to be filled in the table control, how to write the logic for that?
    how to track of how many lines are getting displayed in the table control .. again it depends on the screen resolution i think..
    useful answers will be rewarded
    shekhar

    Hi,
    Here is the solution code for this :-
    data for controlling paging on screen 0102 
    DATA: W_MAXLINES(2) TYPE N, 
    W_NEXT_LINE(3) TYPE N, 
    W_PAGE(1), "y = page forward, n otherwise 
    W_SCRLEN(2) TYPE I, 
    W_SCRLINE(2) TYPE I. 
    DATA: BEGIN OF W_HDR. 
    INCLUDE STRUCTURE D020S. 
    DATA: END OF W_HDR. 
    DATA: BEGIN OF W_FLD OCCURS 100. 
    INCLUDE STRUCTURE D021S. 
    DATA: END OF W_FLD. 
    DATA: BEGIN OF W_LOG OCCURS 20. 
    INCLUDE STRUCTURE D022S. 
    DATA: END OF W_LOG. 
    DATA: BEGIN OF W_MC OCCURS 20. 
    INCLUDE STRUCTURE D023S. 
    DATA: END OF W_MC. 
    DATA: BEGIN OF W_DYNPRONAME, 
    PROGRAM(8) VALUE 'SAPMM60X', 
    DYNPRO(4) VALUE '0102', 
    END OF W_DYNPRONAME. 
    FORM GET_MAX_LINES. 
    set w_maxlines to the number of var-loop occurrences on the screen so 
    that we know when to page forward on screen 0102 
    also initialise w_next_line to zero for GET_NEXT_LINE 
    this subroutine caters for all cases - including screens without loops 
    CLEAR: W_MAXLINES, 
    W_NEXT_LINE. 
    IMPORT DYNPRO W_HDR 
    W_FLD 
    W_LOG 
    W_MC 
    ID W_DYNPRONAME. 
    LOOP AT W_FLD WHERE LTYP EQ 'L'. 
    MOVE W_FLD-LINE TO W_SCRLINE. "first var-loop line 
    MOVE W_FLD-LBLK TO W_SCRLEN. "depth of loop block 
    EXIT. 
    ENDLOOP. 
    IF SY-SUBRC EQ 0 
    AND W_SCRLEN NE 0. 
    sy-srows = total no of lines on screen 
    w_scrline = actual first line of loop so that 
    w_scrline - 1 = number of heading lines (before loop) 
    4 = no of lines at top of screen - command line, pushbuttons, 2 ulines 
    3 = no of lines after loop - uline & Page count 
    w_scrlen = no of lines in loop block 
    w_maxlines = sy-srows - ( wscrline - 1 ) - 4 - 3 
    and then 1 less but not sure why! 
    W_MAXLINES = SY-SROWS - W_SCRLINE - 1 - 4 - 3. 
    W_MAXLINES = W_MAXLINES - 1.
    W_MAXLINES = W_MAXLINES DIV W_SCRLEN. 
    ELSE. 
    MOVE 99 TO W_MAXLINES. "this required if no screen loop 
    ENDIF. 
    ENDFORM. 
    FORM GET_NEXT_LINE. 
    set w_page if page forward is required 
    W_NEXT_LINE = W_NEXT_LINE + 1. 
    IF W_NEXT_LINE GT W_MAXLINES. 
    W_NEXT_LINE = 1. 
    W_PAGE = 'Y'. 
    ELSE. 
    W_PAGE = 'N'. 
    ENDIF. 
    ENDFORM. 
    Hope it helps.
    reward if helpful.
    Regards,
    Sipra

  • How to get UUTPassed and UUTFailed count from C# ActiveX control

    Hello,
    My operator interface uses TestStand ActiveX control in C#. I will use the OP to test a bench of DUTs, which runs the same sequence file. I would like to know the total UUT-Tested, UUTPassed and UUTFailed count after each DUT tested. Is there any embedded parameter does the job for me and how could I get it? If there is not, I have to create internal variables in C# to do the job.
    Thanks
    Regards,
    Solved!
    Go to Solution.

    No, there is no build in function for this. So either you will have to implement something like this in on of the following:
    a) The user interface
    b) The SequenceFile (as long as it is not unloaded in between)
    c) The process model
    d) Use an external tool for analysis
    If you are already working with databases for reporting, i would suggest using d). If not, you can choose. But modifying the process model is not recommended (if other, simple solutions are available), i wouldn't recommend c).
    hope this helps,
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • How to get the index of a pressed button in control array?

    Greetings,
    I have 3 parallel arrays--one containing buttons and the other two containing string indicators.  I'd like to be able to push a button and get the values in the other arrays.  How can this be done?
    (P.S.  Illustrations are great and most welcome, but I do not have Labview on this computer, so I would appreciate it in jpg or screenshots if possible.)
    Thank you!
    Solved!
    Go to Solution.

    Here's what I had in mind. Modify as needed.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    ButtonArray.vi ‏14 KB
    ButtonArray.png ‏11 KB

  • How to get parent process instance id in a java control?

    Hi!
    I have a process which invoke a java control.
    In this java control I need the instance ID from the parent process.
    Does anybody know where i can get the instance id?
    Within a jpd I have the context variable (context.getInstanceId()), but I need something like this in the control
    Thanks
    Ben

    the only way you can do is aquire the instanceid in the JDP itself and pass it to the java control as a paramter.

  • How to get index of an item in the DropDownByKey control?

    Hi,
    I'm new to PDK for .NET and I have a simple question about the "IndexOf" method of the items collection.
    Attached a small test program:
    Dim li As New DropDownListItem
    li.Key = "A"
    li.Text = "Zero"
    DropDownByKey1.Items.Add(li)
    li = New DropDownListItem
    li.Key = "B"
    li.Text = "One"
    DropDownByKey1.Items.Add(li)
    li = New DropDownListItem
    li.Key = "C"
    li.Text = "Two"
    DropDownByKey1.Items.Add(li)
    li = New DropDownListItem
    li.Key = "D"
    li.Text = "Three"
    DropDownByKey1.Items.Add(li)
    li = New DropDownListItem
    li.Key = "E"
    li.Text = "Four"
    DropDownByKey1.Items.Add(li)
    Dim liForSearch As New DropDownListItem
    liForSearch.Key = "C"
    liForSearch.Text= "Two"
    Write(" Index --> " & DropDownByKey1.Items.IndexOf(liForSearch))
    The output should be 2 but instead I get -1 (Not Found).
    Why?
    thanks,
    Omri

    Hi,
    Since you have the Key of the listItem you are looking for you should get the item by applying:
    liToSearch = DropDownListItem.Items[key];
    int index = DropDownListItem.Items.IndexOf(liToSearch);
    Regards,
    Tsachi

  • How to get Pioneer CD-IB100 (II) TO USE IPOD CONTROL

    I've been using these steps for the past couple of years and all of a sudden, it doesn't work anymore.
    Step #1) Turn the car off and unplug the ipod from the radio.
    Step #2) Turn the ipod off and put the hold button to the hold position.
    Step #3) Plug the ipod back into the radio connection and wait a few seconds.
    Step #4) Turn the car on, and the charging screen should come on.
    Step #5) Turn off the hold button, and you should see the pioneer screen. Hit the menu button and it should take you back to the navigational menus, allowing you to work the ipod normally.
    My guess is I (finally) updated both my ipod and itunes and maybe it doesn't read the new updates?
    Any (other) suggestions?

    I am having the same issue with my 6th gen 80Gb ipod classic and my pioneer head unit. I am using the cd-ib100ii. I have seen ways around the head unit control for the 5th gen but not this one. Pioneer is not offering any help. Anyone have any ideas. I can't return the cd-ib100ii and I don't want to see it go to waste.

Maybe you are looking for