[SOLVED] Where are badges (count of child records) documented?

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: 1161
Joined: 2019-05-21 22:42
Location: Germany
Contact:

[SOLVED] Where are badges (count of child records) documented?

Post by onoehring » 2020-03-10 08:20

Hi Jan,

where can I find documentation (how to use the feature) of the badges (record count of children)?
ec202003_badgewhere.png
ec202003_badgewhere.png (6.85 KiB) Viewed 5838 times
PS: It would be a great help if one could click on the markers in the image of your features page and and one would land on the corresponding help page.

Olaf

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

Re: Where are badges (count of child records) documented?

Post by jsetzer » 2020-03-10 08:58

onoehring wrote:
2020-03-10 08:20
[...] how to use the feature [...] of the badges (record count of children)?

Code: Select all

new AppGiniDetailView().compact();
or

Code: Select all

new AppGiniDetailView().childrenTabs.showBadges();
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

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

Re: Where are badges (count of child records) documented?

Post by jsetzer » 2020-03-10 08:59

onoehring wrote:
2020-03-10 08:20
[...] where can I find documentation [...] ?
Here:
https://appgini.bizzworxx.de/products/j ... ct-layout/
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

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

Re: Where are badges (count of child records) documented?

Post by onoehring » 2020-03-10 09:55

Hi Jan,

thank you very much. I did not think that this could be at the compact view. Also the search on the AG Helper page did only turn up the release notes, no entry in a page.

I am not sure why, but when there is no entry something seems wrong (I limited the number of images (Bilder) to 10, documents (Dokumente) to 50. These numbers are shown below the list. I am not sure why this happens, but it occurs on several different masterrecords where there are no children (note: the 3 in the last tab is correct):
ec202003_07.png
ec202003_07.png (5.12 KiB) Viewed 5831 times
Olaf

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

Re: Where are badges (count of child records) documented?

Post by jsetzer » 2020-03-10 10:27

Hi Olaf,

please compare your screenshot with a screenshot of a default child-tabs:

chrome_CmZnkwZ3SK.png
chrome_CmZnkwZ3SK.png (18.61 KiB) Viewed 5825 times

You can see that by default there is no badge showing any number if the total number is 0 (zero).

In my screenshot there is just the default message "No matches found!". In your screenshot there is an additional helptext "(10 Bilder max. pro Container)". So I guess you have customized the table-footer text.

Your custom table-footer helptext contains a number and is enclosed in brackets (10 ...). So it matches the default regular expression being used for finding the total number of records. This seems to be a problem caused by your table footer customization.

I see two alternatives:
  1. Go back to standard and find a different place for your helptext outside the table
  2. Call the showBadges-function and pass in you own regular expression as first parameter
    Default regular expression:

    Code: Select all

    RegExp = /(\d+)(?!.*\d)/
Best,
Jan
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

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

SOLVED Re: Where are badges (count of child records) documented?

Post by onoehring » 2020-03-10 11:28

Hi Jan,

thank you for that response. I was able to place the additional info beneath the table. Now it works - and I did not need to fiddle with AG Helper.
ec202003_08.png
ec202003_08.png (4.68 KiB) Viewed 5823 times
Olaf

Post Reply