Hello 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 thisthis is my get.js
model.jsonModel = {
services: [{ name: "alfresco/services/LoggingService", config: {loggingPreferences: {enabled: true,all: true}}},
"alfresco/services/CrudService"
]
};
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;
list.url="api/workflow-instances";
model.jsonModel.widgets = model.jsonModel.widgets.push(checkbox);
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