Page 1 of 1

Appgini Helper Changes not showing for all users

Posted: 2022-02-24 12:24
by angus
Hi Jan, I have made some changes with the DV screen, all working ok my side and no errors.

But on another users screen, none of the changes are working, there was an error -

Code: Select all

Uncaught TypeError: Cannot read properties of null (reading 'appendIcon') at xxxxxxxxxx-dv.js:36:24
Now I removed the icon bit

Code: Select all

var field = new AppGiniField("xxxxxxxx");
var dropdown = field.dropdown();
dropdown.fix("pencil", "plus");
dropdown.getAddButton().appendIcon("user").appendText(" New xxxxxxx");
dropdown.getViewButton().appendText(" Edit");
to

Code: Select all

var field = new AppGiniField("xxxxxxxx");
var dropdown = field.dropdown();
dropdown.fix("pencil", "plus");
dropdown.getAddButton().appendText(" New xxxxxxx");
dropdown.getViewButton().appendText(" Edit");
the user did a ctrl+f5, the change appeared on the page which was good but still not able to see the tabs and columns i created and the same error still shows? any idea how to fix this?

Re: Appgini Helper Changes not showing for all users

Posted: 2022-02-24 12:52
by jsetzer
Clear cache when reloading page in browser, for example SHIFT+F5.

Re: Appgini Helper Changes not showing for all users

Posted: 2022-02-24 13:00
by angus
yes, we did clear the cache on the call and the icon disappeared so it recognised the change but still they do not see tabs just one long list. I am checking the modify default button page though and will implement the permission check first to see if that fixes it

Re: Appgini Helper Changes not showing for all users

Posted: 2022-02-24 13:56
by angus
Hi Jan, there was no fault with the helper file (user error I'm afraid!)

I looked at the documentation and found the issue was as you described in there, permissions. Your fix also worked well.

the code is now

Code: Select all

var field = new AppGiniField("xxxxxxxx");
var dropdown = field.dropdown();
dropdown.fix("pencil", "plus");
var btnAdd = dropdown.getAddButton();
if (btnAdd !== null) btnAdd.appendIcon("user").appendText(" New xxxxxxxx");
var btnView = dropdown.getViewButton();
if (btnView !== null) btnView.appendText("Edit");