Parameter passing in reports 6i

Hello

I've created a report using the report designer. and in forms, I tried to view the report, its works very well

Now I have to pass parameter to this report, as where userid = 1 or something

How can I do?

Now that I have given way, in the when_button_pressed
repid := find_report_object('report9'); 
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'userid='||:txtbx1);
v_rep := RUN_REPORT_OBJECT(repid); 
But it does not work
Do I need to make changes in the report file (.rpt)?

Thank you

Published by: Tuts009 on May 5, 2010 21:41

Doesn't make me not afraid ask lexical/single parameter etc.  ;)

You have not created any parameter, and you try to view set reoprt?

Actually unfortunally made all changes in a query for the report

So, it is the starting point of the problem and you have started of the IMMA :D

For the parameter query, you need to change you request and use like that...

 SELECT ALL USERS.USERID, USERS.FIRST_NAME, USERS.LAST_NAME, USERS.USER_NAME,
 USERS.ADDRESS, USERS.EMAIL, USERS.CONTACT_NO, USERS.ROLE
 FROM USERS
 WHERE USERS.USERID = NVL(:P_USERID,USERS.USERID) -- Here this line will create parameter in report by name :P_USERID

So, now you need to pass parameters to the form as as you did before...

  SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'P_USERID='||:txtbx1);

Thus, the reoprt should come with your parameter. If it will be null report should show to all users.

Be sure to compile the report after changing.

-Clément

Tags: Oracle Development

