No data found error on Form on a Table with report

Hi Everyone, I'm using Application Express 4.1.0.00.32 on Windows 7. I built a Form on a table with report. Earlier I was using rowid as a passing parameter but then I had to change it to primary key column from report to form.
So in the "Fetch row process" I changed the "Items containing primary key value" and "Primary Key column" to P1004_PERSON_ID and PERSON_ID respectively. Which is my primary key.
My Form is working exactly fine but at on point it throws "no data found error".
I have a required date field in the form. So if the user doesn't fill in the date field and try to save the form, it throws the "Feild required error" and then when user enters date and try to save then it throws the error "No data found.". here is the snapshot... snapshot
How can I fix this error.I'm really stuck.
I checked debubber..it is as follows... in debughger it's still showing rowid. I don't know why. How can I fix that.
Execution
Message
Level
Graph
0.00233
0.00932
S H O W: application="101" page="1004" workspace="" request="" session="123235901404364"
4
0.01161
0.00102
Language derived from: FLOW_PRIMARY_LANGUAGE, current browser language: en-us
4
0.01261
0.00046
alter session set nls_language="AMERICAN"
4
0.01307
0.00042
alter session set nls_territory="AMERICA"
4
0.01348
0.00053
NLS: CSV charset=WE8MSWIN1252
4
0.01401
0.00042
...NLS: Set Decimal separator="."
4
0.01443
0.00053
...NLS: Set NLS Group separator=","
4
0.01495
0.00050
...NLS: Set g_nls_date_format="DD-MON-RR"
4
0.01545
0.00051
...NLS: Set g_nls_timestamp_format="DD-MON-RR HH.MI.SSXFF AM"
4
0.01597
0.00050
...NLS: Set g_nls_timestamp_tz_format="DD-MON-RR HH.MI.SSXFF AM TZR"
4
0.01647
0.00079
...Setting session time_zone to -05:00
4
0.01726
0.00046
Setting NLS_DATE_FORMAT to application date format: DD-MON-YYYY
4
0.01772
0.00060
Setting NLS_TIMESTAMP_FORMAT to application timestamp format: DD-MON-YYYY HH24.MI.SSXFF
4
0.01832
0.00092
...NLS: Set g_nls_date_format="DD-MON-YYYY"
4
0.01924
0.00049
...NLS: Set g_nls_timestamp_format="DD-MON-YYYY HH24.MI.SSXFF"
4
0.01973
0.00083
...NLS: Set g_nls_timestamp_tz_format="DD-MON-RR HH.MI.SSXFF AM TZR"
4
0.02056
0.00099
NLS: Language=en-us
4
0.02154
0.00157
Application 101, Authentication: PLUGIN, Page Template: 5091946581246503
4
0.02312
0.00065
...fetch session state from database
4
0.02377
0.00106
fetch items
4
0.02483
0.00065
...fetched 103 session state items
4
0.02548
0.00194
Authentication check: NTLM (NATIVE_CUSTOM)
4
0.02742
0.00188
...Execute Statement: begin declare begin wwv_flow.g_boolean := f_ntlm_page_sentry_parm; end; end;
4
0.02930
0.00050
... sentry+verification success
4
0.02980
0.00042
...Session ID 123235901404364 can be used
4
0.03021
0.00114
...Application session: 123235901404364, user=VARMAN01
4
0.03135
0.00162
...Check for session expiration:
4
0.03297
0.00075
Session: Fetch session header information
4
0.03372
0.00113
...Setting session time_zone to -5:00
4
0.03485
0.00080
Branch point: Before Header
4
0.03565
0.00598
Fetch application meta data
4
0.04165
0.00081
...metadata, fetch computations
4
0.04245
0.00076
...metadata, fetch buttons
4
0.04321
0.00086
Setting NLS_DATE_FORMAT to application date format: DD-MON-YYYY
4
0.04406
0.00058
Setting NLS_TIMESTAMP_FORMAT to application timestamp format: DD-MON-YYYY HH24.MI.SSXFF
4
0.04464
0.00049

Just an observance... SQL is still showing the rowid instead of the P1004_PERSON_ID ??
where "PERSON_ID" = :p_rowid;
should it not be :
where "PERSON_ID" = :P1004_PERSON_ID:
thx, Bill

