Get Current Index of System Ring

I need to know the index of the ring box that is currently displayed on the Front Panel during runtime.
The values of the ring box don't necessarily correspond to their indices so I can't just wire the ring box itself to the DisabledItems[] property.
The way I am having to get the index of the "currently displayed" item of the ring control is by doing the following:
A read to the Strings[] Property returns an array of Strings of the "Items" of the ring control.
A read to the RingtText.Text returns the string value of the current Item displayed in the ring control.
I use the search function to search the Strings array for the current text and it gives me the index of the current item displayed in the ring control. 
Is there a way to get the index of the currently shown index of the ring control directly?
Solved!
Go to Solution.

mikeporter wrote:
Ah, I think I see the issue. The problem is that you can assign non-sequential values to a ring control so index 0 might have a value of 128 but index 1 could have a value of 42 (which in case you forgot is the meaning of life, the universe and everything...). Therefore, the index isn't necessarily the same as the terminal value - though the way most people use them, it often is.
Mike...
My favorite use for a ring uses values like 0xFF0000, 0x0000FF, ect....  (Now if the silly items editor was updated I could just drop color constants into value)
Status changed 3 days ago !! WoooHooo!
Jeff

Similar Messages

  • Getting current index of forEach tag

    How do you get the current index of the forEach tag, that is looping through a Vector?
    <c:forEach var="rows" items="${myRequestManager.solPORList}">

    Yes, use the varStatus attribute:
    <c:forEach items="${variables}" var="variable" varStatus="status">
       <c:out value="${status.index}"/>
       <c:out value="${status.count}"/>
    </c:forEach>status.index, the current index, starts with 0. status.count, a running count of loop iterations, starts with 1.
    Get a JSTL book. Shawn Bayern's "JSTL In Action" is the best, IMO. - MOD

  • How to get current local  file system volume sizes information from OMS?

    Hi
    I know I can get this information from the table SYSMAN.MGMT$STORAGE_REPORT_LOCALFS.
    But info stored in this table is not always up to date, but when going to the page em/console/monitoring/hostFilesystemOverview$target=xxxhostnamexxx$type=host$pageType=current$ctxType=Hosts the information is current.
    I have accessed mentioned table in apex, from outside OMS, I would like to have current information instead of old.
    How to do that?
    Thanks

    I think that there is nothing wrong with this table, just that the data is not collected every 5 minutes or so, only on a daily basis.
    But as ca107207 said - when you go to the page, showing information about the files system, from the host home page - the data is up to date to the current second.
    Therefore I think that OMS ask agent to send this value, but it is then not stored anywhere.
    My question would be how to ask agent from outside OMS to get this information?
    I have done a little reverse engineering on OMS packages and there should be a way to get this, using some procedures, pl/sql code with generating some cursors etc.
    I'm not that good in pl/sql to create something like that, it would take too much time for me. I think that it can't be done without OMS at all, I just have another database with apex on the same host and apex display some information for other users about the file systems etc. It would be nice to have information about file system usage current.
    Thanks

  • Get Current year in Query Designer

    Dear all
    I don't know how to determine current year in Query Designer.
    I have a report, i want to see some indexs in bance sheet and income statement in current year and previous year. but, I can only assign with the fixed year (ex, 2010), this is not flexible. I want to get current year on system and calculate previous year.
    Please help me solve this problem
    Thanks

    Hi,
    You can use the SAP Exit variable 0CALYEAR for current year. For Previous year you can offset this by -1.
    You can refer this link for more Information,
    http://help.sap.com/saphelp_bw33/helpdata/en/3f/89533e5ff4d064e10000000a114084/content.htm
    Regards,
    Hari.
    Edited by: Hari Krishnan K on Jul 20, 2010 10:36 AM

  • Getting current user's  member of group

    Hi expert(s),
    I have developed web application using jsp, now i need to know whether the current user logged in at client PC, is member of certain group available in the database, i can get current user using System.getProperty(), but i have to get the list of groups, he/she belongs to. So that i can check his group to authenticate...
    What is the workaround?
    Waiting for your kind reply.
    Thanks & Regards,
    Sri.

    Experts, i give you .net code for done my need, i need to convert/use it in java platform, please give me some useful tips.
    If G_sSecurityMode = "ADSL" Then
                    GUser = System.Environment.UserName
                    ReDim sGroup(6)
                    'Default NT user groups which will be created at every system during installation
                    sGroup(0) = "CPMSDOMAINADMIN"
                    sGroup(1) = "CPMSCLIENTADMIN"
                    sGroup(2) = "CPMSDATAPREPADMIN"
                    sGroup(3) = "CPMSDATAPREPUSER"
                    sGroup(4) = "CPMSINVENTORYADMIN"
                    sGroup(5) = "CPMSINVENTORYUSER"
                    G_sUserGroup = " "  'Global variable defined in GLbdecleration module
                    'Loop defined to identify  the group(s) associated with the current NT user
                    For i = 0 To 5
                        objGroup = GetObject("WinNT://" & sMachine _
                         & "/" & sGroup(i) & ",group")
                        For Each objUser In objGroup.Members
                            If UCase(GUser) = UCase(objUser.Name) Then
                                G_sUserGroup += "'" + sGroup(i) + "'" + ","
                            End If
                        Next
                    Next
                    G_sUserGroup = G_sUserGroup.TrimEnd(",") 'To truncate the last "," in a g_susergroup string
                    If Len(Trim(G_sUserGroup)) = 0 Then
                        MsgBox("No group(s) defined for the user " + GUser, MsgBoxStyle.Information)
                        Me.Close()
                    End If
                Else
                    MsgBox("Invalid Security Definition", MsgBoxStyle.Information)
                    Me.Close()
                End If

  • How to find out the current index

    Hello Experts,
               How to find the current index and whatever we entered in that table how to ratrieved that entry value.pls give the suggest..

    Hi,
    To get current index write below piece of code in the outbound plug for your F4 help pop up.
    We have to write this in the outbound plug itself otherwise it will not work.
    let me know whethere it worked or not
    cl_chtmlb_config_utility=>outbound_plug_event_info( EXPORTING iv_event_string = lv_event_string
                                                          IMPORTING ev_index        = gv_index ).
    Regards,
    Swapna

  • How to get the index of the word at current cursor position in the word?

    Dear All
    I am implementing a spell checker of my native language in Word. Whenever I run spell checker it start from the first word. How can I make it to start from the current cursor position? How can I get the index of the word at the current cursor position?
    Thanks in advance.
    Dharam Veer Sharma

    hi Dharam Veer Sharma,
    Thanks for sharing the solultion with us.
    It is helpful for others who have the same issue. And if you have any Office developing issue, please feel free to open a new thread.
    Have a nice day.
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Get the index of the current line in use

    Dear All,
    Well how can i get the index of the current line in use?
    this the code I am using :
    Dim i As Integer
    Set oBatchForm = SBO_Application.Forms.GetForm(Form_Id, 1)
    Set oMainMatrix = oBatchForm.Items.Item(Matrix_Id).Specific
    For i = 1 To oMainMatrix.VisualRowCount
        If oMainMatrix.IsRowSelected(i) = True Then
           GB_SelRow = i
            Exit For
        End If
    Next
    Exit Sub
    This code is not working when there is a line in the document type texte.
    please advice.

    Hi Mary,
    this is code in C#.NET which is working fine, try to do same in your code:
    for(int irow=1; irow<=oMatrix.RowCount; irow++)
         if(oMatrix.IsRowSelected(irow))
         SelectRow = irow;
                    break;
    Hope it helps.

  • I currently have the Mac OS X v10.5.8 and want to get the new operating system but I don't know how to do it. I don't have the Mac App Store and can't get it because of my version. What do I do?

    I currently have the Mac OS X v10.5.8 and want to get the new operating system but I don't know how to do it. I don't have the Mac App Store and can't get it because of my version. What do I do?

    The Early 2006 model 1,1 Core Duo can only run a maximum of 10.6 Snow Leopard. The models Late 2006 Core 2 Duos 2,1 through Early 2008 4,1 can only run a maximum of 10.7 Lion. The Late 2008 model 5,1 Aluminum Unibody through the Mid 2010 White Unibody model 7,1 can run 10.8 Mountain Lion.
    To see which model you have go to the Apple in the upper left corner and select About This Mac, then click on More Info. When System Profiler comes up check the Model Identifier and post it back here.
    The Snow Leopard 10.6 DVD should still be available from Apple for $20. You will have to call Apple Customer Care 1-800-692-7753 or 1-800-676-2775 to purchase it. It may still be in the Legacy Products list.
    If they no longer have any in stock you will have to buy it from eBay or Apple resellers that still have stock. But you will have to pay a premium since the DVDs are no longer being made. Snow Leopard DVDs are already up to $100 on Amazon.
    http://www.ebay.com/sch/i.html?_nkw=10.6+snow+leopard&_sacat=0&_odkw=mac+os+10.6 &_osacat=0
    Once you are at 10.6.8 Lion is still available from Apple. You will have to call Apple Customer Care 1-800-692-7753 or 1-800-676-2775. to purchase it. Then within 3 days you will get an email with a code which you can use to download Lion from the App Store.  The price is still $29. You must have at least a model 2,1 MacBook.
    Lion will require at least 2gb of RAM but really needs 4gb to run smoothly.
    As for third party programs see this list for compatibility with 10.7 http://roaringapps.com/apps:table
    Also Lion doesn't run any Power PC programs. To see if you have any Power PC programs go to the Apple in the upper left corner and select About This Mac, then click on More Info. When System Profiler comes up select Applications under Software. Then look under Kind to see if any of your applications are listed as Power PC. Universal and Intel will run under Lion.
    Before Mac switched to Intel processors in 2006 they used Power PC processors from 1994 to 2005. Power PC 601 through 604, G3, G4 and G5. Applications written for the Power PC processors need the application called Rosetta to run on Intel processors. This was part of the Operating System in 10.4 and 10.5 but was an optional install in 10.6. With 10.7 Lion Apple dropped all support for Power PC applications.

  • System Events got an error: Can't get current configuration of service?

    I'm trying to connect/disconnect services through apple script, here is the error I'm getting for "Ethernet" "AirPort" (these services are configured in services tab)
    I am able to manualy On/Off these services without supplying admin password, therefore it might not be privilages issue.
    *Error message:*
    *System Events got an error: Can’t get current configuration of service id "099F7D16-4F3A-4D49-9111-A4DF0A645378" of network preferences.*
    Scipt used:
    tell application "System Events"
    tell network preferences
    tell current location
    get the name of every service
    set myService to service "AirPort"
    if exists myService then
    --get service properties of myService
    set isConnected to connected of current configuration of myService
    if isConnected then
    disconnect myService
    repeat while (get connected of current configuration of myService)
    delay 1
    end repeat
    end if
    connect myService
    end if
    end tell
    end tell
    end tell

    Hi Damian and welcome to Apple Discussions!
    One suggestion: try
    tell application "Finder" to open item 1 of docs
    (without 'using "Corel Painter 8"')
    As far as the Finder is concerned, "Corel Painter 8" is just a string of characters. And telling the Finder to open a file is just the same as double-clicking it: the Finder knows which app to use - as long as these are native Corel Painter 8 docs.
    Hope this helps,
    H

  • How can i get current time of a given timezone

    how can i get current time of a given timezone
    for example: Asia/Hong_Kong
    my code is like this, but the result is not correct.
    what's wrong?
    import java.util.*;
    public class test {
    public static void main(String[] args){
              String s = "Asia/Hong_Kong";
              String tempS = "";
              TimeZone myTime = new SimpleTimeZone(s);
              //TimeZone myTime = TimeZone.getTimeZone(s);
              Calendar myCal = new GregorianCalendar(myTime);
              tempS = myCal.get(Calendar.YEAR)+"-"+
                        (myCal.get(Calendar.MONTH)+"-"+
                        myCal.get(Calendar.DATE)+" "+
                        (myCal.get(Calendar.HOUR)+":"+
                        myCal.get(Calendar.MINUTE)+":"+
                        myCal.get(Calendar.SECOND);
              System.out.println(tempS);
    output is : 2001-7-15 11:16:48
    but the correct time should be: 2001-8-16 7:17:48
    the correct time should be 2001-8-16

    Certain indexes in the Calendar API start at 0 rather then 1, so, when you get the value, you may want to increment.
    I'm not sure why the time is incorrect. You may want to call getAvailableIDs() and make sure that the desired TimeZone ID is supported by your version. I doubt that Sun would have incorrect support for the time zone, but it may not be included, or perhaps it is included with a diffrent ID. You can always create your own time zone as well, by passing the String offset to getTimeZone(), the offset being how many hours beyond or before GMT. Hopefully this helps.

  • Get Current row in Editable ALV

    Hi,
    I have editable alv, when i press "insert row" or "Append row" i need to get current inserted/appended row element reference or index.
    How can i get this??
    Please suggest.

    Hi kranthi ,
    While inserting row you must be selecting a row, you can get the index of the selected row by this following code
    get Index of selected table item
    CALL METHOD NODE_NAME->GET_LEAD_SELECTION_INDEX
    RECEIVING INDEX = Lv_Indx.
    ( DATA: Lv_Indx Type i )
    or while you are appending a row you can use Describe int_table LINES lv_line and use the value of 'lv_line' as the index.
    Regards

  • How to get current row data in table control

    Hi , expert ,
       I am professional in oracle ,  but  now I am a new guy in SAP ABAP .
    I  have a question in UI
    How to get current row data and click pushbutton  in table control  to open next screen ?
    I want to get the current data and open next screen to carry out detail detail .
    Thansk for all your suggestion .

    GET CURSOR LINE SY-CUROW .
      READ TABLE internal_table index SY-CUROW.

  • How to get current PopUp Window

    Dear All,
    I am using NetWeaver 7.1 sp1 and facing a problem. Actually I want to show a view in popup window. The popup window works fine but i want to get currently popup window. How can i get it in View and controller ??
    I found a solution : wdContext.currentPopupElement().getWindowInstacnce();
    but in wdContext there is no method like .currentPopupElement(). plz help.

    Hi
    wdContext.currentPopupElement().getWindowInstacnce();
      Here PopupElement is a attribute of IWDWindow type where u have to put the window instances (say For close or life control of that popup)
    For further plz go through these doc
    1. [Dialog|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/903fed0d-7be4-2a10-cd96-9136707374e1&overridelayout=true]
    2. [Popup Window|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/a04870c5-749b-2b10-06ba-d25515ef39e3&overridelayout=true]
    Best Regards
    Satish Kumar

  • How to get Current Row values in Af:ForEach

    Hi,
    We have a requirement to conditionally Display/Hide CommandLink item in af:forEach Loop.
    <af:forEach items="#{bindings.RegionalAreaPVO.rangeSet}" var="parent">
    <af:spacer height="10" id="s1"/>
    <af:commandLink inlineStyle="font-weight:bold;" text="#{parent.ItemName}" partialSubmit="true" actionListener="#{backingBeanScope.RegionalAreaBean.launchTaskflow}" id="cl1" rendered="*#{backingBeanScope.XXWFCRegionalAreaBean.modelEligibleflag eq true}*">
    <af:setActionListener from="#{parent.Code}" to="#{parentNode}"/>
    </af:commandLink>
    </af:forEach>
    I have added a Cutom Managed Bean Class and Returning boolean value to Control Render property which is working. But now i want to add business Logic based on 'parent.ItemName' or 'parentNode' Values in the bean method to return proper Boolean value.
    But i am unable to get the Current Iteration values in the bean method.
    I am using below EL expressions to get the values. But no luck.
    String nameel = (String)ADFUtil.evaluateEL("#{bindings.parent.ItemName}");
    String codeel = (String)ADFUtil.evaluateEL("#{parent.Code}");
    String nodeEl = (String)ADFUtil.evaluateEL("#{parentNode}");
    Also, i have tried getting the Row object like below but i am getting the First row details always. My intention is to get Current row values and use them for Business logic.
    ViewRowImpl row =
    (ViewRowImpl)ADFUtil.evaluateEL("#{bindings." + VoName +
    "Iterator.currentRow}");
    String code = (String)row.getAttribute("Code");
    Any help is highly appreciated.
    Thanks
    Kaja

    Hi Sascha,
    I have tried that. But in my case the functional logic behind the Rendering is based on more complex logic. Hence i am trying to add a method to return a boolean in Render property of the Link.
    But the real problem for me is, in the Managed bean method i am not finding a way to get the Current Iteration index. If i can get the Current iteration index, i can get the Corresponding Component ID of Command link (In the forEach Loop Component Id's are getting generated Dynamically based on Iteration Index), i can use that and add additional logic and derive true/false to return.
    Any inputs?
    Thanks
    Kaja

Maybe you are looking for

  • Error: while generating SQL.java.rmi.ServerException:

    Hi: I tried the JGuru's "MusicStore" example. HOwever at Task 6 and 7 I am getting the following error: Error: while generating SQL.java.rmi.ServerException: RemoteException occured in server thread; nested exception is: * java.rmi.RemoteException: E

  • Downloading pictures from a cell phone

    I have a Motorola Razor cell phone, which I connected to my computer using the USB cable from my graphing calculator. Is it possible to download my pictures off of my cell phone onto iphoto using this setup. If so, how do I do it? If not, is there an

  • How to automatically update InfoPath Form fields(Design) when a new Column is created in SharePoint list?

    Hi All ,  We have a scenario to automatically update the Infopath form(List Form) fields(Field Name and Control) when ever a new Column is created in the SharePoint list. Is it possible to do this? any options or suggestions? Thanks and Regards, Nand

  • Can we get Multiple production versions in APO

    Hi, Is there  a way to get multiple production versions into APO, as the info record( we are using) is what drive the creation of the PDS in APO from ECC Is there a way to find out how we can have multiple production versions in APO. Thanks Maddy

  • Local full text search engine

    Hi all, I try to find any product outthere to make full text indexes of PDF files, searches localy from CD-ROM, and return the results to XML, so I can use it in my flash application. Any ideas? Thanks in advance