How To: Setup Stock UDAs

Page approved.




INFORMATION icon
To create, edit and delete actual User Defined Attributes the user must have Admin permissions.

To edit User Defined Attributes for a stock item the user must have the Edit Stock permission in [ System Data | Users ].


User defined Attributes allow stock to be reported, or filtered by, text other than that used in their short description, for example finding all the very strong coffee amongst the varieties of coffee held in stock, see How To: Filter Stock User Defined Attributes (UDAs). If you have a large number of UDAs then you can group them by Level 2 Stock Type reducing the number of UDAs available for filtering on depending on the Stock Type being filtered on, see How To: Setup Stock UDAs with Groups.

  1. In the [ Stock ] screen, load a stock item (it doesn't matter which one).
  2. Display the drop-down 'Other Actions' menu either by pressing F9 or clicking the down arrow immediately to the right of the The green circle with a white cross icon on the button bar opens the "Other Actions" menu green circle with a white cross icon at the top of the button bar.
  3. Select 'User Defined Attributes' to open the User Defined Attributes (UDA) dialog.
  4. Press Alt+E or click the green triangle icon is the buttonbar's EDIT button to enter edit mode.
  5. Click the NEW ITEM button has an icon that shows two sheets of paper (identified by having the top right corner folded down), arranged diagonally on the icon from top left to bottom right   or press F3 to add a new item.
  6. Enter the name of the UDA in the Field Name column.
  7. Click in the Type column and press the F4 key. The options are:
    • Choice (max 2000 characters) : allows the user to select ONE item from a list.
      • In Edit mode double click on the Choices field, this loads the Configure Field popup.
      • Click on the the NEW ITEM button has an icon that shows two sheets of paper (identified by having the top right corner folded down), arranged diagonally on the icon from top left to bottom right   to add a new item to the list of choices.
      • Enter the item name.
      • Click on OK.
      • Once all the items have been added, click on OK to close the Configure Field popup.
      • Press Ctrl+S or click the disk icon is the button bar's SAVE button    to save the record before closing the UDA popup.
    • Date: allows the user to enter a date by using the calendar.
    • Integer: allows the user to enter an integer.
    • List: allows the user to select MORE than one item from the list.
      • In Edit mode double click on the Choices field, this loads the "Configure Field" popup.
      • Click on the the NEW ITEM button has an icon that shows two sheets of paper (identified by having the top right corner folded down), arranged diagonally on the icon from top left to bottom right   to add a new item to the list of choices.
      • Enter the item name.
      • Click on OK.
      • Once all the items have been added, click on OK to close the Configure Field popup.
      • Press Ctrl+S or click the disk icon is the button bar's SAVE button    to save the record before closing the UDA popup.
    • Number: allows the user to enter a number.
    • Text: allows the user to enter text.
    • Yes/No: allows the user to enter either Yes or No.
  8. Export: if ticked the UDA will be exported in the XML file.
  9. Prompt checkbox: if ticked, the user will be prompted to enter the Stock UDA each time a new stock item is created.
  10. Repeat to add additional UDAs.
  11. Press Ctrl+S or click the disk icon is the button bar's SAVE button    to save. (do not click 'OK').
  12. Focus on the UDA and then enter the values on the right hand side of the pop-up.
  13. Click 'OK' once all the UDA information has been entered.
    Note: groups of stock items can be updated with a UDA, see How To: Block Update Stock User Defined Attributes (Stock UDA).

See Also

Visit KhaosWikiX at https://support.khaoscontrol.com/wiki_kcx/ to see the following:

Contact the Khaos Team