Search found 728 matches

Go to advanced search

by a.gneady
Yesterday, 17:14
Forum: Getting Started
Topic: Security Issue! Missing argument 2 for sql()
Replies: 6
Views: 56

Re: Security Issue! Missing argument 2 for sql()

Ahmed, thanks for the update. So, if I understand correctly, this error was due to code placed in a hook file rather than code generated by AppGini, right? Regarding the CAST statement where you pinpointed the htmlspecialchars() error, I guess you need to specify the encoding after "CHAR(200)&q...
by a.gneady
15 Jan 2017, 14:06
Forum: Getting Started
Topic: Security Issue! Missing argument 2 for sql()
Replies: 6
Views: 56

Re: Security Issue! Missing argument 2 for sql()

Hmm ... I tried looking in the generated code and couldn't find anything that would cause this error either in incFunctions or in any other files. Would you send me the file generated on your side to inspect it please? And also the exact error message if it contains any further details. To clarify, ...
by a.gneady
29 Sep 2016, 12:21
Forum: Getting Started
Topic: Session timeout
Replies: 2
Views: 183

Re: Session timeout

please try this and kindly confirm if it fixes the issue to implement it in future releases: Open the generated lib.php file in a text editor and find this line: @ini_set('session.serialize_handler', 'php'); Add the following code above it: @ini_set('session.gc_maxlifetime', 28800); @session_set_coo...
by a.gneady
14 Sep 2016, 14:04
Forum: Getting Started
Topic: Set Lookup field to open parent on Table View
Replies: 15
Views: 549

Re: Set Lookup field to open parent on Table View

Is this what you mean?
2016-09-14_1601.png
2016-09-14_1601.png (22.67 KiB) Viewed 539 times
by a.gneady
18 Aug 2016, 15:47
Forum: Bugs/annoyances
Topic: Bug?
Replies: 8
Views: 398

Re: Bug?

