selection problem


when use xtype "selection",type "select" options use *json.jsp, edit content cannot displayed select content @ first time.

second time edit content. can display select content. 

 

please ask reason ?

can little more specific / clearer on  how try achieve ?

 

one correct way display result of json request in select list (here want display running instances) : 

 

- on widget node of xtype selection : set 'optionsprovider' property function name (cq.myapp.utils.getwfinstances)

- define function :

 

getwfinstances: function() {

            var sampledata = [], results = cq.util.eval(cq.http.get('/libs/cq/workflow/content/console/instances.json')).workflows;

            (var = 0, len = results.length; < len; i++) {

                var result = results[i];

                sampledata.push({ value: result.model, text: result.model });

            }

            return sampledata;

        },

 

resource hit request /libs/cq/workflow/components/console/instances/json.jsp .

 

it runs fine me. use case ?



More discussions in Archived Spaces


adobe

Comments

Popular posts from this blog

Joomal 3.6.3 update error - PHP temporary folder is not set - Joomla! Forum - community, help and support

Upgrade 3.4.8 to 3.5.1 failed "download package failed" - Joomla! Forum - community, help and support

Fatal error during instalation - Joomla! Forum - community, help and support