Wrong Message

Discussions related to customizing hooks. Hooks are documented at http://bigprof.com/appgini/help/advanced-topics/hooks/
Post Reply
AhmedBR
AppGini Super Hero
AppGini Super Hero
Posts: 327
Joined: 2013-09-19 10:23

Wrong Message

Post by AhmedBR » 2013-10-15 14:08

I am using the following code from the examples here to restrict the editing, and it is working.

Code: Select all

function tablename_before_update(&$data, $memberInfo, &$args){

// get the creation date of the record
$creationDate=sqlValue("select dateAdded from membership_userrecords
where tableName='tablename' and pkValue='{$data['selectedID']}'");
if the record is older than 30 days, deny changes
if($creationDate < strtotime('30 days ago')) return FALSE;
return TRUE;
}
BUT although the changes do not take place, the user still GET THIS MESSAGE:
The changes have been saved successfully.

How can we change this message to say CHANGES NOT SAVED in this case?
AppGini 22.14 - xampp 3.3.0 - PHP 7.4.30 - Summary reports - Calendar - Mass update - Messages - AppGiniHelper

alex_evil
Posts: 1
Joined: 2013-03-07 19:45

Re: Wrong Message

Post by alex_evil » 2013-10-16 21:46

I have the same unsolved issue.

User avatar
a.gneady
Site Admin
Posts: 1281
Joined: 2012-09-27 14:46
Contact:

Re: Wrong Message

Post by a.gneady » 2013-10-28 18:08

This has been fixed in the final release of AppGini 5.20 ... Please give it a try and let me know if anything goes wrong.
:idea: AppGini plugins to add more power to your apps:
  • DataTalk is an innovative AppGini plugin based on ChatGPT that allows you to interact with your AppGini database using natural language questions, without writing any SQL. Check the demo video
  • Mass Update plugin: Update multiple records at once and improve your workflow efficiency.
  • Check our other plugins and get a generous discount of up to 30% when buying 2 or more plugins.

AhmedBR
AppGini Super Hero
AppGini Super Hero
Posts: 327
Joined: 2013-09-19 10:23

Re: Wrong Message

Post by AhmedBR » 2013-10-29 01:29

Thanks, tested and working well in 5.20 final

But Just wondering if it is possible to do this fix (I mean which file I should change to get it to work in 5.12 ) to get it to work in 5.12?
We have developed a BIG application with 5.12 and the users prefer the feel and looks of 5.12 theme (so do not touch a wining team).

Thanks
AppGini 22.14 - xampp 3.3.0 - PHP 7.4.30 - Summary reports - Calendar - Mass update - Messages - AppGiniHelper

User avatar
a.gneady
Site Admin
Posts: 1281
Joined: 2012-09-27 14:46
Contact:

Re: Wrong Message

Post by a.gneady » 2013-11-17 23:48

Sorry for the delay .. It's hard to answer this question unfortunately ... There is a huge list of code changes between 5.12 and 5.20/5.21 ... the fix for this specific issue was built upon other code changes so it would be really hard to trace them all .. Sorry for the disappointment :(
:idea: AppGini plugins to add more power to your apps:
  • DataTalk is an innovative AppGini plugin based on ChatGPT that allows you to interact with your AppGini database using natural language questions, without writing any SQL. Check the demo video
  • Mass Update plugin: Update multiple records at once and improve your workflow efficiency.
  • Check our other plugins and get a generous discount of up to 30% when buying 2 or more plugins.

AhmedBR
AppGini Super Hero
AppGini Super Hero
Posts: 327
Joined: 2013-09-19 10:23

Re: Wrong Message

Post by AhmedBR » 2013-11-18 00:38

No worries, I was expecting something like that.

I did some changes to the current css to suit our needs.

Thanks
AppGini 22.14 - xampp 3.3.0 - PHP 7.4.30 - Summary reports - Calendar - Mass update - Messages - AppGiniHelper

Post Reply