APS (Advanced Planning and Scheduling) Asprova APS

 
Home > FAQ > COMReferencing or getting the added property of the user by COM
FAQ
[[ COM ]]

Referencing or getting the added property of the user by COM

Search in FAQ:

Q:Added "OrderUser_TEST" property in the Asptova order. Made it as the array type, and how to set or get it by COM

A:

We use the method called [LookupPropID]
in the rootobject to get the ID of the property. Use the ID we got ,use the "Set As Str"
to set the data and use the "GetAsStr"
to get the data.

For example use VB to set "LookupPropID", "SetAsStr", "GetAsStr" as follows
Dim propID As Long
Dim buf As Strung

propID = root.LookupPropID("OrderUser_TEST")
order.SetAsStr propID, 0, "123"
buf = order.GetAsStr(propID, 0).

※root is ASORootObject、and the order is ASBOrder. Get it from argList first.


>>Back To [ COM ]