LotAttr Constructor(String,String,String,String)
- Last UpdatedNov 06, 2025
- 1 minute read
The LotAttr() method is the constructor for the class. It initializes the properties of this lot attribute. This overload of the method passes the item_id, lot_no, and attr_name as parameters and retrieves the lot's specified attribute from the database to initialize the object, if it exists. If the object does not already exist, the lot attribute is created with the initialValue passed as a parameter.
Parameters
- itemId
- Required. Holds the item ID used to identify the lot.
- lotNo
- Required. Holds the lot number to identify the lot.
- attr_name
- Required. Holds the name of the attribute to initialize for this lot.
- initialValue
- Required. Holds the lot attribute value to initialize to. Applied only if the lot attribute does not already exist.