How to Validate SubmitButton

Hi Firends,please see my requirement as below,
1)i have a page that contains only one dropdowlist suppliername, go button and table region,user select supplier from dropdown and click the go button all the supplier information getting populate into table region.
2)in table region i have a button called addsupplier to detail, user can select check box associated wih any row and click add supplier to deatil , selected supplier information going to supplier detail page,up to this OK.
3)Now waht is the problem is , first time page gets render, user will not select any supplier from dropdown and also not clicking go button also , simply user clcik the addsupplier to detail button , i am getting error.
so how to validate addsupplier to detail button, suppose user should not select any row in table region.
i hope requirement is clear you guys.please help me out....
Thanks
vamshi

Hi Sumit, Thanks for your quick reply.
but i am not getting any null pointer exception. the error below as follows...
Exception Details.
oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT
MV.VENDOR_ID,
MV.VENDOR_NAME,
MV.VENDOR_SITE_CODE,
MDVS.CITY,
MDVS.STATE,
MDVS.COUNTRY,
MVA.STATUS,
MVA.STATUS_UPDATE_DATE
FROM MODPOS_VENDOR_COMPS MV,MODPO_DISTINCT_VENDOR_SITES_V MDVS,MODPOS_QUOT_STG MQS,MODPOS_VENDOR_ASSES MVA
WHERE MV.VENDOR_ID=MDVS.VENDOR_ID
AND MDVS.VENDOR_SITE_CODE=MV.VENDOR_SITE_CODE
AND MVA.VENDOR_ID=MV.VENDOR_ID
AND MVA.VENDOR_SITE_CODE=MV.VENDOR_SITE_CODE
AND MQS.AAM_PRODUCT=MV.PRODUCT_NAME
AND MQS.COMPONENT_TYPE=MV.DIR_MATERIAL_NAME
AND MQS.PROCUREMENT_CATEGORY=MV.PURC_COMMODITY
AND MQS.BUSINESS_UNIT=MV.BUSINESS_UNIT
AND MQS.AAM_PRODUCT LIKE NVL(:1,MQS.AAM_PRODUCT)
AND MQS.COMPONENT_TYPE LIKE NVL(:2,MQS.COMPONENT_TYPE)
AND MQS.PROCUREMENT_CATEGORY LIKE NVL(:3,MQS.PROCUREMENT_CATEGORY)
AND MQS.BUSINESS_UNIT LIKE NVL(:4,MQS.BUSINESS_UNIT)
AND MV.VENDOR_NAME LIKE NVL(:5,MV.VENDOR_NAME)
at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:888)
at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1064)
at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1294)
at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2396)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1512)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:463)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:384)
at OA.jspService(OA.jsp:40)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534)
## Detail 0 ##
java.sql.SQLException: ORA-01008: not all variables bound
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:583)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1986)
at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1144)
at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2548)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2933)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:650)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:578)
at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:627)
at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:515)
at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3289)
at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(OAJboViewObjectImpl.java:1207)
at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4146)
at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:567)
at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:531)
at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2343)
at oracle.jbo.server.ViewRowSetIteratorImpl.first(ViewRowSetIteratorImpl.java:1224)
at oracle.jbo.server.ViewRowSetImpl.first(ViewRowSetImpl.java:2347)
at oracle.jbo.server.ViewObjectImpl.first(ViewObjectImpl.java:5167)
at xxaam.oracle.apps.pos.quotstg.webui.AddSupplierCO.processFormRequest(AddSupplierCO.java:185)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:734)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:352)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:943)
at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1546)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:929)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:895)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:751)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:352)
at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:373)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:929)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:895)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:751)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:352)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:340)
at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2392)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1512)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:463)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:384)
at OA.jspService(OA.jsp:40)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534)
java.sql.SQLException: ORA-01008: not all variables bound
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:583)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1986)
at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1144)
at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2548)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2933)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:650)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:578)
at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:627)
at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:515)
at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3289)
at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(OAJboViewObjectImpl.java:1207)
at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4146)
at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:567)
at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:531)
at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2343)
at oracle.jbo.server.ViewRowSetIteratorImpl.first(ViewRowSetIteratorImpl.java:1224)
at oracle.jbo.server.ViewRowSetImpl.first(ViewRowSetImpl.java:2347)
at oracle.jbo.server.ViewObjectImpl.first(ViewObjectImpl.java:5167)
at xxaam.oracle.apps.pos.quotstg.webui.AddSupplierCO.processFormRequest(AddSupplierCO.java:185)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:734)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:352)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:943)
at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1546)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:929)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:895)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:751)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:352)
at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:373)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:929)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:895)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:751)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:352)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:340)
at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2392)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1512)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:463)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:384)
at OA.jspService(OA.jsp:40)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534)
and also inside button , i am handling this code.
below code SupplierSearchVO1 contains above error query
if (pageContext.getParameter("AddSupplierstoStrategy")!= null)
OAViewObject vo = (OAViewObject)am.findViewObject("SupplierSearchVO1");
int quoteCount =0;
for(SupplierSearchVORowImpl row = (SupplierSearchVORowImpl)vo.first();row!=null;row=(SupplierSearchVORowImpl)vo.next())
if(row.getAttribute("Select")!=null && row.getAttribute("Select").equals("Y"))
String VendorId=row.getAttribute("VendorId").toString();
System.out.println("VendorId"+VendorId);
String VendorName = row.getAttribute("VendorName").toString();
System.out.println("VendorName"+VendorName);
String VendorSiteCode = row.getAttribute("VendorSiteCode").toString();
System.out.println("VendorSiteCode"+VendorSiteCode);
String City = row.getAttribute("City").toString();
System.out.println("City"+City);
String Country = row.getAttribute("Country").toString();
System.out.println("Country"+Country);
String Status = row.getAttribute("Status").toString();
System.out.println("Status"+Status);
DATE StatusUpdateDate =(DATE)row.getAttribute("StatusUpdateDate");
String stringStatusUpdateDate =StatusUpdateDate.toString();
System.out.println("print"+stringStatusUpdateDate);
long date=new SimpleDateFormat("yyyy-MM-dd").parse(stringStatusUpdateDate,new ParsePosition(0)).getTime();
java.sql.Date dbDate=new java.sql.Date(date);
String ProgId1 = pageContext.getParameter("ProgId");
System.out.println("ProgId"+ProgId1);
OADBTransaction txn =am.getOADBTransaction();
CallableStatement cs = txn.createCallableStatement("begin do_insert(?,?,?,?,?);end;",5);
System.out.println("procedure is:"+cs);
try
cs.setString(1,VendorId);
cs.setString(2,VendorSiteCode);
cs.setString(3,Status);
cs.setDate(4,dbDate);
cs.setString(5,ProgId1);
cs.executeUpdate();
cs.close();
txn.commit();
catch(Exception e)
//throw new OAException(e.getMessage(),OAException.ERROR);
throw new OAException("POS","MODPOS_SUPPLIER_EXIST");
i hope you clear every thing .please help me out..urgent
Make sure that if no rows are selected either nothing happens or an appropriate message is shown to the user.can you give some example code snippet to add throw appropiate message if user is not selected any row.
Thanks
vamshi

