Hi Isomorphic,
I wanted to change the FormItem title for BatchUploader UploadItem in this sample. I got it working but wondered why my 1st approach did not work:
I'm pretty sure that the generated item is an UploadItem after using the Developer Console's watch tab.
I tried this at application startup at the very top of my onModuleLoad before any draw().
But the title is still "Upload file" and not my string "File to upload".
Using this code it is working, but shouldn't the 1st method work as well?
I tired this using latest v10.1p_2017-01-03.
Thank you & Best regards
Blama
I wanted to change the FormItem title for BatchUploader UploadItem in this sample. I got it working but wondered why my 1st approach did not work:
I'm pretty sure that the generated item is an UploadItem after using the Developer Console's watch tab.
I tried this at application startup at the very top of my onModuleLoad before any draw().
Code:
UploadItem ui = new UploadItem() { { setTitle(i18n.fileToUpload()); } }; UploadItem.setDefaultProperties(ui);
Using this code it is working, but shouldn't the 1st method work as well?
Code:
UploadItem ui = new UploadItem(); ui.setTitle(i18n.fileToUpload()); BatchUploader.changeAutoChildDefaults("uploadFileItem", ui);
Thank you & Best regards
Blama
Comment