AnsweredAssumed Answered

[aikau] dynamic variable [solved]

Question asked by redraccoon on Jan 22, 2016
Latest reply on Jan 29, 2016 by redraccoon

I have an Aikau page, I would like to modify 1 property (the url) depending on the checkbox
I read a lot of tuto and website but my main problem is I can't understand what is the best way to do this

this is my get.js


model.jsonModel = {
         services: [{ name: "alfresco/services/LoggingService", config: {loggingPreferences: {enabled: true,all: true}}},

var list = {
         name: "alfresco/lists/AlfList",
         config: {
            loadDataPublishTopic: "ALF_CRUD_GET_ALL",
            loadDataPublishPayload: {
               url: "I WOULD LIKE TO CHANGE THIS URL"
            itemsProperty: "data"

var views = [{…too long…}]

var checkbox = {
        name: "alfresco/forms/controls/DojoCheckBox",
        config: {
          fieldId: "SHOW",
          name: "showEmail",
          label: "Groupe",
          //description: "",
          value: false

list.config.widgets = views;
model.jsonModel.widgets =

In my head, a good option would have been

url: "mywebsript?"+checkbox1.getValue()+"?"+checkbox2.getValue()

but I can't code in the get.js, so I tried to use widget, not even close

thank you