1. Create a page with three Text Boxes
2. Enter the values in Text Box A and Text Box B
3. Click on Concat Button
4. The Values will concat and display in third Text Box
Code:
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
{
if (pageContext.getParameter("concat")!=null) {
String texta = pageContext.getParameter("item1");
String textb = pageContext.getParameter("item2");
OAMessageTextInputBean concat = (OAMessageTextInputBean)webBean.findChildRecursive("item3") ;
String textc = texta + textb;
concat.setValue(pageContext,textc);
}
}
Result :
2. Enter the values in Text Box A and Text Box B
3. Click on Concat Button
4. The Values will concat and display in third Text Box
Code:
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
{
if (pageContext.getParameter("concat")!=null) {
String texta = pageContext.getParameter("item1");
String textb = pageContext.getParameter("item2");
OAMessageTextInputBean concat = (OAMessageTextInputBean)webBean.findChildRecursive("item3") ;
String textc = texta + textb;
concat.setValue(pageContext,textc);
}
}
Result :
No comments:
Post a Comment