Similar Questions

  • Are there dependencies parameter in discoverer reports?

    Are there dependencies parameter in discoverer reports?

    Hello
    Yes, there are but belong to the author of the report to make it effective. During the phase of creation of parameter, on the dialog box new setting at the bottom right is a checkbox that allows the user to associate this setting with the results of a previous parameter. By default, it is disabled so you have to manually set. Once set, you can choose which previous parameter, you can base it on.

    The general process is called cascading parameters.

    Please make sure that settings are available to the end user in the right order. For example, you could offer to the end user a parameter to choose a year, with the second parameter that may be the month. If these two were partners, then the list of values proposed for the month will be préfiltrée for the months in the year (s) taken earlier.

    EI here some notes of my Oracle Discoverer 10g Handbook:

    Cascading parameters are parameters that are restricted by the presence of a filter on a pre-existing condition. That the State can either be a coded irreversible condition or a condition that is associated with a previously invited parameter. Using cascading parameters, you can ensure that the lists of values are seeded to ensure that only the correct list is available for selection.

    We recommend that in order to effectively use cascading parameters, you create these settings on items that a) have lists of values and (b) are contained in the same hierarchy of drill discoverer. This is simply for reasons of performance and will not be applied by Scout. Oracle advises users not to create parameters cascading on points non-forage-hierarchy, although users can still go ahead and do so if they wish.

    Hope this helps
    Best wishes
    Michael

  • passing a report parameter form

    hallwo all,

    I use oracle 10g, how can we send you more than 50 parameters in report form. Give me a good solution for this problem.

    The same way you do for a single parameter. Create a parameterlist and use it in your call to RUN_REPORT_OBJECT, or concat a parameterstring and pass it to the REPORT_OTHER property.

  • As the report parameter passing

    I work with zoom report. At my master (Source) report
    Columns EMP #, address, name of the Emp.
    I quickly on the name column of the Emp. My second (target) other employee details and report titled 'Report individual detail for employee' but my user requests they want to display the name of the report with the name of the employee. (passing the parameter to the title of the report). I mean, in the report of the source, if I click on "Rine Roy" target report should display with the following title
    'Roy Rine individual detail report'

    Can I do this with OBIEE? Please help me.

    Thanks for your time

    Sorry about that. Please use a narrative instead of title and try. In addition, fill "Display lines" as 1.

    Published by: user8027120 on Sep 17, 2009 11:44

  • Summary of detailed report parameter passing

    Hello

    I have a summary report that contains the ID. By clicking on the ID led ot detail report. However, the setting remains on the detailed report. I also want to enable the display stand alone of the rpeort of detail. How this can be done?


    Concerning

    User,

    What is your name?

    You can move the parameter or article to the detail page. Perhaps change to something hidden (if that's the case) to a visible item that users could select from. Then all is implemented what you do when you come to the summary the retail value of this element.

    Note If the modification of the pages element you want to change the name of the element and therefore any reference to it. To ensure that you don't miss anything you will need to run the application even if Patrick APEX Essentials: http://www.inside-oracle-apex.com/apex-essentials/ (this will be integrated into the APEX 4)

    Kind regards
    Dan

    Blog: http://DanielMcGhan.us/
    Work: http://SkillBuilders.com/apex/

  • How can I start Firefox with a parameter passed html file

    I want to leave Windows (7), passing a local html file name as a parameter to use this html page for the start page of Firefox. There is no help or documentation on the parameters of start (a major deficit oversight or program)

    It should work in a .cmd or .bat file.

    start "" "C:\Program Files (x86)\Mozilla Firefox\Firefox.exe" "C:\Users\DES\Documents\MSData\HTML\GPD.shtml"
  • Problem with oracle page OFA form parameter passing

    Dear all,

    I have a requirement as below

    I have a custom page of OAF I need call from a menu in the form of oracle, so I sm able to invoke the page in the menu but I need to move a form parameter to a page ofa form personlization, I am able to get the same thing, but my parameter contains date with time stamp, so when iam passing only day It works very well but with dtamp time it gives error like URL invalid because of some special character. So I found some links only when there is a space between the date and the time dtamp it gives question so please help me how I can handle this I need to get the date with timestamp in my page.

    Thank you

    Thanks for the reply,

    I solved the problem by using different functions through PL/SQL

  • Infrared column binding parameter passing does not!

    4.2.1

    Hello

    I have an IR in a single page. On a product Id column, I have a link to a custom URL

    Page of this application - 2

    Item1 - P2_Product_id (there is an item on page 2) and I'm creating with #Prod_Id # page 1

    Basically, page 1 when the user clicks on the column prod_id IR it will open Page 2 based on the product being passed id.

    For some reason, the product id is null on page 2.

    I see the URL and it's good ending with: P2_PRODUCT_ID:12345

    Any idea on what could happen or if I'm missing something. . 2 URL with the correct settings, but when I try to display the P2_product_id parameter or use it in a sql is page 2, the null value.

    Thank you

    Ryan

    ryansun wrote:

    4.2.1

    I have an IR in a single page. On a product Id column, I have a link to a custom URL

    Page of this application - 2

    Item1 - P2_Product_id (there is an item on page 2) and I'm creating with #Prod_Id # page 1

    Basically, page 1 when the user clicks on the column prod_id IR it will open Page 2 based on the product being passed id.

    For some reason, the product id is null on page 2.

    I see the URL and it's good ending with: P2_PRODUCT_ID:12345

    The custom URL could end like this, but it has good syntax APEX so that these values can be found in the positions required for the ref and itemValues settings?

    Any idea on what could happen or if I'm missing something. . 2 URL with the correct settings, but when I try to display the P2_product_id parameter or use it in a sql is page 2, the null value.

    If the syntax of the URL is correct, check what happens during treatment page see page 2 to see if the value of P2_PRODUCT_ID session state is changed. Use utilities > events Page in the definition of the page to see the event order page and in debug mode for page trace rendering and processing, including session state changes.

  • Workflow started by the script fails to get the parameter passed securestring

    Hello

    I use a script (linux) to start a workflow ( defined by software for the script ;-) thank This mechanism works very well.

    However, yesterday we removed an input parameter in a workflow of some (and also deleted from the script) and now it fails.

    Before the change, the input parameters were: vmName (String), vmUser (String), vmPassword (SecureString)

    After the change, the input parameters are: vmName (String), vmPassword (SecureString)

    In the script, I can add statements to prove that the password has a value and that it is past.

    In the workflow, I've added a task containing a script that is executed first and shows that the value of the vmPassword input parameter is empty.

    The output xml from script of appeal shows also that the value parameter is 'lost '...

    See the definition of setting correct for vmName on lines 11 and 12.

    See a definition of parameter incorrect for vmPassword on line 13 - the part missing "secret < SecureString > < \SecureString >...

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <workflow-execution  href="https://ehc3-vco2.ehc.ssev.local:8281/vco/api/workflows/fe59b484-ec21-4028-8a32-5e434b4139c2/executions/ff8080814e0272b6014eadc7c37424fb/">
    <relations>
    <link href="https://ehc3-vco2.ehc.ssev.local:8281/vco/api/workflows/fe59b484-ec21-4028-8a32-5e434b4139c2/executions/" rel="up"/>
    <link href="https://ehc3-vco2.ehc.ssev.local:8281/vco/api/workflows/fe59b484-ec21-4028-8a32-5e434b4139c2/executions/ff8080814e0272b6014eadc7c37424fb/" rel="remove"/>
    <link href="https://ehc3-vco2.ehc.ssev.local:8281/vco/api/workflows/fe59b484-ec21-4028-8a32-5e434b4139c2/executions/ff8080814e0272b6014eadc7c37424fb/logs/" rel="logs"/>
    <link href="https://ehc3-vco2.ehc.ssev.local:8281/vco/api/workflows/fe59b484-ec21-4028-8a32-5e434b4139c2/executions/ff8080814e0272b6014eadc7c37424fb/state/" rel="state"/></relations>
    <id>ff8080814e0272b6014eadc7c37424fb</id>
    <state>failed</state>
    <input-parameters>
    <parameter type="string" name="vmName" scope="local">
    <string>vm093</string></parameter>
    <parameter type="SecureString" name="vmPassword" scope="local"/></input-parameters>
    <output-parameters/>
    <start-date>2015-07-20T19:23:46.932-04:00</start-date>
    <end-date>2015-07-20T19:23:48.070-04:00</end-date>
    <started-by>[email protected]</started-by>
    <name>Add Agent</name>
    <content-exception>; nested exception is:
            java.io.IOException: java.io.IOException: Non nillable element 'password' is null. (Dynamic Script Module name : addAgent#32)</content-exception>
    <current-item-display-name>Add Agent</current-item-display-name></workflow-execution>
    
    

    Anyone seen elsewhere and - especially - able to fix it? :-)

    Thank you

    Ed

    It turns out that, in the XML input, which is passed to the server vCO, the password parameter type spec can be , but the definition of its value must be specified using ....

    For example:

                    
                            secret
                    
    

    Lesson learned...

    Ed

  • Parameter passing


    Hi gurus

    I have a question related to the parameter to pass to the procedure:

    I coded the following code:

    -------------------------------------

    CREATE OR REPLACE

    PROCEDURE PASS_P (ABC IN VARCHAR2)

    IS

    CURSOR CUR_EMP (D_NO VARCHAR2)

    SELECT IS *.

    FROM EMP

    WHERE DEPTNO = D_NO;

    -WHERE DEPTNO = PART_DEPT = abc;

    R_EMP EMP % ROWTYPE;

    BEGIN

    OPEN CUR_EMP (ABC);

    LOOP

    EXTRACTION CUR_EMP

    IN R_EMP;

    WHEN THE OUTPUT CUR_EMP % NOTFOUND;

    DBMS_OUTPUT. PUT_LINE (R_EMP. ENAME);

    END LOOP;

    CLOSE CUR_EMP;

    END PASS_P;

    ----------------------------

    I wonder if someone guide me that why I need to pass variable separate D_NO at the time of cursor declare and ABC as a procedure parameter entry, in fact I tried to use same variable ABC at the time of cursor and procedure and it works very well even as passing the separate variable but I refer to some examples for passing parameters and all sample create separate from pass parameters. I created the following procedure and pass the same variable, and it also works very well.

    --------------

    CREATE OR REPLACE

    PROCEDURE PASS_P (ABC IN VARCHAR2)

    IS

    CURSOR CUR_EMP (ABCVARCHAR2) - change of D_NO to ABC value

    SELECT IS *.

    FROM EMP

    WHERE DEPTNO =ABC;

    -WHERE DEPTNO = PART_DEPT = abc;

    R_EMP EMP % ROWTYPE;

    BEGIN

    OPEN CUR_EMP (ABC);

    LOOP

    EXTRACTION CUR_EMP

    IN R_EMP;

    WHEN THE OUTPUT CUR_EMP % NOTFOUND;

    DBMS_OUTPUT. PUT_LINE (R_EMP. ENAME);

    END LOOP;

    CLOSE CUR_EMP;

    END PASS_P;

    ---------------------------------

    Please guide. Thank you

    Concerning

    Shu

    I wonder if someone guide me that why I need to pass variable separate D_NO at the time of cursor declare and ABC as a procedure parameter entry, in fact I tried to use same variable ABC at the time of cursor and procedure and it works very well even as passing the separate variable but I refer to some examples for passing parameters and all sample create separate from pass parameters. I created the following procedure and pass the same variable, and it also works very well.

    The answer is: you don't need to 'separate variable pass '.

    In your first example:

    CURSOR CUR_EMP (D_NO VARCHAR2)

    You use a setting of "cursor" and named "D_NO". You could have named what you want.

    See section explicit cursor of the doc PL/SQL language

    http://docs.Oracle.com/CD/B28359_01/AppDev.111/b28370/explicit_cursor.htm#sthref1897

    parameter_name

    A variable declared as formal a cursor parameter. A cursor parameter can appear in a query anywhere where a constant can appear. The formal parameters of a cursor must be IN parameters. The query can also reference other PL/SQL variables in scope.

    The setting is simply a placeholder. You do not use the real name when you reference the cursor over that you use the name of real to a procedure parameter when you call a procedure.

    You have a procedure defined as:

    PROCEDURE PASS_P (ABC IN VARCHAR2)

    But when you call this procedure don't usually see you the name of the parameter real 'ABC '; simply, you provide a value for it. You CAN see the name of the parameter if you use parameter "named" references: PASS_P (ABC-Online "myValue").

  • Forms 6i developer parameter passing

    Dear all

    Please help me on the following

    I'm moving a TANK of a form value to another by using a PARAMETER. The value of passage is "COD/0001", when I try to pass this value, that it does not. But if I try to go without "COD /" it works very well. What I realized, it's numbers pass except the characters.

    My type of parameter is of type CHAR. The passes and receivers of fields and the database column types are CHAR.

    Please help me to overcome this problem.

    Thank you in advance.

    Nazik

    Therefore, as I said. You did not check the value of the parameter, and ORA-00904 shows even more that the parameter is passed correctly. Setting the default - what's wrong.

    She translates

    HWSI_ASSET_TAG =CAD/001
    

    which is false. The result should be

    HWSI_ASSET_TAG ='CAD/001'
    

    If your code must be either

    SET_BLOCK_PROPERTY('NZK_HWSTATIC_INFO',DEFAULT_WHERE,'HWSI_ASSET_TAG =:parameter.p_at');
    

    or

    SET_BLOCK_PROPERTY('NZK_HWSTATIC_INFO',DEFAULT_WHERE,'HWSI_ASSET_TAG ='''||:parameter.p_at || '''');
    
  • How the parameter passes the dynamically personalized Planner

    Hello

    I'm new to IOM.
    Need your help passing parameters dynamically to the personalized Scheduler.

    I created Planner customized by providing support for the task.
    I recorded the plugin via API, using the PlatformService.registerPlugin () method.

    I need to send the parameters of this CustomScheduler, so I defined in the metadata (CustomScheduleTask.xml) as a file below and get it imported in DB
    using the script weblogicImportMetadata.sh by providing the path of the file.

    < scheduledTasks xmlns = "http://xmlns.oracle.com/oim/scheduler" >

    < task >

    < name > CustomScheduleTask < / name >

    org.schedule.custom.task.CustomScheduleTask < class > < / class >

    < Description > details the user_id data extraction < / description >

    < retry > 5 < / re >

    < Parameters >
    < string-required param = 'true' helpText 'Username' = > user name < / param-string >

    < / Parameter >

    < / task >

    < / scheduledTasks >

    IAM able to import this plugin as well as the register the plugin successfully. Now, I set a task to which this Custom Tachesplanificateur is mapped.
    Now, in order to run this job (scheduled task), I need to provide the user name (or id) which must be sent as a parameter for the Scheduler must be running.
    But when you set the task with this scheduled task on the IOM console, I was not able to define or to pass parameter to this work. Therefore, the parameter is null in
    CustomSchedule execute method.

    Kindly help me how to pass the parameter dynamically during execution of the Task Scheduler console of IOM so that the execute method would be able to receive it.

    Thank you in advance.

    Kind regards
    Kumar

    Hello

    When you created the schedule the job for your personalized planning task, you should see your login name of textfield in the scheduled task. If this isn't the case, then it check your xml task calendar.

    In your class calendar code, add:

    public void execute (HashMap arg0) {}
    Final string METHOD_NAME = ' run: '; "
    Logger.Debug (CLASS_NAME + METHOD_NAME + "Input method - run");
    try {}

    String LoginName = arg0.get ("username");

    Kind regards
    Sunny

  • Parameter passing by EL expression

    I just stumbled upon an article from http://adfspecialists.blogspot.com/2013/02/adf-passing-parameter-from-el.html

    I'm moving 2 parameters to a function of bean. Two of these expressions, El which must be evaluated. Is there anyway to achieve this?

    < amx:iterator value = «...» "" var = 'row'... > ""
    < amx:outputText value = "#{row.id} '"
    < amx:iterator value = "#{row.collectionName}" var =... "insiderow" > "
    < amx:outputText value = "#{pageFlowScope.beanName.functionName (row.id, insiderow.name)} '... >"

    ......


    I tried passing the parameters hardcoded in nomfonction(), but when it has to be el expressions that should be evaluated, it does not work.

    In a previous post, Frank said that this should be possible, but he missed somehow this post later Re: ADF Mobile: exit link text to return the value of a function at the bean.

    Thank you.

    This isn't exactly the way, but more of a workaround.

    Try to change your treebinding in pagedefinition to

    The collection must be added as an attribute. If still does not, if you download a sample application I might give a try.

    Thank you

    Arun

  • hide the parameter in the report bi publisher

    Hi all

    I use obiee 11.1.6.0 and I need to hide the parameters in the report bi publisher. I know that in 10g and 11.1.6.6 we can hide the parameter in the data model. For 11.1.6.0 y at - it another way to hide the setting.

    Thank you

    Virat.

    See this post
    Re: Hide the parameter in bi publisher 11g

    If brand can help pls :)

  • How to understand accounting Flexfields as range parameter in the reports.

    Hello

    Nice day.

    I would ask for advice on how to include accounting flexfields as range parameter in the custom reports.

    Thanks in advance.

    Kind regards
    Diane

    Hi diane.

    You can use the pair or specific Types of set a value for the same thing.

    I would recommend you relative to some standard reports like the GL account analysis report... also check the definition of set valuse seeded GL_SRS_FLEXFIELD... maybe this will help you.

    Please do not hesitate to advise if you have any questions, understand this or using it in your condition.

    Thank you and best regards,
    JD

Maybe you are looking for

  • Need to update the display driver for Equium L20

    Hi all Just upgraded to Windows 7 on my Equium L20, I need to update my video card driver but can't find where do. Any help would be greatly appreciated. Thank you Ryan

  • 8.1 compatibility with HP Pavillion

    I'm trying to figure if my PC HP Pavilion Touchsmart laptop 15 is compatible with Windows 8.1.  I currently have Windows 8.  P/N E0Q10AV.  Thank you!

  • Queries on running Disk Defragmenter

    I put my computer to run at the scheduled time every month Disk Defragmenter, but as I am not the kind of person who normally prevents their pc on all day, I find that the programme rarely works. Recently, I ran a manual defragmentation ' but it took

  • Activate 802.11n - need your contributions

    Good guys need your input I've heard say that if you want to enable connection high speed 802.11n WLAN, you need you WPA2 and AES security settings Is this true?

  • "Cannot display Page" error when you click the Remote Agent

    Hello world! ACS SE 4.0, we have installed and we have added a remote agent running on Windows Server 2003. Recently, we encounter "Cannot display the page" error when we click on the RA under a group of network devices. It's resolved by restarting t