Date index for Sep 2003
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Refreshing display after editing sub-node (atkOneToMany)
Hello,
I have (again :) a problem with Achievo 0.9.4.
Let's say I have a node (e.g. parentNode) which has a atkOneToManyRelation
with another node (e.g. detailsNode). The parentNode has an attribute (e.g.
computedVal) for which the value is calculated in the postUpdate() method of
the related detailsNode.
Now let's say I go to the edit screen of parentNode and click on "Edit" for
a detailsNode. After clicking "Save and close" on the detailsNode, I can see
that the parent's computedVal attribute is correctly updated in the
database.
However, when I am returned to the parentNode's edit screen, I still see the
old valued of the computedVal. Only if I press the Reload button in the
browser I will see the new value. This can become a problem because, if I
don't press Reload and instead click on "Save" directly, the wrong (old)
value for computedVal will be saved in database for the parentNode.
What I think is happening is that parentNode's edit screen will take its
values from Achievo's stack, without checking if the values match what is in
the database.
Can anyone suggest a solution or workaround to this problem?
Thank you for your help!
Best regards,
Sebastian