Similar Messages

  • How to validate LOV data

    Hi,
    how to validate lov feild data ??
    Requirement is my page have 2 lov feilds, It is a dependent lov.
    The feilds will not allow the invalid data in lov feilds when i click on 'save' button. Then i need to display a message "select valid values in lov feilds".
    Can anyone help me on this req....
    Thanks
    Edited by: 926074 on Apr 12, 2012 1:23 PM

    Hi niranj,
    I am using submit button.
    All the properties what u r said exactly same. But it is not working
    PG.xml code
    <?xml version="1.0" encoding="UTF-8" ?>
    - <!-- dbdrv: exec java oracle/jrad/tools/xml/importer XMLImporter.class java &phase=dat+24 checkfile:~PROD:~PATH:~FILE &fullpath:~PROD:~PATH:~FILE -username &un_apps -password &pw_apps -dbconnection &jdbc_db_addr -userId "1" -rootPackage /oracle/apps/~PROD -rootdir &fullpath:~PROD:mds:directory
    -->
    - <page xmlns:jrad="http://xmlns.oracle.com/jrad" xmlns:oa="http://xmlns.oracle.com/oa" xmlns:ui="http://xmlns.oracle.com/uix/ui" version="9.0.3.8.12_1330" xml:lang="en-US" xmlns:user="http://xmlns.oracle.com/jrad/user" xmlns="http://xmlns.oracle.com/jrad" file-version="$Header$">
    - <content>
    - <oa:pageLayout id="MainRN" amDefName="wnsgs.oracle.apps.sysadmin.requestforaccess.server.RequestforAccessAM" windowTitle="Create New Responsibility" title="Create New Responsibility" controllerClass="wnsgs.oracle.apps.sysadmin.requestforaccess.webui.RequestAccessDetailsCO">
    - <ui:corporateBranding>
    <oa:image id="corporateBrandingImage" source="/OA_MEDIA/FNDSSCORP.gif" />
    </ui:corporateBranding>
    - <ui:contents>
    - <oa:advancedTable id="ResultsAdvTable" viewName="RequestAccessDetailsVO1">
    - <ui:contents>
    - <oa:column id="column4">
    - <ui:columnHeader>
    <oa:sortableHeader id="sortableHeader4" prompt="Request ID" />
    </ui:columnHeader>
    - <ui:contents>
    <oa:messageTextInput id="RequestId" viewAttr="RequestId" readOnly="true" dataType="NUMBER" />
    </ui:contents>
    </oa:column>
    - <oa:column id="column1" width="75%">
    - <ui:columnHeader>
    <oa:sortableHeader id="sortableHeader1" prompt="Application Name" cellNoWrapFormat="true" abbreviation="" />
    </ui:columnHeader>
    - <ui:contents>
    - <oa:messageLovInput id="ApplicationName" viewAttr="ApplicationName" readOnly="false" maximumLength="100" columns="60" unvalidated="false" required="no" queryable="true">
    - <lovContents>
    - <oa:listOfValues id="region5" amDefName="wnsgs.oracle.apps.sysadmin.requestforaccess.server.RequestforAccessAM">
    - <ui:contents>
    - <oa:table name="region5" id="ApplicationNamepoplistVO1">
    - <ui:contents>
    <oa:messageStyledText id="ApplicationName1" dataType="VARCHAR2" prompt="ApplicationName" viewName="ApplicationNamepoplistVO1" viewAttr="ApplicationName" maximumLength="240" queryable="true" selectiveSearchCriteria="false" required="no" />
    </ui:contents>
    </oa:table>
    </ui:contents>
    </oa:listOfValues>
    </lovContents>
    - <lovMappings>
    <lovMap id="lovMap1" resultTo="ApplicationName" lovItem="ApplicationName1" criteriaFrom="ApplicationName" useForValidation="default" requiredForLOV="false" />
    <lovMap id="lovMap3" lovItem="ApplicationName1" resultTo="link" useForValidation="default" requiredForLOV="false" />
    </lovMappings>
    </oa:messageLovInput>
    </ui:contents>
    </oa:column>
    - <oa:column id="column2">
    - <ui:columnHeader>
    <oa:sortableHeader id="sortableHeader2" prompt="Responsibility Name" cellNoWrapFormat="true" />
    </ui:columnHeader>
    - <ui:contents>
    - <oa:messageLovInput id="ResposibilityName" viewAttr="ResponsibilityName" columns="60" unvalidated="false" required="no" disabled="false" tipType="none" readOnly="${oa.DisableFeildPVO1.xxdisable}" rendered="true">
    - <lovContents>
    - <oa:listOfValues id="region6">
    - <ui:contents>
    - <oa:table name="region6" id="ResponsibilitypoplistVO1">
    - <ui:contents>
    <oa:messageStyledText id="ResponsibilityName" dataType="VARCHAR2" prompt="ResponsibilityName" viewName="ResponsibilitypoplistVO1" viewAttr="ResponsibilityName" maximumLength="100" queryable="true" required="no" />
    <oa:messageStyledText id="ApplicationName2" dataType="VARCHAR2" prompt="ApplicationName" viewName="ResponsibilitypoplistVO1" viewAttr="ApplicationName" maximumLength="240" />
    </ui:contents>
    </oa:table>
    </ui:contents>
    </oa:listOfValues>
    </lovContents>
    - <lovMappings>
    <lovMap id="lovMap2" lovItem="ResponsibilityName" resultTo="ResposibilityName" criteriaFrom="ResposibilityName" useForValidation="default" requiredForLOV="false" />
    <lovMap id="lovMap4" lovItem="ApplicationName2" criteriaFrom="link" useForValidation="default" requiredForLOV="false" />
    </lovMappings>
    </oa:messageLovInput>
    </ui:contents>
    </oa:column>
    - <oa:column id="column3">
    - <ui:columnHeader>
    <oa:sortableHeader id="sortableHeader3" prompt="Delete" />
    </ui:columnHeader>
    - <ui:contents>
    - <oa:image id="Delete" source="deleteicon_enabled.gif" prompt="delete" imageHeight="24" imageWidth="24">
    - <ui:primaryClientAction>
    - <ui:fireAction event="delete">
    - <ui:parameters>
    <ui:parameter key="Requestid" value="${oa.RequestAccessDetailsVO1.RequestId}" />
    </ui:parameters>
    </ui:fireAction>
    </ui:primaryClientAction>
    </oa:image>
    </ui:contents>
    </oa:column>
    <oa:formValue id="link" viewAttr="ApplicationName" />
    </ui:contents>
    - <ui:tableActions>
    - <oa:flowLayout id="region4">
    - <ui:contents>
    <oa:submitButton id="AddRow" text="Add Another Row" prompt="Add Another Row" />
    </ui:contents>
    </oa:flowLayout>
    </ui:tableActions>
    </oa:advancedTable>
    - <oa:rowLayout id="region3">
    - <ui:contents>
    <oa:submitButton id="Save" text="Save" prompt="Save" disabled="false" />
    <oa:spacer id="item1" width="5" />
    <oa:submitButton id="Submit" text="Submit" prompt="Submit" />
    <oa:spacer id="item2" width="5" />
    <oa:submitButton id="Home" text="Go to Home" prompt="Go to Home" />
    </ui:contents>
    </oa:rowLayout>
    <oa:formValue id="requestid" viewName="RequestforAccessHeadersVO1" viewAttr="RequestId" />
    <oa:formValue id="UserID" viewName="RequestforaccessVO1" viewAttr="EmployeeNumber" />
    </ui:contents>
    </oa:pageLayout>
    </content>
    </page>
    Thanks
    Edited by: 926074 on Apr 16, 2012 6:21 PM

  • How to validate numbers in char field.

    Hello all,
    I have one database column with char data type. This field should allow insert only
    numbers [ zero to nine] and plus symbol .. how to validate this?
    Pls help me..
    I.m using oracle 9i database. So it does not allow REG-EXP and WITH methods.. So give some
    sql coding to do this

    As this forum is for issues with the SQL Developer tool, you'll probably get more answers in the SQL And PL/SQL forum.
    Regards,
    K.

  • How to validate the dates in the table control ?

    How to validate the dates in the table control ?
    Can I write like this ?
    LOOP AT it_tab .
    CHAIN.
    FIELD : it_tab-strtdat,it_tab-enddat.
    module date_validation.
    ENDCHAIN.
    ENDLOOP.
    Module Date_validation.
    ranges : vdat type sy-datum.
    vdat-sign = 'I'.
    VDAT-LOW = it_tab-STRTDAT.
    VDAT-HIGH = it_tab-ENDDAT.
    VDAT-OPTION = 'BT'.
    APPEND VDAT.
    WHAT CODE I have to write here to validate ?
    and If I write like this How can we know which is the current row being add ?
    It loops total internal table ..?
    Bye,
    Muttu.

    Hi,
    I think there is no need to put chain endchain.
    To do validation you have to write module in PAI which does required validations.
    Thanks
    DARSHAN PATEL

  • How to validate material status in physical Inv Doc creation using MI01

    Hi Experts,
    I would like to know how to validate material status while creating physical inventory document using MI01 transaction.
    I tried to figure out a suitable BADI and customer exits ,but it didnt work out well.
    Kindly share your thoughts on how this can be achieved.
    Regards,
    Mohammed Aslam Rasheed

    Do you really create your inventory documents with this MI01 transaction manually by entering material for material?
    The real transaction for physical inventory is MI31. How do you want SAP to react if hundreds of materials are selected and inventory documents are created in a batch process?
    SAP takes care about the material status in MI04 and MI07 transactions.
    I am not aware of any exit for MI01 maintenance, you may consider Explicit and Implicit Enhancement Options

  • How to Validate a User on the click of a button in Oracle APEX

    Hi,
    How to Validate a User on the click of a button in Oracle APEX.
    say for e.g: I want to allow only a specific user to go beyond after clicking on a button and restrict all the other Users. Any ideas please.
    Thanks in Advance,
    Af

    Well , the actual idea was to hide the button for specific users and show the button only for some specific users... is this possible...?
    @ AndyH: yeah, what you have suggested also fits well for my requirement... Could you please let me know how can i achieve it...
    Regards,
    Af

  • How to validate the file path when downloading.

    Hi
    How to validate the file path when downloading to Presentation or application Server.

    hiii
    you can validate file path by following way
    REPORT zvalidate.
    TYPE-POOLS: abap.
    DATA: w_direc TYPE string.
    DATA: w_bool TYPE abap_bool.
    w_dir = 'c:\Myfolder\'.
    CALL METHOD cl_gui_frontend_services=>directory_exist
    EXPORTING
    directory = w_direc
    RECEIVING
    result = w_bool
    EXCEPTIONS
    cntl_error = 1
    error_no_gui = 2
    wrong_parameter = 3
    not_supported_by_gui = 4
    OTHERS = 5.
    IF NOT w_bool IS INITIAL.
    WRITE:/ 'Directory exists.'.
    ELSE.
    WRITE:/ 'Directory does not exist.'.
    ENDIF.
    regards
    twinkal

  • How to validate a date in message mapping

    Hi experts,
                    how to validate a date in message mapping. For ex:  if date comes as 2008/02/31, then file it shold not get processed.how to achieve this in message mapping. Please help .
    Thanks&Regards,
    Reyaz Hussain

    Hi,
    There are few simple ways for date validation as follow,
    1.If you would like to handle it in XI only, then in message mapping you could verify about it with the help of generating smart exception.
    For e.g in mapping there is one Date conversion API i.e. somthing DateTransformation It converts the incoming date format to required format. Here give the date format i.e expected from Sender File.
    If in case the format miss-matched then it will create the exception.
    You could handle this exception with the use of [Alert notification|http://help.sap.com/saphelp_nw04/helpdata/en/2c/abb2e7ff6311d194c000a0c93033f7/frameset.htm] and could be even able to notify to sender system about it.
    2. The another solution is easy for SAP synchornous communication --If you are passing the file data to SAP, then you could use below function modules to verify date format in receiver RFC/BAPI or inbound IDOC program. If the sy-subrc is not 0 then don't process further.
    CONVERT_DATE_FORMAT
    ISU_DATE_FORMAT_CHECK
    Thanks
    Swarup

  • How to validate the  FI-AR& AP& FI-GL   and CO-PA extractor in R3

    Hi,
    I would like to do the integration testing in R/3 and BW.
    How to validate  Standard FI-AR& AP& FI-GL  and CO-PA extractor in R/3.
    Snapshot result of RSA3 and the tables?
    What are the tables and extractors need to be validate for FI-AR& AP& FI-GL   and CO-PA extractor in R3.
    As per our integration testing for FI-AR& AP& FI-GL   and CO-PA extractor in R3.
    How would i like to do the testing in BW QA system.
    Please some one will help me in this and answer would be great appreciate.

    Solved

  • How to validate Quantity field in TV - Inputfield ?

    Hello All,
            I'm using a table view to show the output .
    IN this table view I made 2 fields as Input fields.
    Both the fields are Quantity fields.
    Now when the user enters a value in this Quantity field I want to validate it with respect to it's units .
    How can I do that ?
    In my case if the user enters correct value it works but when he enters a wrong value my BSP is going for a dump.
    I tried to debug the<b> LIPS table</b> to verify how SAP was handling this checking for the field <b>LFIMG</b>. But there there is a statement called chain --endchain.
    SO there is no chance for debugging.
    My code is as follows :-
            LOOP AT gt_final INTO wa_final.
              CLEAR: gv_row,lv_qty,lv_string,gv_len,gv_cell_id1.
              gv_row = sy-tabix.
              gv_len = STRLEN( gv_row ).
              gv_len = gv_len - 1.
    * Modify the Third Column
              CONCATENATE 'INB01_TV_ID' '_' gv_row(gv_len) '_' '3' INTO gv_cell_id1 .
              lv_string = request->get_form_field( name = gv_cell_id1 ).
              WRITE lv_string TO lv_qty  UNIT wa_final-units.
              CLEAR :wa_final-del_quantity.
              wa_final-del_quantity = lv_qty.
              MODIFY gt_final FROM wa_final TRANSPORTING del_quantity.
            ENDLOOP.
    Can anyone tell me how to validate the entry for the Quantity filed ?
    Regards,
    Deepu.K
    I have one more Question .
    Whenever BSP goes for a dump in this case I want to handle this by a message .
    Is it possible ?
    Message was edited by:
            deepu k

    Hello Raja,
           I want to validate the entry in the QUantity field with respect to the Unit of the Quantity.
    I.e say for example I have a unit as PC (pieces) then the quantity must be only of thousands,lakks and so..on......but not in points i.e a piece quantity must be full either 200 ,2 lakhs or 2 pieces but not 2.5 pieces.
    SO now if the user enters 2.5 it's a wrong value as the quantity for the Unit PIECES can't have half-piece. (2.5 = 2 + 0.5) .SO i want to validate this .
    I hope I'm clear.
    How should I do ?
    Regards,
    Deepu.k

  • How to validate a program in background

    hello folks,
    i need to validate my program, my program should run only in background
    in case if it runs in foreground it should give error message. how to validate my
    program.
    can any one just tell the procedure how to do it.
    any help will be greatly appreciated,
    thanks in advance.
    regards,
    cnu

    Hello CNU,
    following snippet should do.
    Regards
      Klaus
    if ( 'X' ne sy-Batch ).
      message e000 with 'Only in Batch'(BTC).
    endif.

  • How to validate a filed in a search help which is created in se11

    hi
    i got a requirement that validate a search help. i created a ztable with 3 fileds for that one i have to create a search help so help me to how to validate fields in a search help.
    regards
    krishna

    Hello Krishna,
    What do you mean by validating a field? Usually you use a search help to display possible values for a certain input field based on values in another table. You can restrict the values that are displayed by certain conditions if you need to.
    If you want to allow only values based on complex conditions or authorizations of the user, you can always create a search help exit and in there you have complete control over what the user is allowed to see in the search help and what he is allowed to select.
    Function Module F4IF_SHLP_EXIT_EXAMPLE gives you an idea what you can do in a search help exit.
    Regards,
    Michael

  • How to validate a session object in jsp?

    Hi All,
    i am facing a problem.The problem is how to validate the session object object in jsp.I have written a java script by using a defined function as setInterval and has given 5 mintues if the user is idle and will show a pop up menu before time out the session but in case of page active still this pop up menu is coming. The java script as follows.
    function SetTimer(){
         //How long before timeout (should be a few minutes before your server's timeout
         //set timer to call function to confirm update
         if(timeoutMinutes)
         timerObj = setInterval("ConfirmUpdate()",60000);
    function clearTimerFn(){
              timerCount = 0;
              clearInterval(timerObj);
              //timerObj = setInterval("ConfirmUpdate()",60000);
    function ConfirmUpdate(){
         //Ask them to extend
         if(confirm("Your session is about to expire. Press 'OK' to renew your session.")){
              //load server side page if ok
              var url = "ajaxSessionchecker.do?sessionvalidate=sessionvalid";
              LoadXMLDoc(url);
    And in jsp i am calling this js function as
    <%session=request.getSession(false);
              if(session.getLastAccessedTime()==60000){ %>
              <script type="text/JavaScript">
         clearTimerFn();
    </script>
    <%}else{
    session.setMaxInactiveInterval(-1000);} %>
    could you pls help me out?

    The reason for doing this is when ever i come to this user.jsp from account.jsp with a different account number this user.jsp is not refreshed and i still
    see the same old user.jsp for the previous account that i naviated before. Also please let me know if there is any other approach to acheive this taskDoes refreshing the page by pushing F5 solve the problem?
    If so, then the browser is caching the page, despite your attempts to stop it.

  • How to validate multiple lines which is exist in the form builder at the same session

    Hi All,
    we are working on oracle Forms personalization to trigger the message at the point of saving multiple lines rather than requiring each line to be save individually. Currently the oracle form is allowing to user to enter two distinct lines that have same resource and basis type in BOM.
    Currently the Oracle form is allowing to enter the duplicate combination and not giving any error message even we enter the same combination of data.
    As per the customer requirement, they don’t want to validate the data while creating the records but when they try to save the form, in that case it should validate all the records at a time then need to display the appropriate message.
    Customer don’t want to customize the Oracle standard form. Here we have only option to use form personalization or through custom.pll.
    Any idea on how to validate multiple lines which is exist in the form builder at the same session as before inserting the record itself need to perform the validations for all the records.
    Thanks for your help in this regard.
    Regards,
    Thirupathi

    you can write a post script which will do the necessary tasks.
    I mean, once you are done with inserting records into these tables, exeute another procedure which will insert these "extra" records, based on some logic.
    you may not be able use DB trigger as it may generate mutating error or if you don't write it carefully, it will go into recursive loops as you are refering to same tables.
    HTH

  • How to validate xml file with XSD schema ??  in JDK1.4.2

    How to validate xml file with XSD schema ?? in JDK1.4.2
    i dont want to use new Xerec Jar ...
    Suggest option ...

    Please do not double-post. http://forum.java.sun.com/thread.jspa?threadID=5134447&tstart=0
    Then use Stax (Woodstock) or Saxon.
    - Saish

Maybe you are looking for