Hi everyone,
I need to reset the IsDirty flag
I have taken over some code where after a successful save is performed the
following gets executed:
Dim eStakeholder As StakeholderEntity = CType(eNewEntityBase, StakeholderEntity)
m_eItem.Stakeholder.Remove(eStakeholder)
m_eItem.Stakeholder.Add(eStakeholder)
the above causes the IsDirty flag to get set to True - and this causes problems later
on as the application thinks the object hasn't been saved.
I have searchd the forums but no joy (the closest was
Refetch not updating IsDirty Flag
http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=1480&HighLight=1)
I have tried
eStakeholder.Refetch
eStakeholder.FlagAsSaved
eStakeholder.RejectChanges seems to work but comes with
a price to pay as it causes a rollback. Am I safe to use it? I am still fairly
new to LLBL and I am not sure of the 'intent' of the code snippet above.
Any ideas?
Any solution will help even if it means going back to the db, etc
Thanks
Charlie