Updating DFF in PFR:
package xxigfmis.oracle.apps.irc.vacancy.webui;
import java.io.Serializable;
import java.sql.CallableStatement;
import java.sql.SQLException;
import java.sql.Types;
import oracle.jdbc.OracleCallableStatement;
import java.util.Enumeration;
import java.util.Hashtable;
import oracle.apps.fnd.common.VersionInfo;
import oracle.apps.fnd.framework.OAApplicationModule;
import oracle.apps.fnd.framework.server.OADBTransaction;
import oracle.apps.fnd.framework.webui.OAPageContext;
import oracle.apps.fnd.framework.webui.OAWebBeanConstants;
import oracle.apps.fnd.framework.webui.beans.OADescriptiveFlexBean;
import oracle.apps.fnd.framework.webui.beans.OAWebBean;
import oracle.apps.fnd.framework.webui.beans.message.OAMessageChoiceBean;
import oracle.apps.fnd.framework.webui.beans.message.OAMessageTextInputBean;
import oracle.apps.irc.vacancy.server.IrcEditVacancyVOImpl;
import oracle.apps.irc.vacancy.server.VacancyAMImpl;
import oracle.jbo.Row;
import oracle.apps.irc.vacancy.webui.VacNewDetsPageCO;
// Referenced classes of package oracle.apps.irc.vacancy.webui:
// VacancyCO
public class xxVacNewDetsPageCO extends VacNewDetsPageCO
{
public xxVacNewDetsPageCO()
{
}
public void processFormRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
{
super.processFormRequest(oapagecontext, oawebbean);
VacancyAMImpl vacancyamimpl = (VacancyAMImpl)oapagecontext.getRootApplicationModule();
IrcEditVacancyVOImpl cvo = vacancyamimpl.getIrcEditVacancyVO();
String outParamValue1 = null;
String outParamValue2 = null;
String outParamValue3 = null;
String outParamValue4 = null;
String outParamValue5 = null;
String outParamValue6 = null;
String outParamValue7 = null;
String outParamValue8 = null;
String outParamValue9 = null;
String outParamValue10 = null;
String outParamValue11= null;
Row row=cvo.first();
if(row !=null){
}else{
row=cvo.getCurrentRow();
}
//row.setAttribute("Attribute1", "1");
//row.setAttribute("Attribute2", "2");
//row.setAttribute("Attribute3", "3");
//row.setAttribute("Attribute4", "4");
oapagecontext.writeDiagnostics("xxVacNewDetsPageCO",row.getAttribute("BudgetMeasurementValue")+"Raju",2);
oapagecontext.writeDiagnostics("xxVacNewDetsPageCO",oapagecontext.getLovInputSourceId()+"Raju",2);
if("FndLocation".equals(oapagecontext.getLovInputSourceId())){
OADBTransaction txn = vacancyamimpl.getOADBTransaction();
CallableStatement callableStatement =
txn.createCallableStatement("begin xxigfmis_irec_pkg.xxigfmis_vac_reservation(:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11,:12); end;",OADBTransaction.DEFAULT);
try {
callableStatement.registerOutParameter(2, Types.VARCHAR);
callableStatement.registerOutParameter(3, Types.VARCHAR);
callableStatement.registerOutParameter(4, Types.VARCHAR);
callableStatement.registerOutParameter(5, Types.VARCHAR);
callableStatement.registerOutParameter(6, Types.VARCHAR);
callableStatement.registerOutParameter(7, Types.VARCHAR);
callableStatement.registerOutParameter(8, Types.VARCHAR);
callableStatement.registerOutParameter(9, Types.VARCHAR);
callableStatement.registerOutParameter(10, Types.VARCHAR);
callableStatement.registerOutParameter(11, Types.VARCHAR);
callableStatement.registerOutParameter(12, Types.VARCHAR);
callableStatement.setString(1, row.getAttribute("BudgetMeasurementValue").toString());
callableStatement.execute();
outParamValue1 = callableStatement.getString(2);
outParamValue2 = callableStatement.getString(3);
outParamValue3 = callableStatement.getString(4);
outParamValue4 = callableStatement.getString(5);
outParamValue5 = callableStatement.getString(6);
outParamValue6 = callableStatement.getString(7);
outParamValue7 = callableStatement.getString(8);
outParamValue8 = callableStatement.getString(9);
outParamValue9 = callableStatement.getString(10);
outParamValue10 = callableStatement.getString(11);
outParamValue11 = callableStatement.getString(12);
oapagecontext.writeDiagnostics("xxVacNewDetsPageCO",outParamValue1+"raju",2);
oapagecontext.writeDiagnostics("xxVacNewDetsPageCO",outParamValue2+"raju",2);
oapagecontext.writeDiagnostics("xxVacNewDetsPageCO",outParamValue3+"raju",2);
oapagecontext.writeDiagnostics("xxVacNewDetsPageCO",outParamValue4+"raju",2);
oapagecontext.writeDiagnostics("xxVacNewDetsPageCO",outParamValue5+"raju",2);
oapagecontext.writeDiagnostics("xxVacNewDetsPageCO",outParamValue6+"raju",2);
oapagecontext.writeDiagnostics("xxVacNewDetsPageCO",outParamValue7+"raju",2);
oapagecontext.writeDiagnostics("xxVacNewDetsPageCO",outParamValue8+"raju",2);
oapagecontext.writeDiagnostics("xxVacNewDetsPageCO",outParamValue9+"raju",2);
oapagecontext.writeDiagnostics("xxVacNewDetsPageCO",outParamValue10+"raju",2);
oapagecontext.writeDiagnostics("xxVacNewDetsPageCO",outParamValue11+"raju",2);
callableStatement.close();
} catch (SQLException sqle) {
oapagecontext.writeDiagnostics("xxVacNewDetsPageCO",sqle.getMessage()+"raju",2);
//callableStatement.close();
}
OADescriptiveFlexBean oaDFF = (OADescriptiveFlexBean)oawebbean.findChildRecursive("FndFlexField"); // put your dff web bean name here
OAMessageTextInputBean msg0=(OAMessageTextInputBean)oaDFF.findChildRecursive("FndFlexField0");
msg0.setText(outParamValue1);
OAMessageTextInputBean msg1=(OAMessageTextInputBean)oaDFF.findChildRecursive("FndFlexField1");
msg1.setText(outParamValue2);
OAMessageTextInputBean msg2=(OAMessageTextInputBean)oaDFF.findChildRecursive("FndFlexField2");
msg2.setText(outParamValue3);
OAMessageTextInputBean msg3=(OAMessageTextInputBean)oaDFF.findChildRecursive("FndFlexField3");
msg3.setText(outParamValue4);
OAMessageTextInputBean msg4=(OAMessageTextInputBean)oaDFF.findChildRecursive("FndFlexField4");
msg4.setText(outParamValue5);
OAMessageTextInputBean msg5=(OAMessageTextInputBean)oaDFF.findChildRecursive("FndFlexField5");
msg5.setText(outParamValue6);
OAMessageTextInputBean msg6=(OAMessageTextInputBean)oaDFF.findChildRecursive("FndFlexField6");
msg6.setText(outParamValue7);
OAMessageTextInputBean msg7=(OAMessageTextInputBean)oaDFF.findChildRecursive("FndFlexField7");
msg7.setText(outParamValue8);
OAMessageTextInputBean msg8=(OAMessageTextInputBean)oaDFF.findChildRecursive("FndFlexField8");
msg8.setText(outParamValue9);
OAMessageTextInputBean msg9=(OAMessageTextInputBean)oaDFF.findChildRecursive("FndFlexField9");
msg9.setText(outParamValue10);
OAMessageTextInputBean msg10=(OAMessageTextInputBean)oaDFF.findChildRecursive("FndFlexField10");
msg10.setText(outParamValue11);
}//end lov event
}
}
package xxigfmis.oracle.apps.irc.vacancy.webui;
import java.io.Serializable;
import java.sql.CallableStatement;
import java.sql.SQLException;
import java.sql.Types;
import oracle.jdbc.OracleCallableStatement;
import java.util.Enumeration;
import java.util.Hashtable;
import oracle.apps.fnd.common.VersionInfo;
import oracle.apps.fnd.framework.OAApplicationModule;
import oracle.apps.fnd.framework.server.OADBTransaction;
import oracle.apps.fnd.framework.webui.OAPageContext;
import oracle.apps.fnd.framework.webui.OAWebBeanConstants;
import oracle.apps.fnd.framework.webui.beans.OADescriptiveFlexBean;
import oracle.apps.fnd.framework.webui.beans.OAWebBean;
import oracle.apps.fnd.framework.webui.beans.message.OAMessageChoiceBean;
import oracle.apps.fnd.framework.webui.beans.message.OAMessageTextInputBean;
import oracle.apps.irc.vacancy.server.IrcEditVacancyVOImpl;
import oracle.apps.irc.vacancy.server.VacancyAMImpl;
import oracle.jbo.Row;
import oracle.apps.irc.vacancy.webui.VacNewDetsPageCO;
// Referenced classes of package oracle.apps.irc.vacancy.webui:
// VacancyCO
public class xxVacNewDetsPageCO extends VacNewDetsPageCO
{
public xxVacNewDetsPageCO()
{
}
public void processFormRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
{
super.processFormRequest(oapagecontext, oawebbean);
VacancyAMImpl vacancyamimpl = (VacancyAMImpl)oapagecontext.getRootApplicationModule();
IrcEditVacancyVOImpl cvo = vacancyamimpl.getIrcEditVacancyVO();
String outParamValue1 = null;
String outParamValue2 = null;
String outParamValue3 = null;
String outParamValue4 = null;
String outParamValue5 = null;
String outParamValue6 = null;
String outParamValue7 = null;
String outParamValue8 = null;
String outParamValue9 = null;
String outParamValue10 = null;
String outParamValue11= null;
Row row=cvo.first();
if(row !=null){
}else{
row=cvo.getCurrentRow();
}
//row.setAttribute("Attribute1", "1");
//row.setAttribute("Attribute2", "2");
//row.setAttribute("Attribute3", "3");
//row.setAttribute("Attribute4", "4");
oapagecontext.writeDiagnostics("xxVacNewDetsPageCO",row.getAttribute("BudgetMeasurementValue")+"Raju",2);
oapagecontext.writeDiagnostics("xxVacNewDetsPageCO",oapagecontext.getLovInputSourceId()+"Raju",2);
if("FndLocation".equals(oapagecontext.getLovInputSourceId())){
OADBTransaction txn = vacancyamimpl.getOADBTransaction();
CallableStatement callableStatement =
txn.createCallableStatement("begin xxigfmis_irec_pkg.xxigfmis_vac_reservation(:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11,:12); end;",OADBTransaction.DEFAULT);
try {
callableStatement.registerOutParameter(2, Types.VARCHAR);
callableStatement.registerOutParameter(3, Types.VARCHAR);
callableStatement.registerOutParameter(4, Types.VARCHAR);
callableStatement.registerOutParameter(5, Types.VARCHAR);
callableStatement.registerOutParameter(6, Types.VARCHAR);
callableStatement.registerOutParameter(7, Types.VARCHAR);
callableStatement.registerOutParameter(8, Types.VARCHAR);
callableStatement.registerOutParameter(9, Types.VARCHAR);
callableStatement.registerOutParameter(10, Types.VARCHAR);
callableStatement.registerOutParameter(11, Types.VARCHAR);
callableStatement.registerOutParameter(12, Types.VARCHAR);
callableStatement.setString(1, row.getAttribute("BudgetMeasurementValue").toString());
callableStatement.execute();
outParamValue1 = callableStatement.getString(2);
outParamValue2 = callableStatement.getString(3);
outParamValue3 = callableStatement.getString(4);
outParamValue4 = callableStatement.getString(5);
outParamValue5 = callableStatement.getString(6);
outParamValue6 = callableStatement.getString(7);
outParamValue7 = callableStatement.getString(8);
outParamValue8 = callableStatement.getString(9);
outParamValue9 = callableStatement.getString(10);
outParamValue10 = callableStatement.getString(11);
outParamValue11 = callableStatement.getString(12);
oapagecontext.writeDiagnostics("xxVacNewDetsPageCO",outParamValue1+"raju",2);
oapagecontext.writeDiagnostics("xxVacNewDetsPageCO",outParamValue2+"raju",2);
oapagecontext.writeDiagnostics("xxVacNewDetsPageCO",outParamValue3+"raju",2);
oapagecontext.writeDiagnostics("xxVacNewDetsPageCO",outParamValue4+"raju",2);
oapagecontext.writeDiagnostics("xxVacNewDetsPageCO",outParamValue5+"raju",2);
oapagecontext.writeDiagnostics("xxVacNewDetsPageCO",outParamValue6+"raju",2);
oapagecontext.writeDiagnostics("xxVacNewDetsPageCO",outParamValue7+"raju",2);
oapagecontext.writeDiagnostics("xxVacNewDetsPageCO",outParamValue8+"raju",2);
oapagecontext.writeDiagnostics("xxVacNewDetsPageCO",outParamValue9+"raju",2);
oapagecontext.writeDiagnostics("xxVacNewDetsPageCO",outParamValue10+"raju",2);
oapagecontext.writeDiagnostics("xxVacNewDetsPageCO",outParamValue11+"raju",2);
callableStatement.close();
} catch (SQLException sqle) {
oapagecontext.writeDiagnostics("xxVacNewDetsPageCO",sqle.getMessage()+"raju",2);
//callableStatement.close();
}
OADescriptiveFlexBean oaDFF = (OADescriptiveFlexBean)oawebbean.findChildRecursive("FndFlexField"); // put your dff web bean name here
OAMessageTextInputBean msg0=(OAMessageTextInputBean)oaDFF.findChildRecursive("FndFlexField0");
msg0.setText(outParamValue1);
OAMessageTextInputBean msg1=(OAMessageTextInputBean)oaDFF.findChildRecursive("FndFlexField1");
msg1.setText(outParamValue2);
OAMessageTextInputBean msg2=(OAMessageTextInputBean)oaDFF.findChildRecursive("FndFlexField2");
msg2.setText(outParamValue3);
OAMessageTextInputBean msg3=(OAMessageTextInputBean)oaDFF.findChildRecursive("FndFlexField3");
msg3.setText(outParamValue4);
OAMessageTextInputBean msg4=(OAMessageTextInputBean)oaDFF.findChildRecursive("FndFlexField4");
msg4.setText(outParamValue5);
OAMessageTextInputBean msg5=(OAMessageTextInputBean)oaDFF.findChildRecursive("FndFlexField5");
msg5.setText(outParamValue6);
OAMessageTextInputBean msg6=(OAMessageTextInputBean)oaDFF.findChildRecursive("FndFlexField6");
msg6.setText(outParamValue7);
OAMessageTextInputBean msg7=(OAMessageTextInputBean)oaDFF.findChildRecursive("FndFlexField7");
msg7.setText(outParamValue8);
OAMessageTextInputBean msg8=(OAMessageTextInputBean)oaDFF.findChildRecursive("FndFlexField8");
msg8.setText(outParamValue9);
OAMessageTextInputBean msg9=(OAMessageTextInputBean)oaDFF.findChildRecursive("FndFlexField9");
msg9.setText(outParamValue10);
OAMessageTextInputBean msg10=(OAMessageTextInputBean)oaDFF.findChildRecursive("FndFlexField10");
msg10.setText(outParamValue11);
}//end lov event
}
}