Hello,
I want to make a cascading dropdown. For example; user selects City, then County, then District, then Street... I want to fill the dropdowns from external web service whenever user selected previous dropdown.
How should i go about it?
Like
Hello Ensar,
Loos like you just need to add a filter to the column based on the other column value.
You can do it by adding attribute on the needed column.
For example:
"Transport": { "dataValueType": Terrasoft.DataValueType.LOOKUP, "lookupListConfig": { "filters": [ function() { var filterGroup = Ext.create("Terrasoft.FilterGroup"); filterGroup.add("WhatWeight", Terrasoft.createColumnFilterWithParameter( Terrasoft.ComparisonType.GREATER, "[StTransport:Id].StMaxWeight", this.get("Weight"))); return filterGroup; } ] }
In this example we have column "Transport" and we wont to display values where their column "StMaxWeight" is greater that out column "Weight".
Not quite understand what are you trying to do but I think you can store the value from your web service in the schemas attribute and then work with it. To make it work you just need to somehow get the needed value from the web server in the schema code.