Need help in clearing an invalid value entered in an inputLOV popup.

Hi
I am using the JDeveloper Studio Edition Version 11.1.1.1.0
Our application uses the Springs Framework with ADF. We used an af:inputListOfValues component coupled with a disabled af:inputText component to make it like a name-value pair. As soon as you enter a valid value in the inputLOV component and tab out, the description corresponding to it will be populated(partial trigger) in the disabled inputText component. There is an inputListOfValues model object in our backing bean which feeds the list of values to choose from.
When we enter an invalid value in the lov and tab out, the popup with all the possible values comes up, which is correct and expected. Now, when the user clicks on "Cancel" in the popup, we are supposed to clear the invalid value entered in the lov component. We tried all possible approaches known to use including AOP(Aspect Oriented Programming) to intercept the call when the user clicks on the "Cancel" button but we just could not make it work.
Does anyone know if a way to clear the entered value upon clicking cancel?
Please let me know if more details are required about our implementation to answer my question.
Thanks,
Manoj

Godwin wrote:
when ever the Schema is updated the table should not get affected.. Is there a way to solve my problem.. If you change the XML schema associated with the table, then old data won't be valid anymore : how do you want to deal with that?
Besides, you chose to create the table with Object-Relational storage, you have to understand how it works.
When you register the schema with genTypes = true, Oracle creates a set of object types that map the XML structure to SQL.
In this case, old data will not only be invalid but also won't fit in the new structure.
Do you just need a table for storing valid XML documents according to the current schema?
If that is so, maybe unstructured CLOB storage is best suited here, with a trigger to validate new rows inserted.
See this thread for an overview of schema validation : {thread:id=416458}
And of course, Oracle documentation :
http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14259/xdb05sto.htm#ADXDB0600
For specific questions about XML DB (schema validation, types of storage etc.), you can post here : {forum:id=34}

