HI All,
I am totally new to skuid. What I am trying to do is :
- I have 2 fields on an Object, Division & Sub Division. There is no really dependency setup for these two fields.
- I created a tab view in skuid and tried to filter the rows by Division & SubDivision, Individually it worked good. But I wanted them to be dependent Like : If I select Division = APAC, The subdivision avaiable picklist values should be refreshed and show only APAC related subdivisions.
I figured out on myself that Custom JS is the only solution started up as below :
var params = arguments[0],
$ = skuid.$;
var productModel = skuid.model.getModel(‘Product2Data’);
var allProductData = ;
allProductData = productModel.data;
var i = 0;
for(i=0;i<allProductData.length;i++){
var productRow = allProductData[i];
}
// Static Code that I am looking to generate dynamically
var filterItems = ;
filterItems.push({ label: ‘Cheese’, value: ‘cheese’ });
filterItems.push({ label: ‘Pizza’, value: ‘pizza’ });
return filterItems;
Now I do get the Object in data and also get the proper length for allProductData array but next I want to do is traverse through the data and get the values for SubDivision field and put it in the array.
But I didnot find anything around it. i have 2 questions -
How to work on rows returned by data? what are its methods?
Is this right way to set the dependent filter?
I tried :
http://help.skuidify.com/m/models-conditions-filters/l/204980-use-a-snippet-as-a-filter-item-source-…
but its not my use case. Looking forward to and appreciate help from the community in advance.
Thanks,
Question
Dependent Filters in Skuid : Working with Data
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.