Try to get segmentedControl to switch between containers

Hi all

I try to get a segmentedControl to toggle the visibility of two separate containers, driverBioText and driverStatsList. I'm going to paste my code, and maybe someone can point out what I am doing wrong? I'm still a noob to programming.

------

{SegmentedControl}
ID: segmentedDrivers
Option {}
ID: biography
text: 'biography '.
value: 'biography '.
selected: true
}
Option {}
ID: statistics
text: 'statistics '.
value: 'statistics '.
}
onSelectedIndexChanged: {}
var value = segmentedDrivers.selectedValue)
Console.Debug ("value:" + value);
If (value = "biography") driverBioText.visible = true()
else driverStatsList.visible = true()
}
}

{Of container
ScrollView {}
TextArea {}
ID: driverBioText
rightPadding: 30.0
leftPadding: 30.0
visible: false
editable: false
topMargin: 10.0
}

}
}

{Of container

ScrollView {}
TextArea {}
ID: driverStatsList
rightPadding: 30.0
leftPadding: 30.0
visible: false
editable: false
topMargin: 10.0
text: "pilot statistics".
}
}
}

-----

Thank you!

If theres no error in the console? And it will print "selected value: biography"? I'm also right in the docs that selectedValue is a property, not a method, in order to take the () off .selectedProperty too

Im not 100% know javascript, so I don't know what is the exact syntax but id to write that if block like that for readability
If (value == "biography") {}
driverBioText.visible = true;
driverStatsList.visible = false;
} else {}
driverBioText.visible = false;
driverStatsList.visible = true;
}

Tags: BlackBerry Developers

