Making Tables Inline Editable in AwareIM
Inline editing objects is a nice feature. The only limitation is that the current version of AwareIM (2.2 at the time of this writing) has no direct way to enable this for top level objects. But with some tweaking it can be accomplished easily as show in the following screen.
- I've created 2 Business Objects called Object1 and Object2 as usually.
- The magic comes from a 3rd Object called InlineEdit. This Object contains a dummy field and the fields Object1 an Object2. Object1|2 are defined as PEER and Multiple Allowed.
- InlineEdit contains 2 forms. Again Object1 and Object2 containing only 1 field with the respective object. This is the place where inline editing is activated.
- Because Object1|2 don't know anything about their parent it's up to us to tell the parent about its children. (And I don't want to tell the children about their parent because this should work without changing the database structure when used on existing solutions).
- A rule in Object1|2 says
FIND InlineEdit WHERE InlineEdit.Dummy=1
INSERT Object1 IN InlineEdit.Object1
InlineEdit contains 1 record that gets created by a initailization process. And all added Object1|2 get added to this one. - Since the standard "Delete" operation would only remove the items from the list I've created a process DeleteObject1|2 that's responsible for actually deleting the objects.
- Editing Object1|2 is done by the process EditObject1|2 that contains
FIND InlineEdit WHERE InlineEdit.Dummy=1
VIEW InlineEdit USING Object1
and brings up the form defined in object InlineEdit.
A .bsv file of the above is available here.
- Printer-friendly version
- Login to post comments

In case you have lots of existing Object1 instances and you want to make them inline editable then simply start a process that executes
and Object1's rule will add every instance as child to InlindeEdit