Syntax
SRP_Mobile_Repository(CtrlEntID, 'AddEntity', 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 add. 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 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$)