Appgini Helper Changes not showing for all users

This sub-forum is for discussing all topics related to AppGini Helper JavaScript Library, provided by bizzworxx as a third-party AppGini plugin.
Post Reply
angus
Veteran Member
Posts: 128
Joined: 2020-05-28 22:27

Appgini Helper Changes not showing for all users

Post by angus » 2022-02-24 12:24

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?
AppGini 22.13

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1807
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: Appgini Helper Changes not showing for all users

Post by jsetzer » 2022-02-24 12:52

Clear cache when reloading page in browser, for example SHIFT+F5.
Kind regards,
<js />

My AppGini Blog:
https://appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability

AppGini 24.10 Revision 1579 + all AppGini Helper tools

angus
Veteran Member
Posts: 128
Joined: 2020-05-28 22:27

Re: Appgini Helper Changes not showing for all users

Post by angus » 2022-02-24 13:00

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
AppGini 22.13

angus
Veteran Member
Posts: 128
Joined: 2020-05-28 22:27

Re: Appgini Helper Changes not showing for all users

Post by angus » 2022-02-24 13:56

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");
AppGini 22.13

Post Reply