Hello,
I want to disable certain reports in the webinterface depending on the user properties.
I am already able to properly modify the store "Traccar.store.ReportTypes" and remove all the entries I don't want.
I am doing this action in the Root.js in the loadApp function.
Unfortunately a combobox doesn't automatically reflect such changes. I am troubled to access the combobox "reportTypeField".
Can you please give me some hints how to use "lookupReference" to get this object?
I think then I can just set the store reference again and thus update the combobox content. (or is this assumption wrong?)
Regards
Peter
ps.: is there a built in function to disallow a user to edit his own additional properties?
After all i was able to solve it.
Unfortunately my only resolve was by destroying the original combobox dynamically in code, recreating a new store and combobox and placing it at the same position.
Every other approach didn't change anything of the combobox content.
Regarding the additional properties: i've hidden the properties button in the dialog for the specific user.
Hello,
I want to disable certain reports in the webinterface depending on the user properties.
I am already able to properly modify the store "Traccar.store.ReportTypes" and remove all the entries I don't want.
I am doing this action in the Root.js in the loadApp function.
Unfortunately a combobox doesn't automatically reflect such changes. I am troubled to access the combobox "reportTypeField".
Can you please give me some hints how to use "lookupReference" to get this object?
I think then I can just set the store reference again and thus update the combobox content. (or is this assumption wrong?)
Regards
Peter
ps.: is there a built in function to disallow a user to edit his own additional properties?