How to update enum labels when enum is inside an array of clusters?

Hello LabVIEW gurus,
I'm stuck with a design aspect, and was wondering if you could share some ideas as to how to get past it: I would like to fill a table with strings, and then populate an enum inside an array with the string values. 
For purposes of discussion I'll break the steps into two actions, where one takes place before the second (sequential, not in parallel)
Action one - The user will be first asked to populate a table with "strings". The table would look like,
row0 - "string0"
row1 - "string1"
row2 - "string2"
and so on....
Action two - When ever the user "selects action two" I would like to populate an ENUM inside a cluster with values from "Action one". In other words, I'm trying to dynamically write enum values.
The cluster has several objects such as boolean controls, string controls, AND AN ENUM control (see attached .png)
I have tried using Ring, and enums at this point, and have not been successful at it. I read somewhere that because the enum/ring is inside a cluster, and the cluster inside an array, that what I'm trying to do is simply not possible. If that's the case, can you please throw ideas my ideas my way? :-)
In advance, thank you very much.
Cheers,
 

Is this in the full development environment?  Is the cluster (that I assume is a type def) reserved for running at the time?  Because what you described is totally do able IF you are not in an EXE, and this is intended for making an enum to be used elsewhere.  Otherwise this won't work the way you want.  An enum must have it's type defined at run time.  Through scripting you can make the cluster or the enum, or edit ones that already exists (or use one as a template) but as soon as you are in an EXE you have no scripting, and even if you did your code can't compile, so you can't use the new controls even if you could make them.
But if you are looking for a way for a user to enter strings into a table, and then update a drop down with those options that is possible using the combo box which keeps track of the string selected, or a ring control which keeps track of the index (or value) associated with the selected item.
You gave lots of information, but not the important bits like how this will be used.