Similar Messages

  • How to include the search criteria in "Form on a Table with Report" form.

    Hi,
    I am struggling hard to get to this point can any body help me...
    I had created a page type form and in that I selected Form on a Table with Report..so the hirerachy is Form >> Form on a Table with Report. In that I managed to give one column of data hyperlink so that once we click on that column data it will takes to next form to display all other information.
    But, the problem is there is not serach criteria available on this type of page.Could any body give me a solution how to get on to this.
    Cheers,
    krishna.

    Hi,
    Could, some body please answer to my question I raised above.
    Cheers,
    Krishna.

  • Form on a Table with Report, 2 Pages

    I have a view and i am using this to create a page as follows for insert/update/delete .
    (1) create application from scratch
    (2) on page 1 using wizard choice "Form on a Table with Report, 2 Pages"
    (3) Follows the screens and create the 2 page where first page is a report and when i click on edit(in my case) it goes to next page for insert/update/delete.Everything like insert/update/delete works fine .
    Now this view has say three columns
    (1) element_type_id
    (2) element_name
    (3) yesnoflag
    changing element_name and yesnoflag column is ok but then i need to have element_type_id corresponding to the element_name from some other table.
    Question1
    How should i get the element_type_id corresponding to the element_name .so when i create a new record it goes to page 2 and i can provide LOV for element_name and enter into yesnoflag, how can i get the element_type_id populated corresponding to the element_name entered.
    Question2
    Also in my application i have name element_type_id as primary key .I am not sure if thats a good idea or should i make element_name as primary key ?
    please help.
    Thanks,
    Sachin

    hey rui--
    by "adjust your html", i simply meant that you should look at your page, think about the html that's being used, and adjust it as necessary to make your data wrap as desired. now that i'm pretty sure i understand your issue, i can tell you the adjustment. you're saying that your form shows your long column "correctly" with data broken up onto separate lines by carriage returns or linefeeds. when you display that same data in your report, those carriage returns ( chr(13) ) and/or linefeeds ( chr(10) ) aren't observed. that's because they don't mean much in regular html. two ways to approach this would be:
    a) replace your carriage returns with explicit <br> tags to get the breaks that you want...
    select test_id, replace(test_description,chr(13)) test_desc from my_table;
    b) wrap your column with <pre> tags to preserve all the original formatting of your data...
    select test_id, '<pre>'||test_description||'</pre>' test_desc from my_table;
    ...and you could, of course, do option B in your report row template if you'd like.
    hope this helps,
    raj

  • INSERT Statement behind a FORM on a TABLE with REPORT

    When I create a form on a table with report, I'm sure an INSERT STATEMENT is genereated in the background somewhere. How can I see this insert statement or how can I get to this INSERT statement? If I can see it, would I be able to modify this INSERT statement?
    Please use simple terms.
    Thanks.

    Roel
    At first, i was just curious to see where that insert statement is and how it looks like.
    Later, I really wanted to see it because I wanted to know how it looks like whne I try to insert a one to many relationship record. Don't know if I'm being too clear on this.
    Lets say table A and B have a 1-to-many relationship. When I want to insert records into both A and B, how does the insert work? Maybe if I get an answer to this question, I may understand how the inserts are done on a 1 to many relationship data insert.
    Thanks.

  • Form on a table with report

    HI all
    I have a page type : form on a table with report .
    the table is :
    CREATE TABLE  "SLIKA_USERS"
       (     "ID" NUMBER,
         "USER_NAME" VARCHAR2(20) NOT NULL ENABLE,
         "USER_PASSWD" VARCHAR2(4000),
         "COMPANY" NUMBER(10,0),
         "FORM_TYPE" NUMBER(2,0),
         "USER_NAME_DB" VARCHAR2(20),
         "USER_LOCK" NUMBER(1,0),
         "DATE_PASSWD_CHNG" DATE,
         "LOGIN_DIR" VARCHAR2(30),
          CONSTRAINT "SLIKA_USERS_PK" PRIMARY KEY ("ID") ENABLE,
          CONSTRAINT "USER_NAME_UNQ" UNIQUE ("USER_NAME") ENABLEthe table contain 500 rows.
    in addition , when new user entered there are few processes that give him the USER_NAME_DB automatically by executing a functions etc.
    in a few weeks , new table need to be active instead SLIKA_USERS table
    the new table will look like this :
    CREATE TABLE  "SLIKA_USERS_NEW"
       (     "ID" NUMBER CONSTRAINT "ID_NN" NOT NULL ENABLE,
         "USER_NAME" VARCHAR2(20),
         "USER_PASSWD" VARCHAR2(4000),
         "COMPANY" NUMBER(10,0) CONSTRAINT "COMP_NN" NOT NULL ENABLE,
         "FORM_TYPE" NUMBER(2,0),
         "USER_NAME_DB" VARCHAR2(20),
         "USER_LOCK" NUMBER(1,0),
         "DATE_OPENED" DATE,
         "DATE_PASSWD_CHNG" DATE,
         "LOGIN_DIR" VARCHAR2(30),
         "USER_ID_NUM" NUMBER(9,0) CONSTRAINT "USER_ID_NUM_NN" NOT NULL ENABLE,
         "USER_F_NAME" VARCHAR2(10) CONSTRAINT "USER_F_NAME_NN" NOT NULL ENABLE,
         "USER_L_NAME" VARCHAR2(15) CONSTRAINT "USER_L_NAME_NN" NOT NULL ENABLE,
         "USER_MNG_NAME" VARCHAR2(30) CONSTRAINT "USER_MNG_NAME_NN" NOT NULL ENABLE,
         "LAST_LOGIN_DATE" DATE,
         "DATE_CLOSED" DATE,
          CONSTRAINT "USER_NAME_PK" PRIMARY KEY ("USER_NAME") ENABLE,
          CONSTRAINT "ID_UNQ" UNIQUE ("ID") ENABLE,
          CONSTRAINT "USER_ID_NUM_UNQ" UNIQUE ("USER_ID_NUM") ENABLE,
          CONSTRAINT "USER_NAME_DB_UNQ" UNIQUE ("USER_NAME_DB") ENABLEproblem :
    before inserting new user to table SLIKA_USERS_NEW i need to check if the user_name alreay exists in SLIKA_USERS table .
    i need to take all his details and move them to the new table , in addition as you can see , i need to complete some details like the USER_ID_NUM,USER_F_NAME,USER_L_NAME.
    of curse if this user doesn't exist in the slika_users i need to create him as new user.
    i thought about trigger , unfortunately it won't be a good idea since i don't have in table slika_users
    the USER_ID_NUM" ,     "USER_F_NAME" , "USER_L_NAME"
    another problem is : even if i will manage to overcome the problem of moving data from table slika_users .
    to slika_users_new ,
    to manage it after the tables will switch won't be easy though.
    in a few weeks , the slika_users need to rename to slika_users_old .
    and slika_users_new will rename to slika_users,
    that is a necessary step because lots of pages in the application , relate to the table slika_users ,
    in addition if new user need to create i still need to look if it's exists in the SLIKA_USERS_OLD (after i'll switch between the tables )
    please give idea how to overcome those problems
    Thanks In Advanced
    Naama

    Hello,
    Basically it can be done, but you'll need to do it manually. You can create your basic report, and define two link columns, each to the proper form, which will include the desired columns.
    The problem I see in this kind of solution is a great risk for data integrity, especially in a multi-user environment. It will take time to update both forms, and in between, the table record will contains inconsistent data – the first columns can contains data updated by the first form, but the rest of the columns will still contains an old data.
    Regards,
    Arie.

  • Form on a Table with Report,SOS!!!!!!!!!

    I HAVE TWO TABLE'S AS
    TAB_SALES AS
    BRAND     SKIND     PRICE     SALES
    APPLE     PHONE     5000     
    SAMSUNG     PHONE     3000     
    SONY     PHONE     5600     
    PIONEER     PHONE     2300     
    SANYO     BATTERY     109     
    AND TAB_COUNTRY AS
    BRAND     CONUTRY
    APPLE     USA
    SONY     JAPAN
    SAMSUNG     KOREA
    SANYO     JAPAN
    AND I WANT TO CREATE A Form on a Table with Report to display the :
    BRAND     SKIND     PRICE     SALES     CONUTRY
    APPLE     PHONE     5000     USA
    SAMSUNG     PHONE     3000          KOREA
    SONY     PHONE     5600          JAPAN
    PIONEER     PHONE     2300          JAPAN
    SANYO     BATTERY     109          JAPAN
    I want to let end_user modify the sales
    but when I create the Form on a Table with Report,the apex give me the rowid error:
    Error creating form and report.
    ORA-20001: Unable to create query and update page. ORA-20001: Unable to create query and update page. ORA-01445: cannot select ROWID from, or sample, a join view without a key-preserved table
    who can help me ?

    Hi lily,
    I'm sure you are aware of these, but please have a look again at the "Welcome" page of the forum: https://forums.oracle.com/forums/ann.jspa?annID=1324 and think about changing the subject of your post.
    Please provide your APEX and DB version, along with the SELECT statement you are using in the form.
    Any chance to create an example on apex.oracle.com?
    This would probably be the quickest way to get help.
    Thanks
    Sandro

  • Need to create form on a table with report with a table has NO primary key

    Hi, I tried to created some insert/update/delete form+report in an application, it works fine only if the table has primary key. Does anyone know how to create the same functionality with a table with no primary key? I saw an application is built on older version of htmldb that is using tables with no primary keys at all.
    Here are the specific issues that I am facing:
    - I am building some Form on a table with Report, it requires the table with primary key for form to update. Is there a workaround that I can use tables that has no primary keys at all?
    - Say if primary key is necessary in the previous report+form, but the maximum number of columns that I can use to composed a primary is only 2 for that Form-Report, I cannot find anything handling > 2 primary key. Do you know if there are some ways to composite a primary key from many columns together?
    Your help is really appreciated.
    Thanks,
    Angela

    Sorry to ask response so late. I had no time to get back to that issue before.
    Regarding the triggers, I can make it work for the update, but not the insert.
    Here is my trigger:
    create or replace trigger STATUS_T1
    instead of insert on STATUS
    begin
    insert into STATUS ("LABEL", "AREA", "OWNER", "TEST_NAME", "STATUS", "REMARKS", "BUGS", "DEV_MGR", "TEST_BY_DATE")
    values(:new.LABEL, :new.AREA, :new.OWNER, :new.TEST_NAME, :new.STATUS, :new.REMARKS, :new.BUGS, :new.DEV_MGR, :new.TEST_BY_DATE);
    end;
    by any chance, you can notify what is wrong?
    I already skip the ROWID when inserting to the view STATUS, but I cannot figure out what is wrong when inserting a new record to that view.
    It gave me the following errors:
    ORA-06550: line 1, column 38: PL/SQL: ORA-00904: "ID": invalid identifier ORA-06550: line 1, column 7: PL/SQL: SQL Statement ignored
    Error Unable to process row of table STATUS
    Then, I turned to debug mode, I am thinking that maybe because I use a HIDDEN item to hold the value of ROW_ID as I use the rowid (called ID in the view) to retrieve the record as a column link from previous page. What do you think?
    Thanks again,
    Angela

  • Form on a table with report using DB Link

    Hey Guys
    How do i create a "Form on a table with report"?? using a database link. Under the "Table/View name" category when i provide the table name with the database link (like EMP@test), it compalins and says table or view does not exist and it only allows me to select from local tables. When i run "select 1 from emp@test" in sql commands window, it does return records so database link is working..
    Any suggestions??

    yes, I know i can do that, but when i tried it, its not displaying the records that are in the table, so how can i delete an existing record. Its doesnt allow me to browse through the records. Atleast, in the other way, it creates an edit button on the left and clicking it will take you to a form when you can edit it, add/delete.....this is all really simply, only issue is how to incorporate database links in this.

  • Form on a Table with Report - Auto Number

    Hi,
    Scenario:
    I want to create "Form on a Table with Report" that should allow my users to add records...
    Steps and issues
    I created a table in MS Access with a field called "TRACKING_NO" as type Auto Number and made it a primary key... I was planning to use it to link Report to Form
    When I uploaded the table to Oracle it changed the type to varchar2... can you please advice how to change it back to Auto number...?
    and will it work if my user add a record to the table (using APEX built in option to create a record)...?
    Thanks in advance

    Hi,
    this is what I would do.
    1. Upload the table from MS Access, lets call it TAB_A
    2. Using SQL-Workshop get the DDL (SQL statement) for this table
    3. Change any names and/or datatypes as required
    4. Create a new table with this DDL, lets call it TAB_O
    5. Copy the contents from TAB_A to TAB_O (e.g. INSERT INTO TAB_O (id, colx, coly) SELECT TO_NUMBER(tracking_no), col1, col2 FROM TAB_A;)
    6. Create a sequence which starts with the last PK + 1 of table TAB_A
    7. Add a trigger to TAB_O to use this sequence to populate it's PK
    By the way, working with APEX requires a solid understanding of Oracle SQL and PL/SQL, regardless of what anyone says, even Oracle.
    Regards Garry

  • ORA-01403: no data found error hile inserting into a table

    Hi,
    I am populating a PL/SQL table(Array) with the data. From that array inserting into a Actual table. Before inserting am checking array count. Array count is greater than 0. But I am getting "ORA-01403: no data found" exception. I am not getting why this error is displaying.
    Please someone help me. Below is the code.
    CREATE OR REPLACE PROCEDURE XXDL_TEST_INSERT
    IS
    BEGIN
       IF  t_array.count> 0 THEN
        FND_FILE.PUT_LINE (FND_FILE.LOG, t_array.count);
        FOR i IN t_array.FIRST..t_array.LAST
        LOOP
            INSERT INTO XXDL_TEST
            VALUES(t_array(i).name )
      END LOOP;
    END IF;
    EXCEPTION
      WHEN OTHERS THEN
        FND_FILE.PUT_LINE (FND_FILE.LOG,SQLERRM);
    END;Thanks
    Alaka

    It looks like your Array is sparsely populated:
    SQL> DECLARE
      2    TYPE l_tab_type IS TABLE OF VARCHAR2(10)
      3      INDEX BY BINARY_INTEGER;
      4    l_tab l_tab_type;
      5  BEGIN
      6    l_tab(1) := 'A';
      7    l_tab(2) := 'B';
      8    l_tab(3) := 'C';
      9    FOR i IN l_tab.FIRST .. l_tab.LAST LOOP
    10      dbms_output.put_line(l_tab(i));
    11    END LOOP;
    12  END;
    13  /
    A
    B
    C
    PL/SQL procedure successfully completed.
    SQL>
    SQL> DECLARE
      2    TYPE l_tab_type IS TABLE OF VARCHAR2(10)
      3      INDEX BY BINARY_INTEGER;
      4    l_tab l_tab_type;
      5  BEGIN
      6    l_tab(1) := 'A';
      7    l_tab(3) := 'B';
      8    l_tab(4) := 'C';
      9    FOR i IN l_tab.FIRST .. l_tab.LAST LOOP
    10      dbms_output.put_line(l_tab(i));
    11    END LOOP;
    12  END;
    13  /
    A
    DECLARE
    ERROR at line 1:
    ORA-01403: no data found
    ORA-06512: at line 10Edited by: JS1 on Apr 11, 2009 8:59 AM
    You should also be using the FORALL syntax with INDICES OF. Check out The Docs

  • Column not found error while populatin a oracle table with ODI USer

    Hi,
    I am trying to populate a column in a oracle table with the ODI USER name using the function getUser("USER_NAME") in the Mapping column of the Interface, But the interface throwhing an error *Column not found : Supervisor in Statement [Select......]*. but it's working fine with getUser("I_USER') the column is populating the user identifier.
    can any one help me out why user is not populating.
    Thanks

    Enclose the call to the getUser api inside single quotes
    '<%=getUser("USER_NAME")%>'ID being a number can be used directly but USER_NAME returns a string that needs to be quoted

  • How can I be able to create a primary key in a Form on a Table with Report?

    When I click the "Create" button, a form appears allowing me type in data for those columns. But primary key is not there. I really need to specify my primary key here also. Because the primary key for this table is a Serial Number, not just a sequence number.
    I noticed that when I created this page earlier, the primary key was ruled out by default. I wish there is a way to accomplish this. Thanks!

    Hello,
    >> a pk field is not null implicit …
    I’m not sure I understand your statement. Every item, including the one holds the primary key, is null for a new form. The question is, when you are filling the form, how to populate this field. The APEX wizard assumes this field will be populated by the system, hence it hides it from the user, however it’s a valid situation where the primary field is filled by the user.
    As primary field should not be changed, hence the productive advice by Martin. If the form displays an existing record, the primary field item should be set to Read Only.
    Regards,
    Arie.
    Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.

  • Form on Table with Report works in one environment but not in another.

    Here's a short description of the problem:
    Created a form on a table with report (using the wizard) in an ApEx application. The form and report work perfect in development environment. Once the application is moved to the Test environment, the insert feature of the form does not work. We have verified that the underlying table the form is based on is there with all the fields, primary key, sequence and trigger.
    Any ideas?
    Marc

    Ben,
    I assume that apex_public_user has all the approporiate privilegesapex_public_user requires no privileges other than those it is created with during installation and the execute privileges on procedures it may acquire as URL-invokable procedures are developed and registered.
    Marc - What are the symptoms of the problem (insert does not work) ? What does the debug output show when you run the page in debug mode? Does the "request" value of the button (create button?) match one of the request values recognized by the DML process?
    Scott

  • BUG: Apex 4.0.1 form on table with report. Not passing ID correctly

    I'm trying to create a form on a table with report using the wizard. I opted for a classic report page.
    The edit link on the report page does not work. The link looks like this:
    http://ngdwpc3:7777/pls/apex/f?p=101:15:1800428764039812::::P15_ID:#ID#
    This is clearly wrong because one would expect a value to be passed and not a column name.
    Looking at the generated report page I get 60 columns. This seems to be a result of the setting:
    no-checked :Use Query-Specific Column Names and Validate Query
    checked :Use Generic Column Names (parse query at runtime only)
    The ID column in the table is mapped to COL01.
    Changing the value being passed in the link columns to #COL01# results in the correct behaviour.
    My guess is that the option "Use Query-Specific Column Names and Validate Query" is the correct setting for the generated report.
    Rene

    Yes, I guess this is a Bug.
    1. When you speciify a WHERE clause in the Wozard it adds extra quotes when appending the WHERE into the Report SELECT.
    I think thats the root cause, all others just follow as a consequence.
    a. Because the query cannot be parse ( two single quotes) the Use Generic Column Names (parse query at runtime only) is automtacillay set
    b. This leads to COL01 to COL60
    c. Which is turn leads to the link not working.
    I could easily recreate the scenario.
    To fix it I did the following
    1. Removed the extra quotes from the query
    2. Selected Use Query-Specific Column Names and Validate Query and Saved
    It started working correct.
    I suggest you edit your Thred name add BUG at the begining so that it gets spotted by Oracle folks on the forum.
    Regards

  • No Data Found Error in Transaction Source Types Form

    Hi All,
    We are using 11.5.10.2 version of Oracle Apps.
    When i navigate to INV responsibility, Setup -> Transactions -> Source Types, upon the opening of the Transaction Source Types form, i get a series of "No Data Found" error pop up messages. I searched in metalink too but couldn't find any resolution for the same.
    Does anyone know as to how to resolve this issue? Is there any patch that needs to applied? Kindly help.
    Regards,
    Hemanth

    Hi Julie,
    On the "Process Row of..." process, make sure that it is unconditional and that the Delete opertion checkbox is ticked. Deletions from the main table should only be triggered by a DELETE request which should be issued by the "Delete" button.
    On the "Apply MRD" process, make sure that the condition is "Request is Contained within Expression 1" and Expression 1 is: APPLY_CHANGES_MRD,SAVE
    This process should be triggered by the "Delete Checked" button, which should have a URL target of:
    javascript:confirmDelete(htmldb_delete_message,'APPLY_CHANGES_MRD');This triggers the confirmation popup and submits the page with APPLY_CHANGES_MRD as the REQUEST value which should be picked up by the "Apply MRD" process only.
    Andy

Maybe you are looking for