DataGrid

A place for users and developers of the Xataface to discuss and receive support.

DataGrid

Postby digital1 » Thu Nov 18, 2010 9:28 am

I have installed DataGrid following these instructions as noted here: http://xataface.com/wiki/DataGrid

I am able to get the grid to show up for my tables successfully, but whenever I try to edit a record, it just stays red and does not update.


Here is the code in my permissions.ini file:
Code: Select all
[ADMIN]
    DataGrid:view_grid=1
    DataGrid:update=1



Here is the code in my Application Delegate:
Code: Select all
function getPermissions(&$record){
         $auth =& Dataface_AuthenticationTool::getInstance();
         $user =& $auth->getLoggedInUser();
         $role = $user->val('role');
       
        if ( !isset($user) ) return Dataface_PermissionsTool::NO_ACCESS();
             // if the user is null then nobody is logged in... no access.
             // This will force a login prompt.
             
          if ($user->val('role') == 'ADMIN' ){
        return Dataface_PermissionsTool::getRolePermissions('ADMIN'); }   
             
         else{
         return Dataface_PermissionsTool::getRolePermissions($role);
             // Returns all of the permissions for the user's current role.
             }
      }
     





Am I missing something here?
digital1
 
Posts: 24
Joined: Wed Nov 03, 2010 9:40 am

Re: DataGrid

Postby shannah » Thu Nov 18, 2010 9:55 am

check for javascript errors and errors in your server log.
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: DataGrid

Postby digital1 » Thu Nov 18, 2010 9:57 am

Thanks for the fast response Steve. Much appreciated. Upon closer inspection I noticed that the save was occurring, but when a record is saved, the red tick mark in the corner doesn't go away. Is there somewhere I can check for that? Any tips on how to rectify that? I am on the newest version 1.2.6 of Xataface btw.
digital1
 
Posts: 24
Joined: Wed Nov 03, 2010 9:40 am

Re: DataGrid

Postby digital1 » Thu Nov 18, 2010 2:16 pm

Hey Steve,

I was able to get this handled. I was wondering if there was a way to increase the 5 second limit to something a little higher. I hunted around in the JS and didn't see anything apparent that jumped out at me. Maybe you have a suggestion (?) Thanks in advance!
digital1
 
Posts: 24
Joined: Wed Nov 03, 2010 9:40 am

Re: DataGrid

Postby shannah » Thu Nov 18, 2010 2:28 pm

See the setInterval call in this template:
http://weblite.ca/svn/dataface/modules/ ... /grid.html
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: DataGrid

Postby digital1 » Mon Nov 22, 2010 10:05 am

Thanks Steve! worked like a charm!
digital1
 
Posts: 24
Joined: Wed Nov 03, 2010 9:40 am


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 20 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved