1.0 beta1: inline AJAX editing

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

1.0 beta1: inline AJAX editing

Postby ststoddard » Thu Apr 03, 2008 2:32 pm

I may be chomping at the bit here, but I am very interested in trying out the inline editing feature mentioned in the manual. Unfortunately, I can't find documentation detailing how to make it work?

Thanks.

Steve
S. T. Stoddard
ststoddard
 
Posts: 56
Joined: Mon Nov 05, 2007 4:10 pm
Location: Davis, CA

Postby shannah » Tue Apr 08, 2008 8:19 am

Xataface 1.0 adds some inline ajax editing features. If this is enabled, then any call to $record->htmlValue() will produce output that can be edited inline.

The view tab, for example, will then allow you to edit a value by just clicking on it.

This can be enabled for the list tab also with some tweaks.

To enable inline ajax editing, add the following to the beginning of your conf.ini file:

Code: Select all
usage_mode=edit



If you want a particular field to be editable in list view, you have to disable its link ability (normally when you click on a value it just takes you to the record's view tab). You can do this be adding the following directive to that field's entry in the fields.ini file:

Code: Select all
noLinkFromListView=1


Best regards

Steve
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby ststoddard » Wed Apr 09, 2008 1:08 pm

Cool! Thanks.

A caveat? It doesn't work if one is browsing a list of related records.
S. T. Stoddard
ststoddard
 
Posts: 56
Joined: Mon Nov 05, 2007 4:10 pm
Location: Davis, CA

Postby shannah » Wed Apr 09, 2008 5:12 pm

Ya.. integration of this feature is a little spotty at the moment. One key thing is that if you add your own calls to $record->htmlValue('..') the resulting content will be automatically editable using AJAX.

Currently the related lists are generated differently than standard result lists, which is why some things haven't been added to them yet. It would be a logical feature to add though.
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 12 guests

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