alm_asset table -- assigning substate

ppicazo1
Tera Contributor

In the alm_asset table I am wanting to properly, programmatically, assign the value of the substate when the state changes using a widget.
How can I do this? To change the state to "In Stock" the glide record install_status gets assigned to 6. I believe I have to change the substatus field
but assigning it a number just shows that number and not one of the drop down choices when you filter on substate. So, what do I do? I want
it to show the value of "Available".

2 REPLIES 2

Siddhesh Jadhav
Kilo Sage

Hi @ppicazo1 ,

can you please share the code for reference? 

I no longer have access to the development environment in order to reply to your question.   I simply did an assignment statement something like:

substatus = "Available"

and it worked.