add and view buttons disappear when adding to tab

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
mdannatt
Posts: 8
Joined: 2020-01-27 17:34

add and view buttons disappear when adding to tab

Post by mdannatt » 2021-04-29 17:29

VIEW and ADD NEW bittons to the right of a field sometimes disappear when adding fields to a custom tab created with appginihelper? has anyone else had this problem? Appgini 5.95, latest Appginihelper js library and Chrome

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

Re: add and view buttons disappear when adding to tab

Post by jsetzer » 2021-04-30 06:53

This may be a delay-problem with lazy loaded dropdowns.

Are you using the new and recommended initialization for dv and tv?
https://appgini.bizzworxx.de/products/j ... mentation/

DV

Code: Select all

var dv = AppGiniHelper.DV;
TV

Code: Select all

jQuery(document).ready(function() {
  var tv = AppGiniHelper.TV;
});
The older, deprecated initialization was problematic when using it at several places or multiple times, for example using it in header-extras.php and again in TABLENAME-dv.js or even using it multipe times in the same file.

Please check if the old initialization (var dv = new AppGiniDetailView();) has been replaced by the recommended initialization.
Kind regards,
<js />

mdannatt
Posts: 8
Joined: 2020-01-27 17:34

Re: add and view buttons disappear when adding to tab

Post by mdannatt » 2021-04-30 08:46

hi jan

all instances of detailview(); were replaced with helper(); when it was first recommended. bizarrely, if i toggle the browser out of full screen mode to window mode, or vice versa, or if i size the browser window, this also solves the problem, but only temporarily. i found this out last night. i will try a different browser today and see if there is any improvement.

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

Re: add and view buttons disappear when adding to tab

Post by jsetzer » 2021-04-30 09:40

mdannatt wrote:
2021-04-30 08:46
all instances of detailview(); were replaced with helper();
Well, maybe I got your answer wrong or my answer was not understandable, sorry for my English!

You have to replace...

Code: Select all

var dv = new AppGiniDetailView();
... with ...

Code: Select all

var dv = AppGiniHelper.DV;
... and not replace ...

Code: Select all

detailview()
with

Code: Select all

helper()
Your function calls of detailview() and helper() (both lower case) will raise an error in console tab of your development tools unless you have created such functions by yourself. Both, AppGini and AppGiniHelper do not provide such functions, as far as I know.

chrome_rlbSWJdC9x.png
chrome_rlbSWJdC9x.png (9.55 KiB) Viewed 1258 times

Anyway, I do not know if this has to do with the UI problem at all, but I'd like to encourage all AppGini Helper users to use the new and recommended initialization for DV and TV.
Kind regards,
<js />

mdannatt
Posts: 8
Joined: 2020-01-27 17:34

Re: add and view buttons disappear when adding to tab

Post by mdannatt » 2021-04-30 11:52

sorry, i made a typo. i can confirm i am using .DV extension. this behaviour also happens in MS Edge. ie not browser specific.

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

Re: add and view buttons disappear when adding to tab

Post by jsetzer » 2021-04-30 12:14

Still don't know if the problem has something to do with AppGiniHelper.
Does it also happen without including AppGiniHelper?
Kind regards,
<js />

mdannatt
Posts: 8
Joined: 2020-01-27 17:34

Re: add and view buttons disappear when adding to tab

Post by mdannatt » 2021-05-02 17:03

im no further in solving this.
when i check Consol, I get :
AppGiniHelper.min.js:
formatted:784 AppGiniHelper | problem with label:
harris_test-dv.js:5
which references: var dv = AppGiniHelper.DV; in my hooks file

i see that line 619 of appginihelper.js has this line of code:

return AppGiniDetailView[bx_0x1b95('0xa9')]();

is this correct?

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

Re: add and view buttons disappear when adding to tab

Post by jsetzer » 2021-05-02 17:16

(1)
I'd like to to repeat my question from last post:
Does it also happen without including AppGiniHelper?
Can you please answer this.

(2)
AppGiniHelper | problem with label
This warning message (yellow) usually means that you try to change a field that does not exist or cannot be found at that moment. In these cases I always recommend double checking your Javascript code for spelling and existence of fields you are refering to, for example when using dv.getField("FIELDNAME") function.

Here there may be a different problem due to Radio Buttons in latest AppGini version. Anyway, as this is a only a (yelllow) warning and not an (red) error, this will not have an impact on the lookup fields.


(3)
Are there any (red) errors in your Javascript code that are reported in the console?
These errors (red) should be eliminated first, because they can prevent further processing. Those can lead to subsequent errors.

We should not start focusing on the lookup-display problem unless all bugs have been eliminated.
Kind regards,
<js />

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

Re: add and view buttons disappear when adding to tab

Post by jsetzer » 2021-05-04 08:26

One more question: Are you using .wrap() function on fields, for example something like this?

Code: Select all

dv.getFields("item_id,task_id").wrap();
Kind regards,
<js />

Post Reply