Create link in Master Detail form

Hi,
I created a master-detail form based on Dept, Emp tables. For each employee, I would like to go to the employee's dependent information (like a master -> detail -> detail situation). Can I create a link on the employee field (empno) so that I can link to my employee-dependent form?
Kelly.

Hi,
I created a master-detail form based on Dept, Emp tables. For each employee, I would like to go to the employee's dependent information (like a master -> detail -> detail situation). Can I create a link on the employee field (empno) so that I can link to my employee-dependent form?
Kelly.

Similar Messages

  • Download link in master detail form

    I am trying to store a PDF file in the DB and then allow users to click on a link to download it. However, I can't get this to work properly. The report region definition does not allow me to alter the source. What I did was create a master detail form and report. Then, I changed the format mask of the field that will be the PDF download link to BLOB and I got this error: ORA-06502: PL/SQL: numeric or value error: character to number conversion error To fix this I need to alter the source code and add the following dbms_lob.getlength("BLOB_CONTENT") as "BLOB_CONTENT". How can I do this if the report region definition is not allowing me to edit it? Is there any other way to do this?

    "197331",
    For Source Value, try uppercase instead: APPSDEPENDENTON
    Sergio

  • Adding button to report to link to master detail form

    I want to add a button to a report to direct me to a blank master detail form to insert a new record. I have used the following code in the additional PL/SQL code section:
    htp.formopen('PORTAL30.wwa_app_module.new_instance?p_moduleid=1271601405');
    htp.formsubmit('p_request','Create New');
    htp.formClose;
    When I click this I get 'Page Not Found'.
    But if I hit refresh I am directed to the correct form with the same url.
    Any ideas on what the issue is?
    Thanks.

    Hi,
    Check this sample code.
    tables:sscrfields. "Fields on selection screens
    selection-screen function key 1.
    selection-screen function key 2.
    Initialization.
      sscrfields-functxt_01 = 'Report'.
      sscrfields-functxt_02 = 'Exit'.
    at selection-screen.
       if sscrfields-ucomm = 'FC01'.
      perform f_alv_sub.
       elseif sscrfields-ucomm = 'FC02'.
       endif.
    Hope it helps.

  • Master Detail Forms with 2 composite primary keys - Is there a workaround?

    Hello All,
    I have been searching for a workaround to the maximum 2 part primary key restriction on the multi-row updates, and master-detail forms, and am hoping that someone can help me. I am using HTMLDB v2.0.0.00.49 with IE 6 against a 9.2 DB.
    I successfully implemented the workaround of Fred Stoopendaal's (see Updata PK on HTML DB ) and it works fine for single page multi-record updateable forms, but alas I haven't been able to extend it to master detail forms (I think it is something to do with Oracle not allowing the "returning" clause on views).
    Here is what I tried:
    two tables, one with a 2 part composite primary key, which is the master table, and a detail table with 3 part composite primary key -
    --------- BEGIN SQL ---------
    create table master_table
    ( master_col1 number
    , master_col2 number
    , master_col3 varchar2(30)
    , constraint master_pk primary key (master_col1,master_col2));
    create table detail_table
    (detail_col1 number
    ,detail_col2 number
    ,detail_col3 number
    ,detail_col4 varchar2(30)
    , constraint detail_pk primary key(detail_col1,detail_col2,detail_col3)
    , constraint master_detail_fk foreign key (detail_col1,detail_col2) references master_table(master_col1,master_col2));
    create or replace view v_master_table as
    select rowid mata_rowid,mata.*
    from master_table mata;
    create or replace view v_detail_table as
    select rowid deta_rowid,
    (select rowid from master_table mata where mata.master_col1 = deta.detail_col1 and mata.master_col2 = deta.detail_col2) deta_mata_rowid
    , deta.*
    from detail_table deta;
    create or replace trigger mata_ins_upd_trg
    instead of insert or update on v_master_table
    referencing new as new old as old
    for each row
    begin
    if inserting then
    insert into master_table (master_col1, master_col2, master_col3)
    values (:new.master_col1, :new.master_col2, :new.master_col3);
    end if;
    if updating then
    update master_table
    set master_col1 = :new.master_col1,
    master_col2 = :new.master_col2,
    master_col3 = :new.master_col3
    where rowid = :old.mata_rowid;
    end if;
    end;
    create or replace trigger deta_ins_upd_trg
    instead of insert or update on v_detail_table
    referencing new as new old as old
    for each row
    begin
    if inserting then
    insert into detail_table ( detail_col1, detail_col2, detail_col3, detail_col4)
    values (:new.detail_col1, :new.detail_col2, :new.detail_col3, :new.detail_col4);
    end if;
    if updating then
    update detail_table
    set detail_col1 = :new.detail_col1,
    detail_col2 = :new.detail_col2,
    detail_col3 = :new.detail_col3,
    detail_col4 = :new.detail_col4
    where rowid = :old.deta_rowid;
    end if;
    end;
    --------- END SQL ---------
    Then I created a master-detail form in Apex on the two views, using the mata_rowid and deta_rowid as primary keys, and mata_rowid=deta_mata_rowid as the link. I realise that using a function to fetch the master rowid within the detail view query is costly, but it was my intention to modify the record fetch queries to use the real FK columns once things were up and running.
    It seems to generate the pages ok, and I can insert/update master table records, but as soon as I modify records in the detail table things go a bit haywire. I can't find any documentation on how the inbuilt MRU/MRD logic works, so can't figure out the issue.
    Can anyone out there tell me what the problem is with the logic above, or if they have come up with a neat solution to this annoying limitation. I know that many will say that I should modify the data model to use surrogate primary keys, but many of the uses for HTMLDB are new interfaces for old schemas, so a workaround that doesn't involve wholesale data model changes would be preferable.
    Thanks in advance,
    Mike Cretan

    Hi, this is likely not the most elegant way...but perhaps the simplest -- and I didn't have much time to play.
    I used Wizard to create two separate Master Detail forms, each with a separate detail table. Thus I ended up with four pages:
    Page "A" - "Selector" page for Master (Report), with Edit link driving to Detail-1
    Page "B" - Editable Master/Detail-1 page (HTML / Report)
    Page "C" - "Selector" page for Master (Report), with Edit link driving to Detail-2
    Page "D" - Editable Master/Detail-2 page (HTML / Report)
    Then I selected the primary key column TWICE on the Report on Page A. Modified the second instance of this column to navigate to Page D (passing primary key) exactly the way the original instance of this column navigates to Page B. Then I deleted Page C.
    Since you can have only one Tabular Entry form per page, this seemed the best way to drive two separate detail tables from a common interface.

  • Null item (pk) in master detail form

    Hello
    I use two tables to create a master detail form, in the master table I use a PK based on an existing trigger on the db and that same field is used in the detail table as an FK.
    When I create a new master detail form I want to insert all the items I need, but after I hit create button to insert the values into the master table, the pk item keeps a null value, so I would not be able to insert nothing in the details table.
    How can I resolve this?
    Thanks in advance
    Ownr

    Have a look at the update / insert process on submit. There is a place to determine where to return the primary key. Put your primary key item there
    P1_PRIMARY_KEY
    and the record will stay there after creation.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    ------------------------------------------------------------------------------

  • Master-Detail forms no longer work in Access

    Hi
    We have migrated an Access 2000 application into an Oracle 9i database successully. However, the application has a master-detail form that functioned correctly before migration. Since migration the child form does not appear, thus preventing the entering of a new child record.
    Before migration the detail form appeared as a totally blank form. Now the detail form simply doesn't appear. The detail form is based on a select statement which selects data from a stored query. I am suspicious that this is the cause as during tests I have tried manually creating a simple master-detail form and can see this working. I was able to get the test form to fail to produce a blank subform when the subform was based on a select statement however, attempts to change the real form to look at a table rather than a select statement don't solve the problem.
    We have looked on the Oracle forums, but the only error matching our requirements was posted in March 2001 with no real answer (Q: unable to launch subform after migration
    This seems a problem that would not be uncommon so surely we have omitted doing something obvious.
    Any help greatly appreciated.
    Regards
    Tim Broome

    Hello.  I believe I found the answer to the problems yesterday.  After trying everything I could from different forums and getting nowhere, I looked at the Adobe Properties by right clicking on the program.  Once in Properties, there is a compatability tab.  I run Windows 7 Pro 32bit.  Nevertheless, I selected the box that says "Run this program in compatability mode for" and then selected Windows 7.  It seems ridiculous to run the program in compatability mode for the OS I actually have on my system but it has done the trick.  All forms work now and my other PDF issues around the office have been resolved.  The only downside is that some PDF documents are printing slowly, but at least everything works. 
    ps: I first tried running compatabiilty mode for XP but it caused several credentialing issues with my systyem and our network, allowed forms to work, but only if they originated from my system (not the network) and did not allow other PDFs to open. 

  • Master-Details form - integrity constraint

    Hi,
    I have created a simple master-detail form. Master block is based on say Table1 with 2 columns and detail block is based on Table2 with 4 columns.
    When I am trying to create records using this form, I enter data in the Master block and then navigate to the detail block and then enter data. When I press the save button,
    the form throws error message "ORA-02291: integrity constraint (APPS.FK_RECORD_IDENTIFIER) violated - parent key not found"
    When I check the query using Help->Diagnostics->display database error, the insert statement is insert into table2 values (......
    I guess, the form is trying to insert data into table2 first. Since there is no corresponding entry in Table1, hence the error. What should be done, so that the form inserts Master block data into table1 first before attempting to insert data into detail block.
    Regards
    Suresh

    Suresh,
    In the Object Navigator view, check the block order under the Data Blocks section. The Master Block should come first, and then only the detail should come. If its is not like that, then change the order of the blocks by dragging the master block to top of the blocks.
    Regards,
    Manu.
    If my response or the response of another was helpful or Correct, please mark it accordingly

  • Creating Detail record in Master Detail form

    I have created a Master Detail form with the Detail form being on a second page.
    I have no problem editing an existing detail record. However, if I attempt to create a new Detail record (insert). I get an error. It appears that the value of the field that I am linking the Master and Detail records with, does not get passed to the second (detail) form when I press the 'Create' button and I have not been able to ascertain where I may need to modify the parameters of the page.
    Any guidance would be appreciated.

    Hi Judy,
    It's been 5-6 months since I've created a Master/Detail APEX application, but I don't remember having to create any special trigger or anything. I created a few maintenance appls over tables I created, and created an inquiry appl using Oracle vendor tables. All of them have worked nicely.
    If the PK/FK's are set up correctly it just works. :-) Like magic. If I recall correctly, as you create the appl you define the the key fields to use. If the tables are defined correctly, and you 'tie' them together using the correct key fields in the application everything should work nicely.
    Tony

  • Create Form setup for Master Detail Form

    Hello All,
    I have to create a Master Detail OAF Form where user will enter data in the header section and then fill the detail section on the same page. Now, I have created Header section but when I go to detail section and fill the information I got an error because HeaderId for header section is not passing to the detail section. I have created even VL also.
    Kindly let me know that what all steps are required to set the View Link for this Master Detail form.
    Many Thanks in advance.
    Thanks,
    Sandy

    Hello Gyan,
    Thanks for the prompt reply. I would also like to know that once AO will create what all steps I need to take. Like I have to create a VL and then I need to create two regions and now what all properties I need to update to work M-D relationship.
    Thanks,
    Sandy

  • Need to create a Master Detail Form

    Hi Gurus,
    I have a requirement to create a Master Detail Form. As per my requirement I have a list of Invoice Numbers and once I click on a Invoice Number a new form should open and that Form should contain two regions:
    1. Master
    2. Detail
    1. Master Block should have the Invoice Header Detail which is non-updatable.
    2. Detail Block should be able to perform create, update and delete the lines from here. This detail block should have multiple lines so that user can enter data to create new records in it.
    Kindly let me know your valuable inputs on this. Please share any document, site or any other information on this.
    Thanks,
    Sandy

    Normally, you would create 2 EOs say a MasterEO and DetailEO
    Then Create an Association Object Between them based on the PK-FK relation say MasterToDetailAO
    Then create 2 VOs Based on the 2 EOs already created, say MasterVO and DetailVO
    Then create a ViewLink between them, MasterToDetailVL
    Then add the master VO to ur AM
    And Attach the VL created to the instance of the MasterVO in the AM.
    So the DetailVO will be now linked to the MasterVO via the VL
    U just need to query the master records and the details will automatically be displayed

  • How to create Insert & Update on master-detail form JPA/EJB 3.0

    Is there any demonstration or tips how to Insert record on master-details form for JPA/EJB 3.0 with ADF binding?

    I have master-detail forms (dept-emp). I drag the dept->operations->create method to JSF page. But when I click create button, only dept form is clear and ready for insert. But emp form is not clear. How can I add create method for this?
    Can you give some example how to pass the right object to the persist or merge method so that it can save both the two objects (master-detail tables)
    Thanks
    Edited by: user560557 on Oct 9, 2009 8:58 AM

  • Error while creating the master-detail forms

    on creation of a new master-detail form or on edit of a existing master-detail form, i get the following error -
    ******** START ERROR **********
    Thu, 15 Mar 2001 23:02:16 GMT
    ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at "CC_INTRANET.WWV_BIND", line 56
    ORA-06512: at "CC_INTRANET.WWV_UI_LOVF", line 3123
    ORA-06512: at "CC_INTRANET.WWV_UIFORM_BUILD", line 2850
    ORA-06512: at "CC_INTRANET.WWV_UIFORM_BUILD", line 5567
    ORA-06512: at line 8
    DAD name: cc_intranet
    PROCEDURE : CC_INTRANET.wwv_uiform_build.show_header
    URL : http://webdb.us.colorcon.com:7777/pls/cc_intranet/CC_INTRANET.wwv_uiform_build.show_header?p_wizard_mode=MASTER&
    ********** END ERROR ********
    any ideas anyone ... ?
    thanx in advance ...
    null

    more information on above -
    i upgraded webdb 2.2 to portal 3.0.6 and the new master-detail form is been created in the upgraded site.
    pls reply on this.
    thanx a bunch
    null

  • How to create Master Detail Form in htmldb 2.0

    This option use to be available in 1.6 but I can't see it anywhere in 2.0.

    Anonymous - Create Page>Form>Master Detail Form.
    Scott

  • How to create a master detail form on same page in apex 4.2.1

    Hi All,
    i need to design a master detail form on same page i am not finding an option in wizard from where i can do that.
    will appreciate your suggestions.
    Thanks

    Hi James,
    I think that Mike is suggesting that you create a SQL View over the table and join together the individual primary key values into a single, unique, pseudo primary key. You can still include the individual columns in the SQL but you can then use this new column as the primary key on a form. However, you would also need to create INSTEAD OF triggers to handle inserts/updates/deletes as SQL will not allow you to update tables through a view. (See: [http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28370/create_trigger.htm#i2064426] for the Oracle details on this or Re: How to update view resp. table for an example within Apex).
    Ideally, though, you should only really need one key column - is there any need for four?
    Andy

  • Error creating Master/Detail Form

    Hi,
    I tried to create a master detail form. I went through all the steps fine, only when i click the button to create the form, i received the following errors:
    ORA-20001: Unable to create master detail page. ORA-06502: PL/SQL: numeric or value error: character to number conversion error
    Unable to create Master Detail pages.
    Could someone please tell me what's wrong?
    Thanks,
    Patrick.

    We are getting this message in several areas in the development environmnet. It's happening in the developer login screen, when creating new tabs, and when tryig to create master detail reports. Here is our error from the Apache Log:
    [Mon Mar  2 11:41:31 2009] [error] [client 10.64.8.231] [ecid: 1236012090:148.94.143.136:24226:0:1621,0] mod_plsql: /pls/apex_qmnt/wwv_flow.accept HTTP-404 ORA-06502: PL/SQL: numeric or value error\nORA-06512: at line 31\n
    I think this is different from the issue above as that is due to too many items in a shuttle list. Ours seems to be related to our new APEX insstallation. Any help is appreciated here.

Maybe you are looking for

  • Mod_jk vs mod_cluster vs mod_proxy_ajp for Apache-based ATG Load Balacning

    We are currently using mod_jk for load balancing our ATG Commerce Page Servers running on JBoss. There are many nice things about mod_jk: ajp support, jkstatus adminstration ability, performance, etc. However, there is a deficiency with mod_jk: It ca

  • Migrate BQY files from Test to Prod.

    I have published some reports in workspace manually earlier. But, now i have so many reports which i need to migrate from Test to Prod. Please suggest the steps, and how to handle the OCE files and Security. Version is 11.1.2.1 windows 2008 server Th

  • Using sql expression in filter

    Hi Experts, I have a question using 'sql expression' in filters in answers. Let's say i have a date filter and i would like the value for that date as max(tablename.colname). Please tell me the syntax for passing this. One more question is i have a d

  • Search Customization

    Dear community, I would like to implement a language dependent search for the following scenario: FirstSpirit CMS deploys static HTML pages to portal KM. The pages are deployed to language dependent folders named after the local. In our system we hav

  • Oracle 11g Pros and Cons

    Hi Experts, We are planning to upgrade oracle from 10.2.0.2 to 11g, could any one please let us know the pros and cons of 11g over 10g Thanks, Ravi