Question

BPA - Prefill value for (InventoryPart) UnitMeas

  • 28 September 2023
  • 6 replies
  • 100 views

Userlevel 3
Badge +6

Hello,

I tried following :  pre-filling values when creating a new inventory part


It works for “Description” and “TypeCode”, but not for “UnitMeas”

 


 

Any idea or it’s not possible ?

Response from InventoryPart_Default GET is :

 

 


Thank you,
    best regards
      Jean-Luc
 


6 replies

Userlevel 7
Badge +18

Is the UnitMeas you are passing is a value defined for units of measure in the application?

Userlevel 3
Badge +6

Hi Vimukthi,

Yes. It’s “PCS”.
 


best regards,
    Jean-Luc​​​​​​​

Userlevel 3
Badge +6

“PCS” exists : 
 

 

/

For eg, no issue with “PART STATUS” : 
 

 

Something special with “UnitMeas” ?


I tried with another value for UnitMeas (value “*” to be sure there is no confusion due to character case (“PCS”/”pcs”)) but same issue.

  best regards
   Jean-Luc

Userlevel 3
Badge +5

This happens because, in Entity definition “UnitMeas” field is not updateable. In current workflow implementation, default values are set only for updateable fields.

Userlevel 3
Badge +6

Hi Buddhi,

Thank you for your answer.

best regards
    Jean-Luc

Userlevel 3
Badge +8

“PCS” exists : 
 

 

/

For eg, no issue with “PART STATUS” : 
 

 

Something special with “UnitMeas” ?


I tried with another value for UnitMeas (value “*” to be sure there is no confusion due to character case (“PCS”/”pcs”)) but same issue.

  best regards
   Jean-Luc

What does the “Set Default Values” task script contain? I’m trying out a similar solution that prefills the part no and description when the user creates a new record. However I don’t know how to do this with the javascript task inside the workflow. Thanks

Reply