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

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

  • Bind variable in a Tabular Form

    Hi,
    What is the way to reference a bind variable in a tabular form?
    In a LOV, I cannot mention a sentence in this way:
    select A, B
    from int_localidad
    where C = :CODE (CODE is another column of the tabular form)
    ..as :CODE is not recognized as a field.
    Any clues?
    Thanks.
    David.

    Yes you can make a process that reads the apex_application.g_fnn arrays and insert your row manually but that's a lot of work.
    For what you're doing it doesn't sound like the standard CRUD processes should have a problem with it. On your button-click if it's doing a redirect and not some kind of submit, it's possible then that the value isn't making it into session state and therefore not getting included in the DML. Are you sure it's getting into session state?

  • How to send a TextBox value to a variable in the parent form in C#?

    I have an aboutBox control ("settings") that has a textBox in it. When the user presses the save button on this settings I want it to save the string from the textBox, pass it to a variable in the main form, close the settings box and then press
    a button in the main form.
    How would this be done?
    Thank you!

    what do u mean by "text saved in the textbox"?
    if you mean to set the value into the Textbox in the form2
    private void Form2_Loaded(object sender, EventArgs e)
    this.TextBox1.Text =valueFromForm2;
    2) When you click the save button on form2 it is already calling the delegate what do u mean by firing event?

  • How to use bind variables in the following query

    CREATE OR REPLACE PROCEDURE MMDB.test IS
    sel_qtn VARCHAR2 (10);
    CURSOR PT_QUANTITY IS select * from mmdb.product_tree WHERE QUANTITY_CHECK ='E'
    AND run_id = 100
    a PT_QUANTITY%ROWTYPE;
    BEGIN
    FOR i IN PT_QUANTITY
    loop
    sel_qtn := i.quanttity-1;
    While sel_qtn>=1
    loop
    insert into mmdb.product_tree (BILLING_ACCOUNT_NO ,S_CODE) values (i.BILLING_ACCOUNT_NO ,i.S_CODE||'E');
    sel_qtn :=sel_qtn -1;
    End loop;
    commit;
    end;

    Don't duplicate threads: How to use bind variables in the following query

  • Bind variables improve the performence of  query??

    Hi,
    Bind variables improve the performence of program or SQL Query.
    Select empno,ename,sal from emp where empno=:eno;
    select sal into :vno from emp;
    According to these queries i am asking performence of bind variables to learn more from you.
    Regards,
    Venkat.
    Edited by: Venkata2 on Sep 16, 2008 6:40 PM

    Karthick_Arp wrote:
    any variable inside a stored procedure is a bind variable.
    using bind variables can help you avoid hard parse. which leads to performance improvement.
    Well, you mentioned pros and I will mention cons. Since bind variable value is not known until execution time optimizer can not select best plan. So Oracle introduced bind variable peeking where plan is deferred until first execution. With bind variable peeking optimizer costructs plan using bind variable values at the first execution. However, if first execution has "not typical" bind variable values we end up with sub-optimal plan.
    SY.
    P.S. Please do not consider my reply as "we should not use bind variables".

  • 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

  • Can I put a SQL query into a bind variable and then use it to output report

    Hi,
    Can I put a SQL query into a bind variable and then use it to output report?
    I want to create a report and an item "text area" (say P1_TEXT) which can let user to input a SQL query(they are all technical users and knows SQL very well). Then, I use a bind variable (that text area) to store the SQL statement. Then, I add a submit button and I want to use the following to output the report:
    select * from (:P1_TEXT);
    Do you think it is possible to do that? Any known limitations for APEX in this area?
    Thanks a lot,
    Angela

    You can, but make sure it's what you really want to do. Make sure you are VERY familiar with SQL Injection. Most people who know what it is, go out of their way to prevent SQL Injection. You're going out of your way to allow it.
    You can try using &P1_TEXT. instead of bind variable syntax. Bind variables are one of the best ways to prevent SQL Injection, which is why it's not working for you.
    Once again, I strongly urge you to consider the implications of your app, but this suggestion should get it working.
    Tyler

  • 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

  • Access a variable in the Adobe form for Java Scripting

    Hi,
    I am unable to know how to access the variable in a Adobe form.
    The variable is field of an internal table. My adobe form structure is as follows
    MAIN_PAGE->FORMSET->FirstFORM->EXT.
    in the EXT subform the variable(cust)  exists.
    The cust is in turn an internal table.

    Hello Sreelatha,
    I think we cannot hide a page.  as in, page is the main container.  In a container, we can hide any field using some scripting.  Even though if we hide the field, it is present on page but not visible. 
    but if some logic is there, please let me know.
    Thanks,
    Rakesh.
    Edited by: rakhi966 on Sep 8, 2011 8:54 PM

  • Bind variable in Master Detail form

    Is there any way to go to a specific master record (bind variable) and it's associated detail information in a master detail form using a link from another report?
    Louis

    I suspect that he may have the same question I do. Namely, if I have four tables (employees, projects, tasks, and project_assignments) how do I create a master detail form where I can specify the project and the employee via LOVs? The project_assignments table contains foreign keys for employee, project, and task, as well as additional fields relating to the task status.
    Currently, I have it set up so that the employee name can be selected and the project is hard coded to the current project.
    Is there an easy way to populate the detail records based on two LOVs in the master form?
    Thanks in advance,
    Fritz

  • Value of report bind variable in the add PL/SQL section?

    Hi all,
    I'm passing a page parameter into a report as a bind variable - this works. Now I need this same parameter value in the additional PL/SQL section of the report.
    I have browsed the forums & docs and seems like get_value(<param_name>) is supposed to do it, but I get no value.
    Is there any known reason for this? Maybe the fact that its a page parameter? Or any other suggestions?
    Cheers.
    Anton.

    I have tried everything - to no avail - if anyone has any ideas please help...
    In the meantime I have hacked some sort of solution - not pretty but it works!
    In the additional PL/SQL section I have:
    declare
    l_rid varchar2(20);
    begin
    l_rid:=drca_get_url_param(p_page_url,'rid');
    htp.p('<FONT CLASS="PortletText1"><A target="uedit"
    href="PORTAL.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=1567149528&p_arg_names=_sessionid&p_arg_values=&p_arg_names=SPECIFIC_RISK_ID&p
    _arg_values='||l_rid||'">Add</A></FONT>');
    end;
    where
    - p_page_url is a variable with the page URL that is automatically available, and
    - drca_get_url_param is a function that returns the param value form the URL ("rid" in this case). I'm sure there is such a function somewhere in the portal lib of functions, but I could not find it.

  • CG$CTRL Bad Bind Variable error Migrating from Forms 4.5 to Forms 6

    Hi All,
    I have an old application deployed using Forms 4.5 runtime that I would like to migrate to the latest version of Forms.
    My intended migration path was Forms 4.5 -> Forms 6i -> Forms 10g.
    After successfully converting the source 4.5 .pll library files to Forms 6i by opening the files in the Forms 6i Forms Builder (6.0.8.25) and then saving the library files in the FORMS60_PATH I now encounter the following error that is hindering the migration process:
    Error 49 at line 6, column 3
    bad bind variable 'CG$CTRL.SE_CODE'
    I have read some other posts that mention Headstart Templates. Does anyone know if these CG$xxxx program units are part of Headstart? And if so, how can I get the Template files?
    Thanks in advance,
    Gary.

    CG$CTRL are cerated when the forms are developed using the designer...
    Oracle Forms requires that every item in a form must belong to a block, but these generated non-base table items are not associated with any module component. There is therefore no repository definition of a data block to which the generated items can belong.
    Form Generator resolves this situation by creating a control block to which the generated non-base table items can belong. The generated block is given the name CG$CTRL.
    The CG$CTRL block has no physical representation in the generated form and has none of the properties (e.g. block decoration) associated with generated data blocks. The CG$CTRL block is simply a logical object to which generated
    So try to find out in which form the above procedure /program unit is being called and then modify the pll accordingly....
    Rajesh Alex

  • Using bind variables in the model view for master detail

    Hi all,
    I have a master-detail views setup on the following two queries.
    In the first query below - I use two bind variables to collect the start and end date.
    you have to add (and :startDate = :startDate and :endDate = :endDate) or you will get errors - bind not defined in sql
    I then use the viewQueryCriteria to collect the data on a search panel - so far so good. (Make the bind variables required) along with the other criteria.
    The bind variables are displayed in the search panel and the data is entered correctly.
    The query executes and all is happy.
    VIEWOBJECT1
    SELECT DepositAccounts.COA_ID,
    ... ChartOfAccounts.ACCOUNT_CODE || ' ' || ChartOfAccounts.ACCOUNT_TITLE as description
    FROM DEPOSIT_ACCOUNTS DepositAccounts, DEPOSIT_ACCOUNT_DETAILS DepositAccountDetails, CHART_OF_ACCOUNTS ChartOfAccounts
    WHERE DepositAccounts.ID = DepositAccountDetails.DEP_ACC_ID
    and ChartOfAccounts.id = DepositAccountDetails.COA_ID
    and :startDate = :startDate and :endDate = :endDate
    Now I add the summation of a value (AMOUNT) to the view object (java - create view impl) to the VOViewRowImpl
    and everything works - the value is shown in the transient attribute formatted and looking nice.
    VIEWOBJECT2
    SELECT PostingBatchAccounts.AMOUNT,
    FROM POSTING_BATCH_ACCOUNTS PostingBatchAccounts, POSTING_BATCHES PostingBatches
    where PostingBatchAccounts.PB_ID = PostingBatches.ID
    and PostingBatches.SOURCE_DATE between :startDate and :endDate
    Now I need to add the start date and end date to the child query - before the view executes (or the summation is calculated).
    The attributes are in the where clause (PostingBatches.SOURCE_DATE between :startDate and :endDate) in VIEWOBJECT2 which is the child.
    I need the child records and the summation to work with the date restrictions.
    I would assume you could get access to the child view in the VOViewImpl file and set the bind variables there.
    Everything I find is based on the JSF - not the model layer - this should be fairly easy (and common). can anyone give me a hand on this?

    Hi all,
    I have a master-detail views setup on the following two queries.
    In the first query below - I use two bind variables to collect the start and end date.
    you have to add (and :startDate = :startDate and :endDate = :endDate) or you will get errors - bind not defined in sql
    I then use the viewQueryCriteria to collect the data on a search panel - so far so good. (Make the bind variables required) along with the other criteria.
    The bind variables are displayed in the search panel and the data is entered correctly.
    The query executes and all is happy.
    VIEWOBJECT1
    SELECT DepositAccounts.COA_ID,
    ... ChartOfAccounts.ACCOUNT_CODE || ' ' || ChartOfAccounts.ACCOUNT_TITLE as description
    FROM DEPOSIT_ACCOUNTS DepositAccounts, DEPOSIT_ACCOUNT_DETAILS DepositAccountDetails, CHART_OF_ACCOUNTS ChartOfAccounts
    WHERE DepositAccounts.ID = DepositAccountDetails.DEP_ACC_ID
    and ChartOfAccounts.id = DepositAccountDetails.COA_ID
    and :startDate = :startDate and :endDate = :endDate
    Now I add the summation of a value (AMOUNT) to the view object (java - create view impl) to the VOViewRowImpl
    and everything works - the value is shown in the transient attribute formatted and looking nice.
    VIEWOBJECT2
    SELECT PostingBatchAccounts.AMOUNT,
    FROM POSTING_BATCH_ACCOUNTS PostingBatchAccounts, POSTING_BATCHES PostingBatches
    where PostingBatchAccounts.PB_ID = PostingBatches.ID
    and PostingBatches.SOURCE_DATE between :startDate and :endDate
    Now I need to add the start date and end date to the child query - before the view executes (or the summation is calculated).
    The attributes are in the where clause (PostingBatches.SOURCE_DATE between :startDate and :endDate) in VIEWOBJECT2 which is the child.
    I need the child records and the summation to work with the date restrictions.
    I would assume you could get access to the child view in the VOViewImpl file and set the bind variables there.
    Everything I find is based on the JSF - not the model layer - this should be fairly easy (and common). can anyone give me a hand on this?

  • How do I use bind variables for the SQL statements having IN clause

    SELECT id, name FROM t
    WHERE id in (10,20,30)
    As the IN list will have 'n' number of values, I am not able to specify fixed number of bind
    variables like
    SELECT id, name FROM t
    WHERE id in (?,?,?....)

    452051 wrote:
    I am not able to specify fixed number of bind variablesYou could use collection:
    SQL> create or replace force
      2    type NumList
      3      as
      4        table of number
      5  /
    SQL> select ename from emp where deptno member of NumList(10)
      2  /
    ENAME
    CLARK
    KING
    MILLER
    SQL> select ename from emp where deptno member of NumList(10,20,30)
      2  /
    ENAME
    SMITH
    ALLEN
    WARD
    JONES
    MARTIN
    BLAKE
    CLARK
    SCOTT
    KING
    TURNER
    ADAMS
    ENAME
    JAMES
    FORD
    MILLER
    14 rows selected.
    SQL> This way you have one bind variable - collection.
    SY.

Maybe you are looking for

  • My brightness buttons do not work

    I just installed mountain lion, and now only my F1 and F2 brightness keys do not work...

  • Why won't dropbox documents print via bluetooth to a pima ip100

    Why won't dropbox documents print via bluetooth to a pixma ip100 from a Mac Pro.  The ip100 prints gibberish continuously until it is unplugged.  There is no other way to stop the printing.

  • 5800 XM - very slow and hangs

    For no apparent reason my 5800XM froze and I had to remove the battery to restart. After that it has been working but has become very slow, you can see the different applications open and close and a little "button" goes red or green and flashing for

  • Business Process harmonization

    Hi My Client operates in multiple SAP environments from 4.6c to ECC 5.0 across the globe apart from many other legacy applications. Legacy applications interface with SAP on predominantly accounting functions They want to consolidate and reduce the n

  • Previous/Next View functionality is missing

    I do not see option to go back to the previous view in iPod version like in PC version. It is very inconvenient to jump to hiperlink and have no ability to return back. I found out that this question was already asked in http://forums.adobe.com/messa