API to validate fnd_flex based on table?

Hi all,
In R12 , I have a flexfield that has a validation type: Table for thier valu sets.. Te validation is against a lookup so.. I need to know if there is any API that validates values for this.. or I need to query first for the value set in the flexfield and after that.. query in fnd_lookups and fnd_lookup_values...
does any of you know is there exists an API to validate this?
Thanks.

Not much clear what you are ultimately trying to achieve. On HR you may find some %util% packages that help you validate against a lookup, even considering the language of the environment. I guess it was hr_pump_utils.It has validations against lookup tables as well as other entities, bye giving the user value and returning the code or id if found.
If not, you can create your own, passing the lookup type, the description, and optionally the language and use that to query the lookups table and validate the info received.

Similar Messages

  • What is the API to validate all the mappings against the DB at runtime?

    What is the API to validate all the mappings against the DB at runtime?
    Meaning checking that all tables and fields really exist and are compatible type.
    Existance of sequence referenced could be check and checking if the increment is correct in Oracle could also be done.
    I was unable to find any API on anything.
    Those validation seem to be basic check that all applications should be doing.

    All of TopLink's metadata validation is done during session login. By default it assumes all of the provided database metadata is correct. If you want TopLink to validate against the database you must enable this on the session's integrity checker prior to login.
            DatabaseSession session = (DatabaseSession)SessionManager.getManager().getSession("employee-basic-database", false);
            session.getIntegrityChecker().checkDatabase();
            session.login();Doug

  • Accessing schema-based XML table

    HI Gentlemen,
    I have a schema-based XMLtype table that I have to query in detail (e.g. via XPath). Documentation states that XML mapping is possible through some Java programming. However, I do not have XML content in a .xml file, it has already been loaded into Oracle DB (that is - non-JAXB)!
    Can anybody recommend a sample code or description of the technology?
    Thanks, regards from
    Miklos HERBOLY

    Your xml document may by represented as an column, you will got the content as other attributes.
    You will not be able to manage the structure of your document natively via the adf layer ... you may marshall/unmarshall the content into a class you build with jaxb or with castor by example (much better interface and classes).
    Note that you will be able to generate a data control from the class that represent the document and use the elements (and/or attributes) of your sturcture in your web pages by drag and drop like for columns in a table.
    Hope this help a little bit

  • Schema-based xmltype table

    Below mentioned is the schema-based xmltype table
    CREATE TABLE BRSK.MEDV_brpubdoc_tab OF XMLType
    XMLSCHEMA "http://xmlns.oracle.com/xdb/schemas/BRSK/www.medversation.com/brpubdoc/brpubdoc.xsd"
    ELEMENT "brpubdoc"
    TABLESPACE BRSK_M;
    when ever delete the old schema and register the new schema should i drop the previous xmltype table and create the new one?If this is the case then we will be losing the previous xml contents.Is there is a way to avoid drop and creation on xmltype table on schema delete and schema registration.Please help me out on this.

    I hava gone through the below mentioned link http://download-east.oracle.com/docs/cd/B12037_01/appdev.101/b10790/xdb07evo.htm which states In prior releases an XML schema, once registered with Oracle XML DB at a particular URL, could not be modified or evolved because there may be XMLType tables that depend on the XML schema. There was no standard procedure for schema evolution. This release supports XML schema evolution by providing a PL/SQL procedure CopyEvolve() a part of the DBMS_XMLSCHEMA package. CopyEvolve() involves copying existing instance documents to temporary tables, dropping and re-registering the XML schema, and copying the instance documents to the new XMLType tables.So i think schema evolution works in 10g only

  • Need an API to Validate the Segment Values of an GL Code Combination

    Hi,
    I have a requuirement wherein i need to validate the semgent values of an GL Code Combination. I want to know is there any API to Validate the Segment Values. The API should be able to validate the segment values for existence in value set, enabled/disabled, Posting flag enabled or disabled (i.e Compiled Attributes Validation).Please provide me some pointers.
    Thanks & Regards,
    Siva

    look at FND_FLEX_EXT or FND_FLEX_KEYVAL
    FND_FLEX_KEYVAL.validate_segs

  • OIM 11g R2 - API to validate user's password

    Hi,
    Is there any API available to validate if an user's password in OIM is valid.I have an user login and password and need to verify if the user's password in OIM is same the input password.I am not looking for the API to validate my password against password policy,for which I have the API.
    Thanks.

    One of the ways to do it would be to decrypt the current password and then compare with the new password. Where are you doing this check? Depending upon where you want to do this, you can use different ways to decrypt the current password of the user.
    There are various posts in the forum about decryting the password.
    On a side note, if your policy does not allow same password, then new password validation against the policy should suffice your requirement.
    -Bikash

  • TCA Java APIs not able to validate input against LOOKUP table

    Hi there,
    I am using the TCA Java APIs to create new source system references like so:
    HzOrigSystemRefPub wrapper = new HzOrigSystemRefPub();
    wrapper.createOrigSystemReference(connection, "T", record, x_return_status, x_msg_count, x_msg_data);
    The record has the following attributes set:
    l_orig_sys_reference_rec.created_by_module := 'TCA_V2_API';
    l_orig_sys_reference_rec.owner_table_name := 'HZ_PARTIES';
    When I run my java code however, the call returns an error saying that the values I have mentioned in the above two attributes were not in my lookup tables:
    1. Value for owner_table_name must be a value defined in lookup type TCA_OWNER_TABLE.
    2. Value for created_by_module must be a value defined in lookup type HZ_CREATED_BY_MODULES.
    When I run queries directly against the database in SQLDeveloper, I am able to find these values. They do exist.
    For some reason, when using the Java API, it cannot find the lookup values.
    I even tried calling the PL/SQL API from Java and the same problem exists.
    Is this a bug?
    Can anyone please help me?
    Thanks in advance!

    OK, solved my own problem.
    The solution is to set the language environment variable to 'AMERICAN'.
    It's a known bug.
    Set it from your Java code like this:
    OracleCallableStatement setter =
    -------(OracleCallableStatement)connection.prepareCall(
    -------"ALTER SESSION SET NLS_LANGUAGE = 'AMERICAN'");
    setter.execute();
    Now any calls after this statement to the Java APIs will work.
    Cheers!

  • API to validate a value against a value set

    I have a 'Table' Value Set based on the MTL_CATEGORIES_V view, and need to validate some loaded data against it to check the loaded values are are valid. Rather than use a cursor to perform a lookup of the value in MTL_CATEGORIES_V, is there an API that can be used instead?
    I thought I'd found something when I discovered "FND_FLEX_VAL_UTIL.is_value_valid", but this seems to just check that a value meets the criteria of the valueset based on the datatype. size, hi-lo range etc, it doesn't check if the value is actually permitted within the set.
    Andy

    Hi,
    you can use fm FM_DOMAINVALUE_CHECK. Pass parameter values for I_DOMNAME and I_DOMVALUE.
    If the value is invalid, exception VALUE_NOT_ALLOWED will occur.
    Regards,
    Klaus

  • Validate a value against table validation value set within PL/SQL

    Hi,
    I am trying to import price list lines along with Pricing attribute values.
    I have to validate the uploaded values against the pricing attribute value set, before I import them into base tables.
    Value set defined is of type table validation.
    I wanted to know if there are any public APIs that can be used to validate the value against the Value set values within my PL/SQL procedure
    Also please point me to documentation that lists various public PL/SQL APIs
    Regards,
    Mrutyunjay

    You can find functions and procedure for Value sets in packages FND_FLEX_VAL_API or FND_FLEX_VAL_UTIL.
    Example : get_table_vset_select gives you the select statement of your value set. Executing this statement will allow you to validate your values.

  • Help on form based on tables

    Hi
    I am new to Portal,
    My problem is I have a form based on a table, Now I want to process the form after a validation (eg: username and password)
    so I added two more new components to the form to get username and password and I tried to validate this by writing a procedure to the submit button before 'doinsert;'. Then I cant get the values of those two new fields by
    uname:= p_session.get_value_as_VARCHAR2(
    p_block_name => 'DEFAULT',
    p_attribute_name => 'A_UNAME');
    Anyone have a solution?
    Thanks.

    thanks for the clue, but what i want is to validate the username and password befor do insert what i tried is
    declare
    mid member.member_id%Type;
    msg_id number;
    user member.uname%Type;
    pswd member.pwd%Type;
    begin
    msg_id := p_session.get_value_as_NUMBER(
    p_block_name => 'DEFAULT',
    p_attribute_name => 'A_U_ID');
         user := p_session.get_value_as_VARCHAR2(
    p_block_name => 'DEFAULT',
    p_attribute_name => 'A_PWD');
         pswd := p_session.get_value_as_VARCHAR2(
    p_block_name => 'DEFAULT',
    p_attribute_name => 'A_REPLY_TO');
         SELECT member.member_id INTO mid
         FROM member
         WHERE member.uname= user AND member.pwd= pswd;
         IF mid<>null THEN
              p_session.set_value(
                   p_block_name => 'DEFAULT',
              p_attribute_name => 'A_MEMBER_ID',
              p_value => mid);
              doInsert;
              proc_update1(msg_id);
         END IF;
    end;
    but this gives an error!
    help needed urgently!
    thanks

  • How to create a form based on table@databaselink

    I have created a database link under OracleXe to access an Oracle 9i and it works very well. I can manually access the tables that I like to see. Want to experiment to create a form under HTMLDB based on a table from another database that I have created DataLink to. When I go choose Create Application in HMTLDB and then select Form from page type under table or view I tried to do this tablename@databaselink but it seems it can not find the table this way. Any idea how to do this?
    Thanks

    Mike,
    As I am trying to test and learn more about htmldb I was trying to get some data from oracle 9i to oracleXe, create some forms, reports and etc. At first I tried to use views and forgot to add the primary key, got the error so I posted the message on the board.
    Then I did try out the “long way” creating tables with package and procedure and some other fun stuff to create an application which by the way it worked very well. Then I created some users and changed some password. When I tried again to run the application I start getting “invalid login credentials”. After many attempts finally I went home, as I was driving home I thought about something and at home I tried it.
    I did some testing and noticed if I create a user under admin say userA+passwordA then login with userA+passwordA, create a table and then create an app base on that table and then run the app, with userA+passwordA I can login and app works perfectly. Then I logged out and as admin logged in, changed the userA password to passwordB. I logged out and logged in with userA+passwordB and then when I tried to run the app I get the “invalid login credentials”, when I change the passwordB to passwordA the app will works again. This is suppose to be this way!
    Again thanks to all

  • Error Page with my own Error Message based on table

    <p class="MsoNormal"><span style="" lang="EN-AU">Hi All<o:p></o:p></span></p> <p class="MsoNormal"><span style="" lang="EN-AU">I want to share my code (based on Apex_Lib code. Thanks Patrick) , maybe can help somebody else<o:p></o:p></span></p> <p class="MsoNormal"><span style="" lang="EN-AU">Purpose: Replace the DB errors messages ( i.e ORA-00001- primary constraint ) with my own Message fetched from a table.<o:p></o:p>  <o:p></o:p></span></p> <p class="MsoNormal"><span style="" lang="EN-AU">Components: 4 components<o:p></o:p></span></p> <p class="MsoNormal"><span style="" lang="EN-AU">1. Java Script function ( MyErrorPage )<o:p></o:p><br>2. My Custom Error Page Template<o:p></o:p><br>3. Application item ( you can use any item )<o:p></o:p><br>4. Application Process ( getErrorMsg )<o:p></o:p></span></p> <p class="MsoNormal"><span style="" lang="EN-AU"> 5. My Error Table.<span style="">  </span>( Provided just as example )<o:p></o:p><br>6. Display example<o:p></o:p></span></p> <p class="MsoNormal"><span style="" lang="EN-AU"> Integration:<o:p></o:p></span></p> <p class="MsoNormal"><span style="" lang="EN-AU"> 1 Identify your Error Page Template and Go there. In my case for example is LOGIN<o:p></o:p></span></p> <p class="MsoNormal"><span style="" lang="EN-AU">1.1 Under Definition / Header. <o:p></o:p></span></p> <p class="MsoNormal"><span style="" lang="EN-AU"> Copy the follow JS<o:p></o:p></span></p> <p class="MsoNormal"><span style="" lang="EN-AU"> &lt;script type="text/javascript"&gt;<br><br>function MyErrorPage(p_err_item,p_err_process)<br>{<br><br> var vElementList = null;<br> var vErrorStack  = null;<br> var vOraError    = null;<br> var vOraCode     = null;<br> var vAjaxRequest = null;<br> var vAjaxResult  = null;<br> var vMyMsg       = '';<br><br> vElementList = window.document.getElementsByTagName("div");<br> for (i=0; i &lt; vElementList.length; i++)<br> {<br>  if (vElementList.className == "ErrorPageMessage")<br>  {<br>    vErrorStack = (vErrorStack ==null?"":vErrorStack+"&lt;br/&gt;")+vElementList[i].innerHTML;<br>    vElementList[i].innerHTML = '';<br>    vOraError = vErrorStack.split("ORA-");<br><br>    for(var i=1; i &lt; vOraError.length; i++) {<br><br>      vOraCode = vOraError[i].substring(0,5);<br><br>      vAjaxRequest = new htmldb_Get(null,&amp;APP_ID.,'APPLICATION_PROCESS='+p_err_process,0);<br>      vAjaxRequest.add(p_err_item,vOraCode);<br>      vAjaxResult = vAjaxRequest.get();<br><br>      if (vAjaxResult) {<br>        vMyMsg = vMyMsg + vAjaxResult + '&lt;br&gt;' ;<br>      } else {<br>        vMyMsg = vMyMsg + 'ORA-'+vOraError[i].substring(0) + '&lt;br&gt;' ;<br>      }<br><br>    }<br>    document.getElementById('ORA').innerHTML = vMyMsg;<br><br>  }<br> }<br>}<br>&lt;/script&gt;<o:p></o:p></span></p> <p class="MsoNormal"><span style="" lang="EN-AU">   <o:p></o:p></span></p> <p class="MsoNormal"><span style="" lang="EN-AU">1.2 Under Definition / Header. <o:p></o:p></span></p> <p class="MsoNormal"><span style="" lang="EN-AU">&lt;body onload="MyErrorPage('F103_ERR_CODE','getErrorMsg')" #ONLOAD#&gt;#FORM_OPEN#<o:p></o:p>  <o:p></o:p></span></p> <p class="MsoNormal"><span style="" lang="EN-AU">You can replace with your own ITEM and APPLICATION PROCESS<o:p></o:p></span></p> <p class="MsoNormal"><span style="" lang="EN-AU">2. Under Error Page Template Control<o:p></o:p>  <o:p></o:p></span></p> <p class="MsoNormal"><span style="" lang="EN-AU">&lt;table summary=""&gt;&lt;tr&gt;&lt;td&gt;&lt;img src="/i/error.gif" border="0" /&gt;&lt;/td&gt;<o:p></o:p><br>&lt;/tr&gt;<o:p></o:p><br>&lt;b id='ORA'&gt;Error&lt;/b&gt;<o:p></o:p><br>&lt;tr&gt;&lt;td&gt;&lt;a href=#BACK_LINK#&gt;#OK#&lt;/a&gt;&lt;/td&gt;<o:p></o:p><br>&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;<o:p></o:p>  <o:p></o:p></span></p> <p class="MsoNormal"><span style="" lang="EN-AU">3. Application Item <o:p></o:p></span></p><p class="MsoNormal"><span style="" lang="EN-AU">F103_ERR_CODE<span style="">   </span><o:p></o:p></span></p> <p class="MsoNormal"><span style="" lang="EN-AU">4. Application Proccess.<o:p></o:p>  <o:p></o:p></span></p> <p class="MsoNormal"><span style="" lang="EN-AU">Name : getErrorMsg<o:p></o:p><br>Process Poing : ON DEMAND<span style="">  </span>( Make sure about this )<o:p></o:p><br>Process Text :<o:p></o:p>  <o:p></o:p></span></p> <p class="MsoNormal"><span style="" lang="EN-AU">declare<o:p></o:p><br><span style="">  </span>l_msg<span style="">  </span>varchar2(500);<o:p></o:p><br>begin<o:p></o:p><br><span style="">  </span>for i in (select msg_code, msg_desc from apex_message<o:p></o:p><br><span style="">             </span>where msg_code = :F103_ERR_CODE ) <o:p></o:p><br><span style="">  </span>loop<o:p></o:p><br><span style="">    </span><span style=""></span>l_msg := 'GEN-'||i.msg_code||': '||i.msg_desc;<o:p></o:p><br><span style="">  </span>end loop;<span style="">    </span><o:p></o:p><br><span style="">  </span>htp.prn(l_msg);<o:p></o:p><br>end;<o:p></o:p>  <o:p></o:p></span></p> <p class="MsoNormal"><span style="" lang="EN-AU">5. Create Apex_message (<o:p></o:p><br><span style=""> </span>id<span style="">               </span>number,<span style="">          </span>-- PK<o:p></o:p><br><span style=""> </span>msg_code<span style="">  </span>varchar2(10)<span style="">     </span>-- UK<o:p></o:p><br><span style=""> </span>msg_desc<span style="">  </span>varchar2(100) );<o:p></o:p><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal"><span style="" lang="EN-AU">6. Scenario: Table or View does not exist coming with 3 "ORA" errors<o:p></o:p></span></p> <p class="MsoNormal"><span style="" lang="EN-AU">There is only one record in Apex_message with msg_code = '00942' therefor it will replace error message for ORA-00942.<span style="">  </span>( note that value for msg_code is<span style="">  </span>'00942' and not 'ORA-00942' )<o:p></o:p>  <o:p></o:p></span></p> <p class="MsoNormal"><span style="" lang="EN-AU">Before<o:p></o:p></span></p> <p class="MsoNormal"><span style="" lang="EN-AU">ORA-06550: line 1, column 28: PL/SQL:<o:p></o:p><br>ORA-00942: table or view does not exist<o:p></o:p><br>ORA-06550: line 1, column 7: PL/SQL: SQL Statement ignored<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 247.8pt; text-indent: -247.8pt;"><span style="" lang="EN-AU"> After<o:p></o:p><br></span></p> <p class="MsoNormal"><span style="" lang="EN-AU">ORA-06550: line 1, column 28: PL/SQL:<br>GEN-00942: My own Message <o:p></o:p><br>ORA-06550: line 1, column 7: PL/SQL: SQL Statement ignored<o:p></o:p></span></p> <p class="MsoNormal"><span style="" lang="EN-AU">I did this because I do not want to create my own DML process for each table<o:p></o:p><br>I hope this can help. <o:p></o:p>  <o:p></o:p></span></p> <p class="MsoNormal">Regards</p> <p class="MsoNormal">Marcelo</p>

    True the main method does not throw any exceptions, that's because there is no higher level to throw them to (actually it implicitly throws any uncaught exceptions to the JVM). That does not mean that you can't write your own try catch block around the code in the main method.

  • How to restrict the duplicate values in lov column of VO based Adv Table

    Hi Gurus,
    I want to restrict the duplicate values at lov which is a colunm in an Adv Table.
    If user enters duplicate values then first it should show an error msg that Duplicate values have been entered.
    After the duplicate values have been removed, then the user can save all the values in the table.
    My Adv Table is based on a VO.
    The link how to restrict the duplicate values at form level
    talks about Adv Table based on a EoVO, which doesnot work in my case.
    My Approach,
    I am iterating through RowSetIterator and committing through PROCEDURE.
    I am able to avoid duplicate entry through a function checkRespId. (given below)
    Below code is for iterating and committing.
    public void saveline(String reqid,String userid)
    System.out.println("RequestId/saveline"+reqid);
    System.out.println("UserId/saveline"+userid);
    OAViewObject vo = (OAViewObject)getRespLineVO1();
    RespLineVORowImpl row = null;
    int fetchedRowCount = vo.getFetchedRowCount();
    RowSetIterator deleteIter = vo.createRowSetIterator("deleteIter");
    if (fetchedRowCount > 0)
    deleteIter.setRangeStart(0);
    deleteIter.setRangeSize(fetchedRowCount);
    for (int i = 0; i < fetchedRowCount; i++)
    System.out.println("Inside the for LOOP");
    row = (RespLineVORowImpl)deleteIter.getRowAtRangeIndex(i);
    String respoidid = row.getAttribute("ResponsibilityId")+"";
    String respname = row.getAttribute("ResponsibilityName")+"";
    String stdate = row.getAttribute("StartDate")+"";
    String enddate = row.getAttribute("EndDate")+"";
    String linestatus ="A";
    if(userid!=null)
    if(!(respoidid.equals("null")) && respoidid!=null)
    String checkingrespid=null;
    checkingrespid = checkRespId(userid,respoidid);+contains no if not duplicate and yes if its duplicate+
    System.out.println("checkingrespid for Resp with ID :"+respoidid+"exists or not "+checkingrespid);
    if(checkingrespid.equals("No"))
         String message, result = null;
    Connection txn = getOADBTransaction().getJdbcConnection();
    try
    calling PROC ...
    catch(Exception e)
    message = "Error in Inserting into line" + e;
    throw new OAException(message, OAException.ERROR);
    else
    throw new OAException("You have entered duplicate no. of values", OAException.ERROR);
    else
    System.out.println("respoidid is null");
    break;
    deleteIter.closeRowSetIterator();
    public String checkRespId(String userid,String respoidid)
    String createRow="No";
    OAViewObject vo = (OAViewObject)findViewObject("CheckRespVO1");
    if (vo != null)
    vo.setWhereClauseParams(null);
    vo.setWhereClauseParam(0, userid);
    vo.setWhereClauseParam(1, respoidid);
    vo.executeQuery();
    System.out.println("ROW COUNT IS "+vo.getRowCount());
    if(vo.getRowCount()>0)
    createRow="Yes";
    else
    createRow="No";
    return createRow;
    Problem:
    I remove the duplicate entries and click on save and get this error.
    Unable to perform transaction on the record. \nCause: The record contains stale data. The record has been modified by another user.
    \nAction: Cancel the transaction and re-query the record to get the new data.
    Thanks,
    Sombit

    Hi Anil,
    I am trying out your code but stuck in inserting the rows
    using your code in URL: http://oracleanil.blogspot.com/2010/09/oaf-passing-table-type-object-to-oracle.html
    I am always getting the same exception i.e COde blast in when I run.
    My modified code is:
    String[] as = null;
    Number[] vNumber = null;
    Number[] vNumberrespid = null;
    Number reqidnumber = null;
    reqidnumber = new Number(Integer.parseInt(reqid));
    Connection txn = getOADBTransaction().getJdbcConnection();
    String mCreateSearchRequestStatement = null;
    OAViewObject vo = (OAViewObject)findViewObject("RespLineVO1");
    int j = vo.getFetchedRowCount();
    try
    System.out.println("abouce try");
    vo.reset();
    if (vo.getFetchedRowCount() > 0)
    System.out.println(String.valueOf("Fetched row count ").concat(String.valueOf(vo.getFetchedRowCount())));
    int i = 0;
    as = new String[j];
    vNumber = new Number[j];
    vNumberrespid = new Number[j];
    while (vo.hasNext())
    vo.next();
    System.out.println(String.valueOf("Inisde the do while loop").concat(String.valueOf(i)));
    vNumber[i] = (reqidnumber);
    vNumberrespid = ((Number)vo.getCurrentRow().getAttribute("ResponsibilityId"));
    as[i] = String.valueOf(vo.getCurrentRow().getAttribute("ResponsibilityName")).concat(String.valueOf(""));
    System.out.println("Request ID "+reqidnumber[i]);//getting null even there is some value selected
    System.out.println("ResponsibilityId "+vNumberrespid[i]);//getting null even there is some value selected
    System.out.println("Resp Name "+as[i] );//getting null even there is some value selected
    i++;
    CallableStatement cs = txn.prepareCall("{call XX_PassTableType.XX_PassTableType_prc(:1, :2,:3)}");
    ARRAY array = new ARRAY(new ArrayDescriptor("APPS.JTF_NUMBER_TABLE", txn), txn, vNumber);
    ARRAY arraynew = new ARRAY(new ArrayDescriptor("APPS.JTF_NUMBER_TABLE", txn), txn, vNumberrespid);
    ARRAY array1 = new ARRAY(new ArrayDescriptor("APPS.JTF_VARCHAR2_TABLE_100", txn), txn, as);
    cs.setArray(1, array);
    cs.setArray(2, arraynew);
    cs.setArray(3, array1);
    cs.registerOutParameter(3, 2003, "JTF_VARCHAR2_TABLE_100");
    cs.execute();
    ARRAY error = null;
    error = (ARRAY)cs.getArray(2);
    if ((error != null) && (error.length() > 0))
    System.out.println(String.valueOf("Error is ").concat(String.valueOf(error.getArray())));
    String[] retError = new String[j];
    retError = (String[])error.getArray();
    System.out.println(String.valueOf("Error in saving data").concat(String.valueOf(retError[0])));
    cs.close();
    catch (Exception exception)
    throw new OAException("code blast", OAException.ERROR);
    Thanks,
    Sombit

  • API for Updating fileds in cn_payment_transactions_all table(OIC module)

    Hi,
    I have a requirement to put the Sales Commission Lines (Oracle Incentive Compensation module) on hold for a particular Salesperson if the corresponding invoice line has an amount due not equal to zero.
    Now to put the commission lines on hold I need to update the hold_flag of the cn_payment_transactions_all table.
    I need help to find the API which I can use to update the hold_flag.I searched metalink on the same but did not find anything suitable.
    Please advice which API I should use or any reference where I can find any suitable documents on that.Can i update the hold_flag directly in case i do not find any API to update this flag.
    Thanks in advance......
    Regards
    Subhabrata
    Edited by: user10816003 on Dec 28, 2009 6:05 AM

    Hi Subhabrata,
    I am not sure if there is any standard API to do this update.
    Looks like you have requirement to pay the commission only when the invoice is fully paid.
    Customizing like this is not the best option. There are outbox ways to design the collection/plan so that you pay commission when the invoice is paid.
    Thanks
    Srini Parimi
    Edited by: user12263675 on Dec 29, 2009 10:40 AM

  • Generating an  html report based on table at sql 2005 db

    Hi
    I want to create an html report based on a table named inventory on sql server 2005 database.
    first code used to generate an output report
        try {
                // TODO add your handling code here:
                String s = "<html> <body> <table border=1><caption> Inventory Report </caption>";
                s += "<tr><td>Item_id<td>item_name<td>Existing quantity</td><tr><td>3<td>4<td> <td>";
                byte[] sb = s.getBytes();
                FileOutputStream fs = null;
                try {
                    fs = new FileOutputStream("D:\\Report\\Report.html");
                } catch (FileNotFoundException ex) {
                    Logger.getLogger(mileshframe.class.getName()).log(Level.SEVERE, null, ex);
                fs.write(sb);
                fs.close();
            } catch (IOException ex) {
                Logger.getLogger(mileshframe.class.getName()).log(Level.SEVERE, null, ex);
    Second jdbc  code for connection and select all records in the table
    try {
                Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                 con = DriverManager.getConnection("jdbc:odbc:MerchandiseCon","sa","sql123#");
                st = con.createStatement( );
    ResultSet rset=st.executeQuery("Select Item_code,Item_Name,item_cost,item_quantity  from Inventory");
         String s="";
    while(rset.next())
        s+=(rset.getString(1)+"\t\t"+rset.getString(2)+"\t"+rset.getString(3)+"\t"+rset.getString(4)+"\n");
          st.close();
                con.close();
         catch(ClassNotFoundException ex)
             ex.printStackTrace();
          catch(SQLException ex)
             ex.printStackTrace();
            }                             I want someone helps me to merge two codes into one code to generate an output html report.
    thanks in advance

    This is my trial but not the desired result ,it's displayed the title and a line only
        private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {                                        
            // TODO add your handling code here:
                          String s = "<html> <body> <table border=1> <caption>Report title</caption>";
                byte[] sb = s.getBytes();
                FileOutputStream fs = null;
                try {
                // TODO add your handling code here:
                try {
                    fs = new FileOutputStream("D:\\Report\\myeport.html");
                } catch (FileNotFoundException ex) {
                    Logger.getLogger(NewJFrame.class.getName()).log(Level.SEVERE, null, ex);
                fs.write(sb);
                fs.close();
            } catch (IOException ex) {
                Logger.getLogger(NewJFrame.class.getName()).log(Level.SEVERE, null, ex);
                try {
                Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                 con = DriverManager.getConnection("jdbc:odbc:MerchandiseCon","sa","sql123#");
                st = con.createStatement( );
    ResultSet rset=st.executeQuery("Select Item_code,Item_Name,item_cost,item_quantity  from Inventory");
    while(rset.next())
                   s+=("<tr><td>"+rset.getString("Item_Code")+"</td><td>"+rset.getString("Item_Name")+"</td><td>"+rset.getString("item_cost")+"</td><td>"+rset.getString("item_quantity")+"</td></tr>");
                try {
                // TODO add your handling code here:
                try {
                    fs = new FileOutputStream("D:\\Report\\myeport.html");
                } catch (FileNotFoundException ex) {
                    Logger.getLogger(NewJFrame.class.getName()).log(Level.SEVERE, null, ex);
                fs.write(sb);
                fs.close();
            } catch (IOException ex) {
                Logger.getLogger(NewJFrame.class.getName()).log(Level.SEVERE, null, ex);
         st.close();
                con.close();
         catch(ClassNotFoundException ex)
             ex.printStackTrace();
          catch(SQLException ex)
             ex.printStackTrace();
        }

Maybe you are looking for

  • Scheduled Data Refresh fails with 400 error

    I've setup a PowerPivot Model, connected 1.5 Million rows (57MB file) rendered the data in a powerpivot table and uploaded it to an PowerBI enabled BI site in O365. Report renders online Q&A works too Configured data management gateway Connected DMG

  • Lenovo Flex 2 15 warranty is incorrect

    I bought my laptop on November 11th, 2014. I bought it at Futureshop in Canada. I looked up the warranty status and it has the wrong date on it.  I have called 2 times and they said it would be fixed in 24 hours. Today I check and it is still the inc

  • Hard drive will not mount with 10.4 but will mount with 10.3

    I have a G4 powerbook running on 10.4.11. There is a western digital my book external drive hooked up to the USB port. I have two partitions on it. I tried to change the group settings to read write and got an error saying I did not have permission.

  • How may load an external (html) file in swf? Anyone!!!!!

    hi all,     How may load an external html file in swf? such as google.com in a movieclip. anyone may help me.........????????

  • Really, Really, REALLY complex Tween Question

    Ok, this is the BIG one: I have a motion tween, moving a single graphic forward & backward on an even plane, comprised of six keyframes. I built this animation about a year ago. Now I want to add a keyframe thirty frames after the last keyframe in th