placeBefore

In the mobile site map, moves the object that is referenced in the outer scope of this instruction immediately before the specified object. The instruction is used to order child objects within a parent object of the mobile site map. You cannot use the instruction to move an object from one parent object to another.

Syntax:

placeBefore objectType "objectName"

Parameters:

  • objectType: A keyword that specifies an object type, as described in Object Types.
  • objectName: The string constant that specifies the name of the object of the type specified by the objectType parameter. The object must exist in the instance of the mobile site map in the memory of MYOB Acumatica server before the MSDL interpreter processes the placeBefore instruction.

Example:

Suppose that you need to add the CompanyName field within the ContactSummary container to the position before the Address group. You can add the following code within an instruction for the container.


update screen "CR302000" {
  update container "ContactSummary" {
  ...
    add group "Address" {...}
  ...
    add field "CompanyName" {
      container = "DetailsSummary"
      placeBefore group "Address"
    }
  }
}