company logo

Property :: instanceRefresh - Refresh instance data

The function refreshes instance data including all shared base instances. In contrast to reset(), the function maintains selections in subordinated property handles.

The function may be called in order to update instance data for instances, that might have been updated via other property handles or applications. In order to optimize refresh options, instanceUpdated() might be called.

When modifications have already made to the instance, those will get lost.

When no instance is selected in the property handle, the function throws an exception.

.... fragnemt ( Property &ph ) {

  if ( ph.instanceUpdated() )

    if ( ph.modified() )

      printf("instance modified by other data source, changes get lost");

    ph.instanceRefresh();

]

Implementation details

Property  :: instanceRefresh (  )