Dependent LOV throws Exception

Hello,
I want to implement a dependent LOV:
I have a LOV Competency and a dependent Proficiency LOV.
e.g. in Competence LOV I search for Oracle DBA then I only want the Proficiency level concering to Oracle DBA
e.g. certified, not certified.
The leading Competence LOV I have, does have the following select:
SELECT <b>COMPETENCE_ID</b>,
SEGMENT1
FROM PER_COMPETENCES_V
ORDER BY COMPETENCY
The dependent Proficiency LOV
SELECT <b>cpl.COMPETENCE_ID</b>,
cpl.NAME COMPETENCY,
cmp.RATING_SCALE_ID,
rsl.NAME RATING_SCALE_NAME,
<b>rtl.RATING_LEVEL_ID</b>,
rtx.NAME RATING_SCALE_LEVEL_NAME
FROM PER_COMPETENCES cmp,
PER_COMPETENCES_TL cpl,
PER_RATING_SCALES rsc,
PER_RATING_SCALES_TL rsl,
PER_RATING_LEVELS rtl,
PER_RATING_LEVELS_TL rtx
WHERE 1=1
AND cpl.COMPETENCE_ID = cmp.COMPETENCE_ID
AND cpl.LANGUAGE = USERENV ('LANG')
AND cmp.RATING_SCALE_ID =rsc.RATING_SCALE_ID(+)
AND cmp.RATING_SCALE_ID = rsl.RATING_SCALE_ID(+)
AND rsl.LANGUAGE(+) = USERENV ('LANG')
AND rtl.RATING_SCALE_ID IS NOT NULL
AND rtl.RATING_LEVEL_ID = rtx.RATING_LEVEL_ID
AND rtx.LANGUAGE = USERENV ('LANG')
AND rtl.RATING_SCALE_ID = rsc.RATING_SCALE_ID
AND rsc.TYPE='PROFICIENCY'
ORDER BY cmp.COMPETENCE_ID, rtx.RATING_LEVEL_ID
In both LOV Regions I use form values as NUMBER fields.
form values:
Competency LOV =>Competence_ID (Number)
Proficiency LOV =>Competence_ID (Number),Rating_Level_ID (Number)
Then I did the mappings for both LOVs. Additionally to Proficiency LOV mapping
I add a mapping to get a conjunction between from Proficiency Level to Competence LOV
The necessary mapping within Proficiency Level Region is as follows.
LOV Region Item =>xxmiProfCompetenceID
Criteria Item => CompLOV
Everything renders fine, I can choose a comptency with a return value but when I search for a dependent Proficiency level
I got the following error message =>
The value Oracle DBA specified for the item xxmiProfCompetenceID
oracle.apps.fnd.framework.OAException: The value Oracle DBA specified for the item xxmiProfCompetenceID is an invalid number.
I have checked the column xxmiProfCompetenceID also in view object and there the value is also a number field.
Can someone help me, please.
Thanks
Robert

Hi Robert,
The error suggest that value "Oracle DBA" is getting assigned for the item xxmiProfCompetenceId, please check.
Regards,
Reetesh Sharma

