Programmatically obtain disabled items within Enum, Array, etc.

Hi,
I am attempting to obtain the disabled state of every control and indicator and save this to a configuration file for a specific VI; which includes a broad range of arrays, strings, booleans, enums, etc. For simple objects, such as a string, that only have a single value this is easy using property nodes like this:
For more complex objects, such as an enum, that have multiple values the above method only works for the enum object itself not the items within. If a property node is created for one of these more complex objects there is a property called "DisabledItems[]" which is not available using the Ctl property node (I assume because not all controls and indicators have multiple items). I would like this function to be compatible with all VIs so manually creating property nodes for the more complex objects is out of the question.
Does anyone know how to generically and programmatically obtain the disabled items of one of these more complex objects? The same goes for arrays, clusters, rings, etc. 
Thanks for any help,
Aric
Solved!
Go to Solution.

You can use the Class Name or Class ID property to find out what kind of control it is then use the To More Specific Class to cast the RefNum to the correct class.  You then have access to the properties you're interested in.
Kelly Bersch
Certified LabVIEW Developer
Kudos are always welcome

Similar Messages

  • Show/Hide certain items in an array of clusters

    I am trying to figure out how to programmatically show/hide certain items in a cluster (specifically an array of clusters).  I tried a couple of things but nothing worked for me.  On a similar note, I would like to be able to programmatically hide certain columns in a table.  I can’t figure it out and the postings on the LabVIEW forums here were either not terribly helpful for my situation or maybe I just didn’t understand them.  I have attached a vi where I tried to hide items within the array of clusters.  Maybe someone could point out why it didn’t work and hopefully they could provide a solution or direction for me to follow.  Thanks in advance…
    Solved!
    Go to Solution.
    Attachments:
    make column hidden.vi ‏15 KB

    Creating a property node directly to the cluster element is far easier. pcardinale essentially shows this.
    As for the question regarding the table columns, there is no direct way to hide the table columns, viz-a-viz Excel. The closest you can get is to set the column width to zero, as shown in attached example.
    Attachments:
    hide table columns.vi ‏13 KB

  • Programmatically-customizable Forms items?

    I have a DB table that stores a list of questions and data types/sizes/usages of the answers required by the user of the form.
    In a multi-record database block, the form currently lists the questions, and supplies a Text Item to capture the user's answers, and then provides validation code to check for the proper data type & number of characters.
    I would like to be able to use the data type/size/usage information that is stored with each question to create, at runtime, an appropriate item (numeric text item max length 3, or character drop-down list box, or character text item with an LOV, etc.) for each question record. In other words, one record could have a drop-down list box, while another record could have a numeric text item.
    I think that I can create separate fields for each type of item, and then enable/disable the fields when required, but this solution is less elegant than the programmatic solution that I desire. I can also remove the multi-record property, to remove the restriction that all items in each record must be the same, but, again, this solution is not elegant.
    Is there a way to do this programmatically in Oracle Forms 6.0.5.0.2 for Windows, or with an OCX, or some other add-in?
    We do not have Oracle Applications in this group. Is there a way to get "FlexField" without having Oracle Applications? (I don't know what functionality "FlexField" provides, but it was suggested as a solution to a question by Shahid Hafeez on Feb6, 2001, in the topic "User Defined Fields/data items", which is similar to my question.)
    This is a normal requirement these days as administrator-type users (as opposed to data-entry end-users) of applications want the ability to dynamically customize the app for their usage.
    Oracle needs to address this issue by creating the ability in Forms/Reports to create customizable apps.
    Thank you in advance for any help you can provide.
    Kathy
    null

    Kathy
    What you are requesting is not possible in Oracle's development environment.
    'Flexfield' is a feature of Oracle Applications which is a bunch of fields of certain tables to be used in the future without having to redesign table/database structures. It does not give you a dynamic data type assignment to records of multi-record blocks.
    Regards

  • How do I removing a specific item from an Array?

    Hi there.
    I am having an array of movieclips and when my circle(controlled with the keyboard) hitTests true with one of the movieclips inside that array i want to remove that movieclip from the array so when i hitTest it again it returns false (I hitTest using a "for in" with that array).
    How do i remove a specific item from within an array?
    Can someone help me? Thanks a lot.

    i haven't noticed anyone showing deference because of the points.  in fact, i've seen some people (a minority, to be sure) be just obnoxious about it.  i never encountered that before:  some people feel they have power because they can dole out points.
    but overall i agree with you:  the loss of the list of threads i am participating in, along with the most recent posters name, is a significant drawback of the new forums.  and there's nothing new in these forums that offsets that drawback.
    in addition, i think we've lost way more than 1/2 the older threads.  that's a lot of information that's no longer available.

  • Can't duplicate movieclips as an array within an array

    Hello.
    I have an animation that loads an xml into it and traces back
    an array within an array. I have tried to apply this to duplicated
    movieclips thereby creating a structured set of links. What I am
    trying to do is this:
    Chicken Nuggets
    __Compression
    __Texture
    __Disgust
    Mega Warhead
    __Taste
    __Hardness
    __Pain
    This traces fine but I can't seem to get the duplicated
    movieclips to assemble in this fashion.
    The code for the XML is as follows:
    var controlArray:Array;
    var variable:Array;
    var testTopic = new Array ();
    var test = new Array ();
    var controlsXML:XML = new XML();
    controlsXML.ignoreWhite = true;
    controlsXML.onLoad = function(success:Boolean){
    if (success){
    var mainnode:XMLNode = controlsXML.firstChild;
    var controlNodes:Array =
    controlsXML.firstChild.firstChild.firstChild.firstChild.childNodes;
    var list:Array = new Array();
    for (var i:Number = 0; i < controlNodes.length; i++) {
    var personnode:XMLNode = controlNodes
    .attributes.Name;
    trace(personnode);
    testTopic.push (new struct (personnode));
    var specificNode:Array = controlNodes.childNodes;
    for (var j:Number = 0; j < specificNode.length; j++){
    var itemnode:XMLNode = specificNode[j].attributes.Variable;
    trace(itemnode);
    test.push (new struct2 (itemnode));
    printer ();
    printer2 ();
    } else {
    trace('error reading XML');
    controlsXML.load ("controls3.xml");
    The code for the movieclip duplication is as follows:
    x = 50;
    function printer ()
    for (m = 0; m < testTopic.length; m++)
    duplicateMovieClip ( slotTopic, "slotTopic" + m, m );
    slotTopic = eval ( "slotTopic" + m );
    slotTopic._y += x;
    slotTopic.slotTopicContent.text = testTopic[m].personnode;
    function printer2 ()
    for (k = 0; k < test.length; k++)
    duplicateMovieClip ( slot, "slot" + k, k );
    slot = eval ( "slot" + k );
    slot._y += x;
    slot.slotContent.text = test[k].itemnode;
    function struct (personnode)
    this.personnode = personnode;
    function struct2 (itemnode)
    this.itemnode = itemnode;
    On the stage are two movieclips, titled "slotTopic" and
    "slot". Within those are dynamic text boxes titled respectively
    "slotTopicContent" and "slotContent". When I preview this file it
    only displays the text within the "slot" movieclip and it lists all
    six of the subtopics with no break. So, there are two dilemmas:
    1) The movieclips won't duplicate into the structured set of
    links that I want.
    2) "slotTopic" is not displaying text at all.
    If anyone has any advice, I'd really appreciate it.
    Thx!

    ok, I'm sorry but there are quite a few things wrong here.
    first though, when posting code please use the 'attach code'
    button.
    1) i can't imagine that you have a XML structure as deep as
    your calling to or the need for it with the limited amount of
    infomation your pulling, in addition your storing the info in
    attributes, so I can't see how this would work, it may 'trace' out
    the right text (somehow) but it's not getting into the arrays
    properly.
    2) you do not assign an attribute value to a XMLNode, and
    then try to push it into an array.
    3) you do not call a method (struct or struct2) using the
    'new' operator. this is how you envoke a new 'class' instance.
    4) do not use 'x' as a variable name as it is a reserved var
    in flash, assigned to an Object instance.
    5) the duplicateMovieClip() method needs to be called upon
    the existing clip as in:
    slotTopic.duplicateMovieClip('slotTopic'+m, m);
    additionally you can pass the _y placement within the
    initObject.
    6) you do not need to use eval, it isn't doing anything here,
    you will gain the correct path by calling duplicateMovieClip
    correctly.
    7) the reason why slotTopic is not being displayed at all is
    because of the second loop, you are duplicating the clips
    (incorrectly) into the same depths thereby replacing all of the
    contents of the slotTopic depths previously constructed.
    the solution to this problem is to construct both items with
    the same loop but increament one of the depth assignments by a
    specific number, in other words at depths much higher or at least
    different, than that of the first element, as in:
    slotTopic.duplicateMovieClip('slotTopic'+m, m, {_y:50});
    slot.duplicateMovieClip('slot'+(m+100), m+100, {_y:50});
    again I'm sorry man, but it will take some work to sort this
    out.

  • Counting items in the array

    Hello,
    I need a clean way to count the items in an array. I can sort them using :
    int []x=new int[150]; I'm using Math.random%10 to get intergers from 0-9;
    public static void countItem() // sort items in the array
    int min, temp;
    for (int i = 0; i < x.length-1; i++)
    min = i;
    for (int scan = i+1; scan < x.length; scan++)
    if (x[scan] < x[min])
    min = scan;
    // Swap the values
    temp = x[min];
    x[min] = x;
    x[i] = temp;
    but once they are sorted I am baffeled on a clean way to count how many of each item are listed.
    0001122222222333444444 etc up to 9.
    Thanks

    but once they are sorted I am baffeled on a clean way to count how many of each item are listed.
    0001122222222333444444 etc up to 9I think you're going about this the wrong way. First count, then you've implicitly sorted them (counting sort). public class CountingSort
        public static void main(String[] args)
            int[] arr = {4, 5, 1, 3, 3, 3, 7};
            countSort(arr);
            for (int i = 0; i < arr.length; i++)
                System.out.print(arr[i] + " ");
        static void countSort(int[] arr)
            // Assume all elements of arr are in range 0..9
            // initialise buckets to an array of zeroes - don't rely on this except in Java
            int[] buckets = new int[10];
            for (int i = 0; i < arr.length; i++)
                buckets[arr]++;
    // Now reconstruct the array in sorted order
    // k is the next element in the array to fill in
    int k = 0;
    for (int i = 0; i < arr.length; i++)
    while (buckets[i]-- > 0)
    arr[k++] = i;

  • Programmatically select all items in a list

    Hi, I've been looking through the online docs trying to find
    a way to programmatically select all items in a list. I have a
    checkbox that when checked should select all items in a list. I
    found a method to clear all selections but not one to select all.
    Did I just miss it? Thanks!

    I don't know of any built-in functions to select all list
    items, but here is an example function to select all items in a
    list:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    xmlns="*" layout="absolute">
    <mx:Script>
    <![CDATA[
    [Bindable] private var people_xml:XML =
    <people>
    <person>Jen</person>
    <person>Brian</person>
    <person>Scot</person>
    </people>;
    private function select_all():void {
    var indices:Array = new Array();
    for (var i:uint = 0; i<people_xml.children().length();
    i++) {
    indices.push(i);
    peopleList.selectedIndices = indices;
    ]]>
    </mx:Script>
    <mx:Button x="125" y="10" label="Select All"
    click="select_all()"/>
    <mx:List x="10" y="10" allowMultipleSelection="true"
    dataProvider="{people_xml.person}" id="peopleList"
    labelField="person" width="107"></mx:List>
    </mx:Application>
    Vygo

  • Logic function disable items

    what is the logic of the array of the function enable disable items on a Menu ring in LabView 5.1

    I'm not sure if you're asking why there should be disabled items or how to disable selected items. Why is because there may be situations where menu items don't apply and you don't want a user to select them. As to how, if you have a menu ring with items a,b,c, and d. If you want to disable b, this is element 1 in the array of elements and to disable it, you create an array with 1 as the only element and wire this to the property node DisabledItems (LV 6 and up. Not sure about name if 5.1). On the Front Panel, you can simply select the item you want to disable and then right click to enable or disable it.

  • Default appearance of disabled items

    Hi, i would like to have some informations on visual attributes of disabled items :
    --Is it possible to change the default appearance of disabled items?
    --How oracle forms manage visual of disabled items?
    --Is it possible to change background or foreground color of disabled items?
    Thank you very much.
    Edited by: Tabit7 on Jul 19, 2011 6:30 AM

    This seems a pretty simple thing to test. For example, I created a sample form and in the When-New-Item-Instance trigger I added the following code:
    :BLOCK1.ITEM1 := 'TEST';
    Set_Item_Property('BLOCK1.ITEM1',BACKGROUND_COLOR,'r255g255b000');  /* YELLOW */
    Set_Item_Property('BLOCK1.ITEM1',FOREGROUND_COLOR,'r255g255b255');  /* WHITE */Good so far. Background is Yellow and Forground is White. Then I disabled the item.
    Set_Item_Property('BLOCK1.ITEM1',ENABLED, PROPERTY_FALSE);and the text Forground color changed to light black or dark grey. So to answer your questions:
    --Is it possible to change the default appearance of disabled items?Yes - but, not all attributes of the disabled item can be modified.
    --How oracle forms manage visual of disabled items?The basic appearance of the item doesn't change except for the forground color.
    --Is it possible to change background or foreground color of disabled items?Background color = YES, Forground color = NO.
    If there are other attributes you want to change, Font Style, etc, I suggest you try to set the property and see what happens. As it turns out, you can also change the FONT_SYTLE of a disabled item as well. ; )
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Disable Item in tabular form in Apex

    I would like to disable items in tabular forms.
    If line status is Draft then all items of tabular form are enable other disable.
    How to write this condition and where should i write because in dynamic action tabular Item is not showing...
    Edited by: 926257 on Apr 9, 2012 12:53 AM

    hi
    926257
    you can do that using java script
    these links may helpful to you
    <a href>Tabular form: how to dynamically enable/disable columns and rows
    <a href>Tabular Form: Enable/Disable a field based on the status of a check box
    <a href>http://www.codetoad.com/javascript/enable_disable_form_element.asp</a>
    <a href>http://www.tizag.com/javascriptT/javascript-getelementbyid.php</a>
    thanks and regards
    pavan

  • How can I add a link to an item within a workflow email - which will always find the item - even if it's status has changed?

    I've used the method within the SharePoint designer to add a link to the workflow context current item URL, but when the current item status changes then obviously this link will no longer work.
    How can I change this link so that it will always open the item, even if someone has changed it within the list, before I clink on the link?
    This is an important one as over 300 people will use the list and many of these will be emails about items on the list will be in different time zones.  I don't want to have lots of mails from people saying "this list doesn't work" as it's
    critical they keep using it.
    Please help.
    P.S.  I don't know if the <href> method will work, so if someone can confirm to me then that would be great.

    Hi,
    According to your post, my understanding is that add a link to an item within a workflow email.
    I’ m not very clear about the status you said. Please descript more detail which URL do you want to display.
    Per my knowedge, you can display the following url in your email body:
    [%Workflow Context: Current Item URL%]
    [%Workflow Context: Current Site URL%]
    [%Workflow Context: Workflow Status URL%]
    [%Current Item: Encoded Absolute URL%]
    Please start the workflow automatically when an item is changed and changed.
    No matter how you  edit the item or update the approve status, the URLs remains the same.
    Thank you for your understanding.
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Error: An integer constant expression is required within the array subscrip

    hello all,
    here is a small piece of code which compile well with g++:
    #include <iostream>
    using namespace std;
    int main () {
    int i= 0, j=4 ;
    cout <<" i=" ; cin >> i ;
    cout  << "i="<<i<< endl;
    if ( i > 1) {
       double xx [i+5];
       int n= i+5;
       for (int k =0 ; k < n ; k++) xx[k] =k;
      cout << "xx[2]=" << xx[2] << " xx[4]=" << xx[4] <<" xx["<<i<<"]="<< xx[i] <<en
    dl;
      cout << "xx[1]=" << xx[3] << " xx[5]=" << xx[4] <<" xx["<<n-1<<"]="<< xx[n-1]
    <<endl;
    }with Sun Studio 12 CC, the error is:
    "x.C", line 12: Error: An integer constant expression is required within the array subscript operator.
    1 Error(s) detected.Is there an option to force CC to accept it? i read that CC has some gnu extensions (http://docs.sun.com/source/820-4155/c++.html)
    Thanks in advance for help,
    gerard

    This works:
    #include <iostream>
    #include <alloca.h>
    using namespace std;
    int main () {
    int i= 0, j=4 ;
    cout <<" i=" ; cin >> i ;
    cout  << "i="<<i<< endl;
    if ( i > 1) {
       double *xx = ( double * ) alloca( sizeof( *xx ) * ( i + 5 ) );
       int n= i+5;
       for (int k =0 ; k < n ; k++) xx[k] =k;
      cout << "xx[2]=" << xx[2] << " xx[4]=" << xx[4] <<" xx["<<i<<"]="<< xx[i] <<en
    dl;
      cout << "xx[1]=" << xx[3] << " xx[5]=" << xx[4] <<" xx["<<n-1<<"]="<< xx[n-1]
    <<endl;
    }

  • Working with items within groups

    With nearly all primary Adobe CS applications they offer a way to modify individual items within a group without ungrouping the item. Both Illustrator and InDesign in CS5.5 enable to doubleclick on the group which enters a mode were that item is isolated and only the contents within can be modified. As far as I can tell the only options to do this in Fireworks is to:
    * Ungroup and then regroup, which is not ideal because you loose the name of the group and you have to reselect each item again afterwards to regroup
    * Use the sub selection tool, which is also not ideal because it dose not allow you to target sub groups as items
    Can anybody else confirm this behavior?

    Try the Object extension by Aaron Beall http://fireworks.abeall.com/extensions/
    You can also, instead of grouping the objects, convert them to a Symbol (Select all, then Modify > Symbol > Convert to Symbol > Graphic. The objects will then behave as a group. You can edit individual items in the group by opening the symbol in the Symbol editor. To open the Symbol editor, simply double click on it.

  • How to change the font color of a disabled item

    Can I change the default color of a disabled item from gray to something else? I've tried to put style="color:darkblue" in the HTML form element attributes but it didn't worked.

    Hi,
    Code probably run, but IE do not just understand CSS what code set ?
    I did find something related
    http://www.askthecssguy.com/2007/05/shawn_asks_the_css_guy_about_s_1.html
    Regards,
    Jari
    Edited by: jarola on Oct 27, 2010 11:24 PM
    And this
    http://stackoverflow.com/questions/602070/changing-font-colour-in-textboxes-in-ie-which-are-disabled

  • Access for the disabled item

    Hi All!
    I have a disabled htmldb item, how can i read or access for this item's value? I would like to work with this value in the apex process.
    Now, if i use this disabled item (:P1_DIS_ITEM) in the process i get null value... But there is a value in...
    thx

    Hello:
    Disabled items are cleared out from session state upon Submit.
    Create a hidden item on your page and populate this hidden item just as you populated the disabled-item.
    In your page-process refer to the hidden item instead of the disabled item.
    Varad

Maybe you are looking for

  • My Adobe Photoshop Elements 9.0 requests an up date but won't install

    I am using Windows 7 Professional 64.  I have disabled my virus protection.  After several minutes installing I get the messgae:  Adobe Photoshop Elements 9.0.3 Update   Patch cannot be applied. Please contact product support. But there dioes not app

  • HT4972 I can't update my Apple iphone. Its model firmware is 4.2.1. What can I do to update my iphone.

    I can't update my Apple iphone. Its model firmware is 4.2.1. What can I do to update my iphone.

  • No /559 wage type in posting run - Program RPCIPE00

    hello everyone, I have created a posting run for an employee via report RPCIPE00. the scenario is employee was not paid in period 26/2007 (26 in 26), he got paid in 26 in 27 ( period 27/2007) but there was no payment  for 27 itself only the inflow fr

  • How to send a document by mail

    Hi, I am currently creating a document that must be filled in by the user, and then send to a mailbox (for later treatment). I have thus created a form, with some fields and a button. This button must do the document validation then, if it is a valid

  • Messsage Mapping 2:1 in BPM

    Hello Expert how to do following mapping source message                          target message message1                                     message 1       node A               ->                     nodeA       node B               ->