Search found 7 matches

by Aya Adel
2016-09-25 11:50
Forum: Getting Started
Topic: Timestamp / Symbols in texte after csv import
Replies: 7
Views: 3261

Re: Timestamp / Symbols in texte after csv import

1. Make sure that the CSV file is encoded as utf-8 Unicode to accept the special characters like that: function tableName_dv($selectedID, $memberInfo, &$html, &$args){ /* if this is the print preview, don't modify the detail view */ if(isset($_REQUEST['dvprint_x'])) return; ob_start(); ?> <script> $...
by Aya Adel
2016-09-01 12:15
Forum: Advanced Customizations > Hooks
Topic: Leave pop-up box on save
Replies: 19
Views: 7640

Re: Leave pop-up box on save

Add the below code to the hooks/tablename-dv.js (where tablename is the name of the child table). This should do the job. $j(function(){ if(($j('input[name=Embedded]').val()==1)){ $j('form').submit(function(){ window.parent.jQuery('.modal').modal('hide'); } }) })
by Aya Adel
2016-09-01 10:03
Forum: Feature Suggestions
Topic: A Random DEFAULT value
Replies: 1
Views: 1430

Re: A Random DEFAULT value

Add this code to the hooks/tablename-dv.js put this code:

Code: Select all

$j(function(){
    var x =$j('#tableID').val(); 
        if (!x){   
            var rand = Math.floor(Math.random()*100);  
            $j('#elementThatWantToPutRandomValue').val(rand);
        }
});
by Aya Adel
2016-08-29 08:11
Forum: Advanced Customizations > Others
Topic: inherit access permission and also advanced lookup option
Replies: 1
Views: 1391

Re: inherit access permission and also advanced lookup option

I think those tutorials might help you find what you are looking for: http://bigprof.com/appgini/screencasts/changing-access-permissions-for-anonymous-users http://bigprof.com/appgini/screencasts/managing-access-permissions-for-logged-in-users http://bigprof.com/appgini/screencasts/appgini-lookup-fi...
by Aya Adel
2016-08-13 15:14
Forum: Getting Started
Topic: Filter by Date Range
Replies: 8
Views: 6841

Re: Filter by Date Range

Add the below code to the table file you wish to add a date range to: function orders_init(&$options, $memberInfo, &$args){ $options->FilterPage = 'hooks/orders_filter.php'; return TRUE; } ... then the file filter will be displayed as follows: <link rel="stylesheet" href="resources/bootstrap-datepic...
by Aya Adel
2016-08-10 21:23
Forum: Getting Started
Topic: Date Fields improvements
Replies: 18
Views: 10873

Re: Date Fields improvements

I noticed 2 annoying thngs with date Fields. First, it allows you to put an invalid date (fr example, 30 February) and then nothing is saved . If date is invalid shouldn't validate the form. Second, could be interesting to have date Fields in the form of a simple edit to write 11/07/2016 with the c...
by Aya Adel
2016-08-08 10:39
Forum: Advanced Customizations > Hooks
Topic: Sending an Email Notification from a batch_action
Replies: 1
Views: 15810

Re: Sending an Email Notification from a batch_action

The error is most probably caused by writing php code in JavaScript, as PHP ​​run​​s​ ​on the ​server-side​,​ while JavaScript runs on client side only. What you can do is to write the PHP code in a file, and call it using JavaScript. This link shows an example on how to solve this issue: https://bi...