Thanks Ray, I found that out. This is the code I was using:
// Turn off Mandatory and Unique to allow new record to be saved. Reset at end of process.
Attribute(OrderNumber,28,"0") // Turn off Unique
Attribute(OrderNumber,38,"") // Turn off Mandatory
Attribute(Record,28,"0") // Turn off Unique
Attribute(Record,38,"") // Turn off Mandatory
FormAttribute("OrderLines","Record",38,"") // Turn off Mandatory on subform for line items.
// ==================
Mandatory seemed to be working, but not Unique. I tried using values of "" and "3", with no success.
You said I cannot change it with the ReadOnly attribute, is there another way to do this?
If not, can we get this capability added to the current list of attribute variables in a future release?