Defining Load Arguments from Mapped Propagate to Attributes
Create an MBO with at least one load argument, map as propagate to
attributes, then assign the MBO to a cache group that uses an Online policy.
From SAP Mobile WorkSpace, create an MBO that has
at least one load argument. For example, you could define an Employee MBO as:
SELECT emp_id, emp_fname, emp_lname, dept_idÂ
FROM sampledb.dba.employee WHERE dept_id = :deptIdLP
In the MBO Properties view, select the Attributes > Load Arguments tab, map each load argument to be used as an operation load
argument for the Hybrid App package to a Propagate to
Attribute. This example requires you to map the deptIdLP load argument to the
empDeptId attribute. You must also verify that data types are INT and the
default value is a valid INT.
Set the Online cache group policy
for the MBO.
Add the MBO to a cache group that uses the Online cache group policy. For example, create a new cache group named CacheGroupOnline and set the policy to Online.
Drag and drop the MBO to CacheGroupOnline.
The findByParameter object query is automatically generated based on all load arguments that have propagate-to attributes:
Deploy the project that contains the MBO to SAP Mobile Server.