Dependant LOVs on Customization form of a report

Portal Version: 3.0.9.8.0
Database Version: 8.1.7.3
Hi
Our problem is that we've created a report component which includes two bind variables. These bind variables are chosen on the customization form through LOVs. The second LOV needs to be dependant on the first. Here's the code of the report and LOVs:
REPORT
select * from SHARE_DATA A, SHARE_INSTRUMENTS B, COMPANIES C, INDUSTRIES D
where D.SYSTEM_ID = :Industry
and C.SYSTEM_ID = :Company
and C.SYSTEM_ID = A.CPY_SYSTEM_ID
and A.SIN_SYSTEM_ID = B.SYSTEM_ID
and C.IND_SYSTEM_ID = D.SYSTEM_ID
where bind variables :Industry and :Company are linked to the following LOVs
LOV_INDUSTRIES
select (INDUSTRY_NAME||' '||SECTOR_NAME) industry_sector, (SYSTEM_ID)
from INDUSTRIES
order by industry_sector
LOV_COMPANIES
select A.NAME name, A.SYSTEM_ID
from COMPANIES A
where IND_SYSTEM_ID = :Industry
order by name
LOV_COMPANIES is dependant on LOV_INDUSTRIES.
We receive the following error message when opening up the customization form:
COMBOBOX LOV ERROR:
LOV: "APP_ACIA.LOV_COMPANIES"
Parse Message: Parse as pre-set global: "ACIA".
Find Message: LOV is of type DYNAMIC (LOV based on SQL query).
Query: "select A.NAME name, A.SYSTEM_ID from COMPANIES A where IND_SYSTEM_ID = :Industry order by name "
wwpre_utl.get_path_id: The preference path does not exist: ORACLE.WEBVIEW.PARAMETERS.1088240437
wwpre_utl.get_path_id: The preference path does not exist: ORACLE.WEBVIEW.PARAMETERS.1088240437
wwpre_utl.get_path_id: The preference path does not exist: ORACLE.WEBVIEW.PARAMETERS.1088240437
wwpre_utl.get_path_id: The preference path does not exist: ORACLE.WEBVIEW.PARAMETERS.1088240437

Hi,
The error is thrown because the lov is not able to substitute the value for the bind variable. The substitution is not happening
because depandant lovs are not supported in Portal Reports.
Thanks,
Sharmila

