Qlik Community

Qlik Sense Integration, Extensions, & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

Announcements
BI & Data Trends 2021. Discover the top 10 trends emerging in today. Join us on Dec. 8th REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Contributor
Contributor

Customer properties . changes on the sheet after Ctrl+F5 only

Hi, all.

defining a custom property

DropListL: {

                            type: 'string',
                            component: 'expression',
                            label: 'First field for list',
                            ref: 'field1',
                            defaultValue: ''
 
                        },
 
and function in angular controller , where use this propertie:
 
function ListForm(a) {
                
                 var ArrTemp = new Array();
                var myField = app.field(a).getData();

                myField.OnData.bind(function () {
                    myField.rows.forEach(function (row) {

                        var ObjTemp = new Object();
                        ObjTemp.id = String(row.qElemNumber);
                        ObjTemp.name = row.qText;
                        ArrTemp.push(ObjTemp);

                    });
                    ArrTemp = [];
                });

                var DataTemp = new Object();

                DataTemp.model = "0"
                DataTemp.availableOptions = ArrTemp;
                return DataTemp;
            };
 
            $scope.data1 = ListForm($scope.layout.field1);
 
As a result, I receive field of field (from prop) for use in template in block SELECT OPTION
Well, but it's work after save edit and refresh sheet (CTRL+F5)
What needs to be down for the chsnges to take effect  immediately? Without forced sheet refresh?
Thank you for you help.
Labels (1)
0 Replies