Syntax
SRP_Mobile_Repository(CtrlEntID, 'RemoveEntity', Path, Entities, AttachMobileRepository)
Returns
If successful the entity that was added, otherwise 0.
Parameters
Parameter | Description |
---|---|
Path | Directory path where the mobile repository is located. |
Entity | Entity to remove. Must be a properly formed Repository entity Key ID. |
AttachMobileRepository | Boolean flag to determine if the mobile repository path should be skipped. Default value is True. |
Remarks
This method will remove one entity from the mobile repository. If multiple entities need to be removed then it is better to attach the mobile repository beforehand and set the AttachMobileRepository flag to False. This will improve performance.
After an entity has been removed OpenInsight immediately access the entity from the local repository. Note, this does not replace the local repository entity with the mobile repository entity. It only removes the mobile repository entity.
Examples
// Remove the entity from the mobile repository but do not attach the mobile repository // since it has already been attached. Response = SRP_Mobile_Repository(CtrlEntID, 'RemoveEntity', Path, Entity, False$)