Accesing  UI control properties

Hi,
I am trying to acces InputField properties.
IWDInputField ts = (IWDInputField)view.getElement("InputField1");
ts.setReadOnly(false);
What does the view (view.getElement("InputField1");) stands for? I can not use it like this because it always says: "view cannot be resolved".
Please help.

Ivo,
"InputField1" stands for your UI Element ID. If you change it to name_input you will write like this:
IWDInputField inf = (IWDInputField) view.getElement("name_input");
Moreover if u just want to set readOnly property, you can set it through either calculated context variable or normal context variable. In this case attach context variable top readOnly property of your input field and set that programatically. You dont need to use dynamic programming.
/Raj.
Message was edited by: Raj

Similar Messages

  • Tab Order under Control Properties - Display Tab not working

    At present I'm trying to order a couple of Input-Fields and Checkboxes for the Tab-Key. Therefor I tried to use the "Tab Order" Property in the Control Properties - Display Tab - Section: Layout - Tab Order.
    In the SAP Library this property is described that way:
    When user tabs through the controls of the component in runtime, the number indicating what place this control has in the tab order. Note that -1 removes the control from the tab order entirely and 0 indicates that it is highlighted according to its appearance in the component
    Source: [Help.sap|http://help.sap.com/saphelp_nw70/helpdata/en/42/c2ba7f545e3116e10000000a1553f7/frameset.htm]
    The problem now is that VC is completely ignoring this property and just using the tab order in the way the (Input-) fields where created.
    At present I don't see any opportunity to give my "Form view" any logical tab order.
    Is there any workaround? Is it a bug? Is there something I'm doing wrong?
    Thanks for your help in advance.

    Hi,
    It seems that this tab order works only for few of the controls like pushbutton, radio button, checkbox, toggle button...
    i too tried this in my model but it was not working for the input fields of other types.
    regarding -1 -2 ... these values work normally as per their values here -1 -2 order functions just like 2 1.
    hope this helps you.
    Regards,
    Rk.

  • Controlling Properties via Reference

    I have a cluster of numeric controls. I would like to control the properties (Disabled, Visible, Value, NumText.Format and NumText.Precision) of these individual controls by passing one reference from the cluster on the main vi, to a sub vi.
    Within my subvi I wire my cluster reference to the Controls[] property to get an array of references to the elements within the cluster that follow cluster elements order.
    Using this array of references I find property options available for Disabled, Visible and Value properties, among others. There are no options, however, for controlling NumText.Format and NumText.Precision.
    Any suggestions, or perhaps there another way to approach this?
    Thankyou!
    Jim Haas
    Solved!
    Go to Solution.

    The array of control references will be of a generic class, and therefore cannot have specific propertiies set. To gain access to the specific control properties you must cast to a more specific class first. If all the controls are of the same type, you can simply cast them all, using the "to more specific type", to numeric types. This should make the NumText properties available for setting.
    Thoric (CLA, CLED, CTD and LabVIEW Champion)

  • How do I manipulate control properties inside a cluster?

    One way I've tried is to put the controls inside a cluster on the front panel.  This works, but the problem is...on my front panel I want to place boolean's near these sliders to perform some other functions.  When I place a cluster of controls over another cluster of controls, I have some issues with "bring to front".  Take a look at the "Control Try 3.vi" attached...
    Another way I've tried is to modify each control reference individually.  This works, but will make the programming very ugly for future maintenance.  Take a look at the "Control Try 2.vi" attached...
    Then I tried to bundle all of the control references, and follow the same logic as the "Control Try 3.vi" logic.  This changes the reference properties within the cluster, but doesn't change the actual control properties.  Refer to "Control Try.vi".  Is there a way to break this down farther, so that I can change the actual control properties?  I've tried to go to more specific classes, but this doesn't work.  I would really like to use this version if at all possible.  Can someone give me some advice?
    Attachments:
    Control Try 3.vi ‏20 KB
    Control Try 2.vi ‏33 KB
    Control Try.vi ‏28 KB

    Hi Brian and nathand -
    I can understand the confusion.  Very hard to explain, but I was having bring to front issues with the clusters before, placing overtop of one another.  In other words, I wasn't able to control one of the clusters when the vi was running.  I don't seem to have the issue now, so I'm going to stick with the "Control Try 3" approach like nathand suggested.  Seems like the bring to front issue must have went away after I installed LabView 8.5.
    I still am curious though, on how to read the direct values from the cluster, like Brian suggested.  Brian, if you have time, could you show me an example?  I think that this would come in handy in the future.
    Attachments:
    Control Try 4.vi ‏30 KB

  • Plain Text Not available in Control Properties

    Hi,
    I am not sure if this is a strange behavior or its an expected one. We have a BI query and pulled in an Input Form and then the output to a table. On clicking on this recoed it should display all the output fields in a form with its name and value. For the parameters I do not see an option for selecting Plain Text. It gives me only input field, dropdown, text editor.
    Why is this happening? Is there any way that I can map these fields to a plain text?
    Thanks,
    Nagarajan.

    Hi,
    Sorry for not being clear. From the BI Query Out port I have a Table which will display the result values. Now when I select any of the row item in the table there is a form connected from the table out port. This form should display all the details of the row item. When I try to look into the control properties for these parameters in the form I don't have an option to select plain text.
    I can only display the values in the input field. I want these values to be displayed in plain text instead of input field. Logically it makes sense because there should be two plain text fields for a value because one text field will display the Parameter name and one will display its corresponding value. That's the reason it is not available.
    But just chekcing if there are any easier way to do this other than creating 2 plain text fields for one parameter and mapping these items. Because I have around 40 fields to be displayed which will be make my life worse by manual creation
    Thanks,
    Nagarajan.

  • Control Properties Window

    Hi everybody,
    I want to create a button in the navigation form.
    But i have problems with the "Control Properties" pop-up window.
    I cant see the last setting on the bottom of this window (Default Value).
    An Infobar for dynamic help covers it.
    What can I do???

    Christine,
    Take a look:
    "3. Determine if the problem is a client or a server issue.
    Because Visual Composer Storyboard is a client-server application, the failure may have occurred on the client machine and not in the main server. To ensure that the Visual Composer client can run Storyboard, check that the following has been installed on the client:
    ○ Microsoft XML Parser 4.0
    ○ Adobe SVG Viewer 3.0 or higher
    Upon running Visual Composer, if an alert message is displayed indicating that studio.ini is not installed or that the mxml file is not updated, the relevant component has not been properly installed.
    These are the main client errors that may arise. If other problems occur, the source is probably on the server side."
    from https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1d55042e-0c01-0010-e3a3-b009c445ee23
    Regards,
    Gilson

  • Volume Control Properties errror

    I have an issues with opening my Volume Control Properties. Everytime I go to double click on it, I get this error
    "The audio device supported by this application is not detected. The application will exit."
    I have Soundblaster Audigy SE. It worked fine when I had Windows XP, but now that I have Windows 7, it won't open. Any ideas how to fix this?

    I unistalled & removed anything creative related, and I downloaded the files from creative instead of using the CD that came w/ my soundcard, and now the Volume Control icon is missing.

  • What are the control properties of BVN ?

    hi,
    What are the control properties of BVN and how do they compare with std. item category TAN?

    Dear Raj,
              As per the standard only one field stting is different between the itemcategories TAN and BVN that is
    Billing Relevance
    In TAN this filed set as 'A' --Delivery -related billing document
    In BVN this field set as 'B' -- Relevant for order-related billing - status acc.to order qty.
    Other than this all other settings are same between two itemcategories.
    I hope it will help you
    Regards,
    Murali.

  • Problem w/ Oracle Spread Table Control Properties -

    Dear Contributors:
    I'm using Developer 6i. In an attempt to use Oracle Spread Table Control, I've inserted the right ActiveX in my Form and imported associated OLE library interfaces. However, when I went to inspect and change properties 2 of the tab pages titled
    1) Special and
    2) User Actions
    showed 'MMTX32' Caution Alert w/ a message of:
    "An ussupported operation was attempted."
    Any suggestion friends?

    Yes it have a connection method, the problem here is that this control returns a SCODE value, and i don't know where it is specified to return variables.
    Database Methods
    SCODE Connect(BSTR* database, BSTR* user, BSTR* password, long options);
         Connect to the given database as the given user. options determines
         the type of database connection. See Appendix A: Database Connection Types
         for more information. If the connection fails, Connect will return S_FALSE

  • RoboHelp 8 crashes when clicking See Also tab of Design-Time Control Properties

    My project was previously in RoboHelp 7 and is a merged project. I copied a topic with see also buttons and want to edit the links. I right click the button and select Design-Time Control [name] Properties and click the See Also tab. RoboHelp crashes every single time. Error message:
    EventType : BEX
    P1 : RoboHTML.exe
    P2 : 8.0.0.203
    P3 : 4944f3bb
    P4 : CLIENTMONTEREYDB.dll
    P5 : 8.0.0.203
    P6 : 4944e14d
    P7 : 000016aa
    P8 : c0000409
    P9 : 00000000
    One thing that is a little strange is that some of the buttons have Design-Time Control [object1] Properites and some have Design-Time Control [RelatedTopic] Properties, but all have the See Also tab.
    If I insert a new See Also button using Insert > See Also, the menu choice is Design-Time Control [See Also] Properties and the tab is See Also. Click the tab and RoboHelp crashes.
    If I insert a new Related Topics button using Insert > Related Topics, the menu choice is Design-Time Control [Related Topic] Properties and the tab is called Related Topics. Click the tab and RoboHelp does not crash.
    I have a whole lot of these buttons I need to modify, so I'd appreciate if anyone knows of a solution to this problem.
    Sample HTML for an offending button:
    <!--Metadata type="DesignerControl" startspan
    <object classid="clsid:A2F1FA63-C1E6-11d2-9140-006DC83B9955" border="0"
             id="object1" style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px;
             margin-right: 0px;" align="bottom">
    <param name="_Version" value="65536"  />
    <param name="_ExtentX" value="1720"  />
    <param name="_ExtentY" value="582"  />
    <param name="_StockProps" value="13"  />
    <param name="ForeColor" value="0"  />
    <param name="BackColor" value="12632256"  />
    <param name="UseButton" value="-1"  />
    <param name="UseText" value="0"  />
    <param name="ControlLabel" value="See Also"  />
    <param name="UseIcon" value="0"  />
    <param name="Items" value="ChgSubErrSeverity - see also$$**$$"  />
    <param name="Image" value=""  />
    <param name="FontInfo" value="Verdana,8,0,,BOLD"  />
    <param name="_CURRENTFILEPATH" value="C:\DocsClassic\CARS-Maintenance\HelpSourceZip313\carsis\Changing_Submission_Error_ Severity.htm"
      />
    <param name="_ID" value="object1"  />
    <param name="DialogDisplay" value="1"  />
    <param name="Frame" value=""  />
    <param name="Window" value=""  />
    <param name="ChmFile" value=""  />
    <param name="DisableJump" value="0"  />
    </object>-->
    <object
      classid="clsid:ADB880A6-D8FF-11CF-9377-00AA003B7A11"
        type="application/x-oleobject">
      <param  name="Command"  value="ALink,MENU" />
      <param  name="Button"  value="Text:See Also" />
      <param  name="Font"  value="Verdana,8,0,,BOLD" />
      <param  name="Frame"  value="" />
      <param  name="Item1"  value="" />
      <param  name="Item2"  value="ChgSubErrSeverity - see also" />
    </object>
    <!--Metadata type="DesignerControl" endspan-->

    Hello again
    Bummer that!
    First, I'll answer something I failed to earlier. You said that sometimes it says SeeAlso and sometimes it's object1. Here's the deal on that.
    When you click Insert > See Also the first time in a topic, the control is named SeeAlso. If you copied and pasted or clicked Insert > See Also again, the first time you did that it would be object1 or OBJECT1 depending on whether you used the menu or you copied and pasted. This is because each of these must use a unique name. So is it possible that you disliked seeing object1 on some and you renamed so the second (or third) also was named SeeAlso? I could see that causing RoboHelp to gag.
    Assuming that's not it, what about topic filenames or titles? Do any of them have unusual characters in the names? Any character other than 0-9, a-z, A-Z or an underscore ( _ ) is suspect. Perhaps an odd character is tossing a monkey wrench into the works.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7, 8 or 9 within the day!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • Frontpanel control properties

    Hi
    I have recently upgraded my version of labview to 8.2 but have trouble with editing the datasocket connection of my frontpanel controls. When I select properties after right clicking a control there is no menu poping up. This happens only when I open an old project written in version 6. I have already updated my version 8.2 to the november edition.
    What is wrong?

    Christine,
    Take a look:
    "3. Determine if the problem is a client or a server issue.
    Because Visual Composer Storyboard is a client-server application, the failure may have occurred on the client machine and not in the main server. To ensure that the Visual Composer client can run Storyboard, check that the following has been installed on the client:
    &#9675; Microsoft XML Parser 4.0
    &#9675; Adobe SVG Viewer 3.0 or higher
    Upon running Visual Composer, if an alert message is displayed indicating that studio.ini is not installed or that the mxml file is not updated, the relevant component has not been properly installed.
    These are the main client errors that may arise. If other problems occur, the source is probably on the server side."
    from https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1d55042e-0c01-0010-e3a3-b009c445ee23
    Regards,
    Gilson

  • Need Example how to use Tab Control properties...pls?

    Hi all,
    I would like to request for an example on using the Tab control and how to use its properties.
    Thanks in advance,
    juni

    Searching for Tab Control on NI Home yields several results. I find the following relevant to your request. I'll suggest you repeat the search for more examples.
    http://zone.ni.com/devzone/explprog.nsf/6c163603265406328625682a006ed37d/bcf35c2bdbf132d786256945007d8004?OpenDocument
    http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/c050233a993f14f88625698e007eb082?OpenDocument

  • Control Properties

    Does anyone have any idea or know if it's possible to get a list of properties and parameter types from a UI control such as a JButton.
    Thanks

    If it's you who want to know, read the API documentation for the relevant UI control. If you want to know it inside a program, you can try to get something with reflection methods and the methods provided by java.lang.Class, for example Class.getMethods()

  • Controlling properties on items added to the stage in a loop

    Hi there,
    I have a loop that adds xml elements to the stage (10). Once added, I need to control the items (checkbox = do something).
    Here is where I add them to the stage.
              private function createLayout():void {
                   container = new VBox();
                   for(var i:int=0; i<10; i++) {
                        vBox = new VBox();
                        hBox = new HBox();
                        titleText = new LinkButton();
                        itemInfo = new Text();
                        abstract = new Text();
                        archive = new CheckBox();
                        rateItem = new ComboBox();
                        category = new ComboBox();
                        var categoryLabels:Array = new Array("Food & Ag","News","Health","People","General","What's Coming","Biofuel","Environment");
                        var rateLabels:Array = new Array("Excellent","Good","Bad","Neutral","Controversial");
                        titleText.label = listCollection.getItemAt(i).title;
                        titleText.width = 400;
                        itemInfo.text = listCollection.getItemAt(i).source + " | " + listCollection.getItemAt(i).date;
                        abstract.text = listCollection.getItemAt(i).abstract;
                        abstract.width = 400;
                        archive.label = "Archive";
                        category.prompt = "Category";
                        category.dataProvider = categoryLabels;
                        category.rowCount = categoryLabels.length;
                        rateItem.prompt = "Rate";
                        rateItem.dataProvider = rateLabels;
                        vBox.addChild(titleText);
                        vBox.addChild(itemInfo);
                        vBox.addChild(abstract);
                        vBox.addChild(hBox);
                        hBox.addChild(archive);     
                        hBox.percentWidth = 80;
                        hBox.percentHeight = 80;
                        archive.addEventListener(Event.CHANGE, toggleArchive);                    
                        container.addChild(vBox);
                   addChild(container);
    I listen for a checkbox (change event) and when clicked, call a function that adds two comboboxes to the stage.
    archive.addEventListener(Event.CHANGE, toggleArchive);     
    I then call the function that will handle the event.
              public function toggleArchive(e:Event):void {
                   if(archive.selected == true){
                        hBox.addChild(category);
                        hBox.addChild(rateItem);                    
                   else {
                        hBox.removeChild(category);
                        hBox.removeChild(rateItem);
    When I have one item it works fine.
    for(var i:int=0; i<1; i++) {
    When I add 10 nothing happens. I feel like i should be doing something to identify what item I'm referring to. Any thoughts/reccomendations would br great!

    My apologies, but I am somewhat confused. Thanks for taking the time to help me (first off)!
    I changed the createLayout function to add name, visible, and includeInLayout propertiesfor each comboBox. I then changes the scope of "i" so that I can reference it from the function called upon the Event.CHANGE event.
              private var i:Number;
              private function createLayout():void {
                   container = new VBox();
                   for(var i=0; i<listCollection.length; i++) {
                        vBox = new VBox();
                        hBox = new HBox();
                        titleText = new LinkButton();
                        itemInfo = new Text();
                        abstract = new Text();
                        archive = new CheckBox();
                        rateItem = new ComboBox();
                        category = new ComboBox();
                        var categoryLabels:Array = new Array("Food & Ag","News","Health","People","General","What's Coming","Biofuel","Environment");
                        var rateLabels:Array = new Array("Excellent","Good","Bad","Neutral","Controversial");
                        titleText.label = listCollection.getItemAt(i).title;
                        titleText.width = 400;
                        itemInfo.text = listCollection.getItemAt(i).source + " | " + listCollection.getItemAt(i).date;
                        abstract.text = listCollection.getItemAt(i).abstract;
                        abstract.width = 400;
                        archive.label = "Archive";
                        category.prompt = "Category";
                        category.name = "category";
                        category.dataProvider = categoryLabels;
                        category.rowCount = categoryLabels.length;
                        category.visible = false;
                        category.includeInLayout = false;
                        rateItem.prompt = "Rate";
                        rateItem.name = "rateItem";
                        rateItem.dataProvider = rateLabels;
                        rateItem.visible = false;
                        rateItem.includeInLayout = false;
                        vBox.addChild(titleText);
                        vBox.addChild(itemInfo);
                        vBox.addChild(abstract);
                        vBox.addChild(hBox);
                        hBox.addChild(archive);    
                        hBox.addChild(category);
                        hBox.addChild(rateItem);
                        hBox.percentWidth = 80;
                        hBox.percentHeight = 80;
                        archive.addEventListener(Event.CHANGE, toggleArchive);                   
                        container.addChild(vBox);
                   addChild(container);
    now I have to modify these items by name from the toggleArchive method.
              public function toggleArchive(e:Event):void {
                   if(archive.selected == true){
                        var cb:ComboBox = hBox.getChildAt(i).getChildByName(category);
                        cb.visible = true;
                        cb.includeInLayout = true;
                   else {
    Two things, 1) i get an error saying...
    Severity and Description    Path    Resource    Location    Creation Time    Id
    1061: Call to a possibly undefined method getChildByName through a reference with static type flash.display:DisplayObject.    mediaTrap/src/components    listItems.mxml    line 132    1242667335601    643
    2) shouldnt it be something like this
              public function toggleArchive(e:Event):void {
                   if(hBox.getChildAt(i).archive.selected == true){
                        var cb:ComboBox = hBox.getChildAt(i).getChildByName(category);
                        cb.visible = true;
                        cb.includeInLayout = true;
                   else {

  • Store Control Properties for subsequent launches of program

    I have a cluster of buttons.  Each button event causes a test to run.  I color code the buttons that have been tested pass(green)/fail(red). The problem is that I want to store the progress even after the program is shut down.  Maybe I could store the button control property COLOR[4] inside XML for use when I run the program at a later time.  How can I do this?

    Just a suggestion if you use the LabVIEW installer. Writing to the application directory (Program Files) requires Admin permission in Win7. I don't like creating applications that require this.
    Keeping this in mind, I go with two options
    Write to an INI file in the user's data directory
    Write to the Registry in HKEY_CURRENT_USER (I know, I know, the registry scares a lot of people)
    Personally, if the user doesn't need to edit it, I go with the registry. It's what nearly all commercial programs do. It also allows a per-user experience.
    I'll toss in my current VI's with two caveats.
    Make sure you clear the errors on read. If the value doesn't exist, it will error (i.e. on a new install). If the conversion doesn't work, it will error. Users typically don't need to see an error for something as simple as defaults.
    Use with a small bit of caution. If the label or application name keep changing, it will keep creating new registry entries. I would only toss this in when your design is stable
     (P.S. I know these only do value. I just wanted to give an example. You'll have to adapt slightly to your color requirements)
    I wouldn't mind hearing what other people think.

Maybe you are looking for

  • No user group created - Adhoc Query transaction error

    Hi there, Whenever I try to access the Adhoc Query transaction S_PH0_48000513 i get the error "No user group created". The required user groups are present in the system. Any idea why am I getting this error? Regards, Anjali.

  • RX load balancing on SG200-18

    Hi guys, I put this question on Spiceworks and someone chimed in and said it wasn't possible due to the nature of how etherchanel balances, but I wanted to double check.  Here is my question: I have a cisco SG200-18 managed switch configured with LAG

  • Where is WebDBM, the web tools package?

    I am looking for it. It was listed on the old SapDB site, up to version 7.4, and now I see trace of the GUI, Studio, but where is the WEBDMS for MaxDB 7.6? Thanks!

  • Documentation on Bex Transports

    Hi Im looking for a good documentation on transports, especially for, Bex transports. Could any one please share any link or document with me? Thanks a lot. Regards Ram.

  • Grid-Container Centering Issue

    Could someone please help me with a little issue I'm having?  When I create a new fluid-grid layout, save the css file in the appropriate file, then save my project as "index.html", then save the fluid-grid dependent files when prompted "boilerplate"