Similar Questions

  • How do you get the end SWITCH BETWEEN the APPS to cease to appear and stay on a screen? just bought my new HP

    I can't seem to get rid of it and it blocks my screen

    I can't seem to get rid of it and it blocks my screen

    Hello

    When it appears, with your mouse go to the top left and click.  It should not reappear.

    Contact: Drag, tap and beyond

    http://Windows.Microsoft.com/en-AU/Windows-8/touch-swipe-tap-beyond

  • I try to get 2 pictures together

    I try to get 2 different photos between them on one side. I marked each and LR do on 2 sides. Each side is the same as the original, and that worked.

    What I've done wrong

    Thanks for the help

    You need to change the layout on the form Contact/grid engine. The photo package will make only a single image (without hacks). Just go to contact grid/sheet, switch rotate to adjust and set the number of lines to two and the number of columns to 1 and that the cell size the correct size for your images.

  • Combustion chamber is very slow when switching between tabs, the legs more slowly, he gets, switching between the windows of Firefox is almost instantaneous.

    In this case all that is display of each tab. For example, if I open it, say, 8 new tabs by default it takes about 5 seconds to switch between them, although all that they show are links to my sites top of page 9. I also noticed a new tab opening takes more time more I already opened. The problem is particularly well with the tabs. Navigation is not just slower than usual and as I said above, switching between Firefox Windows in not affected.

    If it works in Mode safe mode and normal mode with all extensions (Firefox, Tools/menu key > Modules > Extensions) off and then try to find which extension is the cause by allowing an extension at a time until the problem reappears.

    Close and restart Firefox after each change via * button '3-bar' menu > exit (Power button)

    • Windows: File > Exit
    • Mac: Firefox > quit Firefox
    • Linux: File > exit
  • Version 5.0 on a MAC doesn't let me switch between tabs. Can I open a new tab, but when I try to go in a different tab, it shows me just the content of the tab opened most recently. Help!

    Version 5.0 on a MAC doesn't let me switch between tabs. Can I open a new tab, but when I try to go in a different tab, it shows me just the content of the tab opened most recently. Help!

    In addition, pop up blocker works for a while and then stops working. I have to close and restart Firefox to make it work again. Help!

    I had the same problem, but with Firefox 4.0. My first thought was last updated to Firefox (after of course restarting FF), but it did not help and I had the same problem.

    Among others, I had an extension installed and enabled called tile tabs 4.10 I thought could easily create this problem. I went in my Add-ons Manager and disabled, restarted Firefox and tabs worked properly again. Unfortunately, the extension of the tile tabs is my favorite Firefox Add-on and I use it almost every day to manage my web tasks. I went to the page Add on for tile tabs and saw that there was a notice that version 4.10 did not work properly on Mac OS and install version 4.9 of the extension. I saw that they had a new is not-yet-seen version 4.11 who has tackled the problem of Mac OS, installed, and everything seems to work properly.

    I have no idea why all of a sudden I had this problem as I don't had not updated Firefox or the extension of the tile tabs recently. Also, obviously this could not solve your problem, especially if you have the module installed and active. But our problem started at the same time for both of us it seems based on your post time, so its probably not a coincidence.

    But its worth a quick glance and you can check other extensions if you don't have the legs of tile that might be the cause of the problem.

  • iMac (retina 5K, 27 inches, end of 2015) 1-2 second stops when you try to open or switch between applications

    1-2 second ago stops whenever I try to open an application or switching between applications. The animation of the application icon in the status bar at the opening of the starts, pauses for 1-2 seconds and ends before you open the application. When you click on an inactive application window it pauses for 1 to 2 seconds before making the active window. This only happens after a reboot. It takes about a day being initialized for this problem to occur.

    This does not seem like behaviour expected of such a new machine with charge card. All advice is appreciated.

    Here is my EtreCheck report:

    ***

    EtreCheck version: 2.9 (250)

    Report generated 2016-02-03 11:33:10

    Download EtreCheck from http://etrecheck.com

    Running time 01:31

    Performance: Excellent

    Click the [Support] links to help with non-Apple products.

    Click [details] for more information on this line.

    Click on the link [check files] help with unknown files.

    Problem: Computer is too slow

    Description:

    1-2 second ago stops whenever I try to open an application or switching between applications.

    Hardware Information:

    iMac (retina 5K, 27 inches, end of 2015)

    [Data sheet] - [User Guide] - [Warranty & Service]

    iMac - model: iMac17, 1

    1 4 GHz Intel Core i7 CPU: 4 strands

    32 GB of expandable RAM - [Instructions]

    BANK 0/DIMM0

    8 GB DDR3-1867 MHz ok

    0/DIMM1 BANK

    8 GB DDR3-1867 MHz ok

    BANK 1/DIMM0

    8 GB DDR3-1867 MHz ok

    BANK 1/DIMM1

    8 GB DDR3-1867 MHz ok

    Bluetooth: Good - transfer/Airdrop2 taken in charge

    Wireless: unknown

    Video information:

    AMD Radeon R9 M395X - VRAM: 4096 MB

    iMac 5120 x 2880

    Software:

    OS X El Capitan 10.11.3 (15 d 21) - time since started: about one day

    Disc information:

    SM1024G SSD APPLE disk0: (1 TB) (Solid State - TRIM: Yes)

    EFI (disk0s1) : 210 MB

    HD (disk0s3) [recovery] recovery: 650 MB

    iMac (disk1) /: 999,33 (Go 652,85 free)

    Storage of carrots: disk0s2 999.70 GB Online

    USB information:

    Broadcom Corp. Bluetooth USB host controller.

    Apple Inc. FaceTime HD camera (built-in)

    Western Digital my passport 071D 1 TB

    EFI (disk2s1) : 210 MB

    Boot OS X (disk2s3) : 134 MB

    Backup local (DIS3) Volumes/iMac/iMac local backup: 999,51 (Go 107,33 free)

    Encrypted AES - XTS unlocked

    Storage of carrots: disk2s2 999.83 Go online

    Apple Inc. IPhone.

    Reader SuperDrive for MacBook Air Apple Inc..

    Lightning information:

    Apple Inc. Thunderbolt_bus.

    Guardian:

    Mac App Store and identified developers

    Unknown files:

    /Library/LaunchAgents/com.support.com.PerUser.Nexusd.plist

    /Library/LaunchAgents/com.support.com.PerUser.Nexussrvd.plist

    2 unknown files found. [Check files]

    Kernel extensions:

    / System/Library/Extensions

    com [no charge]. Belcarra.iokit.USBLAN_netpart (2.0.2) [Support]

    com [no charge]. Belcarra.iokit.USBLAN_usbpart (2.0.2) [Support]

    com [no charge]. RemoteControl.USBLAN.usbpart (2.0.6) [Support]

    /System/Library/Extensions/Belcarra.USBLAN_netpart.kext/contents/plugins

    [no charge] com.belcarra.IOKit.netpart.Panther (1.6.1) [Support]

    /System/Library/Extensions/Belcarra.USBLAN_usbpart.kext/contents/plugins

    [no charge] com.belcarra.IOKit.usbpart.Panther (1.6.1) [Support]

    / System/Library/extensions/remotecontrol. USBLAN_usbpart.kext/contents/plugins

    com [no charge]. RemoteControl.USBLAN.panther (1.6.1) [Support]

    Launch system officers:

    [loading] 148 tasks Apple

    [operation] 88 tasks Apple

    Launch system demons:

    [loading] 191 tasks Apple

    [operation] 96 tasks Apple

    Launch officers:

    [loading] com.adobe.AAM.Updater - 1.0.plist [Support]

    [loading] com.adobe.CS5ServiceManager.plist [Support]

    [loading] com.support.com.peruser.Nexusd.plist [Support]

    [failure] com.support.com.peruser.Nexussrvd.plist [Support]

    Launch demons:

    [loading] com.adobe.SwitchBoard.plist [Support]

    [loading] com.adobe.agsservice.plist [Support]

    [loading] com.adobe.fpsaud.plist [Support]

    [operation] com.backblaze.bzserv.plist [Support]

    [loading] com.malwarebytes.MBAMHelperTool.plist [Support]

    [loading] com.microsoft.office.licensing.helper.plist [Support]

    [operation] com.sonos.SonosLibraryServer.plist [Support]

    User launch officers:

    [loading] com.adobe.AAM.Updater - 1.0.plist [Support]

    [failure] com.adobe.ARM. [...]. plist [Support]

    com.apple.CSConfigDotMacCert [fail]-[...] @me.com - SharedServices.Agent.plist

    [operation] com.backblaze.bzbmenu.plist [Support]

    [failure] com.google.GoogleContactSyncAgent.plist [Support]

    [loading] com.google.keystone.agent.plist [Support]

    [operation] com.spotify.webhelper.plist [Support]

    [loading] com.valvesoftware.steamclean.plist [Support]

    [operation] net .infinite - labs.SIMBLEnablerForSandboxedApps.plist [Support]

    [operation] ws.agile.1PasswordAgent.plist [Support]

    Items in user login:

    Workflow application (/ Applications/Flux.app)

    iTunesHelper Application (/ Applications/iTunes.app/Contents/MacOS/iTunesHelper.app)

    Cinch Application (/ Applications/Cinch.app)

    Canon IJ Network Scanner Selector2 hidden Application (/ library/printers/Canon/IJScanner/utilities/Canon IJ Network scan Selector2.app)

    SizeUp Application (/ Applications/SizeUp.app)

    Dropbox application (/ Applications/Dropbox.app)

    The messages application (/ Applications/Messages.app)

    iTunes application (/ Applications/iTunes.app)

    Other applications:

    [operation] 2BUA8C4S2C.com.agilebits.onepassword - osx-helper

    [ongoing] com.Apple.XPC.launchd.oneshot.0x10000005.EtreCheck

    [ongoing] com.getdropbox.dropbox.48992

    [ongoing] com.irradiatedsoftware.Cinch.151392

    [ongoing] com.irradiatedsoftware.SizeUp.12192

    [ongoing] jp.co.Canon.bj.scan.network.scannerselector2.90592

    jp.co.canon.bj.printer.app.MPNEX213.45792 [loading]

    [ongoing] JP.co.Canon.cijscannerregister.14112

    [ongoing] org.herf.Flux.49952

    Plug-ins Internet:

    AdobeAAMDetect: Version: 1.0.0.0 - 10.6 [Support] SDK AdobeAAMDetect

    FlashPlayer - 10.6: Version: 20.0.0.286 - SDK 10.6 [Support]

    QuickTime Plugin: Version: unknown

    Flash Player: Version: 20.0.0.286 - SDK 10.6 [Support]

    Default browser: Version: 601 - SDK 10.11

    SharePointBrowserPlugin: Version: 14.5.8 - SDK 10.6 [Support]

    Unity Web Player: Version: UnityPlayer version 5.2.0f3 - 10.6 SDK [Support]

    Silverlight: Version: 5.1.41105.0 - SDK 10.6 [Support]

    JavaAppletPlugin: Version: update of Java 7 55 check version

    User Plug-ins internet:

    WebEx64: Version: 1.0 - SDK 10.5 [Support]

    Web of Google Earth plugin: Version: 7.1 [Support]

    Safari extensions:

    1Password

    Add to the list of Amazon gift

    InvisibleHand

    Little time

    PIN button

    3rd party preference panes:

    Backblaze backup [Support]

    Flash Player [Support]

    Time Machine:

    Skip system files: No.

    Mobile backups: OFF

    Automatic backup: YES

    Volumes to back up:

    iMac: disc size: 999,33 GB disc used: 346,49 GB

    Destinations:

    The iMac HD Gallagher family backup local [Local]

    Total size: 999,51 GB

    Total number of backups: 82

    An older backup: 27/05/15, 12:54 AM

    Last backup: 03/02/16, 10:34

    Backup disk size: too small

    Backup size 999,51 GB< (disk="" used="" 346.49="" gb="" x="">

    Top of page process CPU:

    140% nsurlsessiond (2)

    85% launchservicesd

    78% photolibraryd

    11% cloudphotosd

    9% com.apple.photomodel

    Top of page process of memory:

    1.70 GB kernel_task

    1.12 GB launchservicesd

    1.12 GB cloudd

    Softwareupdated 492 MB

    Photolibraryd 229 MB

    Virtual memory information:

    6.39 GB of free RAM

    26,00 used GB RAM (18,35 GB being cached)

    8 MB Swap used

    Diagnostic information:

    3 February 2016, 11:31:58 /Library/Logs/DiagnosticReports/launchservicesd_2016-02-03-113158_[redacted].cp u_resource.diag [details]

    / System/Library/CoreServices/launchservicesd

    3 February 2016, 11:30:22 ~/Library/Logs/DiagnosticReports/iTunes_2016-02-03-113022_[redacted].crash

    com.apple.iTunes - /Applications/iTunes.app/Contents/MacOS/iTunes

    3 February 2016, 08:18:45 /Library/Logs/DiagnosticReports/nsurlsessiond_2016-02-03-081845_[redacted].cpu_ resource.diag [details]

    / usr/libexec/nsurlsessiond

    1 February 2016, 19:53:04 self-test - spent

    Hello Agent37,

    What are your settings of Photos? Looks like you have a ton of photos regenerate and transferring to iCloud. I've seen similar reports, but I'm not a heavy user of Photos. I'll see if I can move your question on the forum Photos: Photos for Mac

  • Get rid of the physical switch between 2 ESXi - Layer2 virtual servers between boxes

    Hello

    It's maybe a stupid question, but I can't quite understand the answer so I might as well ask.  I have two physical hosts of ESXi in my lab and for various reasons wish to eliminate the physical switch between them, but while retaining full vSphere functionality (HA, vMotion, DRS etc.).  Is there a switch virtual/Repeater product can I buy/use (deployed on the two ESXi hosts in a HA configuration) who can give me this feature?  I would then use Teddy ports on each ESXi host to talk to each other and additional natachasery as switchports to the outside world.  i.e. can I do this with a kind of multi-Vyatta router configuration?  NSX?  Must also support multicast.

    Thanks for your help!

    If you want to get rid of the physical switch, simply do not use it. ETH-cable to directly connect the natachasery of these two hosts of ESXi. If your NICs have the ability to auto-mdi (x), there is no something special. Some older NICs may still require cable crossover, but this is not necessary with new hardware...

  • How to get a dialog/pop up when switching between PanelTabbed ShowDtlItem

    I have an obligation to ask the user through a dialog/pop up when switching between PanelTabbed ShowDetailItems (if he really wants to move to another tab).
    How can we achieve this?
    Framework provides all the methods?

    Hello

    Since you have to remove the switch tab, I think you should try an af:clientListener, and then cancel the click event and display the context menu. If the user confirms the switch, manually set the property disclosed on the showDetailItems that you want to display and the panetabbed componnent ppr

    Frank

  • Cannot switch between multiple Time Machine backups

    I generally save my 2010 Macbook Pro to a 2012 Time Capsule, which is attached to my router via an ethernet cable (most recent) wireless. On a trip, I make the additional backups on an external hard drive. However, when I go home and try to return to the TC, my internal HD is now on the time Machine "Exclude" list and cannot be removed (greyed out). When I try to save, I get a message saying "no disks are available to back up."

    What has happened a few times, and the only solution I could find was to delete my original Time Machine backup and put a new (which took forever).

    Any ideas why my HD internal is added to the exclusion list after using Time Machine with an external hard drive?

    Time Machine backups on a network drive or a disc attached locally stored in different formats. Switching between them was not in the overall theme of the design of this service of OS X.

    I suggest that you set up Time Machine to use multiple disks.

    FWIW, in my case, I backup destinations, Time Machine on a Time Capsule and an external hard drive of 2 bolt of lightning. When both are available, the time goes 'take turns' Machine backup on each drive.

    If a disk is not available, it backs up to that which is, and which ignores the backup of the other. When the two are connected again, backups continue on both.

  • Can I use horizontal scroll to switch between tabs?

    I find it useful to switch between tabs with the side-scrolling my mouse wheel. Can I configure Firefox in this way?

    Apparently FireGestures doesn't support scrolling directly if you can't make it work. I have no local way to test it, because nobody doesn't know I have a mouse with a horizontal scrolling. FireGestures provides alternatives (I use the tab scrolling of line), however, and supports scripts , if you want to try to use the technical information provided by cor - el.

    One avenue would be to use the mouse like Logitech Setpoint or Microsoft Intellipoint software to set the scrolling to run the FF Ctrl + PgUp and Ctrl + PgDown hotkey combo. This would negate native scroll, however.

    You can leave your comments at https://input.mozilla.org/en-GB/feedback/ if you do not want to see this feature implemented. I think you're better of trying to get an add-on to do this though, as horizontal scrolling appears to remain a characteristic very niche.

  • Why Firefox will allow me to have several tabs, but not allow me to switch between tabs and can only watch a new tab when closing the previous?

    Everytime I open a new tab, it appears on the tab bar where it should, but if I click on it nothing happens, the tab does not open, and I can't switch between multiple tabs. The only way to get a new tab is to close one on that I am currently, and even then it will only open the next tab in the order of precedence, so I can't even choose which tab is next to see. This problem makes it impossible to use firefox as a research tool that requires quick change back and forth between pages in multiple tabs at the same time.

    Try Firefox Safe mode to see if the problem goes away. Firefox Safe mode is a troubleshooting mode that disables certain parameters, disables most Add-ons (extensions and themes).

    If Firefox is open, you can restart Firefox Safe mode in the Help menu:

    • In Firefox 29,0 and above, click on the menu button

      click Help

      then select restart with disabled modules.

    • In previous versions of Firefox, click on the Firefox button in the upper left of the Firefox window and click help (or click on help in the Menu bar, if you do not have a Firefox button) and click on restart with disabled modules.

    If Firefox is not running, you can start Firefox in Mode safe mode as follows:

    • On Windows: Hold down the SHIFT key when you open the desktop Firefox or shortcut in the start menu.
    • On Mac: Hold the option key during the startup of Firefox.
    • On Linux: Exit Firefox, go to your Terminal and run firefox-safe-mode
      (you may need to specify the installation path of Firefox for example/usr/lib/firefox)

    When the Firefox Safe Mode window appears, select "start mode safe."

    If the issue is not present in Firefox Safe Mode, your problem is probably caused by an extension, and you need to understand that one. Please follow the section Troubleshooting extensions, themes and problems of hardware acceleration to resolve common Firefox problems to find the cause.

    To exit safe mode of Firefox, simply close Firefox and wait a few seconds before you open Firefox for normal use again.

    When find you what is causing your problems, please let us know. This might help others with the same problem.

  • Switching between the screws in the secondary

    I have trouble getting a test program to work. I created two screws (test1 and test 2) what to do simple tasks (such as counting or turn on a Boolean value). I'm trying to switch between the two screws through a primary school in VI. I would like to run the two screws when she is called, and then switch between them while they run. However, I was making mistakes and I am at a loss to know what to do. Screws are attached.

    One of the errors I get is that of VI references are not valid, and I don't know how to solve this problem.

    OI, I'm having a few problems this morning.  Try this vi.

  • switching between the 2 languages on a regular basis.

    I need a detailed description on how to put a second language as my other default and how to be able to switch between them on a regular basis. [English-Korean, try to set my second language Korean]

    Hello

    The use of the Korean language pack requires you to be running Ultimate or Enterprise editions. If you are, check out this link for instructions on obtaining and installing the language pack:http://windows.microsoft.com/en-US/windows-vista/How-do-I-get-additional-language-files

    If you are not running one of the versions above, you will not be able to get this language pack without upgrading.

    Good luck, Rick Rogers, aka "Crazy" - Microsoft MVP http://mvp.support.microsoft.com Windows help - www.rickrogers.org

  • Problem blackBerry Smartphones: keeps the switch between the headset and speaker

    Hey guys, I'm new here so I will try to provide everything I can. I have a Bold 9700 with ATT and the OS is v5.0.0.405. Well a couple of weeks my blackberry has started to develop an annoying problem. When in a call, most of the time (not all) he starts switching between icon of headset and normal speaker. When this happens, you can hear the phone switch between the two through the speaker, and it makes it so I can't hear someone and they don't hear me. I'm out of my warranty of 30 days of ATT, but I think im still well within the warranty of the RIM. I admittidly dropped, but this should not happen. Nothing like this has happened to any other phone I've owned. Is this what can I do to get some sort of replacement?

    Thank you!

    shigity wrote:

    Is this what can I do to get some sort of replacement?

    Thank you!

    All services, warranty or otherwise, is provided by your operator and will be carried out in accordance with the contract you signed with them. Go see them.

  • Trails of the icon when switching between desktops in the Sierra

    I noticed some display problems since the update for Sierra. I see some trails icon when switching between desktop computers as well as a line of 1px of random colors on the right side of the screen seems to be leftover pixels for the desktop switch as well.

    Here is a screenshot: https://cl.ly/hegc

    Here is a video showing the paths of the icon: https://cl.ly/hef9

    Any other light this or know how to fix? It's rather annoying.

    Thanks in advance,

    Brent

    Hello Brent Spore.

    Thank you for reaching out to the Community Support from Apple. I know how it is important to keep your Mac running properly, and I want to help him.  Whenever we see the behavior as what you described, it is a good idea to test the symptoms in a separate user in safe mode. This will help us determine if the remanence of the icon is linked to a problem with the user account or if it's a question broad system. The articles below will guide you through these steps.

    How to test a question in another account on your Mac.

    Try safe mode if your Mac does not end commissioning

    If the ghost still occurs in safe mode, then we know it is a question broad system and I would recommend backup your Mac and Mac OS re-install using recovery, as described in the articles below:

    Use Time Machine to back up or restore your Mac

    How do I reinstall macOS

    If the behaviour continues or if you encounter difficulties, the entire community is here to help.

    Best regards.

Maybe you are looking for

  • GET request gives me tab "syntax error: JSON.parse" in response

    Screenshot: http://grab.by/z7zW Chrome, postman, curl, everything works fine, just firefox shows me this question

  • Why is my video 1080 p (60 fps) rough in reading?

    I shoot a lot of video on my iPhone and import into iMovie for editing. Due to playback choppy when I import video 1080 p, I always reduce the 720 p resolution in order to obtain a smooth playback. I've listed my features below, in case that's the pr

  • Windows is it Hebrew and my sound does not work.

    I install the new windows on my home edition at the end of computer I do everything so far, but the sound is not work the windos is Hebrew end I don't understand whrere noting that I have to change end haw Vu1 ken help me? THX original title: hy all

  • app missing for drivers facilities

    I just did a cover of my computer using the HP discs. After you have installed all of the above dates, I found that my sound is not working so I went to the drivers and support. I try to download a driver for the sound but can't, I get this message W

  • Printer hp laserjet P1102W wireless light. Windows Vista operating system

    After trying to download the firmware update to enable air print from an I - pad 2, the wireless light is out and didn't once again.  I tried to reset the printer back to the original settings, but nothing happened.  We have a router from linksys E12