Loss of referenced values in data view editing a data grid
Having a data-grid containing referenced attributes (*-1). In run-time referenced attributes of all records were filled with values. Strangely enough, upon calling the editing data view (from standard edit-button) values of referenced attribute are getting lost for some records (not all). When pressing 'cancel' referenced values remain unchanged in grid. Pressing save, values are lost. What's causing this inconsistant problem?
Loss of values was caused by limitation in the number of selectable data in the reference selector. Changing the ordering from ascending to descending caused other values not being selectable (and getting lost while opening the edit-UI from the satndar edit-button).
Have you recently added or changed an x-path constraint on the referenced data? If the constraint has changed so that the existing linked data is no longer valid, you will see the behavior you describe - the existing data will still be shown in the datagrid, but when you open the record for editing, the invalid reference is cleared.