How to make observable ojSelect

Hello

I have two components of ojSelect that is bound to the same observable model. But when I change the option in an ojSelect doesn't think in the other. I tried with the given example @ binding Oracle JET - Select - Options

And I modified the html code and script below. Can someone tell me what I'm doing wrong here? [I tried the same thing with ojInputText and is working fine IE, I have two inputText elements related to the same ViewModel and change of a text area is reflected in the other.

HTML

< label for 'select' = > select < / label >

< select id = "select" link = "ojComponent: {component:"ojSelect", options: browsers,}"

{rootAttributes: {style:'max-width: 20em ""}} ">"

< / select >

< label for = "select123" > Select123 < / label >

< select id = bind data "select123" = "ojComponent: {component:"ojSelect", options: browsers,}"

{rootAttributes: {style:'max-width: 20em ""}} ">"

< / select >

Script

require ([' OJ/ojcore', 'knockout', 'jquery', ' OJ/ojknockout', ' OJ/ojselectcombobox'],

function (JO, ko, $)

{

function selectModel () {}

This.browsers = ko.observableArray([)

{value: "Internet Explorer", label: "Internet Explorer"},

{value: "Firefox", label: "Firefox"},

{value: "Chrome", label: "Chrome"},

{value: 'Opéra', label: 'Opéra'},

{value: "Safari", label: "Safari"}

]);

}

var sViewModel = new selectModel();

($(document) .ready)

function() {}

ko.applyBindings (sViewModel, document.getElementById ('select'));

ko.applyBindings (sViewModel, document.getElementById ('select123'));

}

);

});

It seems that the list of values is shared between the two components of the ojSelect, but the value itself is not shared. Add this to your viewModel:

this.val = ko.observableArray(['Firefox']);

Then add this to every ojSelect in the html code:

value: val

More details in this recipe book demo:

---Select---Select only Oracle JET

Hope this helps,

Hugh

Tags: Oracle Development