Similar Messages

  • Dependent LOVs in Discoverer Admin

    Hi All,
    Can we create dependent LOVs in Discoverer. If yes can anyone throw some light that.
    regards,
    gt1982

    Well, let me try to clarify what Tamir said. I think you probably will need to do some setup work in Administrator. I am assuming that you want to do something like this in a worksheet - The user first clicks the LOV indicator on the Region parameter and picks a region from the Region LOV (say they pick the East region value), and then based on that region value, when they click on the City parameter LOV icon, the list of cities they see is filtered so that they only see cities in the East region (say New York City and Boston). To do this correctly in a worksheet, you need to define an Item Hierarchary in Discoverer Administrator. The two parameters must have some kind of relationship in the database to make this work.
    Then once you have the item hierarchy defined, the rest of your work is in Discoverer Plus. You create the first parameter in the worksheet. In my example, you would create the Region parameter first. Next you would create your second parameter (in my example, that would be the City parameter). When creating the second parameter, that is when that section on the parameter window ("Do you want to filter the list of values for this parameter") comes into play. You will want to select the "Filter the list of values based on the selected conditions" option, and then find the condition name (for the Region parameter created condition) and select that condition. The term Oracle uses for this is "Cascading Parameters". So if you search on that term in the Discoverer Plus user guide, that will give you more information on this process.
    Now, you do have to be careful. Ideally the folder with the relationship between the two parameters is based on a master table, not a detail table. If based on a detail table, you can run into performance problems when clicking on the LOV icon for the second parameter. The system may take forever to try to build that second LOV.
    But the process does work. I have used it a couple of times.
    Hope this helps a bit. Good luck.
    John Dickey

  • Getting error in dependent LOV

    jdev version: 10.1.3.3
    I have a dependent LOV in a page. It works fine except in one scenario. When I enter partial value in dependent LOV field and click torch icon, it gives following error:
    Exception Details.
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM (SELECT org.organization_id, org.name org_name, org.attribute1 product_group, decode(org.attribute6, 'Y', 'Union', 'Non-Union') union_indicator, org.attribute7 union_name, bg.name bg_name
    FROM hr_all_organization_units org
    , hr_all_organization_units bg
    WHERE SYSDATE BETWEEN NVL(org.date_from, SYSDATE) AND NVL(org.date_to, SYSDATE)
    AND bg.organization_id = org.business_group_id
    AND bg.name = 'Test BG'
    AND SYSDATE BETWEEN NVL(bg.date_from, SYSDATE) AND NVL(bg.date_to, SYSDATE)
    ORDER BY org.name) QRSLT WHERE (product_group = :1 AND ( UPPER(ORG_NAME) like UPPER(:2) AND (ORG_NAME like :3 OR ORG_NAME like :4 OR ORG_NAME like :5 OR ORG_NAME like :6)))
    ## Detail 0 ##
    java.sql.SQLException: Invalid column type
    In order to populate dependent LOV based on independent LOV value, in LOV region CO.processRequest(), I am executing following am method:
    public void executeOrgLov(String criteria)
    OAViewObjectImpl vo = getLegalChgOrganizationsVO1();
    vo.setWhereClause("product_group = :1");
    vo.setWhereClauseParams(null);
    vo.setWhereClauseParam(0,criteria);
    vo.executeQuery();
    Any suggestion/help in this regard is highly appreciated.
    Thanks

    Hi,
    modify your code as follow,
    public void executeOrgLov(String criteria)
    OAViewObjectImpl vo = getLegalChgOrganizationsVO1();
    //vo.setWhereClause("product_group = :1");
    //vo.setWhereClauseParams(null);
    //vo.setWhereClauseParam(0,criteria);
    // I assume criterian is a string variable.
    if (criteria!=null) {
    vo.setWhereClause("product_group = "+criteria);
    vo.executeQuery();
    I hope it will solve your issue.
    Haroon.

  • Dependant LOV

    Greetings !!!
    I have a requirement like this
    There are 2 fields with LOVs as type and GO button.
    1 . Customer Number
    2 . Invoice Number
    a) Suppose if user selected Customer Number from its LOV, then all invoice number related to that customer should be available in the "Invoice Number" LOV.
    b) Suppose if user directly selects Invoice Number from its LOV... this LOV should contains all the invoice numbers. now the customer number field will be empty.
    I thought of doing Dependant LOV for this scenario but could not proper logic for this case.
    Any suggestions please ?????
    Thanks

    Guys,
    First of all I want to thank to all for your valuable suggestions but the unfortunate thing is still I am facing the issue.
    I have made the following combinations:
    1) vo Query is "select distinct a.trx_number InvoiceNumber
         from ra_customer_trx_all a, hz_cust_accounts b where a.bill_to_customer_id = b.cust_account_id"
    Code in Controller
    vo.setWhereClause("and b.account_number = " +Acc_Num);
    Error:
    Exception Details.
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM (select distinct a.trx_number InvoiceNumber
    from ra_customer_trx_all a, hz_cust_accounts b where a.bill_to_customer_id = b.cust_account_id) QRSLT WHERE (and b.account_number = 104333109 AND ( UPPER(INVOICENUMBER) like :1 ))
         at oracle.apps.fnd.framework.OAException.wrapperException(Unknown Source)
    ## Detail 0 ##
    java.sql.SQLException: ORA-00936: missing expression
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:138)
    2) Vo Query is "select distinct a.trx_number InvoiceNumber
    from ra_customer_trx_all a, hz_cust_accounts b where a.bill_to_customer_id = b.cust_account_id and"
    Code in Controller
    vo.setWhereClause("b.account_number = " +Acc_Num);
    Error:
    Exception Details.
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM (select distinct a.trx_number InvoiceNumber
    from ra_customer_trx_all a, hz_cust_accounts b where a.bill_to_customer_id = b.cust_account_id and) QRSLT WHERE (b.account_number = 104333109 AND ( UPPER(INVOICENUMBER) like :1 ))
         at oracle.apps.fnd.framework.OAException.wrapperException(Unknown Source)
    ## Detail 0 ##
    java.sql.SQLException: ORA-00936: missing expression
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:138)
    3) Vo Query is "select distinct a.trx_number InvoiceNumber
    from ra_customer_trx_all a, hz_cust_accounts b where a.bill_to_customer_id = b.cust_account_id and b.account_number = :1"
    Code in Controller
    vo.setWhereClauseParam(0,Acc_Num);
    For this option it is executing perfectly for the first time. I mean when we search by putting "%" in LOv is is retrieving proper values based on Account Number. When you re-query again it is giving the following error.
    Error:
    Exception Details.
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM (select distinct a.trx_number InvoiceNumber
    from ra_customer_trx_all a, hz_cust_accounts b where a.bill_to_customer_id = b.cust_account_id and b.account_number = :1) QRSLT WHERE (( UPPER(INVOICENUMBER) like :2 AND (INVOICENUMBER like :3 OR INVOICENUMBER like :4 OR INVOICENUMBER like :5 OR INVOICENUMBER like :6)))
         at oracle.apps.fnd.framework.OAException.wrapperException(Unknown Source)
    ## Detail 0 ##
    java.sql.SQLException: Invalid column type
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:138)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:175)
    Any more suggestions please.......

  • Besides throwing exceptions and the "return;" statement

    Besides throwing exceptions and the "*return*" statement, what else clauses could complete a code block abruptly?
    Originally I thought System.exit() should be one of that kind, and I was totally puzzled by the fact that finally clause dose not work with System.exit(). But after a few thoughts, it becomes clear to me that System.exit() dose not even complete a code block, let alone completing a code block abruptly. So is there other logic that could make a code block complete abruptly?
    My question originates from paragraphs in <Thinking in JAVA>, which claim that, I quote,
    "Unfortuantely, there's a flaw in Java's exception implementation. Although exceptions are an indication of a crisis in your program and should never be ignored, it's possible for an exception to simply be lost. This happens with a particular configuration using a finally clause"..."This is a rather serious pitfall, since it means that an exception can be completely lost, and in a far more subtle and difficult -to-detect fashion..."..."Perhaps a future version of Java will repair this problem"...
    After check with JLS, it seams that it is legitimate to ignore the reason for the abrupt completion of the try block, if the corresponding finally block completes abruptly. I think whether this is a "pitfall, flaw" or not depends on how deeply we language users understand the purpose of the finally clause and it is better for me to know all the possible reasons for a code block to complete abruptly.
    So, besides throwing exceptions and the "*return*" statement, what else clauses could complete a code block abruptly?

    warnerja wrote:
    Case 1: Normal flow (no exception is about to be bubbled to the caller before getting to the finally block) - I'd say we want an exception back due to the failure to close the stream.
    Case 2: The finally block was entered through an exception about to be bubbled to the caller - the caller can only get one or the other exception back, either the original exception or the one indicating the failure to close the stream. The finally block has no access to the pending exception however and is unaware of whether there is an exception pending or not. All it knows is an exception occurred during the execution of the finally block, and should throw that or wrap it in another exception - same handling as in Case 1.
    try {
      write();
      flush();
    finally {
      try {
        close();
      catch (...) {
        log();
    }The flush() at the end of try seems kind of redundant, since close() calls flush() anyway. The benefit is that the try statement completion matches the try block ("real work") completion.
    If we get to the end of the try block with no exception, then write() and flush() have succeeded and the data is where it needs to be. All that's left is to release the I/O resource, which will always be done in finally.
    If there's an exception in the try block, it is propagated out, so we know of any failure that occurred doing the "real work." The I/O resource is still released in finally.
    Regardless of how the try block completed, releasing the resource does not affect how the try statement completes, and hence does not supersede how our "real work" completes, which is all we care about. We still log any close() errors for later investigation. What matters to our program is whether all the data was written, and the completion of write() and flush() tells us that.

  • Issue in creating dependent LOV

    Hi,
    I am creating a dependentLOV Items.
    1) Selecting Project Number.
    2) List of Tasks in the selected Projects.
    when ever user selects particular project number in 1st LOV item the list of tasks assossiated to that project should be
    populated in 2 nd LOV.
    Can any one suggest.
    Regards,
    Krishna

    Hi Reetesh,
    I am unable to create dependency.
    VO Querys of Projects and Tasks
    Projects VO
    select a.SEGMENT1,a.NAME,a.PROJECT_ID
    from pa_projects_all a
    TasksVO
    select a.TASK_NUMBER,a.TASK_NAME,a.PROJECT_ID
    from pa_tasks a
    I am explaing the steps I have done just show where I met error.
    1) Create ProjectsLOVRN (projectno,name,projectId) TasksLOVRN (TaskNumber,Name,ProjectId)
    2) Create 2 LOV Items Projects and Tasks
    3)In Projects LOV I created 2 LOV Maps which returns Project No and Project Id
    4)In Tasks LOV created 2 LOV Maps as you suggested
    in first map LOV Region Item TasksLOVRN(TaskNumber)
    Criteria Item returned ProjectId from ProjectsLOVRN
    Required and Programatic Query is set to true
    for crieteria item will be the Project LOv Item how can I select an ProjectsLOV Item in TasksLOV
    in second map
    LOV Region Item TasksLOVRN(TaskNumber)
    return Item LOV ItemTask
    While running page At header I am getting an error
    Error
    Developer Mode Exception : Lov Input should by default be the queryable criteria and Result.
    Please suggest where exactly Iam making mistake to create Dependent LOV
    Regards,
    Krishna

  • Constructor can throw exception or Not ?

    Anybody please tell me if the constructor throws an exception or not ?
    Please reply soon
    Thanks
    Amitindia

    A constructor can throw an Exception. However I
    would suggest throwing the generic Throwable, Error,
    Exception or RuntimeException rather than a specific
    exception is bad practice and you should choose an
    appropirate exception to throw.All depends on wich kind of exception you are throwing,checked or unchecked. It's an even worse form to throw a RE, Error, or Throwable when you are throwing in fact a checked exception.
    Nevertheless, I do agree, you must always strive to not throw exceptions, of any kind, in your construtor code. Construtors should be simple and reliable. Unles you have a very compelling reason to not do it, try to isolate the risky parts of the code where they are called ofter object construction or class loading.
    May the code be with you.

  • Function module JOB_CLOSE throwing exception

    Hello,
    We have a batch job which has 2 steps:
    1) Step 1 uses job_open, job_submit and job_close and immediately schedules batch job A/P_ACCOUNTS which in turn creates batch input sessions A/P_ACCOUNTS.
    2) Step 2 Processes A/P_ACCOUNTS sessions created yesterday or today.
    In few cases, job_close is throwing exception job_close_failed. I believe that error is coming due to non availability of work processes. Job A/P_Accounts is defined as a class C batch job. There is a check in the FM job_close which does the following check:
    - if the class of a batch job is B or C, it calculates the number of free work processes. If there are no work processes available then JOB_CLOSE throws JOB_CLOSE_FAILED exception. 
    - If the class is u2018Au2019, it skips this check.
    We have an option of changing the class of batch job to A but there are some system critical jobs that are running as class A.
    My question is:
    In the code, JOB_CLOSE has been called for scheduling the job A/P_ACCOUNTS with parameter start immediately. Can anyone please let me know what will happen if function JOB_CLOSE is not called with start immediately option? Will the batch job A/P_ACCOUNTS wait till the time work processes are available?
    Or, can anything else be done to solve the issue?
    Regards,
    Siddharth

    HI,
    This is my experience with job_close..
    when i was working in zprograms then i was able to scedule it any time i wanted..
    but in my standard program when i tried it didn't worked....
    so i have to use that option of starting it immediately..
    and then it is working fine..
    now if i schedule 5 jobs... one after another..
    its get queued up...and once the processor is free...its working..
    my code of job close
      CALL FUNCTION 'JOB_CLOSE'
        EXPORTING
          jobcount             = job_count
          jobname              = job_name
          strtimmed            = yes " yes = 'X'
        IMPORTING
          job_was_released     = job_released
        EXCEPTIONS
          cant_start_immediate = 1
          invalid_startdate    = 2
          jobname_missing      = 3
          job_close_failed     = 4
          job_nosteps          = 5
          job_notex            = 6
          lock_failed          = 7
          invalid_target       = 8
          OTHERS               = 9.
    regards,
    Yadesh

  • Faxing of SAPScript throwing exception

    Dear All,
    I am facing problem while sending Sales Order output through FAX. It is throwing exception in OPEN_FORM function module as FAX_NOT_VALID. I debugged and found that actually system is failing FM SX_NUMBER_TO_DEVTYPE which in turn showing that the exception has occured due to Node not found. Is it a configuaration issue? I tried to configure through SPRO but could not find any relevent place. Looking for your valuable suggestion.
    Any suggestion!
    Thanks and regards,
    Atanu

    Make sure are you entering the correct fax number in the recepient.
    Go to transaction SBWP - > create new message and try to send it as FAX. It you are not able to send fax via Business workplace then it implies that some setting is required form the BASIS.
    Otherwise the parameters passed to the OPEN_FORM needs to be investigated.

  • ADF Desktop Integration: How do I use dependent LOVs in Table Components?

    Hi,
    I have a table component that has a series of dependent LOVs. Now, while I understand that ADFdi allows for LOVs to be chained together by dependency, what I don't understand is how to get the child values to change based on a selection of a parent value. Is there a method binding I missed? Or is there some other mechanism I'm not seeing in the documentations? Hope someone can help shed some light on it - Google is darkness. Thanks.
    Cheers,
    Benjamin

    Repost

  • I recently purchased the new nano (7th generation) and I love it except for one issue.  On my old 2nd generation nano, when I played podcasts, it would play podcasts one at a time. So if I had 20 episodes of a podcast on the device, it would stop at the e

    I recently purchased the new nano (7th generation) and I love it except for one issue.  On my old 2nd generation nano, when I played podcasts, it would play podcasts one at a time. So if I had 20 episodes of a podcast on the device, it would stop at the end of each one.
    With the new nano, I can select and play a podcast, but when it’s over, it goes straight to the next one without prompting.  It keeps on playing all of the episodes of any podcast until you stop it manually.  Setting the repeat function differently does not prevent episodes from being played automatically.
    This can be very irritating when I only want to listen to one podcast.  I’ve often fallen asleep listening to one episode of a podcast, only to be woken up hours later by the iPod working its way through all subsequent episodes.  It is also annoying that any podcast which has started automatically in this way is marked as ‘played’ – even if you stop it within a few seconds.  This makes it hard to keep track of what you have actually listened to.
    Is there any way to set the iPod to play all the podcasts individually? I have read the User Guide from cover to cover, and can’t find a way of doing this.
    MD

    Dude or hot-spur,
    Not fishy at all!!!! You really think I would have taken any more of my time to post a bogus rant? We'll no, it is unfortunately all true. I want to hear from anyone who is experiencing such problems not anyone else that wants to put there two cents in. I really don't need anymore hate or negativity. Just people's experiences because I feel like I am the only one having so many problems. Thank you
    Yes, I have had some unfortunate bad luck to have so many problems at the same time, but some of them are just things you cannot do on the new OS.
    Thank you again

  • Dependent LOVs in form

    Guys,
    I do have two fields of LOV types on my form
    LOV attached to first field should display all the department. And second field should display all the employees assigned to the department selected in first field. Thats how I need dependent LOVs.. can you please guide me how it can be achieved.
    Thanks
    Sunil

    Hi Sunil
    second field should display all the employees assigned to the department selected in first field. Thats how I need dependent LOVs.Here is an example...
    Let's Suppose u have a rel between dept & emp table related with a FK called DEPT_NO that's what it should be
    Now when u select the 1st Lov it will disploay the DEPT_NO of the dept u selected this DEPT_NO will be displayed on ur form or will be hidden it doesn't matter.
    Now in the second LOV Record group u should write a similar select statment as follow...
    SELECT EMP_NAME,... etc.
    FROM EMP
    WHERE DEPT_NO = :DEPT_NO ;     Pls note that :DEPT_NO is the number of the department selected form the first lov in ur form, then all emp data will be displayed according to this DEPT_NO as ependent LOVs.
    Another approach u should be aware and think about it...
    u could u a drop down list dependent on one another specially if u don't have large number of departments in ur company.
    Hope this helps...
    Regards,
    Amatu Allah.

  • Using sql bulk copy throwing exception -The given value of type String from the data source cannot be converted to type int of the specified target column

    Hi All,
    I am reading notepads files and inserting data in sql tables from the notepad-
    while performing sql bulk copy on this line it throws exception - "bulkcopy.WriteToServer(dt); -"data type related(mentioned in subject )".
    Please go through my  logic and tell me what to change to avoid this error -
    public void Main()
    Dts.TaskResult = (int)ScriptResults.Success;
    string[] filePaths = Directory.GetFiles(@"C:\Users\jainruc\Desktop\Sudhanshu\master_db\Archive\test\content_insert\");
    for (int k = 0; k < filePaths.Length; k++)
    string[] lines = System.IO.File.ReadAllLines(filePaths[k]);
    //table name needs to extract after = sign
    string[] pathArr = filePaths[0].Split('\\');
    string tablename = pathArr[9].Split('.')[0];
    DataTable dt = new DataTable(tablename);
    |
    string[] arrColumns = lines[1].Split(new char[] { '|' });
    foreach (string col in arrColumns)
    dt.Columns.Add(col);
    for (int i = 2; i < lines.Length; i++)
    string[] columnsvals = lines[i].Split(new char[] { '|' });
    DataRow dr = dt.NewRow();
    for (int j = 0; j < columnsvals.Length; j++)
    //Console.Write(columnsvals[j]);
    if (string.IsNullOrEmpty(columnsvals[j]))
    dr[j] = DBNull.Value;
    else
    dr[j] = columnsvals[j];
    dt.Rows.Add(dr);
    SqlConnection conn = new SqlConnection();
    conn.ConnectionString = "Data Source=UI3DATS009X;" + "Initial Catalog=BHI_CSP_DB;" + "User Id=sa;" + "Password=3pp$erv1ce$4";
    conn.Open();
    SqlBulkCopy bulkcopy = new SqlBulkCopy(conn);
    bulkcopy.DestinationTableName = dt.TableName;
    bulkcopy.WriteToServer(dt);
    conn.Close();
    Issue 1:-
    I am reading notepad: getting all column and values in my data table now while inserting for date and time or integer field i need to do explicit conversion how to write for specific column before bulkcopy.WriteToServer(dt);
    Issue 2:- Notepad does not contains all columns nor in specific sequence in that case i can add few column ehich i am doing now but the issue is now data table will add my columns + notepad columns and while inserting how to assign in perticular colums?
    sudhanshu sharma Do good and cast it into river :)

    Hi,
    I think you'll have to do an explicit column mapping if they are not in exact sequence in both source and destination.
    Have a look at this link:
    https://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlbulkcopycolumnmapping(v=vs.110).aspx
    Good Luck!
    Kaur.
    Please mark as answer if this resolves your issue.

  • Mandatory fields on the same page with dependent LOVs

    Hi,
    I am working on an ADF-BC application using JDeveloper 10.1.3.4
    I have an ADF Creation form with dependent LOVs and while implementing dependent LOVs we set the autoSubmit property of the selectOneChoiceListBox as true.
    If I have some mandatory fields on the same page then because of the autoSubmit property set as true whenever I select a value in the list the page gets submitted and the mandatory fields give an error that the values are required therefore I had to remove the mandatory fields.
    I tried using f:subview but even that dint serve the purpose because what I want is something like partialSubmit so that my mandatory fields do no give an error when I select a value in the list.
    Can somebody help me on this, how to have a dependent list and mandatory fields on the same page.
    P.S: It is very crucial for my application
    Thanks,
    Raksha

    Hello,
    This bug has been around since 10.1.3, its even still present in Trinidad and now in 11.
    One of the ways to avoid is to make your fields use:
    showRequired="true"instead of
    required="true"I have not found a decent way to avoid this in general.
    My idea was that this shiould be possible with a phaselistener and determine if this is a partial page event instead of a normal submit, but this didnt work.
    -Anton

  • How to throw exception in run() method of Runnable?

    Hi, everyone:
    I want to know how to throw exception in run() method of interface Runnable. Since there is no throwable exception declared in run() method of interface Runnable in Java API specification.
    Thanks in advance,
    George

    Thanks, jfbriere.
    I must add though that if your run() methodis
    executed after a call to Thread.start(), then
    it is not a good choice to throw anyRuntimeException
    from the run() method.
    The reason is that the thrown exception won't be
    handled appropriately by a try-catch block.Why do you say that "the thrown exception won't be
    handled appropriately by a try-catch block"? Can you
    explain it in more detail?
    regards,
    George
    Because the other thread runs concurrently with and independently of the parent thread, there's no way you can write a try/catch that will handle the new thread's exception: try {
        myThread.start();
    catch (TheExceptionYouWantToThrowFromRun exc) {
        handle it
    do the next thing This won't work because the parent thread just continues on after myThread.start(). Start() doesn't throw the exception--run() does. And our parent thread here has lost touch with the child thread--it just moves on to "do the next thing."
    Now, you can do some exception handling with ThreadGroup and uncaughtException(), but make sure you understand why the above won't work, in case that was what you were planning to do.

Maybe you are looking for