Menu

#26 ReferencedBy is not load initialized via Selectors

open
nobody
Core (22)
5
2012-11-03
2005-11-22
No

ReferencedBy property is nice way to investigate
referenced objects
without touching Selector DataSet.

My problem is :

If object is being saved to database and Selected
again via another
Selector,
then ReferencedBy does not work for it any more.
The References to given object seems not loaded into
memory.

Why i need it?
On client side often client business rules are
important.
Very common example is when you need to disable a
Button.
But the check rule for it require to scroll Detail
Dataset.
When scrolling datasets - it takes event firing and
controls updating.
Ofcource everything is possible by disabling it in
code, but
if i analyse references in object way - ReferencedBy,
then - much less code need to satisfy situation.

What i want is
Selector.CurrentObject.ReferencedBy would load
references from database into memory on demand or
automatically when scrolling Selector.

Dmitry

Discussion


Log in to post a comment.