Forms based on query?  Is it possible in Oracle Portal?

here is my code that i want to use
SELECT a.first, a.last, b.Position_CD, c.skill_cd, d.team_name, d.team_country, d.club, e.structure_name
FROM Roster a, Roster_position b, roster_skill c, team d, team_structure e
where (a.Roster_ID = b.roster_id (+) and (b.roster_id = c.roster_id (+) ) and (a.team_cd = d.team_cd(+)) and (a.team_structure_cd = e.team_structure_cd (+)))
order by a.roster_id;
Is it possible for oracle portal to support such a query in a form?
Oracle portal supports single tables or views...master-detal...and forms based on procedures.
Since the above query associates with moro then one table..how might one create a form based on that query? Is their a way in oracle portal to create a form and have its record source be based on such a complex query and be able to update and insert data? I know and have tested that it works in Ms Access and i can update and add data in that above query. Hopefully oracle supports this. (*cross fingers*)
If i cant do what i said above...what advice or suggestions you guys have for me? If i use master-detail it won't work right because i need to involve all 5 tables.
Any help or comments are greatly appreciated!

When i made the above query a view and created an oracle portal form. I get this error when I try to retrieve all the records in that view i made above.
An unexpected error occurred: ORA-01445: cannot select ROWID from a join view without a key-preserved table (WWV-16016)
What does the "key-preserved table" mean?

