Creating new work area attributes using PW SDK

I'm having some difficulty creating new work area attributes using the SDK (aaOApi_CreateAndInitializeAttribute), specifically assigning the control type i.e. none, pick list or select:

using the following function the attribute is created but it assigns Pick List as the Type. How do I set 'None' as the type?

aaOApi_CreateAndInitializeAttribute(
    ref attrId,
    ref ppNewAttribute,
    "Project_Test",
    "Test Label",
    "Test Description",
    5,
    50,
    0,
    "Project_Test",
    false
    )

I'm also struggling to assign the default value using 'aaOApi_SetAttributeDefValue'

Parents Reply Children
No Data