Similar Messages

  • Pass a parameter from a report to a customization form of another report

    Hello,
    I want to pass a parameter value from a report to the customization form of another report and display it in the text field in the customization form as a default value. I have 2 variables in the customization form and in one of them, I would like to display the default value from a previous report.
    Thank you
    Jayasree

    1. go to the manage component screen of the report
    2. open the package body (pl/sql source)
    3. search for 'procedure show_parms'
    4. scroll down till you find
    -- call to parameter form rendering engine
    5. copy the procedure call below it
    a) you will have to pass <PORTAL_SCHEMA>.wwv_utlglobl.RUN_AS_NORMAL to p_mode
    b) remove the parameters p_reference_path, p_redirect_url, p_exec_mode, p_page_url ( or you can pass null to them)
    c) 'p_parm_names' will contain your 2 parameters
    d) you can pass values to 'p_parm_values' which you want to be displayed in the parameter forms.
    6. you can call this procedure from a dynamic page and link the dynamic page to your first report

  • Insert, save, etc.. button's not showed on customize form of QBE report.

    Hi,
    I've created a QBE report with all button's enabled in the customize form, when testing this with the
    provider customize link the button's are shown and I can perform an insert etc...
    When this QBE report-portlet is added to my rootpage and I go to the customize link everything is shown
    except the button's ??? what am I doing wrong ?
    Luc De pauw

    Hi,
    This is because it is the customize of the portlet. The customize of a portlet only supports the Apply, OK and Cancel buttons. Hence the QBE cannot support Insert in the customize. They are the full page options. The customize is to change the parameters of the report that control the output of the report. It cant be used to insert into a table. The Apply and ok do the same the thing that save does. It saves the customizations for the user.
    Thanks,
    Sharmila

  • Hide Bind Variable in the Customization form of a Report

    I have a report where I set the bind variable default using a API call. I do not want the user to change the value. How do I keep the text box for the bind variable value from showing????
    Thanks,
    Linda

    Hi,
    It is not possible to hide a bind variable from appearing in the customization form. You can run the report directly with the
    parameters and not take the user to the customization screen.
    Say you have a bind variable dept in a report new_report then the url the user should use will be like this
    http://mydomain/pls/portal30/portal30.new_report.show?p_arg_names=dept&p_arg_values=10
    Thanks,
    Sharmila

  • Cascade lov in a "form with a report"

    I am fairly new to HTMLDB and struggling with this one. Can anyone help?
    I have built a test application that uses a form with report, created using the wizard.On the form I have cascaded LOVs( SITEOWNER and SITE) . The second LOV should depend on the first in that only the sites belonging to the siteowner in the first LOV should be available for selection. I cannot get this to work. I have tried to use "select list" on bothe LOVs but in this case the second LOV is blank. I have also tried "select list with submit" and trap the submit with REQUEST != expression1 as described in some of the posts in this forum, but cannot stop the form from branching.
    Any help will be welcome !. My test application is at the Oracle HTMLDB site.
    MISTST1/[email protected]/bitotu

    Hi,
    If you edit your report region there in the report attributes you will be finding the "Link Column" Section.
    Under the link column section you will be referring the pencil icon image and target page number in the application.
    Brgds,
    Mini
    Mark Answers Promptly

  • Dependent LOV in Tabular Form

    All,
    We are developing an application where we come across requirement to have two fields in tabular form and both are required to have LOV. But the issue is the second field LOV in the tabular form is dependent on first field value.
    ex: Assume first field is "Country" and second field is "Cities", when user selects first field country as "US", then we have to populate list of citiies in "US" for that row. And if the user selects country as "UK" for the second row, we have to populate second field (city) with list of citieis in "UK".
    We are unable to achieve this functionality and any help/pointers would be highly appreciated.
    Ram

    Hi Ram,
    Please have a look at this example by Denes Kubicek
    [http://apex.oracle.com/pls/otn/f?p=31517:176|http://apex.oracle.com/pls/otn/f?p=31517:176]
    I was able to achieve the cascading LOV functionality based on the above example.
    Thanks,
    Dippy

  • How to make Dependent LOV in tablular form

    Hi,
    We created a tabular form.
    Example: We have two form fileds with LOVs A and B.
    Based on select list A, we need to refresh the second list B. Just like cascading LOV option in normal form(apart from Tabular form)
    Please provide your valueble inputs.
    Regards,
    Meda

    Please search the forum before posting a new question!!, it saves everyone's time
    https://forums.oracle.com/forums/search.jspa?threadID=&q=tabular+form+cascading+lov&objID=f137&dateRange=all&userID=&numResults=15&rankBy=10001
    Always include the following information when asking a question:
    Full APEX version
    Full DB/version/edition/host OS
    Web server architecture (EPG, OHS or APEX listener/host OS)
    Browser(s) and version(s) used
    Theme
    Template(s)
    Region/item type(s)

  • Two LOVs in same report customization form causes problems

    My report includes two parameters which are set by the user using dynamic LOVs in the customization form. The report used to only have one parameter and this worked fine. After including the second one only one of the LOVs work as they should. The second one doesn't trigger a value to be sent to the report. Working separately the second parameter/LOV also works as it should.
    The code:
    SELECT distinct ID, STILLING, F_DATO, STILLING_NAA, DATO
    FROM JOBBSOKNADER
    WHERE STILLING in :lov_stillinger
    union
    SELECT distinct A.ID, A.STILLING, A.F_DATO, A.STILLING_NAA, A.DATO
    FROM JOBBSOKNADER A, JOBBINT_KOBL B
    WHERE A.ID = B.JOBBSOKNADER_ID
    AND A.STILLING = '(apen soknad)'
    and B.INT_ID in :lov_interessefelt

    Hi,
    Are you trying to use dependant LOVs i.e second LOV depends on the value selected in the first LOV. If you are trying that, then reports does not support that. You have this facility only in forms.
    If I have understood wrong, then please give me the query you used for the LOVs
    Thanks,
    Sharmila

  • Customization form at top of screen populate report results at bottom of screen????

    I'm not sure that I was clear on my other question.
    Is it possible to develop a customization form and its report on the same page?
    Here is the scenario. We want the customization form on the top of the Portal page, and then we want the results of the query form (the report results) to populate in the bottom of the Portal page. The customer desires this so they can still see what information they queried on to get the specified report results.
    Does anyone know a way to do this or has anyone successfully developed it?

    Hope this is the same as :-
    Re: Accesing Oracle Portal with hostname invalid

  • Customization Form at top populate Report Results at Bottom of Page??

    Is it possible to develop a customization form and its report on the same page?
    Here is the scenario. We want the customization form on the top of the Portal page, and then we want the results of the query form (the report results) to populate in the bottom of the Portal page. The customer desires this so they can still see what information they queried on to get the specified report results.
    Does anyone know a way to do this or has anyone successfully developed it?

    The customization form portlet would need to pass the parameter(s) to the other portlet. You may want to check out the parameter passing portlet samples in the PDK. The Smart Web Services Portlets work in a similar way too.
    If you want end users to show what their previously set parameters were, the customization portlet should read the previously passed parameters (along with the report portlet) and show them.
    You may also consider building a report using the wizards. Components can take parameters very easily through the Portal 9.0.2 (Oracle9iAS v2) page parameters feature.

  • Customization form at top populate Report Results at bottom of screen?

    Is it possible to develop a customization form and its report on the same page?
    Here is the scenario. We want the customization form on the top of the Portal page, and then we want the results of the query form (the report results) to populate in the bottom of the Portal page. The customer desires this so they can still see what information they queried on to get the specified report results.
    Does anyone know a way to do this or has anyone successfully developed it?

    Jamie,
    Search the Applications forum (sample code was posted there).
    http://forums.oracle.com/forums/message.jsp?id=472246
    Is it possible to develop a customization form and its report on the same page?
    Here is the scenario. We want the customization form on the top of the Portal page, and then we want the results of the query form (the report results) to populate in the bottom of the Portal page. The customer desires this so they can still see what information they queried on to get the specified report results.
    Does anyone know a way to do this or has anyone successfully developed it?

  • How does customization form pass parameters?

    I need to create my own customization form so it can include linked LOVs and was wondering how the default customization form passed the LOV values back to the calling component.
    I put two copies of the same report on a page and called the customization form for each report selecting different LOV values. Since each report displays the correct results based on the LOV, I assume page parameters are not being used and neither is p_arg_values/p_arg_values.
    Can anyone tell me how this information is being passed to the individual reports?
    Thanks, Larry

    Sharmila,
    I guess I'm confused, the parameters that are selected on the Customization screen are persistent across different login sessions.
    Is is my understanding that passing parameters via p_arg_names/p_arg_values on the URL would not carry over from one logon to another or even allow me to navigate to another page and then back to the "customized" screen and still have the customizated values applicable?
    Are you saying that once I call a page and pass a name/value parameter pair to the page, that the paramter values remain in affect for subsequent calls to the same page where the name/value pair isn't being passed?
    Doesn't the customization screen use the wwpre_api_name and wwpre_api_value methods to pass parameters to components located on a page via the user preference storage?
    When I look at the URL associated with the customization link on my portlets I see the preference_path being passed to the customization form.
    Larry

  • Passing a parameter to aReport Customization Form

    I have a report that has a default view and a customized view. The default view has a button that allows the user to customize the report by showing the same report in show_parms mode. This allows them to sort and break on different fields. I would like to send the same parameter sent to the default view to the version generated by the run button on the customization form. I just can't fiqure out how to do it. Any ideas would be appreciated.
    Thanks,
    Linda

    Martin,
    Thank you for responding. I will certainly keep in mind the way you solved the problem. But I actually solved it myself with the following technique.
    STEPS
    1. Created a link to the Reports Customization form from the Report.
    2. Captured the value of the parameter sent through the URL to the bind variable for the report.
    3. Set the parameter value to a global variable using the Session storage API=wwsto_api_session.
    4. Retrieved the value of the global variable by setting the default value in the "Customization Form Display Options" tab of the report.
    In the Report add the following PL/SQL Code....
    --Location:      Additional PL/SQL Code
    --Attribute:     ... after displaying the header
    declare
    l_store portal30.wwsto_api_session;
    l_param_value varchar2(4);
    begin
    --(#2)TStudy is the parameter name passed through the URL and the name of the bind variable in the SQL Command
    l_param_value := portal30.wwv_name_value.get_string(l_arg_names,
    l_arg_values, 'Tstudy','',1);
    --(#1) Add Link to the Reports Customization Form
    htp.p ('<CENTER>');
    htp.p('<font class=portletheading2> CUSTOMIZE</font>');
    htp.p ('</CENTER>');
    htp.br;
    --(#3)Store Parameter Value sent to the bind variable
    l_store := portal30.wwsto_api_session.load_session ('MYPORTAL', 'MYReport');
    l_store.set_attribute ('PValue', l_param_value);
    l_store.save_session;
    END;
    --(#4) Default Value in "Customization Form Display Options" for TStudy
    #portal30.wwsto_api_session.load_session('MYPORTAL', 'MYReport').get_attribute_as_varchar2('PValue')
    ?????My Last Question - How do I hide the prompt for the bind variable. I don't want the user to change this value after I went to such trouble to set it???????
    Thanks again,
    Linda Gowen

  • How to create dependent LOVs

    Hi all,
    Does anyone know how I can create a LOV with values dependent on the LOV value selected from the one above when defining a custom item?
    For example, I have defined a custom item which has 2 attributes with 2 LOVs:
    attribute1 - LOV1
    attribute2 - LOV2
    I would like to populate LOV2 depending on what value the user selects in LOV1, is this possible?
    Please advise.
    Thanks.

    Hi,
    You can create dependant lovs and use them only in the forms component. Here is how you create dependant lovs
    lov1
    select empno,ename
    where deptno = :dept
    Creating a LOV with a bind variable makes it a dependant lov. In forms you should map the bind variable to one of the form columns.
    Thanks,
    Sharmila

  • Dependent LOVs in form

    Guys,
    I do have two fields of LOV types on my form
    LOV attached to first field should display all the department. And second field should display all the employees assigned to the department selected in first field. Thats how I need dependent LOVs.. can you please guide me how it can be achieved.
    Thanks
    Sunil

    Hi Sunil
    second field should display all the employees assigned to the department selected in first field. Thats how I need dependent LOVs.Here is an example...
    Let's Suppose u have a rel between dept & emp table related with a FK called DEPT_NO that's what it should be
    Now when u select the 1st Lov it will disploay the DEPT_NO of the dept u selected this DEPT_NO will be displayed on ur form or will be hidden it doesn't matter.
    Now in the second LOV Record group u should write a similar select statment as follow...
    SELECT EMP_NAME,... etc.
    FROM EMP
    WHERE DEPT_NO = :DEPT_NO ;     Pls note that :DEPT_NO is the number of the department selected form the first lov in ur form, then all emp data will be displayed according to this DEPT_NO as ependent LOVs.
    Another approach u should be aware and think about it...
    u could u a drop down list dependent on one another specially if u don't have large number of departments in ur company.
    Hope this helps...
    Regards,
    Amatu Allah.

Maybe you are looking for