Drop-down list: distinguish between programming and modification of the user

I have a drop-down list with a few options, the selected displays current status.

The State can change programmatically I have to update the drop-down list.

I want to distinguish between this change programme and focused on the user.

No idea how I could do this?

The classic solution to this problem is to add a flag (Boolean property) that you control, and which inhibits the onThingChanged response when set. You set this just before you perform a change of programming and clear right after. When the change is made by the user, the flag will be clear and the onThingChanged would do its thing.

There may be other ways to do this in specific cases, but this approach has worked in all situations in which I have tried so far.

Tags: BlackBerry Developers

Similar Questions

  • I have one drop-down list box where one selection (options) is the other.

    I have one drop-down list box where one selection (options) is the other. If a user selects the other, I want to conceive the possibility for them to enter some Notes to describe their other. A pop-up window or the text box is possible? Do not know how to approach the issue... Thank you!

    The field in parentheses is the text (or drop-down menu or other) you want to display when "Other" is selected and hide when it is not.

    If you want to apply the same logic to several fields just duplicate this line of code, the field name in each copy of setting.

  • Can anyone help please if a drop-down list box with this dpdCategory.Items.Insert (0, "user")?

    can someone please help if a drop-down list box with this dpdCategory.Items.Insert (0, "user"); If I choose the user then after clicking the button, it will redirect to this page & also, others using if else statement

    Please ask this question in one of the Windows Apps development forums:

    http://social.msdn.Microsoft.com/forums/en-us/category/windowsapps

  • In Firefox 3.6.8 is there a way to see "typed urls" in the drop-down list address without icons and website names? I want to see are "typed urls" and nothing else.

    I want to see are "typed urls" in the drop-down list address. This is the way it has been for a long time. Now, you get some icons and names/info of Web site with the url. It takes too much real estate on the screen and makes it necessary to scroll through the drop-down list. This is a feature that I don't need. Is there perhaps something about: config that I'm missing?

    You can also check:

  • in the 'history' drop-down list, there is an option to "restore the previous session. I want to remove this option completely.

    I speak no crashes or my home page. I'm talking about the option in the history drop-down that allows anyone who comes behind me to restore my session, after I'm gone.

    COR - el, I read several threads with this question, and you always seem to post these links. I don't think you understand the question properly. I read the first link you posted, and the most relevant element has been 'store session completely disabling. so I went in: config, and did what I was told. I set the preferences browser.sessionstore.max_tabs_undo and browser.sessionstore.max_windows_undo to 0. it does not work. After that, I close firefox and reopen. in the drop-down list in the history, there's always an option to restore previous session, I click on it and it restores session.

    Diego, your response is not what I was hoping. I want to stay signed in the pages I frequent. like gmail, youtube, ect. your solution sign me out of everything every time. Thus, although technically it works, this is not the option I want to use. but after tinkering with the options in this section I figured it for everyone with my same worries:

    go to: Tools > options > privacy, in the 'history' pane, select 'clear history of firefox closing', click on settings for this option, select "Browse and download history.

  • Drop Down List index - my script does not recognize the leader line in my function

    Community AE script-

    I'm a designer not a programmer naked with me.  I just try something simple, no baby and I cannot for the life of make me this simple script to work.

    I saw the script adds FAST and thought I would try to imitate this script for me as a challenge.  I watched videos of David Torno on Pro video Coalition and a simple example Script UI.  I searched for my answer on these here forums and tried to combine a simple script to examples within these forums and may not have to recognize clues to my drop-DOWN LIST down.  Here's my simple script:

    {

    function myScript (thisObj) {}

    function myScript_buildUI (thisObj) {}

    var myPanel = (thisObj instanceof Panel)? thisObj: new window ('palette', 'Add', undefined, {resizable: true});

    res = "group {orientation: 'row', alignment: ["fill","fill"] alignChildren: ["fill","fill"],------}»

    groupOne: group {orientation: 'row', alignment: ["fill", "fill"] alignChildren: ['fill', 'top'],------}

    myStaticText: StaticText {text:'New:'}, \

    myDropDownList: DropDownList {properties: {items: ['solid', 'Light']}}, \

    },\

    groupTwo: group {orientation: 'row', alignment: ["fill", "fill"] alignChildren: ['fill', 'top'],------}

    MyButton: button {text: 'Add'}, \

    },\

    }";

    myPanel.grp = myPanel.add (res);

    Default values

    myPanel.grp.groupOne.myDropDownList.selection = 0;

    myPanel.grp.groupTwo.myButton.onClick = myButtonClick;

    Design of Control Panel

    myPanel.layout.layout (true);

    myPanel.grp.minimumSize = myPanel.grp.size;

    Make the resizable Panel

    myPanel.layout.resize ();

    myPanel.onResizing = myPanel.onResize = function() {this.layout.resize ()};

    Return myPanel;

    }

    function myButtonClick() {}

    var app.project.activeItem = myComp;

    If (myComp! = null & & myComp instanceof CompItem) {}

    If (myPanel.grp.groupOne.myDropDownList.selection.index == 0) {}

    myComp.layers.addSolid ([0,0,0], "MySolid", myComp.width, myComp.height, 1)

    } Else if (myPanel.grp.groupOne.myDropDownList.selection.index == 2) {}

    myComp.layers.addLight ("Light", [myComp.width/2, myComp.height/2]);

    }

    }

    }

    Make a floating window

    var myScriptPal = myScript_buildUI (thisObj);

    If ((myScriptPal! = null) & & (myScriptPal instanceof window)) {}

    myScriptPal.center ();

    myScriptPal.show ();

    }

    }

    myScript (this);

    }

    If I comment out the lines

    If (myPanel.grp.groupOne.myDropDownList.selection.index == 0) { and If (myPanel.grp.groupOne.myDropDownList.selection.index == 1) { }}

    the script will add the SOLID and LIGHT.  But it will never work with these active lines - Add button does nothing.

    I could just make use of onChange with the drop-down list, but I want to understand how onClick actions of connection in the drop-down list.

    I copied this piece of the forum script and modified to work with my script, but nothing seems to work:

    buttonOne.onClick = onButtonOneClick;

    function onButtonOneClick() {}

    If (myPalette.dropdownlistOne.selection.index == 0) {}

    to do this

    } else {}

    This instead

    }

    }

    Can someone take a look at my script at the top of the page and tell me why this won't work?  I pretty much pulled out the last piece of hair I have on this - simple problem?

    Thank you in advance.

    Your click of button function does not know what "myPanel. You could do something like this inside the function:

    var this.parent.parent.parent = myPanel;

    There are other ways to do it, maybe as a global variable that maintains the reference of the Panel.

    In addition, your second if looking for selection.index == 2 instead of 1.

    Dan

  • XLATLONGNAME from the drop-down list should be a default value in the edit box

    Hello


    I have two fields in a grid, one named "TEST_Type" and one is named 'TEST_Name' edit box
    Use cases, TEST_Name by default will be TEST_Type in Drop Down.

    "TEST_Type" is the translation of edition Table and 'TEST_Name' will contain XLATLONGNAME.

    I do drag XLATLONGNAME of PSXLATITEM table in my grid and make related field and "TEST_Type" a related control field.

    Show LongName according to the value "TEST_Type.

    If the field 'TEST_Name' RowInit, I wrote

    If GetRow(). IsNew and
    No (MYRecord.TEST_NAME. Value) then
    MYRecord.TEST_NAME. Value = GetRow(). GetRecord (Record.PSXLATITEM). GetField (Field.XLATLONGNAME). Value;
    End - If;


    It gives an error

    "Class line method GetRecord account PSXLATITEM is not valid. (2 268)

    MYRecord.TEST_NAME. RowInit

    The recording has been used as a parameter of the specified method. It is not valid for the current object. »

    What is the problem?

    Is there a better solution for this use case?


    Thanks in advance

    I think you mix a few think upwards.

    The drop is on a class with the values of translate. So, when you set the property to the field from the drop-down list page to view the longxlatitem, you are finished.

    If you want to copy the xlatlongvalue for some reason any other areas, use instead the domain object properties.

    & dropdownlownlist = getrecord([YOUR_RECORD]).getfield ([YOUR_FIELD]);
    VALUE = & dropdownlownlist. LongTranslateValue;

    Kind regards

    Halin

  • Text of default list - see the HTML drop-down list as an indicator, no show in the list

    I would like to have the text of the 'selected option', 'COLOR' to be visible as a hint, but did not appear as a choice in the drop-down list.

    Existing code as follows:

    < select name = "color" id = "color" >

    < option selected = "selected" > COLOR < / option >

    < Option > BLACK < / option >

    < Option > COAL < / option >

    < / select >

    Thank you...

    Something like that...

  • How to remove an element from the drop-down list (located between the star to bookmark and Reload arrow)?

    When I click on the down arrow, located between the star and the arrow of Reload, I get a list of what appears to be recently visited sites. I want to remove one or more of these sites that I don't want in the list. I've tried right-clicking on the sites I want to delete but when I do I not give me an option 'remove '. Help, please. Thanx

    Glad to be of assistance. All these lists work the same way. And don't forget,
    There is only one stupid question. And this question is;


    The one you don't ask.

    Nice day.

  • When I'm on Facebook and playing Fish World, send gifts no longer works, the drop-down list does not open enough to see the button 'send '. This works in other games, but not in the world of fish, and I contacted global fish who said it was a browser issu

    starting yesterday I can't decline to the bottom of the box open to send gifts to my friends. Fish world told me a few weeks ago, it was because of some updates on Facebook, but now that has been set and I can't get the inFB game to work. It works with other browsers - Chrome and IE9. Is there something I have to do on my end to fix this? Other facebook games works perfectly with drop-down boxes, it is only in fish world.

    problem solved

  • I have a drop down list with numbers refrence and show the hidden sub

    I have a form that has a drop down menu that has several numbers 1,2,3,4,5,6. I also have a subform hidden with the information that I need to post, so if they want 2 I need 2 instances of this subform to show. If they choose 3 I need 3 instances of this subform to apear. ECT... I have all text flowed and the West.

    Ok. In this case you must first define the instance of the subform, and then you will need to loop through all instances and make these visible subforms.

    In the change event of the DropDownList control, you can put the following script.

    var a = xfa.event.newText; This will capture the value in the case of change, if you want the script to the event exit you have

    AreadDoorMF.instanceManager.setInstances (a);       to make it in the var a this.rawValue

    for (var i = 0; i)

    {

    xfa.resolveNode ("AreaDoorDF [" + i + "]"). DF.presence = "visible";

    xfa.resolveNode ("AreaDoorDF [" + i + "]"). DF. Header.Presence = "visible";

    }

    Sorry I just setInstance instead of setInstances

    Thank you

    Sidonie

  • When bookmarking a page, I get the full list of files in the drop-down list to select any folder in which the bookmark page. What you set for complete list of folders in the bookmarks falling?

    When bookmarking a page, I can not get the list of files to drop down to select any folder in which the bookmark page. The "folder:" bar was showing "Bookmarks Menu". The arrow on the bar descends 5 recent folders which pages were saved, but pop arrow to the right of the bar down opens just to show the three categories and the button "new folder". What you set for complete list of folders in the bookmarks falling?

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of your modules is causing your problem (switch to the DEFAULT theme: Tools > Modules > themes).

    See the extensions, themes and problems of hardware acceleration to resolve common troubleshooting Firefox problems and troubleshooting questions with plugins like Flash or Java to solve common Firefox problems

    See also http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox

  • TripAdvisor.ca does not answer more to the clicks of the mouse on the Web page, such as the drop-down list to disconnect. It started with the last update.

    As I downloaded the latest version of Firefox (29.0.1) I have problems with the webpage Tripadvisor.ca . The mouse may not seem to work on Web pages. For example I can't select a tab to view pictures or details of a vacation rental. Also I am not able to use the drop down menu next to my username for me to disconnect it.

    Does anyone have a solution?

    I found that after Firefox v29, a LOT of my settings and

    Add - ons have been changed / reset. Try this;
    Launch Firefox in Mode safe

    While you are in safe mode;

    Firefox Options > advanced > General.

    Find and stop using hardware acceleration.

    Then check ALL your settings. Browser and Add-ons. Then restart.

  • iMovie not show iTunes in the drop-down list. IMovie 09 and El Capitan 10.11.5 running. This has happened only. Previously worked well.

    Previously, I was able to access the library iTunes in iMovie 09 without problem but now when I click on the icon of music in iMovie to access my music all I see are pre-loaded sound effects and not the content of my iTunes library. I'm under El Capitan 10.11.5.

    The latest version of iTunes 12.4.0 is not compatible with iMovie version 9 and will appear only in iMovie 10.1.x. You must export the music that you want to use in iMovie 9 and made drag in iMovie. Also, be aware that iMovie 9 is not compatible with El Capitan, so you could experience problems with frames display, black picture in the viewer etc.

  • How can I change the content of the drop-down list window which shows after JUST click the button START

    The window appears after using the right click on the mouse. Before I had a Tech. remove a Trojan visuses the window showed just find, Explorer, Delete, now it showes such articles that take control, Google, download of virus total.etc.  So, how can I get rid of items that I don't want?

    The menu that appears when you right-click is called the "context menu", and various third-party applications can install entries here.  You have several choices regarding the removal of these entries:

    1. If you can determine what application is involved, you can see if the application has a configuration or menu options enabling to customize what appears in the context menu.

    2. If you can determine what application is involved and that you no longer want or need this app, you can uninstall it.  Praseetha K is close, but no cigar gets.  Virus Total is an online service that checks uploaded for viruses, files.  Virus Total also offers a "upload" allowing you to download suspicious files by right-clicking (see http://www.virustotal.com/advanced.html).  You can decide if you want. If this is not the case, simply uninstall it.

    3. If you are unable to determine what application is involved, or you want to keep the application but it does not offer a configuration without the context menu item, download ShellExView and you will probably be able to go to the bottom of things pretty quickly.

Maybe you are looking for

  • disable the navigation disks of in Firefox

    I want to restrict users to browse the C drive (file:///c:/) of the address bar. Other web browsing must be possible.I found a lot of answers to this question, but none of them worked for Firefox latest version 39.0This was for example one of the sol

  • I installed the new firefox - how to make bookmarks etc of old computer as old now broken pc diskettes.

    My old PC that runs Windows XP broken and was not fixable, but we managed to save the readers. I have a new PC running Wondows 8.1 and that you have installed Firefox. Can you please tell me how I can get all my favorites, passwords etc. from the old

  • Firefox 29 stalls on startup

    Windows 8.1.1 using 64-bit. When opening Firefox 29, Uni white screen appears, and the mouse turns into the "loading animation. It takes about 10 seconds to thin and the browser to open. I have been using Firefox for years and have never had this pro

  • Problems to change the attributes of the song

    I like having all my podcasts in a list in order to put in order and interlacing different podcasts.  To do this, I changed the album on all podcasts "PodcastList" and change the track numbers so they sort in the order I want.  (I actually did a scri

  • Looking for old files & program

    During the installation of service pack 1. I moved all the files & program on my pc in a new folder. How can I recover these files?