How to set default value in message choice in oaf
We can set the default value in message choice in many ways. If we want to set the value null then we can set the property of the message choice item 'Add Blank Row to true ' and if we want to set some value in the message choice item in the oaf page then we can set 'Add Blank Row to false ' then the message choice will default to the 1st value of the vo attached to this message choice.
Second method to set the default value is this , suppose if some VO is working for the message choice then we can set the default value to the column of the VO then by default that value will be start showing in the message choice item in the oaf page.
Here is the sample code to set the default value
row.setAttribute("<MessageChoiceViewAttributeName>","<MessageChoiceValue>").
0 comments:
Post a Comment