Rules triggering through the references BUG?

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
Platinum_ar
Posts: 92
Joined: Thu Jan 10, 2013 10:50 pm

Rules triggering through the references BUG?

Post by Platinum_ar »

I have 3 BO
Document
DocumentDivision
Project

And references as follows:
Document ---- DocumentDivision (Owned by)
DocumentDivision ----- Project (Peer)

In Project BO I have attribute calculate based on related DocumentDivision objects.

When I delete Document (and DocumentDivision automatically) rules in Project are not evaluating so values in calculated attributes are obsolete.

Is this how it works in AwareIM?
I noticed that normally AwareIM evaluate rules in all related BO.
rocketman
Posts: 1254
Joined: Fri Jan 02, 2009 11:22 pm
Location: Preston UK
Contact:

Post by rocketman »

If document is owned by documentdivision, documentdivision won't get deleted automatically when you delete document. It would be the other way round. Delete documentdivision and it will automatically delete document. So maybe everything is working correctly. It's just that you haven't deleted what you thought you had deleted.

Apologies if I have misunderstood you
Rocketman

V8.7 Developer Edition. Server 2016 Standard edition. MySql 5.5
Platinum_ar
Posts: 92
Joined: Thu Jan 10, 2013 10:50 pm

Post by Platinum_ar »

Thank you but, indeed you didn't understand me,
DocumentDivision objects are owned by Document and they are deleted when Document is.
rocketman
Posts: 1254
Joined: Fri Jan 02, 2009 11:22 pm
Location: Preston UK
Contact:

Post by rocketman »

When does this project rule get calculated, on form initialisation, dynamically or determined automatically ( in the advanced tab
Rocketman

V8.7 Developer Edition. Server 2016 Standard edition. MySql 5.5
Platinum_ar
Posts: 92
Joined: Thu Jan 10, 2013 10:50 pm

Post by Platinum_ar »

determined automatically and Use rule in dynamic re-calculation forms
rocketman
Posts: 1254
Joined: Fri Jan 02, 2009 11:22 pm
Location: Preston UK
Contact:

Post by rocketman »

Are you deleting Document from within a Project form (table of items?) or separately

IF from within a Project form You could try starting a process when the save button is clicked ("Buttons")
which will recalculate the referenced items on the fly

something like SUM DocumentDivision.attribute WHERE (DocumentDivision IN Project.DocumentDivision)

or possibly a rule in Projects like

IF Projects.DocumentDivision WAS CHANGED then ......


Difficult to advise without more detail
Rocketman

V8.7 Developer Edition. Server 2016 Standard edition. MySql 5.5
Platinum_ar
Posts: 92
Joined: Thu Jan 10, 2013 10:50 pm

Post by Platinum_ar »

Document is deleting separately and the problem is that rule triggering does not work when parent-children reference exist between objects.

So,
I start deleting action here Document --- DocumentDivision (owned by Document) --<rules in Project are not triggering through this realation>-- Project (Peer)
Post Reply