Tabular form on table with no p.k

hi all
the question i'm about to ask is basic question on creating table , and as a result of that about tabular form
i have table like this
IND NUMBER(2)
COMPANY NUMBER(5)
CLM_NUM NUMBER(15)
VERSION_NUM NUMBER(2)
DATE_GET NUMBER(8)
CAR_NUMBER VARCHAR2(7)
MISS_EXPL VARCHAR2(50)
there can be more than one row with the same data. that's why i cannot do a primary key in this table.
i want to create a tabular form on this table.
the question is as follow:
1.general question not related to tabular form.
if there is table like in my case,which i cannot see that p.k can create with the columns that i have ,do i have to add column lets say : ID which contain consistent numbers
which will be the p.k ? , or is it o.k to leave the table with no p.k.
i know that in apex 1.6 is not giving an option to create table if i'm not declare a p.k , while in 3.1 it give an
option to create with no p.k
2. second question is : if i'm not doing a primary key is it possible to create a tabular form.
i know that the tabular form ask for a p.k but i did not understand if it want the specific p.k of the table.
3. if it possible(to create tabular on table not declare with tabular form) can i have a problem in the tabular form to recognize the record(row) which need to delete or update?
4. last question: again general question about creating table
is it by the accepted to create table which has no p.k but unique constraint like this
create unique constraint IND ,COMPANY,CLM_NUM,VERSION_NUM ,DATE_GET,CAR_NUMBER?
thanks for quick response!

Hi Naama,
Firstly, a primary key does not necessarily have anything to do with the data on the table. In most of my tables, it is just a sequential value created from a sequence and set by a trigger. In some cases, I do have non-numeric primary keys, but these are simple text fields that can never contain duplicates (for example, country codes) and which the user can not alter.
So, I would strongly recommend that you create a primary key on your tables.
Secondly, yes, you can create unique constraints on those fields. But note that Apex will not allow you to use that many fields as a "primary key" on any form.
If you have records with the same values in all fields, without a primary key, Apex would not know which record was being updated.
Andy