The solution is to find this line in incCommon.php: if(count($table_group_name) == 1 && $table_group_name[0] == 'None') $table_group_name[0] = $Translation['select a table']; and change it to: if((count($table_group_name) == 1 && $table_group_name[0] == 'None') || count($table_group_...
by a.gneady
08 Aug 2016, 08:05
Forum: Feature Suggestions
Topic: AG app - check fields
Replies: 1
Views: 306

Re: AG app - check fields

Thanks for your feedback. I added this to our to-do list for future releases.
by a.gneady
08 Aug 2016, 08:01
Forum: Bugs/annoyances
Topic: annoyance - field typing
Replies: 5
Views: 625

Re: annoyance - field typing

Thanks a lot for your valuable feedback ... I've added your suggestion to our to-do list for future releases.
by a.gneady
08 Aug 2016, 08:00
Forum: Bugs/annoyances
Topic: annoyance - table view header alignment
Replies: 1
Views: 311

Re: annoyance - table view header alignment

I'd consider this in future releases. Thanks for your suggestion.
by a.gneady
08 Aug 2016, 07:56
Forum: Feature Suggestions
Topic: AG app - disabled fields
Replies: 2
Views: 344

Re: AG app - disabled fields

Hmm .. you could add javascript code to do this in the hooks/tablename-dv.js file (where tablename is the name of the concerned table): $j(function(){ $j('#fieldname').prop('disabled', true); }) Including this as a field property in AppGini would add more complexity to the UI ... Is there a really s...
by a.gneady
20 Jul 2016, 21:59
Forum: Bugs/annoyances
Topic: Bug?
Replies: 8
Views: 398

Re: Bug?

Hello Ron,

If you're still experiencing this issue, please send me the AXP project file through the support form at https://bigprof.com/appgini/support-request
by a.gneady
20 Jul 2016, 03:25
Forum: Advanced Customizations > Hooks
Topic: Autoincrease ID field by 1
Replies: 17
Views: 1226

Re: Autoincrease ID field by 1

Try this code in the Grupe_dv function: if($selectedID) return; $max_id = intval(sqlValue("select max(SifraGrupe) from Grupe")) + 1; $html .= '<script>$j( function() {'; $html .= ' console.log("max_id: ' . $max_id . '")'; $html .= ' $j('#SifraGrupe').val("' . $max_id . '&quo...
by a.gneady
30 Jun 2016, 14:38
Forum: Feature Suggestions
Topic: next release / beta
Replies: 5
Views: 1083

Re: next release / beta

We released AppGini 5.51 2 days ago. Did you get a notification of the update?
by a.gneady
23 Jun 2016, 21:32
Forum: Advanced Customizations > Hooks
Topic: Email notification with actual data
Replies: 21
Views: 1613

Re: Email notification with actual data

You should use something like this: $lookup_value = sqlValue("select lookup_field_name from parent_table where id='{$data['selectedID']}'"); You should replace names in the above query with actual parent lookup field name, parent table name and parent table primary key name. The actual loo...
by a.gneady
23 Jun 2016, 21:23
Forum: Advanced Customizations > Others
Topic: Build web application with SQL server
Replies: 5
Views: 400

Re: Build web application with SQL server

You could try editing the generated db.php file to add mssql or odbc functions to it .. though we haven't thoroughly tested this so far.
by a.gneady
23 Jun 2016, 21:21
Forum: Feature Suggestions
Topic: next release / beta
Replies: 5
Views: 1083

Re: next release / beta

We're currently testing AppGini 5.51 beta and will release it once all testing is done. Thanks for your patience :)
by a.gneady
23 Jun 2016, 21:17
Forum: Bugs/annoyances
Topic: php error flooding logs
Replies: 2
Views: 533

Re: php error flooding logs

Thanks for the heads-up :)
AppGini doesn't make use of $HTTP_RAW_POST_DATA so it's safe to disable it.
by a.gneady
09 Jun 2016, 12:22
Forum: Advanced Customizations > Hooks
Topic: Autoincrease ID field by 1
Replies: 17
Views: 1226

Re: Autoincrease ID field by 1

Let's make a quick test to debug this: On the detail view page of the Grupe table, click F12 to open the inspector window. Go to the console, and type this command (then press Enter or click 'Run' to execute it):

Code: Select all

$j('#SifraGrupe').val(100);

Does this place a value of 100 inside the ID field?
by a.gneady
06 Jun 2016, 22:32
Forum: Bugs/annoyances
Topic: Session Logins
Replies: 1
Views: 671

Re: Session Logins

Hello Salem. Sorry for the long delay. I couldn't reproduce this issue using the info you mentioned. Are there any specific details that can help reproduce this?
by a.gneady
28 May 2016, 15:16
Forum: Getting Started
Topic: Howto page that dont saves data
Replies: 2
Views: 336

Re: Howto page that dont saves data

You can use the login_ok hook to control which page the user sees after login .. please refer to: https://bigprof.com/appgini/help/advanced-topics/hooks/global-hooks#login_ok For the page you describe, you can create a new page to implement this and you can integrate it with your AppGini application...
by a.gneady
28 May 2016, 15:11
Forum: Getting Started
Topic: First doubts
Replies: 3
Views: 311

Re: First doubts

You'd need to add some custom code to implement these ... AppGini provides a mechanism for extending your application named 'hooks' ... For more info: Hooks documentation: https://bigprof.com/appgini/help/advanced-topics/hooks/ AppGini customization course on Udemy (not free but has some lessons tha...
by a.gneady
26 May 2016, 22:26
Forum: Advanced Customizations > Hooks
Topic: Autoincrease ID field by 1
Replies: 17
Views: 1226

Re: Autoincrease ID field by 1

Okay .. in that case, the field should be editable ... then in the tablename_dv hook (where tablename is the name of the concerned table), you should check if this is a new record ($selectedID is false) and if so, retrieve the maximum value of the primary key field from the table, add one to it, and...
by a.gneady
26 May 2016, 22:18
Forum: Advanced Customizations > Others
Topic: Filter the data displayed through sql statement
Replies: 7
Views: 716

Re: Filter the data displayed through sql statement

Well ... if you want to prevent a specific user from opening the detail view of any record in a specific table, you could add something like this to the tablename_init hook (where tablename is the name of the concerned table): $restricted = array('daniele', 'some_other_user', ...); if(in_array($memb...
by a.gneady
26 May 2016, 01:04
Forum: Advanced Customizations > Others
Topic: Filter the data displayed through sql statement
Replies: 7
Views: 716

Re: Filter the data displayed through sql statement

The user 'daniele' belongs to a group who view all of tablename.php (allowWiew = 3) but should see some specific filtered data with sql statement. Hmm ... before attempting to find a patch, may I ask, if this is a single user, why not move him to a more restricted group that can't access that table...
by a.gneady
24 May 2016, 19:26
Forum: Advanced Customizations > Hooks
Topic: Autoincrease ID field by 1
Replies: 17
Views: 1226

Re: Autoincrease ID field by 1

All you need to do is set the primary key field to auto-increment in AppGini, then regenerate your code.
by a.gneady
24 May 2016, 19:24
Forum: Advanced Customizations > Others
Topic: Filter the data displayed through sql statement
Replies: 7
Views: 716

Re: Filter the data displayed through sql statement

When editing the where part of the query, you should do it through hooks rather than directly editing the tablename_view.php file. This prevents AppGini from overwriting your changes if you regenerate your code. So, in the hooks/tablename.php file (where tablename is the name of the concerned table)...

Go to advanced search