Get the report list in a PL/SQL procedure

Hi to all,
I need to get the list of the personal report of a specified user in a PL/SQL procedure, is this possible?
My procedure should delete not "standard" report of a specified portal user.
Then i must have the list of all user's reports and after do my delete logic.
Jhon Dhon

Jhon -
It sounds to me that what you want to do is have a list that is generated based upon the identification of an individual. You can do this a number of ways, but I think you would want to write a straight query to accomplish this rather than a PL/SQL procedure. A query to accomplish what you're looking to do would look something like this:
SELECT
person_name,
person_id_number,
other info you need to see in the output
FROM
table_name (that contains the info you need to see)
WHERE
conditional clauses to obtain only data you wish to see
AND :p_person_id = table_name.person_id_number
The AND clause line will return the employee the user wishes to see based upon that person's ID number. This information is asked for in a parameter form before the report is run. The :p_person_id is referred to as a bind variable. You can read more about this on Metalink or OTN.
HTH,
Steve

Similar Messages

  • How to start a report on the reports server from a pl/sql procedure

    I would like to start or queue a report on the reports server / cartridge from within a serverside pl/sql procedure along with passing report parameters.
    Can I use the package utl_http and if yes, how?
    null

    Hi,
    Before this you have to prepare your internal table with tab delimeter structure with data.
    data: wa_appl_title like line of appl_title.
           concatenate fhdr '/file_details_'
                        sy-datum '_' sy-uzeit '.txt' into fhdr.
    *MOD01 - start.
           open dataset fhdr for output in text mode." ENCODING DEFAULT.
            open dataset fhdr for output in text mode ENCODING DEFAULT.
    *MOD01 - end.
            if sy-subrc = 0.
              clear wa_appl_title.
              read table appl_title into wa_appl_title index 1.
              if sy-subrc = 0.
                transfer wa_appl_title to fhdr.
              endif.
              loop at appl_it.
                transfer appl_it to fhdr.
              endloop.
              close dataset fhdr.
              write: / text-t05.
            else.
              write: /  text-t04.
            endif.
    After this you view in AL11 tranx.
    let us know any thing else you need.
    Thanks,
    Deepak.

  • How to get the OUT value of a PL/SQL procedure?

    that is to say, I want to get a number form a procedure which code is familiar to:
    create or replace procedure get_salary(
    name in varchar2,
    id in varchar2,
    salary out number
    In java code, How to get the value of salary?
    PLZ

    You'll want something like this:
    CallableStatement stmt;
    Connection        conn;
    << Create connection to database >>
    stmt = conn.prepareCall( "{call get_salary( ?, ?, ? )}" );
    stmt.setString( 1, someName );
    stmt.setString( 2, someID   );
    stmt.registerOutParameter( 3, java.sql.Types.INTEGER );
    stmt.executeUpdate();
    int outSalary = stmt.getInt( 3 );Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Get the returned OUT value from Pl/Sql Procedure in AppMod

    Hi,
    I am using jdeveloper 10.
    In the database i have a procedure like this :
    procedure test (v1 in out number,
    v2 in number);
    And am calling this procedure from application module in this way :
    Object[] procArgs = new Object[]{v_1,
    v_2
    try {  
    callStoredProcedure("test (?,?)",procArgs);
    I want to read the value of the v1 parameter after procedure is executed. Can anyone tell me how can i do it from application module ?
    Thanks in advance,

    After the call of the proc the value should be in procArgs[0]
    Timo

  • Divide a string in order to get the distinct list level.

    Hi,
    I want to divide a string in order to get the distinct list level to relate this with a category table.
    The size of my list is dynamic and because of this I’m unable to find a way to do this!
    Here goes an example of what I need to do:
    Consider the following list:
    Category                Category_ID
    Age                     1
    Less than 3 months      1.1
    Less than 9 months      1.2
    Less than 1 year        1.3
    Risk                    2
    Danger                  2.1
    High                    2.1.1
    medium                  2.1.2
    low                     2.1.3
    If I have a row that has category_id "2.1.3" I want to present values as:
    "Risk.Danger.Low"
    If I have a row that has category_id "1.1" I want to present values as:
    "Age.Less than 3 months"Any hint on what I should search in order to accomplish this?
    This will be used to produce a report. This report will contain a few thousand rows and the categories will be around 100.
    Thanks,
    Ricardo

    Hello
    I think this is a job for sys_connect_by_path....
    with p as
    (   select 'Age'             descr  ,'1' cat from dual union all
       select 'Less than 3 months'      ,'1.1' cat from dual UNION ALL
       select 'Less than 9 months'      ,'1.2' cat from dual union all
       select 'Less than 1 year'        ,'1.3' cat from dual union all
       select 'Risk'                    ,'2' cat from dual union all
       select 'Danger'                  ,'2.1' cat from dual union all
       select 'High'                    ,'2.1.1' cat from dual union all
       select 'medium'                  ,'2.1.2' cat from dual union all
       select 'low'                     ,'2.1.3' cat from dual
    SELECT
        cat,
        LTRIM(SYS_CONNECT_BY_PATH(descr,'.'),'.') route
    FROM
            SELECT
                descr,
                cat,
                SUBSTR(cat,1,INSTR(cat,'.',-1)-1) parent
            FROM
                p
    START WITH
        parent IS NULL
    CONNECT BY
        PRIOR cat = parent
    SQL> with p as
      2  (   select 'Age'             descr  ,'1' cat from dual union all
      3     select 'Less than 3 months'      ,'1.1' cat from dual UNION ALL
      4     select 'Less than 9 months'      ,'1.2' cat from dual union all
      5     select 'Less than 1 year'        ,'1.3' cat from dual union all
      6     select 'Risk'                    ,'2' cat from dual union all
      7     select 'Danger'                  ,'2.1' cat from dual union all
      8     select 'High'                    ,'2.1.1' cat from dual union all
      9     select 'medium'                  ,'2.1.2' cat from dual union all
    10     select 'low'                     ,'2.1.3' cat from dual
    11  )
    12  SELECT
    13      cat,
    14      LTRIM(SYS_CONNECT_BY_PATH(descr,'.'),'.') route
    15  FROM
    16      (
    17          SELECT
    18              descr,
    19              cat,
    20              SUBSTR(cat,1,INSTR(cat,'.',-1)-1) parent
    21          FROM
    22              p
    23      )
    24  START WITH
    25      parent IS NULL
    26  CONNECT BY
    27      PRIOR cat = parent
    28  /
    CAT   ROUTE
    1     Age
    1.1   Age.Less than 3 months
    1.2   Age.Less than 9 months
    1.3   Age.Less than 1 year
    2     Risk
    2.1   Risk.Danger
    2.1.1 Risk.Danger.High
    2.1.2 Risk.Danger.medium
    2.1.3 Risk.Danger.lowHTH
    David
    Edited by: Bravid on Sep 2, 2011 2:50 PM

  • Error in getting the report from web

    HI,
    HERE I AM TRYING TO CREATE A REPORT FROM FORMS WHICH I WANT TO WEBENABLED.
    I COULD GO TILL I CAN SEE MY FORM WHERE I GIVE AS THE PARAMETERS AS 'HS' OR 'SC' OR 'YS' THROUGH THE LIST OF VALUES OR THE USER CAN JUST ENTER IF THEY KNOW THE VALUE WHICH THEY ARE LOOKING FOR.
    HERE WHEN I CLICK ON THE BUTTON TO GET THE REPORT ITS GIVING AN ERROR CALLED FRM-41219 CANNOT FIND THE REPORT: INVALID ID.
    I DONT UNDERSTAND WHERE I AM DOING WRONG THE REPORT IS ON THE SERVER ALSO.
    HERE IS THE CODE IN WHEN-BUTTON-PRESSED TRIGGER TO GET THE REPORT.
    declare
    v_rep varchar2(100);
    repid report_object;
    v_param varchar2(1024);
    begin
    repid:=find_report_object('WAT');
    v_param:='paramform=no P_STATUS='||:NBT.STATUS||'';
    set_report_object_property(repid,report_other,v_param);
    set_report_object_property(repid,report_destype,file);
    set_report_object_property(repid,report_desname,'E:\ORANT\WEBTEMP\TEST'||:NBT.STATUS ||'.pdf');
    v_rep:=run_report_object(repid);
    web.show_document('http://PS/WEBTEMP/TEST'||:NBT.STATUS||'.pdf','_blank');
    end;
    HERE 'WAT' IS THE REPORT NAME AND P_STATUS IS THE PARAMETER I AM PASSING FROM THE REPORT,
    :NBT.STATUS IS THE PARAMETER WHERE I GIVE IN THE FORM SUCH AS 'CS' OR 'YS' ETC..
    I CAN SEE THE FORM BUT AFTER I GIVE THE PARAMETER AND CLICK ON THE BUTTON TO GET THE REPORT I AM GETTING THE ERROR.
    PLEASE DO HELP ME OUT.
    THANKS A LOT IN ADVANCE....

    Hello,
    In
    repid:=find_report_object('WAT');
    WAT should be the report object seen in the forms object navigator and not actully the report rdf name.
    This message FRM-41219 essentially means that the report cannot be found. Specifying the correct name of a report object found in the forms object navigator (not the
    actual name of the rdf file) usually resolves the problem.
    Please ensure to be on the latest patch of your version ( can get from oracle metalink site) of developer to consume any fixes in this area
    Thanks
    The Oracle Reports Team

  • How to get the users list that can Add/Remove or modify Vendors in Oracle?

    How to get the users list that can Add/Remove or modify Vendors in Oracle?
    I need to generate a report like name and responsibility. Thanks

    That query gives the Supplier information.
    But what i would be needing is to find out the USERS in oracle who can Add/Modify or Remove Vendors.
    I assume it should be based on the Responsibility.

  • Adding new row to the reports list page

    How can I add a new report row in the reports list of the reports tab.
    Ex: a new row to the report "users by Date of Join report" is to be added
    How can we add Please help me out in this

    I am facing the same problem!
    camickr wrote:
    Try adding an empty row containing a null value for the String instead of the empty String.camickr, it will not help, the DefaultRowSorter in the "*+compare(int model1, int model2)+*" method return -1 if the first value is null and 1 if the sacond value is null. and incase of DESCENDING it mult by -1.
                    // Treat nulls as < then non-null
                    if (v1 == null) {
                        if (v2 == null) {
                            result = 0;
                        } else {
                            result = -1;
                    } else if (v2 == null) {
                        result = 1;
                    } else {
                        result = sortComparators[counter].compare(v1, v2);
                    if (sortOrder == SortOrder.DESCENDING) {
                        result *= -1;
                    }And this is the real problem!
    The empty line is sorted as the smallest value and incase of DESCENDING it will be the first line (because of the mult by -1).
    We could have overide it and incase of the empty row(usualy the last row) do not mult by -1 in DESCENDING mode.
    But the problem is that the "+*compare*+" method and it's caller "*+Row+*" inner class are private :-(
    It is not wise to do it but we can do like kmp83 wrote:
    kmp83  wrote:
    copy/duplicate "private" code from DefaultRowSorter into my extended class.Anyone have another suggestion?

  • PAYABLES NOT GETTING THE REPORT OUTPUT IN PDF AFTER APPLYING RUP5 R12

    Hi All,
    RDBMS:10.2.0.3.0
    Oracle Apps :12.0.4
    OS:AIX 5.3
    Problem Description:
    We are presently facing an issue in Payables not getting the report output in PDF esp for the reports "Invoice Register", Invoice Hold Report and also other reports. We were able to generate the reports till our last test performed on last Thursday. This instance was cloned over the last weekend and probably the new upgrade to RUP5 R12,would have impacted it.
    Concurrent Programs submitted are completed normal but on clicking "view output" results in Blank PDF output.
    The error message what was shown is as below:
    "Adobe Reader could not open 'AcrC.tmp' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded)".
    Where could we locate ther above 'AcrC.tmp' of Adobe Reader..
    could anyone please share such an experience encountered for resolution..
    Would appreciate an early response..
    Thanks for your time!
    Regards,

    I suggest you speak to your DBA/sysadmin. This is not likely to be a reports problem.
    Check that you can see the output from apps through the viewer (the report may not hav output anything)
    Check whether you can print anything on that printer from apps.
    May also be worth checking to see if you can print to another printer from this report.

  • How to get the report summary to the bottom of the page?

    Hi all. Does anyone know how can I get the report summary to
    stick to the bottom of the page, like the page footer? Basically, I
    have a report that displays line items on an order. At the end of
    the report, there is a signatory section or acknowledgment. If I
    stick this in the page footer, then it displays at the bottom of
    the page, but on every page. If I put it on the report footer, than
    it follows immediately after the details, and not at the bottom of
    the page. What I need is the report footer to be at the bottom of
    the last page.
    Any ideas?

    Greetings. Thanks for the post. I am not having problems with
    a page number. I am having problems with getting the report footer
    contents to be at the bottom of the last page. The closest solution
    I have found is to put the content in the page footer, and then
    hide the page footer until the last page. However, this leaves
    whitespace on all of the other pages, which isn't ideal. I really
    need an attribute that allows me to set the report footer to print
    at the bottom of the page, like the page footer.

  • How to get the Reports of Change Tracking Table in MDM?

    Hi!
    Please tell me how to get the reports of Change Tracking Table in MDM which is a System table, directly from MDM without using any interface.
    Thanks in advance for the reply.
    With Best Regards
    Devendra Pandey

    Hi Devendra,
    MDM can track changes on tables and fields. <u>The level of change tracking, and which tables/fields to track, are configurable in the MDM Console</u>. MDM opens a new database on the same database engine as the MDM repository and writes all change records to this database.
    For information of various steps you can visit
    <a href="http://help.sap.com/saphelp_mdm550/helpdata/en/45/c7b20339ee570ae10000000a114a6b/content.htm">this URL</a>
    Regards,
    Krutarth

  • When bookmarking a page, I can't get the complete list of bookmark folders to dropdown in order to select any folder in which to bookmark page. What do you set to get whole list of folders in Bookmarks to drop down?

    When bookmarking a page, I can't get the complete list of bookmark folders to drop down in order to select any folder in which to bookmark page. The 'Folder:' bar has 'Bookmarks Menu' showing. The arrow on the bar drops down 5 recent folders to which pages have been saved, but the pop down arrow to the right of the bar just opens to show the three categories and 'New Folder' button. What do you set to get whole list of folders in Bookmarks to drop down?

    To all, embarrassingly enough, I have discovered that I didn't know how to expand the three categories including 'Bookmarks Menu' in the 'Bookmark This Page' pop up interface. It was expanded by default on the initial Firefox opening and first page bookmark attempt. Next use it only showed categories. I clicked and double clicked the 'Bookmarks Menu' line, but failed to see the small, shaded triangle used to expand/collapse list. If it appears collapsed, just tap triangle at left of line to see all folders. It seems to open the same way after I do it for first time. Sorry for the inconvenience, and thanks for all the attempts to help.

  • How can I get the key list in ......

    The code such as UIManager.getColor("Table.selectionForeground") can get the default color of swing components,however,how I can get the key list on a swing component?
    Thanks a lot!

    Hello,
    you can get whole list withjava.util.Enumeration keys = UIManager.getDefaults().keys();
         java.util.Enumeration values = UIManager.getDefaults().elements();
         while (keys.hasMoreElements()){
              System.out.println("Key: "+keys.nextElement());
              System.out.println("Value: "+values.nextElement()+"\n");
         }search for special components.
    regards,
    Tim

  • HT204053 How can I get the contacts list on my iPhone to appear in my iPad Air

    How can I get the contact list on my iPhone to appear in my iPad Air?

    Welcome to the Apple Community.
    Please try the following…
    First check that all your settings are correct, that contact syncing is checked on all devices (system preferences > iCloud on a mac and settings > iCloud on a iPhone, iPad or iPod).
    Make sure the contacts you are adding are added to your 'iCloud' group and not an 'On My Mac', 'On My Phone' or other non iCloud group (you can do this by checking in groups), non iCloud contacts will not sync.
    If you are sure that everything is set up correctly and your contacts are in the iCloud group, you might try unchecking contact syncing in the iCloud settings, restarting your device and then re-enabling contact syncing.

  • Get the file list of a given directory

    does anyone know how to get the file list of a given directory? I tried "list"/"filelist" but the class not found.
    THanks!

    What made you assume that there exist classes called list or filelist etc.
    Do you read API documentation etc ?
    Anyways, here is a hint java.io.File.listFiles()

Maybe you are looking for