Similar Messages

  • How to updating plugin.xml when it changed in 12C?

    After Importing the Plug-in Archive and Deploying it on Management Service with 12C, I need to make a change with plugin.xml in Plug-in Archive. Here it's the change,
    --- Old one:
    <PluginAttributes Type="MP" ReleaseStatus="Test"/>
    --- Change to:
    <PluginAttributes Type="MP" DisplayName="MySQL Database" Category="Databases"/>
    So I un-deployed Plug-in from Management Serbice, and used command "emcli import_update" to update the brand new OPAR file successfully, and the deployed again. But it seems the new plugin.xml didn't work at all, neither from UI nor the plugin.xml located under Management Server folder. I am sure it should work cause after I changed the Target Type and etc. in all related files to made a new plug-in, it works well.
    So how to updating plugin.xml when it changed in 12C? (It seems there is no option with MRS.)
    Thanks in advance!
    Best wishes,
    Satine

    Hey Caroy,
    Thank you for your help.
    It seems there is no entrance within page "Setup->Extensibility->Self Update" to delete a plugin. Would you please tell me more specific position?
    I will upgrade the version of plugin and try again to see if it works.
    Thanks,
    Satine

  • How to update a chart when the array is updated

    Hi I am using an array to populate a chart in FB3 and having trouble updating the chart when the array is updated.
    Chart
             <mx:Label id="archiveTitle" x="10" y="10" text="Current Archive " fontSize="14" fontWeight="bold"/>
             <mx:PieChart id="chart" height="130" width="300" color="0x323232"
                showDataTips="false" dataProvider="{ratingAC}"  y="22">
                 <mx:series>
                    <mx:PieSeries field="Rating"/>
                </mx:series>
            </mx:PieChart>
    Array + Vars
             [Bindable]
             public var newsDB:ArrayCollection = mx.core.Application.application.newsDB as ArrayCollection;
             [Bindable]
             private var positive:int = 1;
             [Bindable]
             private var neutral:int = 0;
             [Bindable]
             private var negative:int = 0;
             [Bindable]
             private var ratingAC:ArrayCollection = new ArrayCollection([
             { Rating: 1 },  // no data
             { Rating: positive }, // [0] positive
             { Rating: neutral }, // [1] neutral
             { Rating: negative }  // [2] negative
            private function init():void{
                   buildChart();
                   newsDB.addEventListener(CollectionEvent.COLLECTION_CHANGE, test);
                   newsDB.addEventListener(CollectionEvent.COLLECTION_CHANGE, buildChart);
            private function test(e:CollectionEvent):void{
                 trace("array changed");
                 positive = 20
            private function buildChart(e:CollectionEvent=null):void{
                 for(var i:int; i<newsDB.length; i++){
                      if(newsDB[i].rateItem == 0){
                           trace(positive);
                           positive += 1;
                           //ratingAC.setItemAt(positive,0);
                           trace(positive);
                      if(newsDB[i].rateItem == 1){
                           neutral += 1;
                      if(newsDB[i].rateItem == 2){
                           negative += 1;

    Sorry, in my app I have an ArrayCollection of items from a news feed that the user has deemed important, and given each item a rating. The For loop will loop through the "newsDB" array and set the var accordingly (positive, negative, neutral). The variables are what is populating the arrayCollection (ratingAC). How would I either a) bind the variables to the ArrayCollection so that it updates when one has changed, or b) update the specific index in the array collection. When debugging, i notice that the variables are updating, but the arrayCollection is not.
    Thanks in advance!

  • How to update old POs when changing a supplier name?

    Hi,
    Can anyone advise on how to update supplier details on old POs when we update a supplier name?
    Thanks.

    Hi,
    You dont want to do any updation in Old PO even its in Approved and Closed status.
    System will automatically update the name in All PO when you update the supplier name in Suppliers form.
    Thank you
    Regards
    M.R.Sivasooriyan

  • How to update my iphone when it says im not connected to the internet when i am?

    I know how to update my iphone but it says that im not connected to the internet, when i actually am?!
    Does anybody know how to solve this problem?

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ If you’re running Mac OS X 10.7 or later, open LaunchPad. Click Utilities, then Console in the page that opens.
    Select "/var/log/install.log" from the file list. Post the messages from the last installation attempt, starting from the time when you launched the Installer or Software Update.
    Post the log text, please, not a screenshot. If there are runs of repeated messages, post only one example of each. Don’t post many repetitions of the same message.
    Important: Some private information, such as your name, may appear in the log. Edit it out by search-and-replace in a text editor before posting.

  • Update a slider insider an array of clusters

    I have an array of clusters. Each clusters has several controls, one of
    which is a slider. I want to change the scale of the slider
    dynamically, since I have one slider per variable in my system. I'm
    using a for loop to access each cluster in the array and update the
    scale of the slider to match the range of the variable. But when doing
    this, the scales in all the sliders are updated at once, thus all
    sliders end up having the range of the last variable.
    Is there a way to avoid this automatic update of all the elements in an array?

    In the unlikely chance that your array size is fixed you could work with a cluster of clusters
    You can then use the Controls[] property to access the individual maximum and scales property nodes.
    Incidently I had seen this before http://forums.ni.com/ni/board/message?board.id=170&message.id=170076&query.id=49401#M170076. There are some tips on how to get around the array to cluster limitations. They might apply to you.
    David
    Message Edited by David Crawford on 06-21-2006 07:53 AM
    Message Edited by David Crawford on 06-21-2006 07:53 AM
    Attachments:
    Cluster Of 5.jpg ‏31 KB

  • Update button label when locale changes, in AS3

    What I'm trying to do is pretty do what this does:
    <s:Button label="{resourceManager.getString('Strings', 'some_resource')}"/>
    but in ActionScript code. I have a function to add a new tab button to a layout which takes a string and just trying to set the label to the same string doesn't work obviously. So what I need is a way to set the button label to some bindable value that will update whenever the locale changes, like it does automatically when doing it in MXML.

    Nevermind, I figured it out. For those of you that are curious about the solution I found it's in the code below. The only way I could figure out how to get it working is by declaring a local function right after creating a button and attaching it as a "change" event handler to the resourceManager.
    public function addTab(resourceName:String):uint
         var newTab:Button = new Button();
         newTab.label = resourceManager.getString('Strings', resourceName);
         newTab.setStyle("skinClass", Skins.Buttons.TabButton);
         // Create a local function that will update the button label whenever the locale changes
         var localeChangeHandler:Function =
              function (e:Event):void
                   newTab.label = resourceManager.getString('Strings', resourceName);
         resourceManager.addEventListener("change", localeChangeHandler);

  • How to update the table when change list item in classic report

    hi ,
    i worked with apex 4.2 and i create normal classic report with one select list(named loved)Column ,now i want to update table when user change the list with new value ,i can't create dynamic action to do this,i create check box with primary key and loop for check item to update the table but i can't get the value of list item. and for more speed the user want to do this when change the list value.
    my question
    1- how to do this by javascript and get the value from list item and update the table with new value
    2- is i must use API to create list item so i can get the value of item in report or what.
    Thanks
    Ahmed

    I coded the following to give you direction:
    1. In the "Element Attributes" section of the DEPTNO column, I call a javascript function as:
    onchange = "javascript:updateTable(this);"2. I wrote a simple javascript function that shows an alert when the user changes the select list as:
    <script language="JavaScript" type="text/javascript">
    function updateTable(pThis)
        var vRow = pThis.id.substr(pThis.id.indexOf('_')+1);
        alert('Row# - '+ vRow + ' has the value - ' + pThis.value);
    </script>Now, you can call a AJAX on-demand process inside the javascript function to update the database value.

  • How to update child record when item from parent record changes

    Hi, I have a master and detail form with two regions on the same page.
    Region one references parent record, one of column in the parent record is also in the child record. And is one to many relation
    between parent record and child record. How can I have the column on the child record updated when the column of the parent record is being modified?
    For exemple; Parent record has two columns : ID and Program.
    Child record has Program, goal# and status. I have two pages established, page 27 and page 28.
    Page 27 list out all programs from parent record, by clicking on edit to a program, it braches to page 28 with program listed as editable field in region one, and mulitple records list in region two from the child record with the same program.
    The problem that I am having is once the program in region one got modified using ApplyMRU, the program in child record did not get updated with the new value and therefore those record become orphan records. I need a way to update all current child records with the new program value.
    Thanks in advance for anyone who can hlep out on this problem.
    Julie
    Edited by: JulieHP on May 24, 2012 4:57 PM

    One Idea is
    If possible create a after update database trigger on the parent table to update the relevant child record.
    Next one
    Create a PL/SQL process on the parent page with process sequence next to ApplyMRU, so when the ApplyMRU is seccessfull it goes not to your process where you can have your update statement

  • How to update a table when exception?

    The form contains only 1 block, a control block, which will trigger a oracle report when user save it.
    It will insert a record into a table. If report generate successfully, it will update the status to completed and vice versa.
    How can I do so? Because in the exception block, it will rollback the record inserted and cannot update the status anymore.
    {color:#000000}Begin
    INSERT ..........
    Some Processing......
    Call Report.......
    UPDATE the status .......
    Exception
    When OTHERS THEN
    UPDATE the status .......
    End{color}
    Thanks.

    If there is only a control block, forms will not do any commit, so you have to put a commit; at the end of your procedure, both in the main and in exception blocks.
    You can then suppress the 'No changes to commit' message.
    Best practice approach would be to have a stored procedure coded as autonomous transaction.

  • How to update ALL records when inserting new image

    I have categories and subcategories and they contain images. The images are in db with an order number, the lowest number is shown first on the website
    When I insert images (i have a multiple image uploader) all order numbers need update. WHen I insert for exemple 4 images, these 4 image have order 1,2,3,4 and the order of images already in db (for that category) need to become current order number + 4 and I don't know how to do this.
    Anyone that can point me in the right direction?
    Bianca

    I suggest a different approach.
    If you are timestamping your db records, use that field to determine the order.  However, a simple update query will work.
    update yourtable
    set field = field + 4

  • How to update bean properties when using an immediate link

    Hello,
    I have a page with a find link next to an input text field. The input text field requires a valid code to be entered. If the user doesn't know the code they need to press the find link to go to a search page and select the code. The input text code field needs to have a value entered so it has its required attribute set because the validator I have and attached to the input text field does not get called unless something is entered in the field. If I don't set the link to immediate the required constraint prevents the search page from being invoked but if I do set it to immediate the values typed on the page are not updated to the bean properties they are bound to.
    I have read many posts but I fail to see a way to resolve this. The update model phase is apparently skipped because of the immediate attribute and so the values typed in by the user are lost.
    Please help.
    Thanks,
    Randall

    A UIInput holds the submitted value.
    When updating models it is cleared to null but when some error occurs it keeps to hold the submitted value.
    The TextRenderer uses the submitted value if the value is null.
    Therefore, you can see the submitted value is redrawn when some error occurs.
    Unfortunately, this mechanizm does not work beyond requests
    because the default application action listener always create a new viewroot based on the navigation rules.
    An general solution of your problem is not so easy.
    I think it may be to customize the action listener or the lifecycle.
    A temporal solution may be that the link action copys the submitted value to the managed-beans.

  • How to update purchase order when creating a new condition records

    Hi,
      We have the system configured so that whenever we update a condition record, a change pointer is generated. Then we the use of standard reports RMEBEIN4 and RMEBEIN, all open purchase order having that condition type is updated. However this only works when we update existing condition record. When we create a new condition record, this does not work even though the change pointer is created. Do the reports mentionned above works for the this case or another standard report that should be trigger.
    Thank you for your help

    hi,
    May be this is working for the conditions already existing in the info record for the PO's.  so when you have new condition record it updates only after you amend the PO with that condition and save it.
    Kiran

  • How to update to ios6 when "could not establish a secure connection to the device" message appears with Jailbroken iPhone 4

    Hi all,
    I've been trying to update my Jailbroken iPhone 4 to ios6 but, unfortunately, I keep getting the "could not establish a secure connection to the device" when connecting it to iTunes. I've tried updating "over the air" but this flags up an error too. Finally, I can't restore to a previous backup because, the backups I previously had, were stored on my old (broken) computer.
    CAn anyone help? Any suggestions would be greatly appreciated!
    Thanks,
    Rakesh.

    You jailbroke your phone.
    Only google may help now.
    You'll find no help here.
    If Haiku you don't like,
    Then to Google you should hike,
    You jailbroke your phone,
    Now on these forums you are alone,
    'Tis a day of no cheer,
    For we cannot help here.
    In non-poem; You jailbroke your phone, which is not support by Apple, meaning updates will not work on it as they would if you were running official software.
    As per the ToC for the device, and for these Discussion Boards (both you agreed too), you will not get support either from the discussion board, or from Apple directly.
    Your best bet is to Google for help and learn a valuable lesson; Jailbreaking can definitely brick your phone.

  • How to update iPhone 4s when WiFi is not operable

    Help

    If you don't have WiFi, you'll have to update using iTunes on your computer. Make sure iTunes is updated to 11.1 first.

Maybe you are looking for

  • How can I use excel and word on the IPAD2

    How can I use excel and word documents on my Ipad 2

  • Photoshop CS6 Installation problems - Macbook

    I've been trying to install a trial version of photoshop on my macbook, it's an early 2009 model. Each time I try to install photoshop cs6 I get an error message, I have photoshop cs5 on this laptop, but I need cs6 for college, can anybody help? The

  • Fonts in terminal!

    Hi, I recently did a clean install of arch linux, and I can't seem to setup my fonts in the terminal window. I have selected terminus as font, but only my username in the terminal is using the terminus font, everything else is some other bold shitty

  • Form value is not updating

    Hi all, I use netbean 5.5 (visual midlet) to develop my J2ME application. Very headache with my form's value that is not updating whenever i reopen the same form. Lets say I have FormA, FormB. First, I go to FormA. I enter my name "John" to save in r

  • How to XI u0097 SRM, which adapter type should i use

    I want to get info from SRM, and feed back the response to SRM Is there any detail about this? and any link? Thanks