AppGiniHelper InlineDetailView Plugin 20191219-01 does not work with AppGini 5.94

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
ahernandez
Posts: 8
Joined: 2021-03-26 19:33

AppGiniHelper InlineDetailView Plugin 20191219-01 does not work with AppGini 5.94

Post by ahernandez » 2021-03-29 13:39

Example of a simple scenario:
1. Project with a table and two fields, ID and Description.
2.- Installation: inline Detail-View plugin
3.- Detail view is at the end of the list instead of inline.

Code Debugging:
The script refers to the detail-view element by "name" (name = \ "detail-view \") this worked fine in version Appgini 5.8, because the element was generated as follows: <a name = "detail view"> </a>

However, the code generated by AppGini 5.94 the element is: <div id = "detail-view"> </div> 

It seems to me that due to this inconsistency, plugin code is not executing.

How can it be fixed?

Thank you very much in advance.
Attachments
appGini5.94_SetupData.png
appGini5.94_SetupData.png (122.81 KiB) Viewed 4652 times
tableTestIDV_Enabled.png
tableTestIDV_Enabled.png (45.73 KiB) Viewed 4652 times
IDV_Fail.png
IDV_Fail.png (33.97 KiB) Viewed 4652 times
IDVReferDetail-ViewByName.png
IDVReferDetail-ViewByName.png (151.6 KiB) Viewed 4652 times
AppGInni5-94_Detail-ViewById.png
AppGInni5-94_Detail-ViewById.png (133.67 KiB) Viewed 4652 times

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

Re: AppGiniHelper InlineDetailView Plugin 20191219-01 does not work with AppGini 5.94

Post by jsetzer » 2021-03-29 14:12

Hi Alejandro,
thanks for this detailed report and the good error description.

I was able to reproduce this behaviour and already working on a solution.
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: 1807
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: AppGiniHelper InlineDetailView Plugin 20191219-01 does not work with AppGini 5.94

Post by jsetzer » 2021-03-29 14:51

There is a patch available. So, if anyone else is facing the same problems with Inline-DV Plugin and AppGini 5.94 please contact me and you will receive a download link for the patched version.

Email to: [email protected]
Please send your Inline-DV-Order-Number and the email address you have used on purchase

I'm sorry for any inconvenience.
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

ahernandez
Posts: 8
Joined: 2021-03-26 19:33

Re: AppGiniHelper InlineDetailView Plugin 20191219-01 does not work with AppGini 5.94

Post by ahernandez » 2021-03-30 11:58

Thanks Jan, Inline-DV Plugin is working, but buttons to expand and collapse still do not work.
Kind regards.

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

Re: AppGiniHelper InlineDetailView Plugin 20191219-01 does not work with AppGini 5.94

Post by jsetzer » 2021-03-30 12:09

Sorry, you are right. Gonna fix it and provide another update later.
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: 1807
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: AppGiniHelper InlineDetailView Plugin 20191219-01 does not work with AppGini 5.94

Post by jsetzer » 2021-03-30 12:34

@ahernandez: I have sent a download link to you. Sorry for inconvenience!
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: 1807
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: AppGiniHelper InlineDetailView Plugin 20191219-01 does not work with AppGini 5.94

Post by jsetzer » 2021-03-30 12:35

@all inline-dv customers:

If anyone else is facing the same problems with Inline-DV Plugin and AppGini 5.94 please contact me and you will receive a download link for the patched version.

Email to: [email protected]
Please send your Inline-DV-Order-Number and the email address you have used on purchase

I'm sorry for any inconvenience.
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

ahernandez
Posts: 8
Joined: 2021-03-26 19:33

Re: AppGiniHelper InlineDetailView Plugin 20191219-01 does not work with AppGini 5.94

Post by ahernandez » 2021-04-01 11:52

Thanks Jan, everything working now.
Kind regards.

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

Re: AppGiniHelper InlineDetailView Plugin 20191219-01 does not work with AppGini 5.94

Post by jsetzer » 2021-07-09 07:29

An incompablity bug in AppGini Helper Inline Detail View Plugin related to AppGini Version 5.97 was reported: The detail view did not render inside but below the table view due to a change of element names/ids in AppGini's generated code, lately.

The bug has been fixed today and there will be a new version, compatible with 5.97 this month.

Stay tuned, I am going to inform you as soon as the new version will be available for download in the store.

During your "1-year free updates" period, you can download the new version for free via the fastspring download-link that you received by email when you placed your order.

The error occurs in the following versions:

AppGini Helper Inline Detail View Plugin
  • 2019/12
  • 2021/10
AppGini
  • > 5.94
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

ahernandez
Posts: 8
Joined: 2021-03-26 19:33

Re: AppGiniHelper InlineDetailView Plugin 20191219-01 does not work with AppGini 5.94

Post by ahernandez » 2021-10-26 11:57

Hi Jan.
Install the new version that is available for download:

AppGini Helper "Inline Detail-View" Plugin
Version 2021.07.29
Created 29.07.2021 15:49:56
© Copyright 2016-2021 bizzworxx.de - Software & IT-Beratung Wirt. Inf. BA Jan Setzer. All rights reserved.

It does not work with appGini version 5.97. It is the behavior initially described in detail.

Then install the patch:

Thank you for requesting AppGiniHelper-Inline-DV-Plugin-Patch-02-for-AppGini-5.94.
To download AppGiniHelper-Inline-DV-Plugin-Patch-02-for-AppGini-5.94 v. 2021/03/30 click the link below:
—
AppGiniHelper-Inline-DV-Plugin-Patch-02-for-AppGini-5.94 Inline-DV-Plugin-for-AppGini-5.94-002.zip (1.60 kB) ~ expire in 1 day – 31/03/2021 13:34
—

30/03/2021 13:34


And it works, but the loading message remains.
When the Pluginis not used, the message loading is displayed at the beginning and when it finishes loading it disappears.



Can you please fix the new version that is available for download in the store, including the modification so that the loading message does not show when it finishes loading?
Attachments
animaciónCargandoPermanece.png
animaciónCargandoPermanece.png (20.4 KiB) Viewed 3776 times

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

Re: AppGiniHelper InlineDetailView Plugin 20191219-01 does not work with AppGini 5.94

Post by jsetzer » 2021-10-26 12:20

Hi, thanks for the detailed report.

Can you please check for any errors in console, first, which may break script execution.

Then, please send your ordernumber to [email protected]. Gonna send a download link for latest version to you.
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

ahernandez
Posts: 8
Joined: 2021-03-26 19:33

Re: AppGiniHelper InlineDetailView Plugin 20191219-01 does not work with AppGini 5.94

Post by ahernandez » 2021-10-27 11:46

Hi Jan, there is another issue:
When a user has only read privileges and the, because the detail view starts for a new record and the user cannot add a new one, it shows the message: Sorry! You don't have permission to access this table. Please contact the admin.
mensajeNoHayAcceso.png
mensajeNoHayAcceso.png (26.45 KiB) Viewed 3760 times
How can the message be avoided in tables that the user only has read access to?

In native Appgini it is possible with the option checked: "Display detail view in a separate page'

Gracias
Saludos cordiales.

ahernandez
Posts: 8
Joined: 2021-03-26 19:33

Re: AppGiniHelper InlineDetailView Plugin 20191219-01 does not work with AppGini 5.94

Post by ahernandez » 2021-10-28 11:27

jsetzer wrote:
2021-10-26 12:20
Hi, thanks for the detailed report.

Can you please check for any errors in console, first, which may break script execution.

Then, please send your ordernumber to [email protected]. Gonna send a download link for latest version to you.
Hello Jan. I attach the image of the console.
fallaCargando.png
fallaCargando.png (155.96 KiB) Viewed 3734 times
Hello Jan. I attach the image of the console.

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

Re: AppGiniHelper InlineDetailView Plugin 20191219-01 does not work with AppGini 5.94

Post by jsetzer » 2021-10-28 13:31

As mentioned before (above), please send necessary info to me. Then I can send a download link to you.
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: 1807
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: AppGiniHelper InlineDetailView Plugin 20191219-01 does not work with AppGini 5.94

Post by jsetzer » 2021-11-01 14:31

(1) AppGini 5.97 compatibility
Thanks for sending me your order information. I have sent a download link to you today.

(2) Problem with permissions
After enabling Inline-DV for a table, check hooks/TABLENAME.php file. In TABLENAME_init()-function you will the merged plugin-code. Now, using PHP, check insert-permissions for current user. If user is not allowed to insert, set $options->SeparateDV = 1; instead of $options->SeparateDV = 0;. That should do the trick.
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

ahernandez
Posts: 8
Joined: 2021-03-26 19:33

Re: AppGiniHelper InlineDetailView Plugin 20191219-01 does not work with AppGini 5.94

Post by ahernandez » 2021-11-02 00:42

Hi Jan, the plug in already works, thank you very much.

Apply the alterative that you told me for the security problem, SeparateDV is set to 1 prior to the initialization of the plug-in, but the message has already been sent when it reaches this initialization.

Thanks again, best regards.
Attachments
separateDVSet1_1.png
separateDVSet1_1.png (74.34 KiB) Viewed 3660 times
separateDVSet1.png
separateDVSet1.png (66.36 KiB) Viewed 3660 times

ahernandez
Posts: 8
Joined: 2021-03-26 19:33

Re: AppGiniHelper InlineDetailView Plugin 20191219-01 does not work with AppGini 5.94

Post by ahernandez » 2021-11-02 01:05

Hello again Jan, another option, if the user can insert into the table the plugin works, if he does not have the privilege, the plugin does not work.

Best regards.
Attachments
separateDVSet1_2.png
separateDVSet1_2.png (29.92 KiB) Viewed 3658 times
separateDVSet1_3.png
separateDVSet1_3.png (24.42 KiB) Viewed 3658 times

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

Re: AppGiniHelper InlineDetailView Plugin 20191219-01 does not work with AppGini 5.94

Post by jsetzer » 2021-11-02 05:33

I am going to check the "no-insert-permission" in a testing project the next days. Stay tuned.
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: 1807
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: AppGiniHelper InlineDetailView Plugin 20191219-01 does not work with AppGini 5.94

Post by jsetzer » 2021-11-03 06:45

(2) Problem with permissions
  1. In hooks/TABLENAME.php find the TABLENAME_init() function.
    Replace TABLENAME by your table name.
    The Inline-DV Plugin has inserted some code there.
  2. Keep the original code inserted by the plugin, then insert next three lines before returning TRUE.
  3. Replace TABLENAME by your table name.

Code: Select all

  $canInsert = getTablePermissions("TABLENAME")["insert"];
  $hasRecord = isset($_REQUEST["SelectedID"]);
  if (!$canInsert && !$hasRecord) $options->SeparateDV = 1;
The init function should look like this now:

Code: Select all

function TABLENAME_init(&$options, $memberInfo, &$args)
{
	/* Inserted by Inline-Detail-View Plugin on 2021-11-02 08:11:53 */
	// DO NOT DELETE THIS LINE
	require_once("plugins/inline-dv/InlineDV.php");
	$options->SeparateDV = 0;
	/* End of Inline-Detail-View Plugin code */
	
	// insert next three lines
	$canInsert = getTablePermissions("TABLENAME")["insert"];
	$hasRecord = isset($_REQUEST["SelectedID"]);
	if (!$canInsert && !$hasRecord) $options->SeparateDV = 1;

	return TRUE;
}
This works for me if current user's group does not habe insert permission. Without that change, there will be a red alert at the bottom. With this change, there is no alert any longer.
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

Post Reply