Sunday, 1 July 2018

oamessagechoicebean set value

oamessagechoicebean set value

oamessagechoicebean set value is used to set the value of the drop down list of the item in the OAF page. We can set the default value to the oamessagechoicebean item in the OAF page through this method. Here below I am sharing the code to set the value to the oamessagechoicebean
 

Sample code of oamessagechoicebean set value

 
 
  • OAMessageChoiceBean oamessagechoicebean = (OAMessageChoiceBean)createWebBean(pageContext, "ID OF THE POP LIST ITEM");  
  • oamessagechoicebean.setPrompt("Supplier");  
  • oamessagechoicebean.setListViewObject(pageContext, oaviewobject);  
  • oamessagechoicebean.setListDisplayAttribute("SupplierName");  
  •  
  • oamessagechoicebean.setAllowBlankValue(false);  
  • oamessagechoicebean.setDefaultValue("Test"); //Setting Default Value  
  •  
  • }  
  •   
  •  
     

    0 comments:

    Post a Comment

    Contact us for any Collaboration, Project Support & On Job Support Work

    Name

    Email *

    Message *