Syntax

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

Returns

If successful the entity that was added, otherwise 0.

Parameters

ParameterDescription
PathDirectory path where the mobile repository is located.
EntityEntity to add. 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 add one entity to the mobile repository. If multiple entities need to be added 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 added it will immediately become the entity that OpenInsight will access. Therefore, any changes made will affect the entity in the mobile repository rather than the local repository.

Examples

// Add the entity to the mobile repository but do not attach the mobile repository 
// since it has already been attached. 
Response = SRP_Mobile_Repository(CtrlEntID, 'AddEntity', Path, Entity, False$)
  • No labels