Similar Messages

  • Add a form (based on query) to a form (based on table)

    I have a normal form based on a table. I want to put in a little form in a region of this first form that is based on a query. They have one field in common.
    How can I do this?
    Elsie

    Hi Elsie,
    Effectively, you want to end up with a single form and save the data back into two or more tables?
    If so, you could base the entire form on a SQL view and use an INSTEAD OF trigger to update the underlying tables.
    Regards
    Andy

  • Fields on single-row Form based on Query

    We are implementing a front-end for Oracle Reports using HTMLDB. We have all of our reports and their parameters set up in tables, along with the specification for where to obtain the values to display for the parameters. The tables also specify the display order for the params.
    In HTMLDB we need to have the "parameter screen" display when the user selects a report from the tree based on report_id. I created a report based on a query referencing the :p_rpt_id from the tree which lists the parameters for the selected report.
    So far no problem. Now, then next step is to implement conditional lists of values on the parameters based on the definitions in the parameters tables.
    Some parameters have an unconditional source for values, some have onchange requirement (ie, when you pick a region in p_region the values available in p_customer would include only those in p_region). Each parameter in our table also includes an attribute to specify the type of htmldb_item to render (select list, popup, checkbox etc).
    I can get the parameter "report" setup to render the lov's based on the correct sources, but I cannot see where to incorporate the onchange trigger for the "parent" parameters (p_region in the example), or how to get the value from p_region when rendering the lov for p_customer.
    Any tips on how to get around this problem?

    I think I've managed to work thru the previously stated issues except for one remaining stumbling block:
    Test Case:
    Report ID: 36
    Parameters:
    1 Year FISCAL_YR_V
    2 Month/Qtr MTH_QTR_V
    3 Month FISCAL_MONTH_V
    4 Chain ADDR_CHAIN_V
    etc.
    Params 1,2,4 are generated with htmldb_item.select_list_from_query and htmldb_item.popup_from_query depending on the LOV type specified for the parameter.
    Param 3 is also generated by htmldb_item.select_list_from query but its query parameter includes a WHERE clause referencing the value set by param 2 when the onchange event fired.
    The problem is the generated lov for param 3 returns no values. Depending on the selection of param 2 (M or Q) the values for param 3 would be 1-12 or 1-4 (respectively). I've tried both of the following in the query for the dependent lov:
    where reference_id = :P10_F02
    where reference_id = v('P10_F02')
    Neither returns any values. I've verified that the correct value for param 2 (M or Q) is being set in the session state by the onchange event on that parameter.
    Is there something I'm not setting to cause the query for the dependent lov to bind the new value of P10_F02 when the onchange event fires?

  • Form based on org_id not displaying data in oracle apps R12

    Hi All,
    I am new to oracle apps R12. I have to develop a form which is based on views which are org_id specific. My data block is based on view which is org_id specific. Can anyone tell me what all settings i need to do in my form so that i can get the data on the basis of org_id. I am working on oracle apps R12 right now.
    TIA
    Praveen

    Since this question is related to forms also, dats y i posted it here.But not everyone in this forum is going to know how to work with a Multi-Org configuration in the EBS. Your best bet is still to post in the General EBS Discussion forum.
    Craig...

  • Would like to create a file upload facility in a form based on stored procedure

    Hello,
    I would like to create a 'File Upload' in a 'form based on stored procedure'. The version of portal that I am running is 3.0.7.6.2. In this version, only 'form based on table' has the ability to upload files. Or is it that I am missing something?
    Please let me know if this is possible in higher versions of portal.
    Thank you for your help.
    Jayasree

    I have kin od fdone this by using the additem fucntion, if you look at the HTML of the add file page, you can see the parameter that are required for the form.

  • Form based on a table

    i am working on a form portlet based on a table. but i don't know how to add an ID coloumn to the table, an identifier for the row which will increment automaticly after each "insert" operation. Is this possible in Oracle portal, is there a datatype for this or soem kind of procedure to achieve this?
    Can anyone help me on this issue?

    Small example:
    CREATE SEQUENCE CLIENT_ID_SEQ
    minvalue 0 start with 0
    increment by 1
    CREATE OR REPLACE TRIGGER CLIENTS_INS_TRG
    BEFORE INSERT ON CLIENTS
    FOR EACH ROW
    BEGIN
    SELECT client_id_seq.nextval INTO :new.id FROM dual;
    END;
    Regards,
    Ersan

  • FORM based on a SP

    Build a FORM based on a database stored procedure (SP) in Portal is very easy.
    Is this easy too to modify the FORM if I modify the amount of parameter or data type of SP ?
    TIA,
    ferry

    When you click on your "find" button, certain javascript functions are called on the OnClick action that set the values of
    some hidden variables used by forms. Pressing Enter submits the form without calling the javascript functions and hence
    without setting the values for the hidden variables.
    You can write your own javascript to capture the pressing of the Enter key and then call the javascript functions yourself
    and then submit the form.
    You can write these javascript code using pl/sql htp.p('<script>....); in the "...before form display" additional pl/sql section.

  • Difference between Oracle Portal & Oracle Forms

    What is the difference between Oracle Portal & Oracle Forms and when would use
    them?
    Thanks

    Hi,
    Oracle Portal is like a Website that acts as a "doorway" to the Internet or a portion of the Internet, targeted towards one particular subject. Oracle Portal is very popular among developers & architects who wish to aggregate content from multiple souces and present them to the users on a single WebSite.
    Oracle Forms is a long-established technology to design and build enterprise applications quickly and efficiently. You can develop your enterprise applications in Oracle Forms easily, by using it's out-of-the box "drap & drop" features and enriched programming features.
    Forms is used to develop enterprise applications - Portal is used as a "doorway" to many such enterprise applications. It's a crude way of answering your question " when to use Forms / Portal ? ", but I guess it would give you an idea.......
    Good Luck !
    Regards,
    Sandeep

  • Query forms based on detail block

    My question is pretty simple: Is it possible to query a form (Forms [32 Bit] Version 6.0.8.11.3) based on a detail block? Let me explain my problem! I have a table called REQUISITION and of its field is STATUS_CODE. Then I have another table called STATUS that have the following fields: CODE, NAME, DESCRIPTION, PHASE, etc. The join condition between REQUISTION and STATUS is REQUISITION.STATUS_CODE = STATUS.CODE. On my form, all of the fields come from table REQUISITION but the problem is that we have over 30 different status and my user can't remember their names and phase. So I inserted two display fields on the forms and wrote a post-query trigger to populate the field with their corresponding names and phases. But now my end user are complaining that the fields don't allow queries to be performed which prevents them to use a query to know all requisitions that are on phase "Procurement" which corresponds to four different status_code. So I though in inserting the fields PHASE and DESCRIPTION into table REQUISITION and write a trigger that would populate those field every time the STATUS change but that would cause a problem when lets say STATUS 01 is part of PHASE "Procurement" then comes next week the company decides that is not longer part of phase "Procurement" but now it is part of PHASE "Purchasing" they would go the form based on table STATUS and change the field PHASE of the corresponding STATUS that they want. But now I have this data on another table holding information that is no longer valid. Sure I could write another trigger to change field REQUISITION.STATUS_PHASE whenever there is a change on STATUS.PHASE but wouldn't that be too much bookkeeping? Would be so much easier if I could query my forms based on the detail block (this case table STATUS and master block table REQUISITION)?
    thanks so much in advance for any thought! Btw, I am open to other suggestions too!!!!!
    gleisson henrique

    if I understood you correctly, you can do this manually. what I mean is,
    when the end user picks phase "Purchasing", you can change the where clause on the master block and execute the query to get the desired results
    e.g.
    v_cod varchar2(200) := 'STATUS_CODE in (select code from status where phase = ''Purchasing'')';
    begin
    set_block_property(requisition_blk,default_where,v_cod);
    execute_query;ofcourse you have to change "Purchasing" in the previous code to the item that holds the user inputs
    hope this is helpful
    Edited by: Mohammed H. on Sep 19, 2008 6:45 PM

  • Form Filter Based On Query Results

    How can I create a filter on a form based on the results of a query.
    i.e. The Query [ESS_City] looks at the form's field [Current_User] and generate a list of cities [City_ID] that I want to use to match the form [ESS_QUEUE] field [City_ID]
    Query Name:  [ESS_City]
    Query Field:  [City_ID]
    Form name:  [ESS_Queue]
    Form Field to filter with:  [City_ID]
    Thank you,
    Mark Matzke

    I use criteria in my queries instead of filters. 
    I would have a combo in the header of the form to select City_ID.   Use that combo as criteria in the query that feeds the form.  Have an AfterUpdate event to refresh the form. 
    Build a little, test a little

  • How do I open up a form based on a query/parameter

    Can someone please tell me how can I open the form based on a query and the query is based on a pre-set value. Thanks.
    I am new to Oracle Form. Please treat me like a newbie. Thanks.

    Hi,
    If I understand u , you want to call a form
    and execute query automatically with preset value.
    Is that what you mean?.
    1.suggestion: You can use the call_form, or open_form .
    check all parameters like "auto query" and so on.
    (see help-online for parameters to pass for call_form, open_form....)
    2.Suggestion: In the pre-query trigger set the value.
    in the When-new-form-instance
    write this code:
    Begin
    execute_query; -- built-in procedure
    end;
    I hope this gives you an idea,
    Regards
    CB

  • Displaying items based on Query record count (Forms 4.5)

    I have a special requirement.
    Assume col1 that I am selecting from table temp.
    select col1 from temp;
    Now if query fetches 9 records.
    Each column I want to show like this.
    1 2 3 4 5 6
    7 8 9
    If query fetches 15 records.
    Each column I want to show like this.
    1 2 3 4 5 6
    7 8 9 10 11 12
    13 14 15.
    That means items displayed on screen chages based on output of
    query.
    Pls. suggest some solution.
    null

    When i made the above query a view and created an oracle portal form. I get this error when I try to retrieve all the records in that view i made above.
    An unexpected error occurred: ORA-01445: cannot select ROWID from a join view without a key-preserved table (WWV-16016)
    What does the "key-preserved table" mean?

  • Open Form Based On A Table in same window

    Hi All,
    First to make things clearer I'll explain what I CAN do:
    Create a page which queries a session variable at the start and then
    depending on its value outputs different HTML, but always in the same
    format and more importantly the same window, to keep the look and feel etc...
    I have a link in a page which when clicked opens a form using wwa_app_module.link
    so it auto queries the form. This works fine.
    What I CAN NOT do is:
    The form was created using the "form based on a table wizard" and always opens
    in a new window.
    Can I make the form open in the same window that contains my wwa_app_module.link?
    Is this possible in a newer version that I have (I got Release 1)
    Any Suggestions?
    Cheers,
    Barry

    Firstly thanks Rahul Dubey for responding.
    What I mean by " contains my wwa_app_module.link? " :
    I have a form which contains a link similar to the one below:
    http://xxx.co.uk:8015/pls/pod130/PORTAL30.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=1389245486&p_arg_names=EMPNO&
    p_arg_values=7654&p_arg_names=_empno_cond&p_arg_values=%3D%3E
    When I click on this link it opens the form and runs a query automatically.
    The problem is I want to click on the link and have the form appear in the
    same window, not a new one.
    Cheers,
    Barry

  • Master/Detail Form based on view(s) - Bug?

    I made a master/detail form that is based on two views, and later master was a view and detail was a table. The form opens OK, but when I click query-button, the following error appears on the screen:
    An unexpected error occurred: ORA-01445: cannot select ROWID from a join view without a key-preserved table (WWV-16016)
    An unexpected error occurred: ORA-01445: cannot select ROWID from a join view without a key-preserved table (WWV-16016)
    When you create a form you are offered three different choices:
    1. Form based on table or view
    Build a form based on a database table or view.
    2. Master-detail form
    Build a master-detail form based on two tables or views. <---- ?????
    3. Form based on procedure
    Build a form based on a database stored procedure
    Is it at all possible to use views with master/detail?

    View should have a rowid. To create a rowid tables have to have foreign key relation. And also in where clause you should have PK-Field-Name=FK-Filed-Name statement.
    null

  • Help: FRM-40505 for a FORM based on stored procedures

    Hi,
    I am working on a FORM based on stored procedures. When it performs a query, it actually returns record, but still comes with the message FRM-40505: ORACLE error: unable to perform query. Any recommendations on the possible coding area to check?
    Thank you in advance.
    Jimmy

    Jimmy,
    To base a block on a stored procedure is not a simple task because it depends on the .....
    .... stored procedure !
    If you do not provide much information (like the famous stored procedure), we could not do anything for you.
    As much information you provide, as much chance we have to understand the problem.
    Francois

Maybe you are looking for