How to add a list of parameters in the request for a report

I need to change the code of a trigger when key pressed in order to call a report from a form by passing a parameter, but I have some problems.
This is the part of the code I'm interested (I put a < < < < < < < < on the lines concerned):

DECLARE

v_repid REPORT_OBJECT;
v_rep VARCHAR2 (100);
v_rep_status VARCHAR2 (100);
-v_param VARCHAR2 (200): = NULL;
-v_valor VARCHAR2 (200);
v_url VARCHAR2 (2000);
v_repserver varchar2 (20): = "myserver";
-v_PARAMETER varchar2 (100): = ";
v_parameter_list ParamList; -< < < < < < < <

BEGIN

: global.p_id_attivita: = 23728; -< < < < < < < <

Add_Parameter (v_parameter_list, 'P_ID_ATTIVITA', TEXT_PARAMETER,: global.p_id_attivita); - < < < < < < < <

v_repid: = FIND_REPORT_OBJECT ('MYREPORT'); -report is a report of object navigator item
SET_REPORT_OBJECT_PROPERTY (v_repid, REPORT_EXECUTION_MODE, LOT);
SET_REPORT_OBJECT_PROPERTY (v_repid, REPORT_COMM_MODE, SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY (v_repid, REPORT_DESTYPE, cache);
SET_REPORT_OBJECT_PROPERTY (v_repid, REPORT_DESFORMAT, "SPREADSHEET");
SET_REPORT_OBJECT_PROPERTY (v_repid, REPORT_SERVER, v_repserver);

v_rep: = RUN_REPORT_OBJECT (v_repid, v_parameter_list); -< < < < < < < <

v_rep_status: = REPORT_OBJECT_STATUS (v_rep);
While v_rep_status IN THE LOOP ("CURRENT", "OPENING_REPORT", "PENDING")
v_rep_status: = REPORT_OBJECT_STATUS (v_rep);
END LOOP;
IF v_rep_status = "FINISHED" THEN
WEB. SHOW_DOCUMENT(v_url||) e/Reports/rwservlet/getjobid ' | SUBSTR (v_rep, INSTR (v_rep, '_',-1) + 1) |'? ' |' server =' | v_repserver, "_blank");
END IF;

END;

When I try to call the report by pushing the button that the trigger is connected, I get the following message:

FRM-47009: failed to add the P_ID_ATTIVITA parameter to the parameter list: Invalid list ID.

I remind you that without settings, this code works.

Thank you!

To add a parameter, you must create the parameter list. Like this

DECLARE

v_repid REPORT_OBJECT;
v_rep VARCHAR2(100);
v_rep_status VARCHAR2(100);
--v_param VARCHAR2(200) := NULL;
--v_valor VARCHAR2(200);
v_url VARCHAR2(2000);
v_repserver varchar2(20) := 'myserver';
--v_PARAMETER varchar2(100) := '';
v_parameter_list ParamList; --<<<<<<<<

BEGIN

:global.p_id_attivita := 23728; --<<<<<<<<

v_parameter_list := Create_Parameter_List('tmpdata'); --------i added
Add_Parameter(v_parameter_list, 'PARAMFORM', TEXT_PARAMETER, 'NO');  --------i added
Add_Parameter(v_parameter_list, 'P_ID_ATTIVITA', TEXT_PARAMETER, :global.p_id_attivita);--<<<<<<<<

v_repid := FIND_REPORT_OBJECT('MYREPORT'); -- report is an element from object navigator report
SET_REPORT_OBJECT_PROPERTY(v_repid, REPORT_EXECUTION_MODE, BATCH);
SET_REPORT_OBJECT_PROPERTY(v_repid, REPORT_COMM_MODE, SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(v_repid, REPORT_DESTYPE, cache);
SET_REPORT_OBJECT_PROPERTY(v_repid, REPORT_DESFORMAT, 'SPREADSHEET' );
SET_REPORT_OBJECT_PROPERTY(v_repid, REPORT_SERVER, v_repserver);

v_rep := RUN_REPORT_OBJECT(v_repid,v_parameter_list); --<<<<<<<<

v_rep_status := REPORT_OBJECT_STATUS(v_rep);
WHILE v_rep_status IN ('RUNNING','OPENING_REPORT','ENQUEUED') LOOP
v_rep_status := REPORT_OBJECT_STATUS(v_rep);
END LOOP;
IF v_rep_status = 'FINISHED' THEN
WEB.SHOW_DOCUMENT(v_url||'/reports/rwservlet/getjobid'||SUBSTR(v_rep, INSTR(v_rep,'_', -1)+1)||'?'||'server='||v_repserver, '_blank');
END IF;
DESTROY_PARAMETER_LIST(v_parameter_list); --- i added
END;

Try

I hope this works.

Hamid

Tags: Oracle Development

Similar Questions

  • How to create a list of permissions in the wizard for registration of components?

    Dear friends,

    Hello. I have just finished developing my first PeopleSoft application in the Application Designer and try to save the component using the registration wizard. I have 2 questions:

    When to use select button to select an allow list, first of all, there is no list of permission to select from my computer. So creating a list of permissions in the registration wizard?

    Secondly, in content reference window, click the "select" button to select the name of the portal and the name of the folder. Then click on the button "Open Selected", it is supposed to launch a browser that takes the administration page to create a new folder if necessary. But in my computer, the browser is a message: "page cannot display." What is going on?

    Friends can help answer these 2 questions? Thank you.



    Lucy

    Lucy,

    You cannot create a list of permissions in the registration wizard, only selection from a list of those that already exist. Note that when you choose the selection... button, there is another selection button in the popup window that acts first as a search button, and assuming that it returns a list of highlight or authorization lists you want to include and use the Select button. You can enter search criteria before using the Select button, or leave it blank to see everything.

    In response to your second question, the selected button open for content references will not work unless you set the URI correctly on the browser under Tools-> Options tab in the App Designer.

    Kind regards
    Bob

  • How to add a component to sprite at the request

    Hello
    In my application, I use a custom component that extends the Sprite class. I add this component to the application as < local: mySprite width = "500" height = "300" / >, but it's to show the following error on the application runs;

    Type coercion failed: cannot convert mySprite@129be5e1 to mx.core.IUIComponent.

    How can I overcome this problem, if suggestions please reply.

    Thank you.

    Anything you add to the display of the application list must implement IUIComponent. Wrap the sprite in a UIComponent or UIMovieClip.

  • How to add lines of text information in the settings?

    Guys,

    I'm trying to customize a few things about Motion 5 and really I was wondering how to add these lines of text in the settings?

    Tried to google it, but without success.

    I think you need to learn how * write * FxPlug effects plugins. You cannot add these labels/buttons on the move as it is. What I usually do, is create a platform > pop up widget and use remove the "Snapshot" texts... "(and usually replace it with a series of quadratins (---) to create a line of separation.) To help you, you must have a 'sex' you can show/hide with opacity (and a rig box) which displays the help text.

  • How to add records to a file via the file adapter.

    Hi all
    How to add records to a file via the file adapter.

    I must read data from the database and need to add all the records in a file.

    Thanks in advance.

    Hello

    I think you have a while loop to hit the DB in your process (as you said you need to extract data from DB 10 times if 1000 rec is here)
    First sopy your DB O/P to a var
    and second time add to previous data. (Otherwise you can directly use Add to start instead of copy and add)
    When the loop ends, you can turn to the file adapter Var.

    Otherwise, you can configure yourFileadapter as it will be aapend current recordings for previous records.

    You can use 'Append = true' in your adapter wsdl file.
    It will add the previous records to existing records in the same file.

    Concerning
    PavanKumar.M

  • How can I move my existing sites to the catalyst for business for subscribers of creative cloud?

    Hello!

    I have three sites that I always welcomed with heart Internet (www.heartinternet.uk). I understand that I can host 5 free sites with catalyst for business with my creative cloud membership. How can I go on this passage?

    Thank you very much

    has answered your thread How can I move my existing sites to the catalyst for business for subscribers of creative cloud?

  • How to connect to the database for all reports EN

    Hello

    I've developed 100 reports in the client of the production, test purpose that I moved
    test client. How can I connect to the database for all reports at once?

    Concerning
    Thaer

    Hi Thaer,

    You can connect to the connection of database for all reports through the workspace of HFM.

    Connect to the HFM area--> click--> Explorer, and click Tools--> click Manager of database and respective connections of Production Instance to the Instance of Test required information and that you will be able to connect to the Test database for all reports both change.

    Kind regards
    Srikanth

  • For a given file, how to add and change file properties on the Details tab, for properties that are not in the properties list?

    Now, I am aware of the modification of the properties of the file is simple in Windows 7 Explorer. Select a file, 'Properties', then tab "Details".  Some are not editable, and that's understandable.  Click on next to any area classified as year, Genre, Publisher, etc. and the apply.  No problems so far.

    Then of course in Explorer, when you right click on a column header, you get several choices of column beyond the usual that is displayed by default; Date, the Type, size, etc.  But, there is an option "More...", which has up to now, MUCH more useful properties to choose from, such as the model project, Department, job statusand so on.

    It's fantastic!

    But when you look into the details of any given file, none of these additional properties even are listed to be edited.  Why offer to view these details, if you don't change them, or add them to different files?  I must be missing something.  I do not need to add my own custom details, this additional list has a choice, that I need; If only I could edit the files to get this info.

    How to add and change these properties to files?  Word, Excel, MP4, AVI, JPG; I would add these properties, so I can set directly in the Solution Explorer, as you would by name or Type.

    Any help would be greatly appreciated!

    My experience is that most of these 'extra fields' no existence not as fields in the directory (folder) itself.  On the contrary, these fields exist in the target file itself. Each file type has its own format and established file except for the types of files that belong to Microsoft, Microsoft cannot control or arbitrarily change the format of a particular file type.

    For example, a ".jpg" file  The format of this file type allows a large number of areas such as comments, Tags, date taken, opening, device manufacturer and so on.  If you go into the properties on a .jpg file, you will see a lot of them and will be able to change.  After changing any of these fields, you will find that the file itself has been changed to contain this information (as can be verified by the parity of the file and to come check upward with a different checksum).  If you display one of these fields in Explorer and 10000 ".jpg" files in this folder, then Explorer must open each of these 10000 files to extract the data in the corresponding fields, you have chosen to display.  May take some time.

    Compare that to the same picture saved to a file ".bmp".  The ".bmp" format has no provisions for any of these fields, so you will not be able to view, save, edit, or sort by them.  If the editable fields are directly related to the type of file that is displayed.

    Microsoft has apparently interviewed a lot of file types and made a compilation of the editable fields in each type of file and the Union of the selected fields in which can be displayed and modified.   That's apparently what you see in the option «More...» ».   So, in summary, the file type determines which fields are available for editing and posting.

    HTH,

    JW

  • How to add a list of users of Blackberry Messenger using Java?

    Hi all

    Do I want to, a Midlet Application to add a list of users to BB Messenger PIN or email. Is it possible using the Blackberry API?

    If this is the case, could you please send me links or any other useful animals...

    or

    Is it possible to send contacts from this using BES BlackBerry BB Messenger?

    Thank you

    There is no API BlackBerry that allow you to add contacts to BlackBerry Messenger.

  • How to add applications to be allowed in the firewall

    I would like to add a few apps allowed through the firewall. How can I do

    In fact, in Vista go to start / Control Panel / Security Center / Windows Firewall / allow a program through Windows Firewall.  Under the tab control Exceptions to see if the program you want to distribute already - if so, just check the box and the program is allowed.  If not in the list, click Add a program and click on the program, if it is in the list, or click Browse to find the program and add it.  Then too will be admitted.  Remember that whenever you make an exception that you open a hole in your firewall, so try to keep it to a minimum and also to remove all exceptions you don't need (that you do not use).

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • How to add music to iTunes without copying the music files

    How to add music to iTunes without music copied to an iTunes Media folder or anywhere else?

    I read the answer is to go into the advanced settings and uncheck "Copy files to iTunes Media when adding to library". Which is excellent and this option is not checked, but iTunes keep copy of the music into an iTunes Media folder...

    Anything ripped CD, converted, downloaded from the iTunes Store or added via the automatically add to iTunes folder will eventually iTunes Media. If you add a folder of files stored outside the media folder and the option is disabled, then iTunes should not be generating copies in the media folder. Can you describe a specific example where you can see the new arrival before and after importation?

    As a backup to one side and the migration of an iTunes library is much easier if all the content is organized inside the iTunes Media folder, but this is no reason not to try and find out why things are not behave correctly for you now.

    TT2

  • How to add or remove programs that launch the connection in 10.11.2 IOS?  Earlier versions contained an element in the preferences allowing programs added or deleted

    How to add or remove programs entering connection IOS 10.11.2 on a MacBook Pro?  Earlier versions contained an element in the preferences allowing programs to be added or removed.

    Users & groups > login items.

  • BB10: How to create multiple lists (one next to the other)

    Hello world

    I need to create a menu similar to the following image:

    In this menu list:

    1. The user could drag vertically and navigate between ELEMENTS (ITEM1, ITEM2, ITEM3,...). In addition, headers of title (like tete2) would remain on the top, I mean, they hide when sliding down.
    2. The user can drag as horizontally. And a new list of ITEMS will be displayed. And the header titles will be moved as well.

    So, in a nutshell, what I need is something like several vertical inside a horizontal list lists.

    Any ideas?

    Thanks in advance.

    Hi guys,.

    I finally understood how do.

    Here's how I did it:

    1. I created several containers, one for each vertical list. The 1st container is visible to the user. The 2nd is hidden just then (right) at the 1st. the 3rd one is hidden just then (right) on the 2nd. And so on.
    2. I used getures to catch any user to slide. Whenever the user calls, either to the left or to the right, I use animations to hide the visible screen and make it visible, the following. You should also block the selection of list items any time you catch the user, cause you don't want the user to swipe and select both Sam.
    3. The headers have been the biggest problem. I created a container of the stack layout page-fromLeftToRight for the headers. This container has a very large "minWidth", and in it I put a label for each header. In order to locate each header in the Middle, no matter how long the text it contains, I used 'LayoutUpdateHandler' Manager for each label. This handler gives the current width of the label you and from there, you can calculate and set the position of the label he.
    4. I used gestures and animations to move headers. Just as I did with the lists.

    The good things is that it works, and it does so very smoothly.

    I know the tabs would be a much easier solution, but my client wanted something more will you allow. Thank you very much for your good help.

    Hope this helps someone.

    Thanks again guys.

  • How to add copyright as a watermark in the form of lots?

    How to add copyright watermark on the images in the form of batches using Photoshop CC 2015?

    Hi RCVasavada

    Please refer to this article Add a Copyright watermark to a batch of Photos | PhotographyBB

    Let us know if this helps

    Concerning

    Assani

  • How to add in DVS ESX hosts with vsphere SDK for perl?

    Hello

    I am a newbie to vsphere SDK for perl. Just started using it for automation of one month back. , I was looking for options to automate the addition of ESXi servers and their physical cards in the distributed virtual switch. I got some details on how to add using powerCLI. However, my requirements are in the use of vsphere SDK for perl. Any help would be appreciated.

    Have we not like subroutines or plug editable in vsphere SDK for perl inorder to add host ESX in DVS. ?
    Thank you and best regards,
    Lebou

    You can certainly do it in Perl.  I don't have a working example, but perhaps that William will be when he catches this thread

    If I have time tomorrow, I'll try to put something together to help you get started, but you can also simply map the logic of LucD script.

    Basically Get - view is equivalent to Vim: get_view() and New-Object calls should be mapped to the type of object in Perl, for example, instead of VMware.Vim.DVSConfigSpec New-Object, we $spec = DVSConfigSpec-> (again).

Maybe you are looking for

  • contacts created in the messages never appear in contacts or iCloud.

    Have had this problem for awhile now...  Has been hoping the new iPhone 7 and macOS Sierra can solve it but not... When I'm in messages (iPhone) and I add a contact, the thread goes to the person... but that never, the contact appears in Contacts.app

  • I get an error message when I try to listen to WMAL

    I own an old Apple TV and I listen to the radio on my Apple TV device.  This is the 2nd time that a station I listen to gave me an error message occurred and I can never listen to this particular radio station.  What can I do?

  • How to check an Application/process running using Labwindows

    Hello How can I check if a process or Application is running or not with CVI? I used to try this in Labview, and to check the application, it is a VI in the Web site of NOR. But I have no idea on the use of CVI for this. And also, how can I check if

  • How to load images with a delay?

    Let's say I have a JSON from an HTTP request. The JSON contains several JPG and text links. For each JPG link and text, I want that they be displayed in a field like that. And here is the code in the field: public ProductField extends Field { String

  • Custom font problem

    Hello world Please help me I want to load customize font "Calibri.TTF", but it is not my work code is given... FontFamily family=null; if (FontManager.getInstance().load("CalibriBold.TTF", "MyFont11", FontManager.APPLICATION_FONT) == FontManager.SUCC