Page 1 of 1

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

Posted: 2021-03-29 13:39
by ahernandez
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.

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

Posted: 2021-03-29 14:12
by jsetzer
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.

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

Posted: 2021-03-29 14:51
by jsetzer
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.

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

Posted: 2021-03-30 11:58
by ahernandez
Thanks Jan, Inline-DV Plugin is working, but buttons to expand and collapse still do not work.
Kind regards.

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

Posted: 2021-03-30 12:09
by jsetzer
Sorry, you are right. Gonna fix it and provide another update later.

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

Posted: 2021-03-30 12:34
by jsetzer
@ahernandez: I have sent a download link to you. Sorry for inconvenience!

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

Posted: 2021-03-30 12:35
by jsetzer
@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.

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

Posted: 2021-04-01 11:52
by ahernandez
Thanks Jan, everything working now.
Kind regards.

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

Posted: 2021-07-09 07:29
by jsetzer
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

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

Posted: 2021-10-26 11:57
by ahernandez
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?

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

Posted: 2021-10-26 12:20
by jsetzer
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.

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

Posted: 2021-10-27 11:46
by ahernandez
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 3892 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.

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

Posted: 2021-10-28 11:27
by ahernandez
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 3866 times
Hello Jan. I attach the image of the console.

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

Posted: 2021-10-28 13:31
by jsetzer
As mentioned before (above), please send necessary info to me. Then I can send a download link to you.

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

Posted: 2021-11-01 14:31
by jsetzer
(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.

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

Posted: 2021-11-02 00:42
by ahernandez
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.

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

Posted: 2021-11-02 01:05
by ahernandez
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.

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

Posted: 2021-11-02 05:33
by jsetzer
I am going to check the "no-insert-permission" in a testing project the next days. Stay tuned.

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

Posted: 2021-11-03 06:45
by jsetzer
(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.