Hello,
is it master-detail realtion that you're trying to implement?

Could you please generate a playground example with sample data, so someone
in the list could fix it.

Regards


marutinandan wrote
> Hi, 
> 
>  I have two select box sBox1 and sBox2. (data in both is coming from one
> JSON object)
>  I am trying to reload the sBox2  on "changeSelection" event of sBox1, but
> I am getting some assertion errors. can you please explain me  what could
> be the issue. I am sharing the screen shot for the error.
> 
> Please let me know if we can implement this with any other way. 
> 
> These are my codes? 
> 
> _projectId : "project6";
> 
> 
>                 var url =
>                     qx.util.ResourceManager.getInstance().toUri(
>                         "testtable/select.json");
>                 var jsonStore = new qx.data.store.Json(url);
> 
> 
> 
>                 var ddl_project = new qx.ui.form.SelectBox();
>                 var projectController = new qx.data.controller.List(null,
> ddl_project);
>                 // set the name for the label property
>                 projectController.setLabelPath("name");
>                 jsonStore.bind("model.projectList", projectController,
> "model");
> 
>                 var btn_refresh = new
>                     qx.ui.form.Button("Refresh");
>                 this.getRoot().add(btn_refresh, {left: 100, top: 200});
> 
>                 btn_refresh.addListener("execute",
>                     function () {
>                     }, this);
> 
> 
>                 ddl_project.addListener("changeSelection", function (e) {
> 
>                     var project = e.getData()[0].getLabel();
>                     alert(project);
>                     this._projectId = project;
>                     try {
>                         this._getDataset(this._projectId, jsonStore,
> controller1);
>                     }
> 
>                     catch (e) {
> 
>                         alert("error: " + e);
> 
>                     }
> 
> 
>                 }, this);
> 
> 
>                 this.getRoot().add(ddl_project, {left: 100, top: 100});
> 
> 
>                 var ddl_select1 = new qx.ui.form.SelectBox();
>                 var controller1 = new qx.data.controller.List(null,
> ddl_select1);
>                 // set the name for the label property
>                 controller1.setLabelPath("name");
>                 this._getDataset("project4", jsonStore, controller1);
> 
>                 this.getRoot().add(ddl_select1, {left: 100, top: 150});
> 
> 
>             }, _getDataset: function (projectName, jsonStore, controller)
> {
>                 jsonStore.bind("model." + projectName, controller,
> "model");
> 
>             }
> 
<http://qooxdoo.678.n2.nabble.com/file/n7585889/asertionError.png> 




--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/reload-second-select-box-on-change-of-first-selectbox-tp7585889p7585891.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to