Hello,
Im a German Developer and currently working on my first NextCloud Application.
I already have a good (and working) base now and wanted to add some Administrator Settings to my App.
I already am at a point where the Value of this single Setting will be saved and loaded in the Settings Page themselves. Because i would need the Value in JavaScript, i tried to access it with
console.log(OCP.AppConfig.getValue('berichtsheft', 'pdf_auto_date', 'no'));
but i just get ‘undefined’ in the console.
I can access the value in PHP but dont know how to use it in JavaScript.
If i try logging
OCP.AppConfig.getValues
without (), then i will see the Function but i cant call it.
Thanks for reading all this and your help.