CheckBox States

Hello world

I would use my software behavior of the boxes and I don't know how to do with LabWindows/CVI:

I have a tree of options (the + symbol represents a check box):

+ opt1

- + opt1.1

- + opt1.2

If I Word * ONLY * the opt1.2 element, I want the opt1 checkbox in State "undeterminate" (you know, the green square on windows).

I could have used that property blurred, but I also need to represent whether or not my checkbox is interactible.

So, how can I manage my code for this behavior?

I also triied using the ActiveX control with the Microsoft Windows Form checkbox (v2 because I'm using CVI9, but I hope that I will have CVI2010 at the end of the week) but the 'TripleState' property look like grayed out...

Any idea?

Thank you very much

Olivier.

Hello Olivier, and welcome to forum of LabWindows/CVI.

You can check the exmple samples\userint\treemark.prj

The examples are in C:\Users\Public\Documents\National Instruments\CVI\samples

Constantin

Tags: NI Software

Similar Questions

  • How to navigate all the Checkbox State in a ListView

    I have a ListView with box on each line. I want to make a feature to remember the State of the check box so users checked someone.

    I tried to use a signal when the box is checked to notify a function in a CPC to remember the current state of the check box, but when I want to do with the context property object registed in the PRC, it always say this object cannot be found.

    Do you know how to make this kind of functionality? Or how to navigate all the checkbox in the ListView? Thank you very much.

    listItemComponents: [
        ListItemComponent {
            type: "textItem"
                TextItem {
                    id: textitem
                    onItemcheck: {
                        _app.setCheckboxStatus(checkBoxId); //ReferenceError Can not find variable _app
                    }
                }
         }
    ]
    
    mainApp.cpp: qml->setContextProperty("_app", this);
    
    TextItem.qml:
            signal itemcheck(string checkBoxId)
    
            CheckBox {
              onCheckedChanged: {
                if (checked)
                    itemcheck(ListItemData.id);
              }
            }
    

    to solve the referance error pls follow these steps

    listItemComponents: [
        ListItemComponent {
            type: "textItem"
                TextItem {
                    id: textitem
                    onItemcheck: {
                       textitem.ListItem.view.setCheckboxStatus(checkBoxId);
                    }
                }
         }
    ]
    
    function setCheckboxStatus(checkBoxId)
    {
     _app.setCheckboxStatus(checkBoxId);
    }
    

    Add setCheckboxStatus function in ListView

  • Can a checkbox State (true/false) another State (different) check box in the control?

    Hello

    I am trying to find the answer in the internet and here in the support forums, but so far without success.

    So, I was wondering is it possible to make a CheckBox control (checked/unchecked) other (different) box in the same table.

    Lets say I have a list of items to take on the assignment in the field (in separate lines) in my checklist. Some of these items will be check together so that both can work as one.

    For example - gas generator and fuel tank:

    You can check the box next to "gas tank" if you need to take only,

    But if you check 'gas generator' numbers should automatically check the "fuel tank" so I remember to take it as well to the generator.

    So, please help me with the formula if there is possibility to do so in the last app (OSX) number. Thank you.

    Hi Shkacas,

    Perhaps you might consider to penetrate your activities field trip.

    The elements required for each activity are in another table. You can 'hide' this table by moving (copy / paste) to another sheet. The formulas will adjust automatically.

    Formula in the Input Table C2 (and fill down)

    = IF (B2, CONCATENATE (Required::B2 elements ",", Required::C2, ",", elements Required::D2, ",", elements Required::E2),' ')

    Ignore the additional decimals in the result. These are refills for empty cells in the table of the required elements.

    Another example where insГЁrent the check boxes unchecked "" (NULL, empty)

    Kind regards

    Ian.

  • Lightroom cc "to remove the Chromatic Aberration" checkbox State is not saved with preset to develop

    I am trying to save a preset development to apply to importation.

    I check both 'Activate profile Corrections' and 'remove the Chromatic Aberration' and save it under a new preset development.

    After you import files with this preset the "Activate the Corrections in profile" is checked but the the "Remove the Chromatic Aberration" is nothing of done.

    Anyone else having this problem or knows what I'm doing wrong?

    Thank you

    Nathan

    ngUTTRIDGE wrote:

    I am trying to save a preset development to apply to importation.

    I check the "profile Corrections allow' and 'remove the Chromatic Aberration' and save it as a new preset development.

    After importing the files with this preset "Activate profile Corrections" is checked but him 'remove the Chromatic Aberration"is nothing is done.

    This is a known bug in Lightroom 6.2/6.2.1 and Lightroon CC 2015.2 and 2015.2.1. You can go to Photoshop family customer community and find the thread where this issue is discussed and add your name/vote to fix this bug.

  • ListItem customized with Checkbox problem

    Hi I want to create a customListItem with a checkbox. I was able to do, but as soon as I select a checkbox other check boxes were also checked.

    This is my code

            ListView {
                id: lv_cities
                objectName: "lv_cities"
                listItemComponents: [
    
                    ListItemComponent {
                        type: "header"
                        Header {
                            visible: false
                        }
                    },
                    ListItemComponent {
    
                        type: "item"
                        Container {
    
                            background: Color.White
                            Container {
    
                            layout: StackLayout {
                                orientation:LayoutOrientation.LeftToRight
                            }
                            horizontalAlignment: HorizontalAlignment.Fill
    
                            background: Color.White
                            CheckBox {
                                id: member
                                objectName: "member"
                                checked: false
                                onCheckedChanged: {
                                    console.log(ListItemData.name);
                                }
                            } 
    
                              Label {
                                  verticalAlignment: VerticalAlignment.Center
                                  text: ListItemData.name
    
                              }  
    
                        }
    
                            Divider {
    
                            }
                        }
    
                    }
    
                ]
    
                onTriggered: {
    
            }
            }
    

    so if I click on a checkbox it gives me the name of a city, but I do not understand why the other lines are also verified.

    anyone has a similar experience and can help me?

    concerning

    Hello
    ListView is the reuse of ListItemComponents it is during scrolling.
    For this reason, box remains in a State that is activated when reused.

    Checkbox State can be stored in the data model. Bind the checkbox checked property to scope a datamodel, in this way, it will be reset to reuse.

    DataModel can be ArrayDataModel, GroupDataModel or any other type of model.

    In general, the idea is that all the information given and the State is stored in the model, ListItemComponents display only the data to the appropriate lines.

  • checkbox combinations that influence page transitions

    The complexity of explaining this question, it is difficult to enter in to a search engine, so I'd like to advice without having to sift through pages and pages of irrelevant sites!

    I have a project that requires an application to be created where a lot of options (in the form of radio buttons and check boxes) can be selected in combination with each other, but each combination of options requires a separate landing page.

    is it possible to use a 'next' button to point the user on several pages, depending on the exact combination checkboxes are selected? Under interaction, conditional option only I can see updates only to work if on a specific page, nothing to do with the box option or checkbox State.

    Any help would be greatly appreciated!

    Alex

    Something like that, you need to write some custom ActionScript to parse all the parameters of the radio buttons and checkboxes to "solve" what page the next button should go. It is something that Flash Catalyst was not intended to do, but it's Companion Flash Builder. FB is a robust code editor, you would use to write this code. But you must understand ActionScript in order to to use.

    I hope this helps point you in the right direction!

    Chris Griffith

  • I accidentally delete interface wifi

    As the title says I delete it while I was trying to solve the slow connection, I had

    Now I don't know what to do, the hours looking for a solution, but nothing...

    Don't know what you are referring, but maybe this...

    System Preferences > network > select Wi - Fi in the sidebar > checkbox State showing a Wi - Fi connection in the menu bar.

    AirPort Utility app is located in the utilities subfolder of the folder inside the Applications folder.

  • Don't Flash Builder 4.7 problem - no platform BB

    Hi, I installed the FB 4.7 on my PC.

    I downloaded the SDK of AIR in BB Site and installed.

    I tried to create a project, but there are only two platforms listed, it's to say, iOS and Android and no BB it.

    Anyone faced the same problem before? 0o0o

    I use Adobe Flash Builder 4.7 for my Blackberry 10 development, although I use Macbook would highlight, but I also had FB4.7 installed on the PC. It is quiet easy to install BB Developer tools on PC.

    1. first of all, you must run FB4.7 with administrative control.

    2. in your IDE FB4.7 Menu, click help-> install BB 10 publication support or install new software-> type "Blackberry" next to work with, now, you will see the option of ' Blackberry plugin for Flash Builder 4.7... '-> option-> check on BB OS Support checkbox statement select 10, press 'Next' then finished once installed.

    3. restart your Flash Builder and try to create the new project Mobile AS3 or Flex Mobile, you will see Blackberry option along with two others.

    Note: BB 10.1 and before, support Adobe AIR version 3.1 only so make sure that you have not superimposed latest version of Adobe AIR in your Flash Builder.

    Ghislaine

  • Invalidate() call repaint not everything!

    It is a simplified representation of what I have.

    SerializableAttribute public class ScheduleScreen extends form {}

    protected void paint (Graphics g) {}

    Super.Paint (g);

    g.setColor (Color.ORANGE);

    g.setGlobalAlpha (128);

    g.fillRect (0, 0, Display.getWidth (), Display.getHeight ());

    }

    public ScheduleScreen() {}

    Add (new CheckboxField ("", false) {})

    protected boolean navigationClick (int status, int time) {}

    = super.navigationClick (status, time) Boolean result;

    ScheduleScreen.this.invalidate ();

    return the result;

    }

    });

    }

    }

    Problem: When I click on the check box, only the areas around the box gets redrawn.  How can I get the entire screen to redraw itself?  I want a transparent box to highlight the entire screen whenever you click on the check box.

    It seems that substituted navigationClick is wrong place. I think that you would use better FieldChangeListener to manage all of the checkbox state change event source. And the listener is also called State transition is fully furnished. At least it works for me, if you don't move the focus (AFAIU you don't want focus to be moved). Here is my code:

    class MyMainScreen extends MainScreen{    CheckboxField cb; MyMainScreen()    {     setTitle("Hello World Demo");     add(new LabelField("A", Field.FOCUSABLE));        add(cb = new CheckboxField("A", false));      cb.setChangeListener(new FieldChangeListener()        {         public void fieldChanged(Field field, int i)          {             MyMainScreen.this.invalidate();           }     });       add(new LabelField("B", Field.FOCUSABLE));    }
    
       protected void paint(Graphics g)  {     super.paint(g);       if (cb.getChecked())      {         g.setColor(Color.ORANGE);         g.setGlobalAlpha(128);            g.fillRect(0, 0, Display.getWidth(), Display.getHeight());        } }}
    

    I hope this helps.

  • Active subset of listview items

    I have problems to access the information in my listview of the CPP.  Here is my listivew.

    ListView {
        id: animList
        objectName: "animList"
        dataModel: XmlDataModel {
            source: "models/anims.xml"
        }
        listItemComponents: [
            ListItemComponent {
                type: "listItem"
                AnimItem {
                }
            }
        ]
    }
    

    It uses a cutom element

    Container {
        property alias checked: animCheckBox.checked
        //    property alias title:  ListItemData.title
        id: toplvl
        layout: StackLayout {
            layoutDirection: LayoutDirection.TopToBottom
        }
        onTouch: {
            if (event.isDown()) {
                checked = ! checked
            }
        }
        Container {
            id: animContainer
            layout: StackLayout {
                layoutDirection: LayoutDirection.LeftToRight
            }
            CheckBox {
                id: animCheckBox
                layoutProperties: DockLayoutProperties {
                    verticalAlignment: VerticalAlignment.Center
                    horizontalAlignment: HorizontalAlignment.Left
                }
                checked: true
                Label {
                    id: animLabels
                    text: ListItemData.title
                    layoutProperties: DockLayoutProperties {
                        verticalAlignment: VerticalAlignment.Center
                        horizontalAlignment: HorizontalAlignment.Right
                    }
                }
            }
        }
        Divider {
        }
    }
    

    in the PRC

        mAnimListView = mNavPane->findChild("animList");
        XmlDataModel * xmdm = (XmlDataModel*) mAnimListView->dataModel();
    

    How I analyze the list in the PRC to create a sublist of all items activated?  I don't know how to parse through a whole datamodel of the CPP.

    Hello

    I have an alternative way to do this.

    1. you must use GroupDataModel

    2. manually pharse XML and add data to GroupDataModel

    3. Add an additional data field to GroupDataModel for the checkbox State Bank

    4 browse all the RPC code line and check the weather condition is enabled or not.

    A code to do this task

    For parsing XML

    http://supportforums.BlackBerry.com/T5/Cascades-development/how-to-create-a-ListView-using-xmldatamo...

    For the State of update in qml

     onTriggered: {
                    var selectedItem = dataModel.data(indexPath);
                    btn.text = selectedItem.firstname;
                    selectedItem.firstname = "test";
                    listView.dataModel.updateItem(indexPath, selectedItem)
                }
    

    updateItem() method works only on groupDatamodel

    To browse all the line of datamodel in the PRC

    GroupDataModel *model = (GroupDataModel *) listView->dataModel();
    
        int len = model->childCount(listView->rootIndexPath());
        QVariantList qlist;
        for (int i = 0; i < len; i++) {
            qlist.append(QVariant(i));
            qDebug() << " Data : " << model->data(qlist);
            qlist.clear();
        }
    

    I hope that this code will help you

  • syntax for a loop

    Hey people,

    I've heard for loops is the best way to accomplish what I need. With my level of coding, I try to have that when all checkbox States are true, then a specific image.  the question is when I was using earphones of events within each of the mouse click events, this would trigger the click on the ninth all the conditions would be met. The syntax for a loop seems daunting, is it possible to run my function, so it is always "listening" or will run eimmeidatley if the conditions are met?

    OFbandSEVENclose.addEventListener (MouseEvent.CLICK, OnFRYERbandSEVENclose);

    function OnFRYERbandSEVENclose (e: MouseEvent): void

    {

    gotoAndPlay (1);

    }

    OFbandSEVENcheckONE.visible = false;

    OFbandSEVENcheckTWO.visible = false;

    OFbandSEVENcheckTHREE.visible = false;

    OFbandSEVENcheckFOUR.visible = false;

    OFbandSEVENcheckFIVE.visible = false;

    OFbandSEVENcheckSIX.visible = false;

    OFbandSEVENcheckSEVEN.visible = false;

    OFbandSEVENcheckEIGHT.visible = false;

    OFbandSEVENcheckBUTTON1.addEventListener (MouseEvent.CLICK, checkbuttonONE, false, 0, true);

    function checkbuttonONE(e:Event):void

    {

    If (OFbandSEVENcheckONE.visible == true) {}

    OFbandSEVENcheckONE.visible = false;

    } else {}

    OFbandSEVENcheckONE.visible = true;

    }

    }

    OFbandSEVENcheckBUTTON2.addEventListener (MouseEvent.CLICK, checkbuttonTWO, false, 0, true);

    function checkbuttonTWO(e:Event):void

    {

    If (OFbandSEVENcheckTWO.visible == true) {}

    OFbandSEVENcheckTWO.visible = false;

    } else {}

    OFbandSEVENcheckTWO.visible = true;

    }

    }

    OFbandSEVENcheckBUTTON3.addEventListener (MouseEvent.CLICK, checkbuttonTHREE, false, 0, true);

    function checkbuttonTHREE(e:Event):void

    {

    If (OFbandSEVENcheckTHREE.visible == true) {}

    OFbandSEVENcheckTHREE.visible = false;

    } else {}

    OFbandSEVENcheckTHREE.visible = true;

    }

    }

    OFbandSEVENcheckBUTTON4.addEventListener (MouseEvent.CLICK, checkbuttonFOUR, false, 0, true);

    function checkbuttonFOUR(e:Event):void

    {

    If (OFbandSEVENcheckFOUR.visible == true) {}

    OFbandSEVENcheckFOUR.visible = false;

    } else {}

    OFbandSEVENcheckFOUR.visible = true;

    }

    }

    OFbandSEVENcheckBUTTON5.addEventListener (MouseEvent.CLICK, checkbuttonFIVE, false, 0, true);

    function checkbuttonFIVE(e:Event):void

    {

    If (OFbandSEVENcheckFIVE.visible == true) {}

    OFbandSEVENcheckFIVE.visible = false;

    } else {}

    OFbandSEVENcheckFIVE.visible = true;

    }

    }

    OFbandSEVENcheckBUTTON6.addEventListener (MouseEvent.CLICK, checkbuttonSIX, false, 0, true);

    function checkbuttonSIX(e:Event):void

    {

    If (OFbandSEVENcheckSIX.visible == true) {}

    OFbandSEVENcheckSIX.visible = false;

    } else {}

    OFbandSEVENcheckSIX.visible = true;

    }

    }

    OFbandSEVENcheckBUTTON7.addEventListener (MouseEvent.CLICK, checkbuttonSEVEN, false, 0, true);

    function checkbuttonSEVEN(e:Event):void

    {

    If (OFbandSEVENcheckSEVEN.visible == true) {}

    OFbandSEVENcheckSEVEN.visible = false;

    } else {}

    OFbandSEVENcheckSEVEN.visible = true;

    }

    }

    OFbandSEVENcheckBUTTON8.addEventListener (MouseEvent.CLICK, checkbuttonEIGHT, false, 0, true);

    function checkbuttonEIGHT(e:Event):void

    {

    If (OFbandSEVENcheckEIGHT.visible == true) {}

    OFbandSEVENcheckEIGHT.visible = false;

    } else {}

    OFbandSEVENcheckEIGHT.visible = true;

    }

    }

    THE FINAL SCREEN =.

    function OFbandSEVENCOMPLETE(e:Event):void

    {

    If (OFbandSEVENcheckONE.visible == true & & OFbandSEVENcheckTWO.visible == true & & OFbandSEVENcheckTHREE.visible == true & & OFbandSEVENcheckFOUR.visible == true & & OFbandSEVENcheckFIVE.visible == true & & OFbandSEVENcheckSIX.visible == true & & OFbandSEVENcheckSEVEN.visible == true & & OFbandSEVENcheckEIGHT.visible == true) {}

    gotoAndPlay (12);

    }

    }

    Stop();

    I see the problem:

    check .visble [n-1] =! check .visible [n-1];

    must be visible not folded down

  • XML in Flex data

    I'm passing in XML from a CFC data, works fine... Sure, I can see the data in debug mode, but the data do not work like it if data is built in Flex itself. I'm pulling in the XML data to use control "CheckBox State 3 tree" which can be downloaded from the exchange for Flex developers.

    If the XML is created in Flex itself code control works very well. Here's how the XML data are created in Flex:

    [Bindable]
    public var folderList:XMLList =
    <>
    < State folder = "Schrödinger" label = "Documents Marketing" isBranch = "true" >
    < State folder = "Schrödinger" isBranch = "true" label = 'Media, PR and Communications' >
    < Status folder = "unchecked" isBranch = "false" label = "Article Reprint warnings" / >
    < Status folder = "unchecked" isBranch = "false" label = "Reprints of Articles" / >
    < Status folder = "unchecked" isBranch = "false" label = "Interviews and transcripts" / >
    < Status folder = "unchecked" isBranch = "false" label = "Press kits" / >
    < Status folder = "unchecked" isBranch = "false" label = "Press Releases" / >
    < Status folder = "unchecked" isBranch = "false" label = "Quick Hits" / >
    < Status folder = "unchecked" isBranch = "false" label = "Rep Talking Points" / > "
    < Status folder = "unchecked" isBranch = "false" label = "Special updates" / >
    < Status folder = "checked" isBranch = "false" label = "White papers" / >
    < / case >
    < State folder = "Schrödinger" isBranch = "true" label = "Forms and Applications" >
    < Status folder = "unchecked" isBranch = "false" label = "Applications" / >
    < Status folder = "checked" isBranch = "false" label = "Forms" / >
    < / case >
    < / case >
    <>/.

    [Bindable]
    public var folderCollection:XMLListCollection;

    private void init (): void {}
    folderCollection = new XMLListCollection (folderList);
    checkTree.dataProvider = folderCollection;
    }


    If I demand a break and look at the data in debug mode, I see that the content of the XMLListCollectionList folderCollection looks like this image: CLICK HERE TO SEE the XML data XML built in Flex

    When I pass the data in Flex using a CFC, it comes as an XMLList object. I have therefore converted to an XMLListCollection and pass it to the component. Here is the code I use to do this, under the call to the CFC...

    <? XML version = "1.0" encoding = "iso-8859-1? >
    "" < mx:Canvas xmlns:mx = ' http://www.adobe.com/2006/mxml " height ="100% "width ="100% "creationComplete =" init () ">"

    < mx:Script >
    <! [CDATA]

    Import mx.collections. *;
    Import datamodels.allowedTablesModel;
    import util. CheckTreeRenderer;
    Import events.allowedTableEvent;

    [Bindable]
    public var allTablesList_1:XMLList;

    [Bindable]
    public var folderCollection:XMLListCollection;

    private void init (): void {}
    folderCollection = new XMLListCollection (allTablesList_1);
    checkTree.dataProvider = folderCollection;
    }


    private function modTables (): void
    {
    modButton.visible = true;
    Used to pause the applet so I can look at the data
    }

    []] >
    < / mx:Script >
    < mx:Tree id = "checkTree" itemRenderer = util. "' LabelField CheckTreeRenderer ' = 'label' width ="100% "height ="100% "/ >

    < mx:Button id = "modButton" fontFamily = "Arial" fontSize = "10" fontWeight = "bold" click = "modTables ()" "
    label = "Edit table" visible = "true" x = "553,5" y = "428" width = "125" / >

    < / mx:Canvas >


    If I pass the data in a CFC data looks like the folowwing image when I stop it in Flex.
    CLICK HERE TO SEE THE DATA PASSED IN TO A CFC

    I don't see why the work of the component if I build data in applet verses passing via an XML stream. Any ideas?

    Have an ordinary day...
    KomputerMan ~ |  :-)

    Adobe support...

    "When you use a provider with a tree-based XML data you specify the label field, even if it is"label". The XML object includes the root, so you must define showRoot = "false". Remember that the tree does not, by default, the dynamic changes to the XML object. »

    So all I had to do was change the label of the component of this:

    to do this:

    Just as an info... Adobe support is worth the cost if you are fairly new to Flex. I've been bending for about 9 months now and find their invaluable service!

    Have an ordinary day...
    KomputerMan ~ |  :-)

  • Session state and checkboxes

    Hi guys,.

    I'm a little hard with the checkboxes in the APEX 4.2

    I am trying to add 2 boxes in my application to filter the data

    The problem is how then to value by default when the user opens the page, some data are displayed

    If I use the 'Default' section in the details of the box (setting may 1 as default), when I open the web page, the checkbox is marked, but in the session state is not defined so no data will appear. If I submit the new page then Yes, the data is displayed

    I could use a calculation that defined the box = 1 if it is not set when the page loads, but it would not work as the calculation would give it 1 time and again when the user the box remove the flag

    Anyone know how I could apply this?

    Thank you very much

    Hello

    so I found a solution according to the following:

    -create box 2 or more

    -create a hidden text field

    -create a header after calculation that has always defined the hidden field = 1

    -create one before the calculation of header for each box the value = 1 box only if the value of the hidden text field is null

  • How to save the State of the checkbox in the database

    HELLO everyone again ;)
    I want to save the State of the checkbox (checked or unchecked, true or false) in the database.

    For example, if the user, check the box and press the validate, then this value (check = true) should be stored in the database (true), and when the user only view this value in another page jspx, then this value should be displayed: checked (true)

    How can I do? What are the data type in the database object and the entity to do this?

    Thank you.

    This could also help
    http://download.Oracle.com/otn_hosted_doc/JDeveloper/11gdemos/ADF_Insider_Essentials/ADF_Insider_Essential_YesNoRadio/ADF_Insider_Essential_YesNoRadio.html

    concerning
    Grant

  • simple if statement for a checkbox

    Hello

    Hello, I need help with little code to do the following: Add an if statement to a box, which makes the box to check only if 2 other checkboxes are checked... any help would be appreciated...

    And where I would place the code on the condition "the mouse upward?

    Thank you

    Have you thought about what measures will cause the values of these 2 other checkboxes to check?

    If you set a field read-only, then we can't enter data into it. The calculation, validation and format actions will be processed but no other action of the field will be processed.

    If a user ignores this box either on purpose or because it is read only no action for this box will be processed. There is no action to calculate, format or a validation check box.

    You need a script for each of the other 2 boxes to tick to perform this task, and I would choose the mouse upward to action.

    As I will use a common code for 2 or more fields, I'll use a JavaScript document level to run the shared code, then call this function in each of the boxes for mouse action and change the settings of functions according to the needs.

    The document level function:

    function AllChecked (aFields) {}

    Verify if all the fields do not have a value of "Off".

    logical consequence of the test

    var bResult = true;

    field processing

    var cValue;

    fields of process

    for (i = 0; i< afields.length;="" i++)="">

    get the value of the field to treat

    cValue = this.getField(aFields[i]).value;

    Set the logical result test of the value of the field does not match 'Off '.

    bResult = bResult & cValue! = 'Off ';

    } / / end of loop for treatment fields

    Return bResult;

    } / / end of function AllChecked

    Assuming that you have 3 check boxes named "Check Box1", 'Check Box2', 'check Box3'. and 'Check Box3' will be editable if both "Check Box1" & 'Check Box2' have been verified. The "Mouse Up" action for "Check Box1" would be: "

    given that the AllCehcked function returns the logical value true if all fields are checked

    take the logic not the result to set the ROLE property.

    this.getField("Check_Box3").readonly = AllChecked ([event.target.name, "Check Box2"]);

    And the same action to "Verify the Box2" would be:

    given that the AllCehcked function returns the logical value true if all fields are checked

    take the logic not the result to set the ROLE property.

    this.getField("Check_Box3").readonly = AllChecked ([event.target.name, "Check Box1"]);

Maybe you are looking for