Similar Messages

  • Tabular Form on Table with no primary key

    I have many tables defined with Unique Index (instead of Primary Keys). This allows my user to update/insert the value of the unique index. When I try to create my form in HTML DB, it makes me put in the primary key. If I choose th column that has the unique index, it will not let me update or insert that value. How can I achieve this?

    Create a surrogate PK called rec_id or something and populate that using a BEFORE INSERT row-level trigger
    create sequence pk_seq;
    create or  replace trigger trg
    before insert on t
    for each row
    begin
    select pk_seq.nextval into :new.rec_id from dual;
    end;
    /Tell the HTML DB wizard about this new PK (rec_id), should work fine
    Hope this helps.

  • Ora-20001 when creating a form on table with report (bug?)

    Having some trouble creating a "Form on table with report".
    1) I pick my table
    2) take most of the defaults on the page where you pick the report type (interactive) and the page number (I changed it to 950). next->
    3) Do not use tabs. Next->
    4) Select all columns for the report. THEN (here's the problem) set an optional where clause of system_role_name like 'ODPSPOPUP%'. Next->
    5) choose standard edit link. next->
    6) Specify a page of 951 for the form (leave others defaults). next->
    7) Set the form primary key (defined in table). next->
    8) use existing trigger. next->
    9) choose all columns for the form. next->
    10) Leave actions to insert, update, delete. next->
    11) Get to the summary page and click Finish
    Then I get an error page saying:
    ORA-20001: Unable to create query and update page. ORA-20001: Unable to create query and update page. ORA-00933: SQL command not properly ended
    If I go back to step 4 and erase my where clause the wizard completes successfully.
    Also if I change the report type in step 2 from the default of "Interactive" to "Classic" the wizard completes successfully. However upon running the report I get a query parse error. Looks like the where clause in the report sql is: system_role_name like ''ODPSPOPUP%'' (two single quotes on each side).
    It looks as if you cannot specify a where clause with a quoted string. The wizard is expecting a bind variable.
    Workaround(s):
    1) Don't specify a where clause when report type = Interactive in "create form on table with report" wizard.
    or
    2) Specify a bogus where clause using bind variable syntax such as "system_role_name like :BOGUSVARIABLE". Then edit the report query once the wizard finishes and change the where clause to the constant string you wanted to use in the wizard (e.g. "system_role_name like 'MYSYSTEM%'")
    Apex: 3.2.0.00.27
    Database: Oracle Database 11g Enterprise Edition 11.1.0.7.0 64bit Production (Oracle EL5)

    Andy,
    It's a bug, all right. Thanks for the detailed problem description. We'll fix it when we can.
    Scott

  • Several CRUDLs again: App from existing table Form on table with report?

    Hi,
    I posted a message a couple of days ago, asking if it was possible to automatically generate several CRUDL gui patterns per application. Later I answer myself discovering that the "Form on table with report" option for creating a page, make just that.
    However, I can see that the option for application level CRUDL (app from existing table) has more functionality (search, export to excel, data analysis, even charts, cool ;-). It creates about 10 pages per table, contrasting with the two created by the "Form on table with report" option. I thought that "Report with form" could be the answer, but it seems just another link to the same option.
    So, once again: is possible to call the functionality of "App from existing table", several times within the same application? (of course each time is likely to refer a distinct table). How do I insistently ask for this? Well, cause I can see in my horizon many applications what will entirely consist of table-maintenance services ... so, with htmldb I could generate them very fast!. In fact, once I have toasted my crudl pattern I would even like to save it and generate the applications on a non interactive basis (maybe calling something in pl/sql?, command line?) ... is that possible?
    Thanks in advance,
    salu2
    dario estepario ..

    Hi Scott,
    Dario - The "create application from existing table"
    functionality was available in 1.6. In 2.0, the
    Create Application wizard has changed. But you can
    create as many sets of pages in the same application
    as you need, all on different tables, using the
    patterns available in that wizard. You can also
    supplement those generated pages later by creating
    chart pages or whatever else you need.Mmm?, ups ... them am I running the 1.6 version? I installed it from the companion cd. Ok, I'll try the separately distributed htmldb version. Thanks.
    >
    At present there is no exposed API to let you do any
    of this programmatically.;-(
    >
    ScottRegards,
    dario estepario ...

  • Tabular form from query with outer join destroys the universe!

    Well, maybe just my app...
    At any rate, what I have is a query that pulls RISKS for a project and does a reasonable outer join which joins the latest value from a RISK_HISTORY table. Values for RISK are updated and the value for RISK_HISTORY is changed and a new entry added to the RISK_HISTORY table.
    At least that's how it's supposed to be.
    I was able to do this with a report-with-a-form region by adding an extra update process to do a new insert into RISK_HISTORY but it seems that the tabular form is a bit more work.
    Here's the query I'm using:
    select * from(
    select
    r.RISK_SEQ RISK_SEQ_DISPLAY,
    r.RISK_PRIORITY,
    r.RISK_INFO,
    r.RISK_MITIGATION,
    r.ONGOING_FLAG,
    r.RISK_DATE,
    r.WEEK_GROUP_SEQ,
    r.CREATED_ON,
    r.CREATED_BY,
    r.LAST_MODIFIED_ON,
    r.LAST_MODIFIED_BY,
    rh.STATUS,
    row_number() over (partition by rh.risk_seq order by rh.last_modified_on desc) rn
    from RISK r, WEEK_GROUP w, RISK_HISTORY rh
    where w.PROJECT_SEQ=43
    and r.week_group_seq= w.week_group_seq
    and w.week_index=0
    and rh.RISK_SEQ = r.RISK_SEQ
    ) where rn = 1
    Clicking "Add Row" gets me this:
    Error in mru internal routine: ORA-20001: no data found in tabular form
    Running debug doesn't seem to expose much for me either. Is there a better tact for me to take here?
    Thanks,
    Jon

    Hi Prazy,
    using nvl also didn't solve my problem.Actually my problem is I am having a table a in which I have a column called satus, status has the values like A or I .I have one lookup called MTH_BUYSINESS_FUNCTION in which for lookup_code A I have menaing as Active and for lookup_code I meaning is Inactive.Now in table a for sttaus I have two values one A and one null Now I want to write sql which displayes the meaning for column staus.Result should be Active and null .If I am uisng 1 query which I gave u I am not able to get the 2nd row in my output.If I use 2nd query then I get duplicate rows.
    Thanks ,
    Amrit

  • Tabular form: run procedure with Submit button

    I am trying to create a form (pulling from two tables) that allows for 'one' column to be modified. Once you hit submit I'd like the following procedure to run:
    Begin
    Ht_bpe.populate_schedule;
    End;
    This will update the associated completion dates (additional populated columns in the form) based off the change done by the end user for that 'one' column and return you back to the same page with the updated dates.
    but i keep getting the following error when i test it out:
    Error in mru internal routine: ORA-20001: no data found in tabular form
    Error Unable to process update.
    OK
    please help!
    Edited by: jclarke2 on Jun 15, 2009 3:58 PM

    Hello:
    What is the need for the MRU process ? It appears to me that you want to control the DML actions to be taken on submitting the form. If this is the case then all you have to do is to define a 'after submit' page to invoke the 'Ht_bpe.populate_schedule' procedure.
    Varad

  • 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

  • Insert Statement for Form on Table with Report

    I'm using a 'getID' process On Load Before Header to make sure I get an ID for my form per suggestion from blarman here. The form has many fields from one table and four collections. If I let the process run as I think it should (when the ID is null) the link to the report does not fetch any field except the id. If I set the process to never run everything loads but my update process doesn't run. What am I doing wrong? Advance thanks...
    Alexandra
    Get ID Process
    declare
      new_id   NUMBER;   --gets the next sequence number for new record ID
    begin
    INSERT INTO DOC_INFO (DOC_INFO_ID,OWNER_ID,STATUS_ID, DOCNO, DOC_TITLE, REVISION, STATUS_DT,ISSUE_DT, REVIEW_DT, ECRNO,  ECR_LINK, DOC_LINK, COMMENTS, KEYWORDS, DOC_TYPE, ASSOC_ITEMNO, FILE_TYPE, FILE_NAME, CHANGE_TYPE, NEW_DOCNO) values(new_id, 0, 0, '', '', '', '','', '', '', '', '', '', '', '', '', '', '', '','');
      :P26_DOC_INFO_ID  := new_id;
    end;Update Process (On Submit/After Comp...)
    Update DOC_INFO
    SET
    DOC_INFO_ID   = :P26_DOC_INFO_ID,
    OWNER_ID  = :P26_OWNER_ID,
    STATUS_ID  = :P26_STATUS_ID,
    DOCNO  = :P26_DOCNO,
    DOC_TITLE  = :P26_DOC_TITLE,
    REVISION  = :P26_REVISION,
    STATUS_DT  = :P26_STATUS_DT,
    ISSUE_DT  = :P26_ISSUE_DT,
    REVIEW_DT  = :P26_REVIEW_DT,
    ECRNO  = :P26_ECRNO,
    ECR_LINK  = :P26_ECR_LINK,
    DOC_LINK  = :P26_DOC_LINK,
    COMMENTS  = :P26_COMMENTS,
    KEYWORDS  = :P26_KEYWORDS,
    DOC_TYPE  = :P26_DOC_TYPE,
    ASSOC_ITEMNO  = :P26_ASSOC_ITEMNO,
    FILE_TYPE  = :P26_FILE_TYPE,
    FILE_NAME  = :P26_FILE_NAME,
    CHANGE_TYPE  = :P26_CHANGE_TYPE,
    NEW_DOCNO = :P26_NEW_DOCNO
    WHERE DOC_INFO_ID = :P26_DOC_INFO_ID;

    Got it...I think it had to do with the use of my 'Create' and 'Apply Changes' buttons.
    Thanks for your time anyway.

  • Form on Table with Report

    I vaguely remember if I add fields to a table that is being used in a form/report, even though I manually add the fields to the report query and update/insert statements on the form, there can still be a problem with the fields being picked up by the report upon filling them in on the form. Is this so? If so, is there a work around without recreating the whole thing?
    the form has two buttons that just redirect to the same page. Each just displays it's related field using REQUEST = EXPRESSION 1. Each has it's own request value. After the form is complete, the user clicks a submit button to update the report. All fields update except these conditionally displayed fields that display based on the request buttons.
    It feels like one of those things where I'm going to kick myself when it's figured out.
    Thanks in advance...
    Edited by: userRRRYB on Oct 19, 2010 9:01 AM

    Unfortunately not. I'm using the fields to update another field. This is a catalog form for our Document Control department. They create and save a document to a folder then catalog it so they have search capability. If they make a change to the doc, they have to go back to the catalog and make updates to the form as well. They will either tack on A,B,C etc. for a REVSION change, or v1,v2,v3, etc for a VERSION change. So...
    Buttons
    REVISION
    VERSION
    Fields
    DOCNO (for demo this displays F-100)
    REVISION
    VERSION
    NEW_DOCNO
    User clicks the REVISION button and the REVISION field displays F-100A.
    Source for the REVISION field is this:
    SELECT CASE
    WHEN
      ASCII(SUBSTR(:P51_DOCNO, LENGTH(:P51_DOCNO)-1, 1)) = 118 or
          ASCII(SUBSTR(:P51_DOCNO, LENGTH(:P51_DOCNO)-1, 1)) = 86
              THEN SUBSTR(:P51_DOCNO, 1, LENGTH(:P51_DOCNO) - 1) || CHR(ASCII(SUBSTR(:P51_DOCNO,LENGTH(:P51_DOCNO),1)) + 1)
    ELSE :P51_DOCNO || 'v' || 1
    end
    from doc_info
    where doc_info_id = :p51_doc_info_idSelect for the revision VERSION does the same thing, but checks for and adds v1, etc.
    Then the appropriate rev/ver gets dumped into NEW_DOCNO b/c I thought I could then use that to update the next time...but since none of these fiels are dumping into the report I've not gotten that far.
    Another note: all other fields update to the report fine.
    This is probably a very cumbersome way to do this, but I operate from my own neive creative problem solving base without any real formal training.
    Any ideas?
    Edited by: userRRRYB on Oct 19, 2010 9:23 AM
    Edited by: userRRRYB on Oct 19, 2010 9:29 AM

  • ADOBE Form Using Table with dynamic number of rows

    Hi All
    First some information about our infrastructure:
    - AdobeDesigner 7.1 in the Developerstudio
    - SAP-Portal 7.0 SP15
    I have a View with tabstrips and behind the tabs i have defined an event. On one Tab I included a ADOBE-Form with Table. The Data for the PDF sould only filled in the context for the Form when i jump to this Tab. I created the Form by using this documentation [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0859ad1-53aa-2a10-78ae-99e41c407669].
    To fill the tablecontext I use the following Code:
    IPrivateAnlegenBANFView.IPositionenElement position = null;
    IPrivateAnlegenBANFView.IPositionenNode posNode = wdContext.nodePositionen();
    int NUM_5_TIMES = 5;
    for (int i = 0; i < NUM_5_TIMES; i) {
    IPrivateAnlegenBANFView.IPositionenElement posElement = wdContext.createPositionenElement();
    +posElement.setMaterial("" + i);+
    +posElement.setKurztext("Test" + i);+
    +posElement.setWarengruppe("Warengr" + i);+
    posNode.addElement(posElement);
    If i put this code in the wdDoInit method it  works fine and shows me 5 Rows. But if I put the code in the Action of the tabstrip it shows me only one row. I checked the entries of the context and there are 5 entries (showed them in a WD-Table).
    Can someone tell me what im doing wrong?
    Thanks for a answer and kind regards
    Pascal

    Hi All
    finally i found the solution for the problem.
    When you define the interactive Form in the view do not define the property "dataSource" of UI-Element Interactive Form it seems, that the binding is static and not dynamic.
    Add the following source to the viewCotroller
    Global Part of the Source:
    private static IWDInteractiveForm form = null;
    Method wdDoModify:
    if (firstTime) {
      form = (IWDInteractiveForm) view.getElement("InteractiveForm");
    When you have an Event where you fill your Contextnode which you want to display in the table of an Adobe Form Use this code:
    Action:
    public void onActionFillTab(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent ){
      //@@begin onActionFillTab(ServerEvent)
         * Code to fill the Node for AdobeForm Table
        form.bindDataSource(wdContext.nodeTabelle().getNodeInfo());
      //@@end
    If you want to clear your table and show it directly use in the action the following code:
    wdContext.nodeTabelle().invalidate();
    form.bindDataSource(wdContext.nodeTabelle().getNodeInfo());
    Kind regards
    pascal

  • Populating Tabular Form Region Field With ITEM Data

    Hi,
    I have a date picker item, i want to be able to put that date in to all the rows in the field RENEWALDATE but ive tried to set that field to have the date item as default and it doesnt pick anything up. How can i do this?

    I sorted it in the end...I created a PLSQL process thats updates and sets the field RENEWAL to :P7_X, so when P7_X is submitted this process runs and updates all the rows displayed to populate the renewal date column with this value. I also intend on being able to select a particular trainer and populate all the rows with that one trainer user the same process.
    My situation is that certain staff have individual training sessions but some need to be in group sessions where by the trainer can update multiple people who say attended the Induction course on 12/04/2007, User selects the date and course presses retrieve and this brings back all staff on the course, the trainer can then pick his name, a renewal date and submit these, hence updating the field for every member of staff. Of course the update process is only assigned to a certain button and not on submit, so a trainer can amend a single individual out of the group and still submit the correct details. Pretty handy really

  • Tabular Form Populate from a query of other tables

    I am sure this can be done but we are especially new to Master-Detail relationships in Apex and to Tabular Forms (updateable reports).
    We are trying to populate a tabular form (updateable report) with values from a query. The user is simply going to click yes/no per row and then we need to insert those rows into a table..
    I tried following the logic of creating a Master-Detail relationship, and noticed the AddRow Button and the process to add rows to the Tabular Form. I also noticed several MRUUpdate processes that fire to update existing rows.. I am assuming that I need to first add the number of rows that the query which populates the tabular form pulls in and then update the rows after that. I tiried doing a count and storing the value in a Page Text Field/Hidden Field and then in the AddRows to the MRU I put the field name with & and . around it. That did not work (it could not add rows and came up with an ora-6502 error) , I then tried to put a : in front of it and that failed too.
    Any suggestions on how to proceed.
    Thank you in Advance,
    - Brian

    Here is the issue quickly... I am trying to create a Master/Detail Screen. The master record always inserts, the details are populated from a query into a tabular form/updateable report and always inserts. The user will check certain details and the checked details will be marked as Y, unchecked marked as N and saved to the detail table. And tried to do some research into the issue..
    Possible Solutions I found where: 1) http://htmldb.oracle.com/pls/otn/f?p=31517:170:2680852007789839::NO:::&success_msg=0%20Row(s)%20Updated%2C%202%20Row(s)%20Inserted.%2F838A7BC908323107AD95920713AFD5FD%2F and 2) http://www.inside-oracle-apex.com/checkboxes-in-tabular-forms-the-easy-way/
    I went with 1).. but modified the code and simplified it since I always know that I should be inserting..
    I am trying to insert into a table called bd45vbjbsel
    CDSELECTED VARCHAR2(1)
    CDBILL VARCHAR2(20)
    NUXRBILL NUMBER
    NATITLE VARCHAR2(500)
    CDMEMBER VARCHAR2(20)
    DECRITERIA VARCHAR2(500)
    NUCRITERIA NUMBER
    NUXRBSELECT NOT NULL NUMBER
    NUXRBSEL NOT NULL NUMBER
    NATXNORGUSER NOT NULL VARCHAR2(20)
    DTTXNORIGIN NOT NULL TIMESTAMP(6)
    NATXNUPDUSER NOT NULL VARCHAR2(20)
    DTTXNUPDATE NOT NULL TIMESTAMP(6)
    CDSTATUS NOT NULL VARCHAR2(1)
    My Tabular Form Select is:
    select apex_item.checkbox (1,
    '#ROWNUM#',
    'onclick="highlight_row(this,' || ROWNUM || ')"',
    NULL,
    'f01_' || LPAD (ROWNUM, 4, '0')
    ) cdselected,
    cdbill, nuxrbill, natitle, cdmember, decriteria, nucriteria , 0 NUXRBSELECT, 0 NUXRBSEL, USER NATXNORGUSER, systimestamp DTTXNORIGIN, USER NATXNUPDUSER, systimestamp DTTXNUPDATE, 'A' CDSTATUS from
    (select nuxrbill, nubill, cdbill, natitle, cdmember, nurevision, MAX(NUREVISION) OVER (PARTITION BY NUBILL) nurevisionmax,
    CASE
    WHEN INSTR(':'||:P200_NUXRBILL||':',':'||NUXRBILL||':') > 0 THEN 'BILL# MATCH'
    WHEN INSTR(':'||:P200_NUXRBILLCAL||':',':'||NUXRBILL||':') > 0 THEN 'CALENDAR# MATCH'
    WHEN INSTR(':'||:P200_CDCOMMITTEE||':',':'||CDCOMMITTEE||':') > 0 THEN 'COMMITTEE: '||CDCOMMITTEE
    WHEN INSTR(':'||:P200_CDMEMBER||':',':'||CDMEMBER||':') > 0 THEN 'MEMBER: '||CDMEMBER
    WHEN INSTR(':'||:P200_DESUBJECT||':',':'||DESUBJECT||':') > 0 THEN 'SUBJECT MATCH'
    WHEN INSTR(':'||:P200_DTCOMAGNDA||':',':'||DTCOMAGNDA||':') > 0 THEN 'COMMITTEE AGENDA: '||DTCOMAGNDA
    WHEN INSTR(':'||:P200_CDPRIORITY||':',':'||CDPRIORITY||':') > 0 THEN 'PRIORITY: '||CDPRIORITY
    ELSE NULL
    END DECRITERIA,
    CASE
    WHEN INSTR(':'||:P200_NUXRBILL||':',':'||NUXRBILL||':') > 0 THEN 1
    WHEN INSTR(':'||:P200_NUXRBILLCAL||':',':'||NUXRBILL||':') > 0 THEN 2
    ELSE 3
    END NUCRITERIA
    from BM46BILL
    where cdstatus = 'A'
    AND ( INSTR(':'||:P200_NUXRBILL||':',':'||NUXRBILL||':') > 0
    OR INSTR(':'||:P200_NUXRBILLCAL||':',':'||NUXRBILL||':') > 0
    OR INSTR(':'||:P200_CDCOMMITTEE||':',':'||CDCOMMITTEE||':') > 0
    OR INSTR(':'||:P200_CDMEMBER||':',':'||CDMEMBER||':') > 0
    OR INSTR(':'||:P200_DTCOMAGNDA||':',':'||DTCOMAGNDA||':') > 0
    --OR (:P200_CDACTIVE = 'Y' AND
    OR INSTR(':'||:P200_DESUBJECT||':',':'||DESUBJECT||':') > 0
    OR INSTR(':'||:P200_CDPRIORITY||':',':'||CDPRIORITY||':') > 0
    ) a
    where a.nurevision = a.nurevisionmax
    I created an Anonymous PL/SQL Block Process called InsertMRU which fires right when a SUBMIT button is pressed after the Master information is inserted, the code for it is...
    DECLARE
    v_insertcount NUMBER := 0;
    v_updatecount NUMBER := 0;
    BEGIN
    :p200_detail_update := apex_application.g_f02.COUNT;
    FOR i IN 1 .. :P200_NUCOUNT -- Number of records pulled in from query.
    LOOP
    INSERT INTO bd45vbjbsel
    (cdselected,
    cdbill,
    nuxrbill,
    natitle,
    cdmember,
    decriteria
    VALUES (apex_application.g_f01 (i) -- cdselected
    apex_application.g_f02 (i) -- cdbill
    apex_application.g_f03 (i) -- nuxrbill
    apex_application.g_f04 (i) -- natitle
    apex_application.g_f05 (i) -- cdmember
    apex_application.g_f05 (i) -- decriteria
    commit;
    v_insertcount := v_insertcount + 1;
    END LOOP;
    :p200_detail_insert := v_insertcount;
    END;
    I am getting an ORA-01403 No Data Found error when submitting..
    Even though I am manually inserting the records do I still need to store the MD5checksum?
    Could there be another reason why I am getting a no data found on submit?
    Thank you again in advance...
    -Brian

  • ADD ROW in tabular form with new max value for a certain field

    All,
    I have a tabular form with an 'ADD ROW'-button.
    When a row is added the field 'TemplateID' should get
    automatically a new value which is MAX from TEMPLATEID + 1.
    I would be very glad, if someone has a hint for me.
    Thanks in advance,
    lucio

    Hi
    the cause of not seeing the 'Default Item Field' is,
    that during creation of a 'Tabular Form' the column with the
    primary key doesn't get that feature, why so ever.
    I still hope that someone could give me a hint why that code isn't working:
    function SetNewID(vDBID)
    v_check = $v('P20_MAX_TEMPLATEID');
    pNd = $u_Carray(vDBID);
         for(var i=0;i<pNd.length;i++){
              var node = $x(pNd);
              node = $x_Check_For_Compound(pNd[i])
              var lTr = $x_UpTill(node,'TR');
    updateRow = lTr.rowIndex - 1;
    document.wwv_flow.f02[updateRow].value=$v(v_check)
    Many thanks in advance
    lucio                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Dynamic Update Tabular form

    I have a tabular form on Table 1 (an empty table)
    I want to populate Table_1/tabular form with Table 2 values
    Table_1 & Table_2 are linked by pk/fk relationship (Main_Route)
    Basically, There will be a select list for Main_routes on the Table_1/tabular form. Once I hit the Apply changes button, I want it to get the values for street, ward, & section from Table_2.
    How do I achieve this? Is there some kind of trigger I can use, page process, or item-level sql?
    Table_1
    ID (number) (pk)
    Main_Route (varchar 2(30))
    Street (varchar 2(30))
    Ward (varchar 2(30))
    Section (varchar 2(30))
    Table_2
    Main_Route (varchar 2(30)) (pk)
    Street (varchar 2(30))
    Ward (varchar 2(30))
    Section (varchar 2(30))

    Hi,
    Go to SQL Workshop, SQL Commands and then run this:
    CREATE OR REPLACE TRIGGER  "TABLE1_BI"
    BEFORE
    INSERT OR UPDATE ON "TABLE1"
    FOR EACH ROW
    BEGIN
      DECLARE
        vSTREET VARCHAR2(30);
        vWARD VARCHAR2(30);
        vSECTION VARCHAR2(30);
      BEGIN
        IF :NEW.MAIN_ROUTE IS NOT NULL THEN
          SELECT STREET, WARD, SECTION
          INTO vSTREET, vWARD, vSECTION
          FROM TABLE2
          WHERE MAIN_ROUTE = :NEW.MAIN_ROUTE;
          :NEW.STREET := vSTREET;
          :NEW.WARD := vWARD;
          :NEW.SECTION := vSECTION;
        ELSE
          :NEW.STREET := NULL;
          :NEW.WARD := NULL;
          :NEW.SECTION := NULL;
        END IF;
      END;
    END;followed by:
    ALTER TRIGGER "TABLE1_BI" ENABLEThis should run on TABLE1 for any insert or update. As long as ROUTE_MAIN has a value, then the related information is retrieved from TABLE2 and used to update the record on TABLE1. If ROUTE_MAIN is empty, then the other fields are emptied as well.
    Andy

Maybe you are looking for

  • Numbers 3.2 on Mavericks - How do you make the Stepper Function cells default to "0" instead of "1"?

    In Numbers 3.2 using Mavericks 10.9.3 The Stepper funtion fills the cells with a "1", after I have set the Minimum value to "0". How do I get the cells to be filled with "0" automatically? Even a "Blank/Empty" cell would be fine (better) with me, but

  • Error in  tab of Portfolio Management

    Hi All I have a problem several users connect to the portal on the tab of Portfolio Management are presented with these messages: Error connecting using JCO Client: null No portfolio was found: Contact your system administrator  Error connecting usin

  • JSP pages don't work

    I'm running Apache Tomcat 5.0 on Windows XP. JSP pages will not work. Even more amazing is that, when I modify the example JSP pages, the changes are not shown and they run as if they were unmodified. I have Servlets working fine, but whenever I try

  • Error: Error #2078: The name property of a Timeline-placed object cannot be modified.

    Error: Error #2078: The name property of a Timeline-placed object cannot be modified.     at flash.display::DisplayObject/set name()     at RonaldTest_fla::MainTimeline/frontWheelLoadComplete() The code that triggers that bogus error is the following

  • Debugging invokeMethod call

    Dear All When debugging OAF code using JDev, I normally use F8, F7 and/or SHIFT+F7 to step through the code. The question is how do you 'Step Into' a method that is called using the an Application Module's invokeMethod API. For example : String resul