How to blink a single element in an array of string

Hi,
I am working on array blinking option in an array of string. I wanted to blink each element of array in different instances.
Ex: I have array as MyArray [5] = { "aaaa", "bbbb", "cccc", "dddd", "eeee"}. Question is i want to blink one by one, first 0th row, next 1st row and so on.
Could any one please help on this.
Many Thanks
Hanee..

Ian,
i cannot tell you what's happening here. Fact is, that this is not the way to go. See attached example.
If you run it and click into one of the string fields (mouse up event!) you will see, that "Cell" Value changes. If you look into the code, you see that i read the string form the String refnum, so it seems to handle the "Active Cell". But writing to it (Set Color) will reveal, that the whole array will change its background color. This matches my statement.
I really fo not understand, why reading from the same string refnum yields different results ("Active Cell"???!), but regarding blinking: setting this for a single "Cell" will set it for all "Cells", but due to graphical updates (same as buttons&event structures), it is only visible in the "Active Cell". Rest asured, that the property value "blinking" is true for all "Cells" then (even thought not graphically visible).
hope this helps,
Norbert
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Attachments:
ArrayReference.vi ‏14 KB

Similar Messages

  • How to pass a single element in an array to XSL from BPEL

    In a bpel (2.0) process I have a for-each loop iterating through a list in the original input document.  Within that loop I need to construct an  input document  for a call to a web service based on data in the current node of the list objects I am looping through.
    Constructing the input document via BPEL assign activity copies within the for-each loop is an option but due to the complexity of that document I would prefer to use XSL.  But I don't know how to pass the index information (ie. the for-each counter) into XSL and use it there (and I would prefer not to have to do so, since that will prevent use of the XSL GUI in jdev), so I would prefer to send  the current node of the list as input to XSL instead.
    Is it possible to pass a sub-section of an XML document (e.g. one node in the array) as input into XSL rather than the whole document?  In other words, I would like to send the current array element from the original input document rather than the entire original input document because I will be using the data within that array element to create the web service input document.
    Example:
    <forEach parallel="no" counterName="i"
                         name="ForEachEntry">
                  <startCounterValue>1</startCounterValue>
                  <finalCounterValue>$numTimeEntries</finalCounterValue>
    If I used the BPEL assign activity to populate the input document I would need lots of copies similar to this:
                  <copy>
                      <from>$inputVariable.OteStgTimecardCollection/ns3:OteStgTimecard[1]/ns3:oteStgTimecardDetailCollection/ns3:OteStgTimecardDetail[$i]/ns3:origtransactionreference</from>
                      <to>$InvokeOteDetailAbsenceErrorStatusService_OteAbsenceDetailFailureService_InputVariable.OteAbsenceDetailFailureServiceInput_msg/ns19:OrigTransactionReference</to>
                  </copy>
    I would prefer to send the current list object as an input variable into an XSL transform: 
         $inputVariable.OteStgTimecardCollection/ns3:OteStgTimecard[1]/ns3:oteStgTimecardDetailCollection/ns3:OteStgTimecardDetail[$i]
    Is there syntax in bpel that would do that?
    Thanks

    You need use While Element and use Array like Element[number]
    With While element you iterate <employee> node
    and with Element[number] you can extract information from that node.
    I wrote a BPEL that scan a XML file, the input is:
    <cliente>
            <codigo>01</codigo>
            <nombre>Deiby Mauricio Gomez</nombre>
                    <productos>
                            <producto>
                                    <nombre>Camisa Polo</nombre>
                                    <precio>50</precio>
                            </producto>
                            <producto>
                                    <nombre>Pantalon Lona</nombre>
                                    <precio>100</precio>
                            </producto>
                    </productos>
            </cliente>
            <cliente>
            <codigo>02</codigo>
            <nombre>Julio Cesar Ayapan</nombre>
                    <productos>
                            <producto>
                                    <nombre>Camisa Polo</nombre>
                                    <precio>50</precio>
                            </producto>
                    </productos>
            </cliente>
    In my BPEL I added up all article prices and after that I write to txt file the client and the Total.
    Example:
    Deiby Gomez, 150
    Cesar Ayapan, 50
    My while element is this (Please pay attention in bold words):
      <while name="While1"
               condition="bpws:getVariableData('variable1')&lt;=count(bpws:getVariableData('Receive1_input_files','body','/ns4:clientes/ns4:cliente'))">
          <sequence>
            <assign name="Assign1">
              <copy>
                <from expression="sum(bpws:getVariableData('Receive1_input_files','body','/ns4:clientes/ns4:cliente[number(bpws:getVariableData(&quot;variable1&quot;))]/ns4:productos/ns4:producto/ns4:precio'))"/>
                <to variable="Invoke1_process_InputVariable" part="payload"
                    query="/ns5:process/ns5:cantidad"/>
              </copy>
              <copy>
                <from variable="Receive1_input_files" part="body"
                      query='/ns4:clientes/ns4:cliente[number(bpws:getVariableData("variable1"))]/ns4:codigo'/>
                <to variable="Invoke1_process_InputVariable" part="payload"
                    query="/ns5:process/ns5:id"/>
              </copy>
            </assign>
            <invoke name="Invoke1" inputVariable="Invoke1_process_InputVariable"
                    outputVariable="Invoke1_process_OutputVariable"
                    partnerLink="ValidacionBancos2WS" portType="ns5:BPELProcess1"
                    operation="process" bpelx:invokeAsDetail="no"/>
            <switch name="Switch1">
              <case condition="bpws:getVariableData('Invoke1_process_OutputVariable','payload','/ns5:processResponse/ns5:resultado')='true'">
                <bpelx:annotation>
                  <bpelx:pattern>Si el cliente es aprobado</bpelx:pattern>
                  <bpelx:general>
                    <bpelx:property name="userLabel">Si Aprobado</bpelx:property>
                  </bpelx:general>
                </bpelx:annotation>
                <sequence>
                  <assign name="Assign4">
                    <copy>
                      <from variable="Receive1_input_files" part="body"
                            query='/ns4:clientes/ns4:cliente[number(bpws:getVariableData("variable1"))]/ns4:codigo'/>
                      <to variable="Approved_Write_input" part="body"
                          query="/ns7:clientes/ns7:cliente/ns7:id"/>
                    </copy>
                    <copy>
                      <from variable="Receive1_input_files" part="body"
                            query="/ns4:clientes/ns4:cliente[number(bpws:getVariableData(&quot;variable1&quot;))]/ns4:nombre"/>
                      <to variable="Approved_Write_input" part="body"
                          query="/ns7:clientes/ns7:cliente/ns7:nombre"/>
                    </copy>
                    <copy>
                      <from expression="sum(bpws:getVariableData('Receive1_input_files','body','/ns4:clientes/ns4:cliente[number(bpws:getVariableData(&quot;variable1&quot;))]/ns4:productos/ns4:producto/ns4:precio'))"/>
                      <to variable="Approved_Write_input" part="body"
                          query="/ns7:clientes/ns7:cliente/ns7:total"/>
                    </copy>
                  </assign>
                  <invoke name="Invoke2" inputVariable="Approved_Write_input"
                          partnerLink="fileAdapterWriteApproved"
                          portType="ns6:Write_ptt" operation="Write"
                          bpelx:invokeAsDetail="no"/>
                </sequence>
              </case>
              <otherwise>
                <sequence name="Sequence1">
                  <assign name="Assign5">
                    <copy>
                      <from variable="Receive1_input_files" part="body"
                            query='/ns4:clientes/ns4:cliente[number(bpws:getVariableData("variable1"))]/ns4:codigo'/>
                      <to variable="Rechazados_Write_input" part="body"
                          query="/ns9:clientes/ns9:cliente/ns9:id"/>
                    </copy>
                    <copy>
                      <from variable="Receive1_input_files" part="body"
                            query="/ns4:clientes/ns4:cliente[number(bpws:getVariableData(&quot;variable1&quot;))]/ns4:nombre"/>
                      <to variable="Rechazados_Write_input" part="body"
                          query="/ns9:clientes/ns9:cliente/ns9:nombre"/>
                    </copy>
                    <copy>
                      <from expression="sum(bpws:getVariableData('Receive1_input_files','body','/ns4:clientes/ns4:cliente[number(bpws:getVariableData(&quot;variable1&quot;))]/ns4:productos/ns4:producto/ns4:precio'))"/>
                      <to variable="Rechazados_Write_input" part="body"
                          query="/ns9:clientes/ns9:cliente/ns9:total"/>
                    </copy>
                  </assign>
                  <invoke name="Invoke3"
                          inputVariable="Rechazados_Write_input"
                          partnerLink="fileAdapterWriteRechazados"
                          portType="ns8:Write_ptt" operation="Write"
                          bpelx:invokeAsDetail="no"/>
                </sequence>
              </otherwise>
            </switch>
            <assign name="Assign2">
              <copy>
                <from expression="''"/>
                <to variable="Invoke1_process_InputVariable" part="payload"
                    query="/ns5:process/ns5:id"/>
              </copy>
              <copy>
                <from expression="bpws:getVariableData('variable1')+1"/>
                <to variable="variable1"/>
              </copy>
              <copy>
                <from expression="''"/>
                <to variable="Invoke1_process_InputVariable" part="payload"
                    query="/ns5:process/ns5:cantidad"/>
              </copy>
            </assign>
          </sequence>
        </while>

  • How do you assign multiple values to a single element in an array?

    I'm probably not wording the question right.
    I have an array, let's call it M[], and for each element in the array (we'll say M[1]), I need assign three integers: row, col and value.
    I need to set it up so I can do something like this:
    A.row = M[i].col;
    A[i].col = M[i].row;
    A[i].value = M[i].value;
    The algorithm isn't what I need help with, it's assigning .col, .row and .value to an index of an array.
    Please help if you can.

    You are right. You did not word your question perfectly, but I still think I get what you want.
    First of all: A single element in an array always has exactly one value. No more, no less.
    But that's not a problem. The element in an array is either of a primitive type (boolean, byte, char, short, int, long, float, double) or it's a reference (to a Object, String, MyClass, ...).
    You can simply write a class that holds your three values and create an array of that type:
    public class SomeData {
      public int row;
      public int col;
      public int value;
    // somewhere else:
    SomeData[] a = new SomeData[10];
    a[0] = new SomeData();
    a[0].row = 10;
    a[0].col = 5;
    a[0].value = 42;Note how you only assign a single value to the element (a[0]) itself. All other assignment actually go to fields of the object refered to by that element in the array.
    Also note that in Java types (such as classes, interfaces, ...) should start with a upper-case letter, while variables (local variables, members, parameters) and method names should start with a lower-case letter.
    Edit: I'm getting old ...

  • How to highlight a specific element of an array

    I'm having some trouble selecting which element in an array has key focus. I want to be able to selectively highlight individual elements in an array of strings and set the key focus so that the user can immediately enter the text into that specific element.
    I have been able to get "selection.start" and "selection.end" to work, but when I get a reference to "array element" it always returns a reference to the last element manually clicked. This way, I can only programatically highlight different elements by manually clicking on them, which somewhat defeats the purpose.
    Does anyone know if this is possible, or if I need to move to tables or something else in order to give me this functionality?
    I'm using LV 6.1
    on W2k.
    Thanks
    Shane.
    Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)

    I had the problem that I would like to highlight more than one cell in a 2d array.
    multicolumn listbox is very slow working with large data volumes so I had to use a 2d array instead, but then I lose the possibility to highlight.
    The solution I used was to bundle a LAD and control an put this in the array, takes a bit more coding but works fine. 
    Attachments:
    2d array with marker.vi ‏23 KB

  • How do I determine what element in an array was right clicked on?

    I have an array set up on my front panel. When the user right clicks on an element in that array, I would like them to be able select from 3 different options. I have the shortcut menu working, but I need to know which element in the array the user right clicked on to determine what values to change. How can I get the index of the element?
    Thanks for any help!
    Solved!
    Go to Solution.

    Couldn't you get index values from the array property node?
    Also this doesn't account for if scrollbars are seen or not.  And I usually like to know if my range is valid, because again I could be clicking on a scrollbar, or label and still get the Mouse Down event.
    Here is one I posted a while ago.
    http://forums.ni.com/t5/LabVIEW/Interesting-way-to-detect-array-index-from-mouse-position/m-p/286841...
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • How to delete first few characters from all the elements of an array of strings

    hi
    I have a 2-dimensional array of strings length 104. I have to delete first 6 characters from all the elements of array and then change the strings to int. how to do it?? plz help

    Attached you can find the screenshot showing how to do so.
    Bye!
    Licia
    Attachments:
    array.jpg ‏14 KB

  • How can I offset all elements of an array by the same number

    I'd like to know the quickest way to add a number to all elements of an array. In other word, offset the whole array by a number.

    You just use the normal add function. Wire the array to one input and the constant to the other input. After wiring the array, do not click on the other terminal and select Create>Constant because by default it will create an array. Just select a Numeric Constant from the Numeric palette or wire it to a control.
    Attachments:
    add_constant_to_array.jpg ‏3 KB

  • How to set Keyfocus to a single Element in an Array-Control

    How do i set the keyfocus programmatically to a single numeric-control in an array-control.

    This is detailed handled here.
    Guenter

  • How to disable one single element in a 2D array?

    Hello,
    I would like to disable one element in a 2D array. its size is constant at least.
    I can change its value by using a 1D array of cluster, but I can't use the property mode easily to disable an element.
    If you have any idea, it will be great.
    Thank you for your help.
    Lolopuf

    Right click on the particular control you want to disable and change the properties on that.  To do it programmatically, create a reference for that specific control and set the Disabled property for that.
    Attachments:
    Example_VI.png ‏15 KB

  • How can I change two elements in an array from double to integer.

    I have my program working just fine until it comes to saving the file. I have a 2 dimensional array that has data at 0,0 0,1 and 0,2. It is being displayed perfectly the way I have it set up. The problem is where it comes to saving the file. I want elements 0,0 and 0,1 to be an integer and 0,3 to be a fractional number. I can only save it as one or the other. I am sending the data to a write to text file VI which only allows one or the other. Does anyone have any ideas of how to over come this? I know from probing that the data is getting to the write to text file VI in the format that I want it to.
    Thanks,
    Troy

    Sure.. (LabVIEW 7.0)
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    VariableFormat.vi ‏20 KB

  • How do I put each element of an array of 30 elements to each slot in a cluster?

    There are 30 columns in a table in an access db file.
    Currently, I have an array of 30 floating point numbers.
    I want to know how to put each of array elements in each slot in a cluster of 30 slots with DB Tools Insert Data VI.

    You can use the array to cluster primitive
    Rodéric L
    Certified LabVIEW Architect

  • How can I order the elements in an array from the smallest element to the biggest?

    For example: I want to convert a 1D array like [4,1,2,3] to a 1D array like [1,2,3,4]. How can I do that?
    Sorry for the question but I am a beginner.
    Thanks for the answers.
    Solved!
    Go to Solution.

    Go to the array palette; there is a Sort function node.
    Adnan Zafar
    Certified LabVIEW Architect
    Coleman Technologies

  • Textcolor change of a single element in an array of clusters

    hi, right now I rewrite some code for a more flexible approach in the future.
    One special VI causes me some serious headache right now, I need to display a flexible number of versions which will be determined on the fly with the hardware avaible. Till now it were only some controls and a fixed amount of versions to expect.
    To adress this issue I created an array of cluster in which each cluster stands for all data of the version. No problem works just fine.
    The main problem is, that previously new versions (different from the last value) would be bright red while the others remain black.
    Something an array of cluster doesnt support
    I could overlay the text with a picture control and "paint" the text in the different colours as a workaround, but I would prefer not to.
    Do you know any other more elegant way to deal with this issue?

    Create two transparent string indicators on top of each other, one with a different font color. Make one an empty string and the other the desired value. Swap the values to get the "other" display.
    LabVIEW Champion . Do more with less code and in less time .

  • How can I convert four elements of an array of I8 to an I32?

    I am new to LabView I am trying to index through an array of bytes and pull out either 2 or 4 bytes and store the values in either words or longs. Is there any easy way to do this?
    Thanks
    David

    Hi,
    there is function Advansed\Data Manipulation\Join numbers.
    It get 2 numbers of 8\16 bits and join them to one 16\32 bits number.
    In your case you need to take 2 MSB 8-bits numbers and join to 16-bits number. Same thing do for 2 LSB numbers.
    After this join to 16-bits numbers to one 32-bits.
    I hope that help you.

  • How to convert a dynamic data type to array of strings

        I want to perform a serial communication between two
    computers that I´ll call them A and B. The computer A (transmitter)
    will send a signal (sinusoidal) to computer B (receiver). I´m using a
    VISA Serial Communications Set (VISA Configure Serial Port.vi, VISA
    Write.vi, VISA Read.vi and VISA Close.vi).  VISA Write accepts
    only string data type and VISA Read reads only string data type, but
    the signal that I generated (on transmitter) is dynamic data and I need
    to perform this conversion to run my program sucessfully. How can I
    perform this conversion?!

    Hi Rafael,
    You can configure the From DDT Express VI to convert your dynamic data to any number of different types.  By default, the Express VI will convert to a 1D array of numerics...however, you can configure it (either when you first drop it, or by double-clicking it) to convert to a 2D array of numerics...additionally, you can configure it to convert based on channel data being in columns or rows.  I have attached another screenshot that shows converting the dynamic data into a 2D numeric array. 
    I hope this helps.
    -D
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman
    Attachments:
    FromDDT2D.jpg ‏164 KB

Maybe you are looking for

  • Can I open Premier CS6 file created on PC, in CS5 on Mac

    I am working on a video simultaneously with another editor, the idea is that we both edit and both projects should hopefully be vastly different and then once complete to make a master project and take the best cuts of both projects.  Initially we we

  • Site works good in Firefox but not IE

    If you go to www.360montage.com with firefox it works fine and it is all set up and alligned correctly. When you go on it through internet explorer it is all messed especially the contact page. I will appreciate any bit of help or hints. I just basic

  • Delete DML statment tales more time than Update or Insert.

    i want to know whether a delete statement takes more time than an update or insert DML command. Please help in solving the doubt. Regards.

  • Bidder-Password Reset in TX BBPMAININT

    Hi SRM Experts, we have already created new contact persons (bidder) for the vendors via the Web-TX BBPMAININT. That process works fine but how can I change/reset the bidder´s password in TX BBPMAININT. In TX BBPUM01 is a functionallity like this but

  • How do I get a movie from iMovie Library to Projects and Theatre for sharing? Please help?!

    I created a new movie with video clips, photos, sounds, etc. that is four minutes long. It shows within the iMovie Library, not All Projects or the Theatre, which I think is the problem. When I share just a short clip within the movie shares. Do I ne