AGHelper: why "label not found for field" error

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
User avatar
onoehring
AppGini Super Hero
AppGini Super Hero
Posts:1464
Joined: 2019-05-21 22:42
Location: Germany
Contact:

AGHelper: why "label not found for field" error

Post by onoehring » 2026-09-08 09:28

Hi Jan,

I am not sure why this happens. On several pages I (suddenly) receive such error/warning messages, but I have not even a clue where I am asking AGHelper to do anything with these fields (Aus FA, Ist verstorben, Ist aktiv). Interesting: It's always three (3) warnings that are show. On a page they are always the same three, but on a different page, it's three but with different names.
ag_helper_err.png
ag_helper_err.png (42.34 KiB) Viewed 2508 times
Writing this, I think I have found the reason (but if so, I would think it's a problem in the AGHelper):
The fields named in the warning are defined in AG as dropdown, referencing a value from a different table - but - readonly. I use the dropdown to visualize the information to the enduser, but fill the contents of the database field depending on some other criteria (using after_insert hooks).
ag_helper_err_10.png
ag_helper_err_10.png (17.41 KiB) Viewed 2508 times
resulting in the application in this:
ag_helper_err_20.png
ag_helper_err_20.png (1.12 KiB) Viewed 2508 times
Do you have any suggestion how to get rid of the warnings?

Thanks
Olaf

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

Re: AGHelper: why "label not found for field" error

Post by jsetzer » 2026-09-10 05:52

I've reviewed the AGH code. Those messages appear after we've unsuccessfully tried to find corresponding controls (editable or static) for each label.
So, indeed, this may be a scenario where a label exists but corresponding control cannot be found.

from your screenshot I can see those fields are lookups, displayed as readonly (static) text ("nein"), no dropdown control. I need to build a testing app to reproduce this scenario. Stay tuned...
Kind regards,
Jan <js />

AppGini 26.12 + all AppGini Helper tools

My Side Project
www.office-app.com | Coding Sample | Changelog | Blog | Top 20 Features
Integrated Statemachine Workflow • KANBAN • Audit Trail • Integrated API • Model Driven • Field-Level permission • Modern UI

My Company Website
www.bizzworxx.de

My AppGini Blog
appgini.bizzworxx.de/blog

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

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

Re: AGHelper: why "label not found for field" error

Post by jsetzer » 2026-09-10 05:59

RE: your question
Do you have any suggestion how to get rid of the warnings?

Code: Select all

AppGiniHelper.setDebug(DebugLevel.Error)
For example in hooks/header-extras.php:

Code: Select all

<script>
    AppGiniHelper.setDebug(DebugLevel.Error);
</script>
Possible values:

Code: Select all

enum DebugLevel {
    None = 0,
    Debug = 1,
    Info = 2,
    Warning = 3,
    Error = 4
}
NOTE There are certain warnings which cannot be supressed by changing DebugLevel because they are too important to ignore.
Kind regards,
Jan <js />

AppGini 26.12 + all AppGini Helper tools

My Side Project
www.office-app.com | Coding Sample | Changelog | Blog | Top 20 Features
Integrated Statemachine Workflow • KANBAN • Audit Trail • Integrated API • Model Driven • Field-Level permission • Modern UI

My Company Website
www.bizzworxx.de

My AppGini Blog
appgini.bizzworxx.de/blog

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

User avatar
onoehring
AppGini Super Hero
AppGini Super Hero
Posts:1464
Joined: 2019-05-21 22:42
Location: Germany
Contact:

Re: AGHelper: why "label not found for field" error

Post by onoehring » 2026-09-10 06:30

Hi Jan,

thanks for looking into it and the hint to the debug messages.
Checking your office-tool ... it's getting real nice and interesting.
Olaf

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

Re: AGHelper: why "label not found for field" error

Post by jsetzer » 2026-09-10 06:32

Reproduced it and extended the control-search-algorithm to now find static controls for labels, not having a direct field-identifier.

There will be a new version 20260910-nn later today.
  • Custumers, having a valid (=not expired) license, will get the update for free within the 1-year-free-updates license.
    Send your order number by email to [email protected] and I will send a download link.
  • Others may consider ordering a fresh license in our fastspring shop.
    After purchase I will send a download link for latest version.
Kind regards,
Jan <js />

AppGini 26.12 + all AppGini Helper tools

My Side Project
www.office-app.com | Coding Sample | Changelog | Blog | Top 20 Features
Integrated Statemachine Workflow • KANBAN • Audit Trail • Integrated API • Model Driven • Field-Level permission • Modern UI

My Company Website
www.bizzworxx.de

My AppGini Blog
appgini.bizzworxx.de/blog

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

Post Reply