Hello Steve,
Could you help me ? I need to have a default action according to the authentification and the username.
I tried several things with index.php and DelegateApplication.php without success ?
Thank you
Jean
Default action according to username
4 posts
• Page 1 of 1
Default action according to usernameHello Steve,
Could you help me ? I need to have a default action according to the authentification and the username. I tried several things with index.php and DelegateApplication.php without success ? Thank you Jean
Eventually I found the solution with the after_action_new (http://xataface.com/documentation/how-to/after_action_triggers)
So in tables/demandes/demandes_particuliere.php I added :
It works fine! Jean
Hi Jean,
Sorry.. must have missed this post. Your solution looks good for redirecting after adding a new record. The next release of Dataface will include a triggerf called "beforeHandleRequest" which will allow full control over things like default actions.... The current version leaves you to your own devices to achieve this sort of thing. One possibility is to add some code to your getPreferences method to check for -action, and change it to a default depending on the user. e.g.
-Steve
4 posts
• Page 1 of 1
Who is onlineUsers browsing this forum: No registered users and 32 guests |