Page 1 of 1

1.0 beta1: inline AJAX editing

PostPosted: Thu Apr 03, 2008 2:32 pm
by ststoddard
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

PostPosted: Tue Apr 08, 2008 8:19 am
by shannah
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

PostPosted: Wed Apr 09, 2008 1:08 pm
by ststoddard
Cool! Thanks.

A caveat? It doesn't work if one is browsing a list of related records.

PostPosted: Wed Apr 09, 2008 5:12 pm
by shannah
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.