- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2018 10:21 AM
Hello all,
Is it possible to auto-number the alm_asset table using a business rule? I have very little experience dealing with business rules. Below is the code i tried at first with just populating the asset tag field with a value of 3, just to see if i could make some progress, no luck. Any tips or suggestions are welcomed.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2018 11:01 AM
A before Business Rule would only execute when you try to save the record so you don't actually get to see the value of 3 in the form. Rather, if you saved the record, you should find that the Asset Tag value is 3 when you pull up the saved record.
You might want to use the auto-numbering feature (the same feature that sets automatic incident numbers when you create incidents). See documentation at: Add auto-numbering records in a table
You can set the default value of javascript:getNextObjNumberPadded(); on the Asset Tag field and possibly avoid Business Rules all together.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2018 01:19 PM