Similar Questions

  • How to make the bottom of the page shorter?

    Ok...

    The homepage on my website is too long, and I'm doing shorter.

    How to make the page shorter and cut some of this big empty space that I don't need?

    I went to the master page to move the footer, but it did not work...

    Any suggestions?   site: www.oilgear.us

    Hello

    I suggest you delete "sticky footer" page master and that should fix the problem for you. "

    You must follow the steps below.

    1. make sure that areas of text 'Fluid Power Solution for today' and 'www.oilgear.us' still 'Footer'.

    2. go to the Page Master > Page > Page Properties > Layout > uncheck "Sticky footer".

    2. once fact preview the site and you would observe that the page height is less.

    Concerning

    Vivek

  • How to make animated gifs to work in FCPX?

    Hello

    How to make animated gifs to work in FCPX?

    They work in FCP7 (FCS) but not FCPX. Strange.

    assailed

    Elmer

    If you had FCP7, you have Quicktime 7 Pro (upgraded automatically at installation FCP7). Check your Applications > Utilities folder.

    Open the gif in QT7 and export as... (Sequence Quicktime Movie > Open Options)... might as well go with ProRes LT and make sure that you pay attention to the size option (select current if the original is 100%).

  • How to make live iPhone photos 7

    How to make a live Webcam picture on my new iPhone 7

    http://help.Apple.com/iPhone/10/#/iph1e767793c

  • Can you please tell me how to make the thicker arrows on the Pages.

    Can you please tell me how to make the thicker arrows on the Pages. Thank you very much. There is something incredibly simple to do, but I, having a disconcerting brain, am totally unable to understand. Please please help me. Thank you

    < re-titled by host >

    Try here > Pages for Mac: Add and edit forms

  • How to make the list of instrumental music

    How to make a list of all my player someone help

    Alan

    iTunes is not a method to determine what tracks have vocals. You can create a normal playlist and put what you want in it.

    TT2

  • How to make itunes on an Android 5.1.1

    How to make itunes on my android5.1.1

    Do you mean how can you get an app called iTunes on your Android? If so, you can't. You can, however, download the app Apple music store Google play.

    Or, do you mean, how can you get the music you bought on the iTunes Store on your Android? You would be transferred in any way that you usually transfer the music on your phone. Drag and drop generally works very well.

  • How to make a wired internet connection to my macbook pro?

    How to make a wired internet connection to my macbook pro

    < removed >

  • How to make an update of location to a group of photos at the same time?

    How to make an update of location to a group of photos at the same time?  This used to be a feature in iPhoto.

    I use El Capitan 10.11.6 and Photos 1.5

    If yu have OS X 10.5.1 s you say that you can not - with OS X 10.11.6 Photos 1.5 (a free update in the app store) you select them and info - enter the location and it will apply to all photos

    LN

  • How to make a screenshot?

    How to make a screenshot?

    We can help with Firefox for Android, but we still don't know the ins and outs of the differences in system on all Android devices. To do this, you could use an Android-enthusiast forum like: http://forums.androidcentral.com/

  • When I reply to an email with attachments, I lose the original email attachments. How to make a comeback?

    When I reply to an email with attachments, I lose the original email attachments. How to make a comeback?

    Peter

    MacAir mid 2013

    MOSX 10.11.6

    Consult your mail > Preferences > composition > include all of the original text

    Mail > Preferences > accounts > advanced

  • How to make a white sticker in Photos?

    How to make a white sticker in Photos?

    The strength of the tile has a negative value. Then the tile will turn into a White halo instead of a dark vignette.

    With an elasticity of-1,00:

  • How to make a bookmark to open it in a new tab automatically?

    How to make a bookmark to open it in a new tab automatically?
    Because you must first open a blank tab and on this subject already inserts bookmarks. It is inconvenient.
    Please, help me!

    Hi, you can try the add-on Open bookmarks in a new tab .

    If your question is resolved by this or another answer, please take a minute to let us know. Thank you.

  • When I press the tab button all my favorites in a show from the list-how to make that happen?

    When I press the tab key to open a new page, all my favorites in a show from the list-how to make that happen? It should be a correct white page or the home page?

    said CWEB

    When I press the tab key to open a new page, all my favorites in a show from the list-how to make that happen? It should be a correct white page or the home page?

    OK this question I figured it adds on the deletion settings

  • How to make the top sites page appears when I open a new tab? Why have I not of "buttons" to pin a top site of the page tab?

    When I open a new tab, NO best sites don't show up... shows just a search engine box. I have Firefox 33.0. Why is there no 'pin' button when I opened a new page? How to make the top sites page appears when I open a new tab?

    Here is some additional information on the configuration of the new tab page:

    (1) in a new tab, type or paste Subject: config in the address bar and press ENTER. Click on the button promising to be careful.

    (2) in the search above the list box, type or paste newtab and make a pause so that the list is filtered

    (3) double-click the preference browser.newtab.url and enter your favorite page:

    • (Default) page thumbnails = > subject: newtab
    • Blank tab = > subject: empty
    • Built-in Firefox homepage = > topic: welcome
    • Any other page = > full URL of the page

    Press Ctrl + t to open a new tab and check that it worked. Fixed?

    Some traps:

    If Firefox will not let you change this setting: you can have what is called SearchProtect on your system.

    Firefox if allows you to save your changes, but he doesn't know: one of your extensions may be the substitution of her. You can consult, disable and/or remove extensions on the addons page:

    "3-bar" menu button (or tools) > Add-ons > in the left column click on Extensions

    If the modification works during your session, but during the next startup is leads to: you could have a user.js file in your personal settings Firefox (your Firefox profile folder). This article describes how to track down and delete the file: How to fix preferences that will not save.

    A little luck?

Maybe you are looking for

  • storage used iCloud inconsistency.

    Hello I have 1 to plan storage iCloud. I downloaded pictures 100 GB and 400 GB of videos in the Photos app iCloud. There is no file in the items removed from iCloud. In the Photos on my MacBook Pro when I right click on all the pictures, select Get I

  • No stereo mix with Satellite T110

    I bought a Satellite T110 (Win7). There is no option of stereo mix with the recording devices. I scored see the disabled and disconnected devices. I've updated the driver conexant (4.98.16.61). Nothing helps. Still no stereo mix option. I tried to co

  • TosBtMng

    Every now and then I get the following error message, and I'm not really sure what it means.  the eror message says the following: "TosBtMng has stopped working". Does anyone know what it is.  No matter what the message is about that doesn't seem to

  • Using a function of an Action in a script task

    HelloI am new to vCO and Java Script and I was wondering if I could call an action in a script task.  Basically, I create a workflow is the integration with vCAC and I want to take on the properties of the Virtual Machine and change the variable name

  • Why no Encore CS6 installing Premiere Pro CS6?  Create discs!

    I agree with first Pro CC ($ 20 / mo).  I need to create DVD & Blu - Ray.  I see that subscribers complete creative cloud ($ 50 / month) can install diverted again CS6, by installing the first Pro CS6 (How do it again with first Pro CC?).  But I have