Syntax

SRP_Mobile_Repository(CtrlEntID, 'RestoreEntity', Path, Entities, AttachMobileRepository)

Returns

If successful the entity that was restored, otherwise 0.

Parameters

ParameterDescription
PathDirectory path where the mobile repository is located.
EntityEntity to restore. Must be a properly formed Repository entity Key ID.
AttachMobileRepositoryBoolean flag to determine if the mobile repository path should be skipped. Default value is True.

Remarks

This method will restore one entity from the mobile repository back into the local repository. If multiple entities need to be restored then it is better to attach the mobile repository beforehand and set the AttachMobileRepository flag to False. This will improve performance.

Note, this does not remove the mobile repository entity from the mobile repository.

Examples

// Restore the entity back into the local repository but do not attach the mobile repository 
// since it has already been attached. 
Response = SRP_Mobile_Repository(CtrlEntID, 'RestoreEntity', Path, Entity, False$)
  • No labels