Business Object Group

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
denisv
Posts: 253
Joined: Thu Jan 19, 2006 4:36 pm
Location: Ireland
Contact:

Business Object Group

Post by denisv »

If I have a business object group that contains about 20 business objects with the necessary common attributes but only 10 of them have additional attributes, is it possible when selecting one of the objects that don't have additional attributes, that instead of being presented with the business object form it simply takes the value and returns to the main form that the create new object was selected from ?

What I am trying to do is present the user with a selection of values some of which require additional information others do not.
aware_support2
Posts: 595
Joined: Sun Apr 24, 2005 2:22 am
Contact:

Post by aware_support2 »

Do you mean that an instance of one of those objects without the additional attributes should be created automatically after the user selects the appropriate object type from the list? If so, how the common attributes (or, for that matter, any other attributes that the particular object may have) would be initialised: with default values or just stay undefined?

I would appreciate it if you can give some more details about the scenario you are trying to implement. This is to ensure I understand the situation correctly before making any suggestions.
Aware IM Support Team
denisv
Posts: 253
Joined: Thu Jan 19, 2006 4:36 pm
Location: Ireland
Contact:

Post by denisv »

You have pretty much got what I want. On those business objects that have no requirement for additional attributes, the common ones are:

a) An attribute with an initial value that does not need to be changed
b) An attribute of other business object (the one that the request is coming from)
c) An attribute of shortcut for one attribute in (b)

So there is no actual input needed.
aware_support2
Posts: 595
Joined: Sun Apr 24, 2005 2:22 am
Contact:

Post by aware_support2 »

Let me mention first that there is an alternative to the generic Create New button for creating a related object. This involves adding an operation to the object form (that can be displayed above or below the form) to start a process that creates a related object. The advantage is that you can specify a more meaningful name for the operation compared to the generic Create New button.

For example, in the Library sample application the form for object Member displays operation 'New contact note', which starts process CreateMemberContactNote containing a single rule:
ENTER NEW ContactNote WITH ContactNote.Correspondent=Member
which displays a form for the new contact note to the user.

You can use this technique to create related objects with or without displaying the new object form to the users. You need to define two more groups in addition to the one you have now. One of the new groups (say Group2) will contain a subset of objects in the main group that require their form to be displayed. You then add a process and an operation as described above for the user to create one of these objects. Since the ENTER NEW action will refer to the group name, the system will show the object selection dialog where the user will select the desired object type (just as it happens now when the user clicks the Create New button).

The other new group (say Group3) will contain a subset of objects in the main group that do not require a form to be displayed. You then add another process and another operation as described above, except that you need to use action CREATE instead of ENTER NEW, which creates an object without displaying a form to the user.

In this solution, however, the 'CREATE Group3' bit will not work at the moment because the CREATE action currently does not accept a group name - only an object name. We will remove this limitation in version 1.6, which is due for release within the next few weeks.

You can go ahead and test the described solution using ENTER NEW in both cases for now. When version 1.6 is released you would simply replace ENTER NEW with CREATE in the second case.
Aware IM Support Team
Post Reply