Similar Messages

  • Need help with the session state value items.

    I need help with the session state value items.
    Trigger is created (on After delete, insert action) on table A.
    When insert in table B at least one row, then trigger update value to 'Y'
    in table A.
    When delete all rows from a table B,, then trigger update value to 'N'
    in table A.
    In detail report changes are visible, but the trigger replacement value is not set in session value.
    How can I implement this?

    You'll have to create a process which runs after your database update process that does a query and loads the result into your page item.
    For example
    SELECT YN_COLUMN
    FROM My_TABLE
    INTO My_Page_Item
    WHERE Key_value = My_Page_Item_Holding_Key_ValueThe DML process will only return key values after updating, such as an ID primary key updated by a sequence in a trigger.
    If the value is showing in a report, make sure the report refreshes on reload of the page.
    Edited by: Bob37 on Dec 6, 2011 10:36 AM

  • Need help with clearing on screen data

    Hi all,
    I have a transaction which works like SM30 (table maintenance). In my main screen, I have 50 blank fields (created by appending 50 blank rows to an internal table) on the ALV grid for user new entries with 2 buttons: Save and Delete. Once the user has entered the data and click on Save, it will validate the entries and put into internal table before saving into the database.
    The problem arise when I want to delete the entries. When user click on Delete, it will clear the entries in the selected row. My problem is, how do I clear the data on the screen since this data is not yet inserted into internal table? These entries are new entries just entered by the users and not being put into internal table or in the database yet.

    Once user press the delete button ,
    in the user_command event you need to
    first insert the values to internal table with delete flag in the internal table , then delete the line the user selected for delete,
    then call
    method "g_grid->refresh_table_display" after row has been deleted.
    aRs

  • Need help with formula that puts values in Field1 based on value of field2

    I have two custom fields in the Contact record - Date met and Time Known. Date met is a standard date field that is entered by the user. I then wanted Time Known to automatically populate with specific values based on a formula I wrote. However, the formula/function is not working properly.
    I'm also not sure if this should be a pre or post field formula, field validation, or workflow. Please help! Here's the formula I have so far. It worked for a new record created, but now doesn't work at all for some reason (probably from my testing).
    IIf(Today()-[<dResearch_Date_ITAG>]<365,"Less than One Year",IIf(Today()-[<dResearch_Date_ITAG>]<1095,"One to Three Years", IIf(Today()-[<dResearch_Date_ITAG>]<1825,"Three to Five Years",IIf(Today()-[<dResearch_Date_ITAG>]<3650,"Five to Ten Years","Ten Plus Years"))))
    This says the following:
    If Date Met is less than 365 from today, then enter "Less than One Year" into the Time Known field;
    if date met is less than 1095 (but greater than 365) days from today, then enter "One to Three Years"
    if date met is less than 1825 (but greater than 1095) days from today, then enter "Three to Five Years"
    if date met is less than 3650 (but greater than 1825) days from today, then enter "Five to Ten Years"
    otherwise, enter "Ten Plus Years" for all values greater than 3650.
    What am I doing wrong? I'm new to expressions and formulas in Oracle.

    Hi, You have to do @ 2 places. For setting the field value @ the time of creating a new record using the field default feature. Check post default as the calculated value is dependent on some other field that you are going to set @ the time of creation. For updating the field whenever the record is modified, use workflows
    -- Venky CRMIT

  • Need help in clearing data

    Hi All,
    Im facing a peculiar problem.
    Im getting some data from one Function module into one variable.
    Sometimes the variable is having values such as 0, 0.0, 0.00 like that.(system is still considering 0.0 as a value)
    If such is a case I dont want to print that value(say 0.0) on output.
    Pls help me how to initialize the variable with space, if it has the values like 0, 0.0, 0.00 etc..
    Pls help me with ur valuable suggestions.
    Thanks,
    Priya

    Hi Priya,
    Just check the sample code. Here need to pass the variable in to another pack (p) type variable. Then check the initial. based on that you can write it.
    data: l_val_c TYPE char20 VALUE ' 0.00',
          l_val_p TYPE p LENGTH 15 DECIMALS 3.
          l_val_p = l_val_c.
          IF l_val_p IS INITIAL.
            BREAK-POINT.
          ENDIF.
    Thanks
    Subhankar

  • Need help formatting text field default value

    Hello,
    I've received a customer request to put default text into the Value section of a text field. They're requesting that the default text include line breaks, bullets, etc. I added a Text Field object and added the default text to the Object tab > Value tab Default field but can't figure out how to add line breaks, etc.
    Thanks in advance,
    Saskia

    Hi,
    this is possible but not doable with the UI of Designer.
    The workaround is as follows:
    1. Create a text, enter your default text with all the formattings you need (text color, bold text, line breaks etc.)
    2. Create a text field and enter any word as default value. Let's say "Default".
    3. Select the text and the switch to the XML Source view.
    There you will find all the formatted text between the <value> tags such as:
    <value>
         <exData contentType="text/html">
              <body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"><p style="letter-spacing:0in">This is<span style="xfa-spacerun:yes"> </span></p><p style="color:#ff0000;letter-spacing:0in">default Text</p><p style="letter-spacing:0in"><span style="xfa-spacerun:yes"> </span>• with<span style="xfa-spacerun:yes"> </span><span style="font-weight:bold">RichText</span> formatting.</p></body>
         </exData>
    </value>
    4. Select the whole code between the <value> tags and copy it to the clipboard (ctrl + c).
    5. Go to the Design View, select the text field, go back to the XML Source view.
    6. There you'll also find the value <tags> and your default value you entered before.
    <value>
         <text>Default</text>
    </value>
    7. Select this code section and paste the value copied before to the clipboard by pressing ctrl + v.
    8. That's it. When you now go back to the Design View your text field shows a formatted RichText as defaul text.

  • I am a rookie and need help with max and min values

    Hello all, i am into this intro to java class. my assignment is to write a program that prompts the user for two integers and then prints the sum, difference, average, product , distance (absolute value of the difference) Maximum(largest of the two) and Minimum(smallest fo the two) here is my code so far
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.lang.Math;
    public class Sample4
       public static void main(String[] args) throws IOException
          try // attempt the following
    {           // create the stream to read from
    InputStreamReader istream = new InputStreamReader(System.in);   // create a buffer to hold the stream
    BufferedReader console = new BufferedReader(istream);           // prompt the user
          System.out.println("Enter a number please");              // get input as a string
          String input = console.readLine();                        // convert to an integer
          int num1 = Integer.parseInt(input);
          System.out.println("Enter a number please");              // get input as a string
          String input2 = console.readLine();                       // convert to an integer
          int num2 = Integer.parseInt(input2);
          int sum = num1 + num2;                                    // get the sum of the two inputs
          int difference = num1 - num2;                             // get the difference of the two inputs
          int product = num1 * num2;                                // get the product of the two inputs
          int average = sum / 2;                                    // get the average of the two inputs
          int abs = Math.abs(difference);                           // get the absolute value of the two inputs
              // new section
                 // display the number
          System.out.println("The total sum = " + sum);
          System.out.println("The total difference = " + difference);
           System.out.println("The total product = " + product);
           System.out.println("The total average = " + average);
           System.out.println("The total absolute value = " + abs);
    } // if something breaks, catch the exception
    catch (IOException e)
       System.out.println(e); // displays the exception
       System.exit(1);  // quits the program
    }what will be the right syntax or code to find the MAX and MIN values of two numbers a User Inputs, hope someone can help with this. thank you for your help.

    Thanks alot man, sheesh i do not know why my book
    doesnt give me all the static methods. but i do really
    appreciate your help. peaceA complete list of the java.lang.Math methods can be found at http://java.sun.com/j2se/1.4/docs/api/java/lang/Math.html
    btw,
    max(a, b) == (a > b) ? a : b
    min(a, b) == (a < b) ? a : b

  • Need help Take out the null values from the ResultSet and Create a XML file

    hi,
    I wrote something which connects to Database and gets the ResultSet. From that ResultSet I am creating
    a XML file. IN my program these are the main two classes Frame1 and ResultSetToXML. ResultSetToXML which
    takes ResultSet & Boolean value in its constructor. I am passing the ResultSet and Boolean value
    from Frame1 class. I am passing the boolean value to get the null values from the ResultSet and then add those
    null values to XML File. When i run the program it works alright and adds the null and not null values to
    the file. But when i pass the boolean value to take out the null values it would not take it out and adds
    the null and not null values.
    Please look at the code i am posing. I am showing step by step where its not adding the null values.
    Any help is always appreciated.
    Thanks in advance.
    ============================================================================
    Frame1 Class
    ============
    public class Frame1 extends JFrame{
    private JPanel contentPane;
    private XQuery xQuery1 = new XQuery();
    private XYLayout xYLayout1 = new XYLayout();
    public Document doc;
    private JButton jButton2 = new JButton();
    private Connection con;
    private Statement stmt;
    private ResultSetToXML rstx;
    //Construct the frame
    public Frame1() {
    enableEvents(AWTEvent.WINDOW_EVENT_MASK);
    try {
    jbInit();
    catch(Exception e) {
    e.printStackTrace();
    //Component initialization
    private void jbInit() throws Exception {
    //setIconImage(Toolkit.getDefaultToolkit().createImage(Frame1.class.getResource("[Your Icon]")));
    contentPane = (JPanel) this.getContentPane();
    xQuery1.setSql("");
    xQuery1.setUrl("jdbc:odbc:SCANODBC");
    xQuery1.setUserName("SYSDBA");
    xQuery1.setPassword("masterkey");
    xQuery1.setDriver("sun.jdbc.odbc.JdbcOdbcDriver");
    contentPane.setLayout(xYLayout1);
    this.setSize(new Dimension(400, 300));
    this.setTitle("Frame Title");
    xQuery1.setSql("Select * from Pinfo where pid=2 or pid=4");
    jButton2.setText("Get XML from DB");
    try {
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    catch(java.lang.ClassNotFoundException ex) {
    System.err.print("ClassNotFoundException: ");
    System.err.println(ex.getMessage());
    try {
    con = DriverManager.getConnection("jdbc:odbc:SCANODBC","SYSDBA", "masterkey");
    stmt = con.createStatement();
    catch(SQLException ex) {
    System.err.println("SQLException: " + ex.getMessage());
    jButton2.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(ActionEvent e) {
    jButton2_actionPerformed(e);
    contentPane.add(jButton2, new XYConstraints(126, 113, -1, -1));
    //Overridden so we can exit when window is closed
    protected void processWindowEvent(WindowEvent e) {
    super.processWindowEvent(e);
    if (e.getID() == WindowEvent.WINDOW_CLOSING) {
    System.exit(0);
    void jButton2_actionPerformed(ActionEvent e) {
    try{
    OutputStream out;
    XMLOutputter outputter;
    Element root;
    org.jdom.Document doc;
    root = new Element("PINFO");
    String query = "SELECT * FROM PINFO WHERE PID=2 OR PID=4";
    ResultSet rs = stmt.executeQuery(query);
    /*===========This is where i am passing the ResultSet and boolean=======
    ===========value to either add the null or not null values in the file======*/
    rstx = new ResultSetToXML(rs,true);
    } //end of try
    catch(SQLException ex) {
    System.err.println("SQLException: " + ex.getMessage());
    ======================================================================================
    ResultSetToXML class
    ====================
    public class ResultSetToXML {
    private OutputStream out;
    private Element root;
    private XMLOutputter outputter;
    private Document doc;
    // Constructor
    public ResultSetToXML(ResultSet rs, boolean checkifnull){
    try{
    String tagname="";
    String tagvalue="";
    root = new Element("pinfo");
    while (rs.next()){
    Element users = new Element("Record");
    for(int i=1;i<=rs.getMetaData().getColumnCount(); ++i){
    tagname= rs.getMetaData().getColumnName(i);
    tagvalue=rs.getString(i);
    System.out.println(tagname);
    System.out.println(tagvalue);
    /*============if the boolean value is false it adds the null and not
    null value to the file =====================*/
    /*============else it checks if the value is null or the length is
    less than 0 and does the else clause in the if(checkifnull)===*/
    if(checkifnull){ 
    if((tagvalue == null) || tagvalue.length() < 0 ){
    users.addContent((new Element(tagname).setText(tagvalue)));
    else{
    users.addContent((new Element(tagname).setText(tagvalue)));
    else{
    users.addContent((new Element(tagname).setText(tagvalue)));
    root.addContent(users);
    out=new FileOutputStream("c:/XMLFile.xml");
    doc = new Document(root);
    outputter = new XMLOutputter();
    outputter.output(doc,out);
    catch(IOException ioe){
    System.out.println(ioe);
    catch(SQLException sqle){

    Can someone please help me with this problem
    Thanks.

  • Need help on interactive report parameter value based on  a sequence

    At a press of a button..
    i have a form where i insert data in a table .a unique number is generated via sequence.
    And then a report is called .. all at the press of the same button
    Now i need to make a query such that
    select * from table_name where no1 = (select d_table_name_seq.currval from dual);
    Such statement is not possible in apex..
    So what should i do ..Use page_items
    How can i store the sequence value in a page item
    Edited by: susf on Nov 29, 2012 6:32 AM

    ok solved..using apex application item thanks

  • Need help with Javascript to get value of standard report column

    Hello All,
    Apex version 3.1
    I have a SQL Query (Updateable report) region where I need to do some validations using an OnDemand Applicaiton Process and javascript. For this validation I need to use the serial number and the item id from the same report row. The function is called when the serial number is changed. I can get the serial number easily because it is a Text field, however the item id is a standard report column (making it a text field or hidden gives me a checksum error, long story). How do I get the value for the standard report column in order to set the value for an Application item to be used in my Application Process along with the serial number? Here is my code below.
    <script>
    function f_ValidateSerial(pThis)
      // The row in the table
      var vRow = pThis.id.substr(pThis.id.indexOf('_')+1);
        //alert('Row is '+vRow);
      // Display the serial number
        //alert('The Serial Number is '+html_GetElement('f21_'+vRow).value);
    var get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=ValidateSerial',0);
    get.add('F101_SERIAL_NUMBER',html_GetElement('f21_'+vRow).value);
    get.add('F101_INVENTORY_ITEM_ID',+html_GetElement(?????+vRow).value);   // Here's where I need to get the item id to set application item!!
    gReturn = get.get();
    if (gReturn)
          alert(gReturn);
      if(gReturn)
          html_GetElement('f21_'+vRow).value = '';
    </script>

    jarola wrote:
    Hi,
    Ok, No standard report column do not have name attribute-
    You can add one extra column to report that is your Item Id with different alias.
    Then change that column Display as to "Hidden".
    Now you have hidden input where is your Item Id. Than input have name and id.
    Regards,
    JariBut this puts me back to my initial problem. When making the column hidden I get the checksum error...
    Error in mru internal routine: ORA-20001: Error in MRU: row= 0, ORA-20001: ORA-20001: Current version of data in database has changed since user initiated update process...
    The item id is NOT in the table which I am updating (I use a subquery to get the data) so I think it has to be a standard report column. Hidden and Text Item (which have an item id) all generate the checksum error.
    So I think I'm back to my original question. Given a standard report column on a row in a sql query (updateable report) region how do I get the value using Javascript?
    Edited by: blue72TA on Aug 2, 2011 12:07 PM

  • Need Help on Clearing my doubts

    Hi all,
    I have a question on running Apache and Tomcat with the use of mod_jk connector. With all the guide I have gathered from the web. Below are my configuration:
    Red Hat 8.0
    Apache 2.0.46 Using Port 80
    Tomcat 4.1.24 Using Port 8080
    J2SDK 1.4.1
    I have no problem running these two applications. However, I cannot seems to access the default 'example' folder that comes with tomcat on port 80. Accessing it on port 8080 has no problem for me.
    Please note that all my configuration is done with the help of the following url:
    http://www.johnturner.com/howto/rh72-howto.html
    According to one of the mail which I have received, I saw him putting this in apache : httpd.conf:
    ============================================================================
    JkWorkersFile /home/gmh2441/uPortal/Tomcat_4-0-4/conf/workers.properties
    JkLogFile /home/gmh2441/uPortal/Tomcat_4-0-4/logs/mod_jk.log
    JkLogLevel debug
    JkOptions +ForwardDirectories
    Alias /examples /home/gmh2441/uPortal/Tomcat_4-0-4/webapps/examples
    <Directory "/home/gmh2441/uPortal/Tomcat_4-0-4/webapps/examples">
    Options Indexes FollowSymLinks
    </Directory>
    <Location "/examples/WEB-INF/">
    AllowOverride None
    deny from all
    </Location>
    ============================================================================
    I tried putting the same thing into my httpd.conf, and now accessing the example folder on port 80 works!.
    My question is :
    1) Based on the above config, it is asking apache to 're-direct' this folder to the tomcat container and thus run on it. In that case, is apache pushing all the jobs to tomcat instead?. What if some of the files in this folder contains some html and is tomcat or apache processing it??
    2) Secondly, if I were to have more folders which I need to publish on the web, does it mean that I have to add or of it on this config file in order for it to work?
    3) I would appreciate if there are some kind soul could give me some URL on how to utilize apache tomcat to process both static and jsp content.
    Thanks in advance,
    Joe

    make sure in your tomcat/conf/server.xml file that the Connector for 8009 is not commented out.

  • Need help on inserting multiple selection values into database

    Hello every body,
    we are developing one small web application in that we have requirement like department is an combobox, services in multiple selection list box, suppose when i select IT as department & some services in multiple listbox on clicking map button selected services should be map with that department .Could u plz help me how i have to do..?
    Thanks & Regards,
    Anil.

    anilmekala.reddy wrote:
    Hello every body,
    we are developing one small web application in that we have requirement like department is an combobox, services in multiple selection list box, suppose when i select IT as department & some services in multiple listbox on clicking map button selected services should be map with that department .Could u plz help me how i have to do..?
    Thanks & Regards,
    Anil.if you give more details .... do you know how to use jdbc ??? prepared statement ???
    any way if I have understood your question
    I will suppose that you have 3 tables Department ,service and Has_service
    and I supose that you have already the entry in table department and service
    Here is what I would do ...
    while(I have something to insert )
       insert into Has_service values (department,service )
    }

  • Need help in clearing string buffer during dynamic VO where clause in oaf

    Hi All,
    I am dynamically setting where clause in OAF using string buffer, but the issue is when i am executing the vo multiple times so the old data in the string buffer it is not clearing .so every time my where clause adding to the query and it is erroring out, please help me how to clear string buffer class in oaf.
    Thnaks

    Hi,
    Could you please share the code segment for reference. Then we can tell the solution.
    Regards,
    Tarun

  • Need help to clear concepts of V1,V2 and V3 updates in R/3

    please see the thread below and help....
    want to know whether my concepts about V1,V2 and V3 are correct or not

    solved

  • Need help with "ORA-00902: invalid datatype"  while creating a view

    I am using Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production With the Partitioning, OLAP and Data Mining options.....
    when I try ti create a view, I am getting ORA-00902 error.
    SQL> create view sales_view as
    2 select *
    3 from table(OLAP_TABLE('global DURATION session',
    4 'sales_type_table',
    5 '',
    6 'DIMENSION time_id FROM time
    7 DIMENSION channel_id FROM channel
    8 DIMENSION product_id FROM product
    9 DIMENSION customer_id FROM customer
    10 MEASURE sales FROM sales
    11 MEASURE units FROM units
    12 MEASURE extended_cost FROM extended_cost
    13 MEASURE forecast_sales FROM fcast_sales
    14 ROW2CELL olap_calc'));
    create view sales_view as
    ERROR at line 1:
    ORA-00902: invalid datatype
    ORA-06512: at "SYS.OLAPIMPL_T", line 23
    ORA-06512: at "SYS.OLAPIMPL_T", line 17
    ORA-06512: at line 4
    I am new to Oracle.... using document "40261_leveragingtools.pdf" as a guide against a cube created using "Global_AWM10g_Handson.doc".
    AWM displays data from cube without a problem.
    I would welcome any assistance.

    Can you provide the definition of sales_type_table? Also, Are all of the dimensions you have created of type TEXT?
    Swapan.

Maybe you are looking for

  • 560Ti Frozr II help please

    Hi guys, I installed my new MSI 560Ti Frozr II (none oc one) last night and ever since ive been getting some BSOD's but what happens all the time is the pc crashes in any game I play from BF2, BF3 and EQ2. What happens is the signal seems to stop fro

  • Rebate settlement with material insted of amount

    hi sd gurus                my client requirement is he want settlle rebate with material(instead of amount) how can we settle

  • HT6378 Is anyone havig trouble with the date of uploaded photos?

    I am using iCloud Photo Library since its launch, and I am uploading all of my pictures, even those taken with my DSLR camera. The beta app works fine, but the photos I uploaded are presented with the date different from that one taken. I looked at t

  • The screen of my macbook air keeps turning red.

    I can still see everything, but it's really annoying. The computer's about three years old and the screen is pretty wobbly, so won't stay in upright position. When I physically hold it upright the red goes away. But as soon as I let it go it leans ba

  • BW system ran out of "session" = transaction SMGW; how to track down "resource" issues?

    Hi SAP Experts, we had on our SAP BW system the following situation: We are having a week daily process chains, that is uploading data from our ECC system. Once in a month, we are uploading from our APO/SCM system data from our BW system. Parallel we