2.1 EA1 User Defined Report problem

Hi, I copiied Search Code item to User Defined Report and edited SQL (added union):
select
owner "Owner",
name "PL/SQL Object Name",
type "Type",
line "Line",
text "Text",
owner sdev_link_owner,
name sdev_link_name,
type sdev_link_type,
line sdev_link_line
from (select owner,
name,
type,
line,
text
from sys.all_source
where
(:OBJECT_NAME is null or
instr(upper(name),upper(:OBJECT_NAME)) > 0)
and (:TEXT_STRING is null or
instr(upper(text),upper(:TEXT_STRING)) > 0)
and name not like 'BIN$%'
--order by owner, name, type, line
union
select owner,
name,
type,
line,
text
from dba_source
where
(:OBJECT_NAME is null or
instr(upper(name),upper(:OBJECT_NAME)) > 0)
and (:TEXT_STRING is null or
instr(upper(text),upper(:TEXT_STRING)) > 0)
and name not like 'BIN$%')
order by owner, name, type, line
But I have problem - in result window, popup menu Go To <i.e.> MY_PACKAGE... doesn't work - no errors, simply nothing action. Original item works fine.
Where is the problem?
Petr

Your union code seems fine but there is already a go to bug report logged.
Already logged:
Bug 9196402 - GO TO TYPE NAME NOT WORK IN PLSQL REPORT
-Turloch

Similar Messages

  • 2.1.1 Problem with User Defined Reports with actions on the context menu

    I use the User Defined Reports quite a lot, and export and publish these to other members of the team as Shared Reports. I'm also quite disappointed that there seems to be no further development in this area of SQL Developer.
    One of the totally undocumented features of User Defined Reports is the ability to attach actions to a context menu, and pass data from the grid to a procedure, for example. Copying, then exporting the sessions report (from All Reports -> Data Dictionary Reports -> Database Administration -> Sessions) exposes the XML for adding actions to the context menu. The snippet for killing a session looks like this:
    <item  reload="true"  reloadparent="false" removeFromParent="false">
      <title>Kill Session</title>
      <prompt type="confirm" >     
        <label>Kill Session?</label>     
        <default><![CDATA[]]></default>     
        <value><![CDATA[]]></value>        
      </prompt>
      <sql><![CDATA[ALTER SYSTEM KILL SESSION '#SID#, #SERIAL#' IMMEDIATE]]></sql>
      <help>Kill the selected session.</help>
    </item>So to add this type of functionality to your own user defined reports, you need to export the report, edit the XML, and import it again. It seems to work fine to add this to the master reports, but if you add an <item> element to the child reports, the context menu items appear on the master report too, and they are duplicated many times. I'm not sure if the action of exporting the report adds to the number of times the context menu appears.
    Warning - if you edit a report using SQL Developer, all the <item> tags are removed. Once you've added actions to a context menu, you can only edit the report by exporting it, modifying the XML and importing it again.
    Has anyone else seen this behavior? Have you found a work-around?
    To the SQL Developer team: Are there any plans to allow the adding of user defined context menu items to reports using the GUI in the near future?

    You're right the context menu needs a GUI desperately. You can request this at the SQL Developer Exchange, so other users can vote and add weight for possible future implementation.
    Regards,
    K.

  • Problem Editing User Defined Report - 1.1.0.22.71

    When I rt click on an existing user-defined report on the Reports tab and select edit, change the default value on a bind variable and click Apply, I get message "Name already used please enter new one" message and changes will not save. Am I missing something here or is this a bug?

    I expected that if I basically did a "save as" the issue could be avoided. But I wanted to be sure that if I'm maintinanig a set of shared reports I can edit an existing report without having to jump through a hoop or two. Is this issue being addressed?
    Thanks

  • Problem in User defined reports

    Hi!!
    I'm trying to generate an user defined report using following querry
    select
    Decode(:x,1,'ONE',
    2,'TWO',
    3,'Three',
    4,'Four',
    5,'Five',
    6,'Six',
    7,'Seven',
    8,'Eight',
    9,'Nine')
    from Dual;
    But its not working. I'm getting an error message stating
    "Mising IN or OUT parameter at Index:1"
    Vendor code 17041
    plz help

    I don't think user defined reports supports bind variables yet.

  • Minor problem creating user defined reports

    Hi:
    I noticed that when you create a new user defined report or folder
    -> right click on User Defined Rpeports and choose 'Add Folder' or 'Add Report'
    the cursor focus is on the *Name field, but if you type nothing happens.
    Then you click on another field (i.e.: Description, Tooltip...) and what you typed in *Name appears in the field you selected. This is not correct.
    I see this on the Linux version.
    Does the same happen on other operating systems?
    Thanks,
    Andrea

    Thank you.
    I am running Fedora FC4 with Sun JDK-1.5.0_06
    Anyone else notices the same behaviour?
    Happy new year everyone,
    Andrea

  • 1.5.5 Cannot add user defined report to folder

    Hello,
    the context menu on folders in user defined report show only two options: copy and export. No way to add new folders or reports. I migrated my settings from 1.5.1.
    Though I can add a new folder directly at the root of user defined reports. But then SQL Developer won't restart (using 100% of my dual core until I kill the process).
    Running WIN XP JDK 1.6.10
    Regards
    Marcus

    Hello Sue,
    I already tried the current production version 2.1.0.63.73 and the problem is still there.
    In addition I did yet another test without migrating the old reports, connections etc. by renaming the appropriate folder in C:\Documents and Settings\michael\Application Data.
    Afterwards I imported my own reports.
    However there was no chance to move or delete any sub folders containing my reports. I only could copy or export sub folders or delete single reports.
    And after restarting sqldev the same behavior occurred on the new folders just created: Only export and copy are available accessing the context menu.
    Any suggestions? Do I have to re-create every single report?
    Regards,
    Peter
    Edited by: petmichael on Jan 15, 2010 12:27 PM
    Today I found out that changing the language settings for sqldev to English by adding the appropriate settings in sqldeveloper.conf located in \...\sqldeveloper-2.1.0.63.73\sqldeveloper\bin (mentioned below) does solve the problem.
    AddVMOption -Duser.language=en
    AddVMOption -Duser.country=US
    AddVMOption -Duser.region=US
    AddVMOption -Dfile.encoding=GBK
    By deleting these additional settings the error is reproducible.
    In addition with the English language settings the "Tip of the Day" appears running version 2.1.0.63.73 first time and it doesn't work that way without the additional settings mentioned above.
    Hth everybody running in that feature!

  • 4.1EA2 User-Defined-Report strips CRLF when using PL/SQL DBMS Output

    Hi,
    I have a report with a child report.
    That child report uses pl/sql to print to the screen. (dbms output)
    When i use the procedure manually it prints fine.
    When i copy this output to a text editor i can see the CRLF in there.
    If i call the same procedure tru the reports section of SQLDeveloper the output is stripped of any CRLF characters.
    This is causing it to be useless for me: i am using it to generate code and it all appears as one big line on the screen.
    Copying this to a text editor indeed shows all CRLFs gone.
    Is this intentional or a bug ?

    Jeff,
    Thnx for the answer.
    I don't have a problem writing html in my code being a former webdeveloper with experience in apex as well.
    The problem is that the option presents itself as a standard plsql dbmsoutput, which suggests identical output as a dbmsoutput pane in sqldeveloper.
    From your answer i gather it really is supposed to do html formatting.
    Your "solution" of inserting br tags would be fine if it weren't for the fact that when i do a copy of the output in this report pane sqldeveloper strips away the br tags but doesn't replace them with crlf's.
    And since the crlfs that were in the output are also stripped in this result pane i get a single line of text when i copy over a page of text from the result pane into a normal texteditor.
    As such it behaves differently then say a browser when i copy a page of text from the browser and paste it in a text editor. There i see the crlfs that were present in the original source.
    Is there a listing somewhere that explains what tags are supported?
    Or CSS ?
    Does it support stuff like white-space: pre ?
    I understand the usefullness of a html-aware plsql dbmsoutput output option in the reports list of a user-defined report.
    However i would like to use this opportunity to advocate to include , as an extra option or tick box etc., an option to just display the output as the normal dbmsoutput pane displays it.
    That is without extra formatting.
    I like the idea of being able to click in the table section above and to have bottom pane generate the appropriate code as output.
    That  use-case can not happen right now since it formats as html (and not even the correct way) or, when going along with this route, strips everything to a single line of text when copying the data from the result pane.
    rgrds mike

  • Cannot create user defined report

    Guys,
    For an unknown reason, I'm unable to create new reports in some subfolder inside the "User defined report". When I rigth-click on the subfolder, the contextual menu contains only "Copy" and "Paste". But If I'm going to the root folder (User defined report), I'm able to create a new subfolder and new report. I'm even able to create an new report in the subfolder.
    Did you already encounter the same issue and how did you solve it ?
    Thanks

    I vaguely remember someone having issues with user defined report operations, the problem there was solved by changing the user language to English by adding
    AddVMOption -Duser.language=ENto the sqldeveloper.conf file normally located in
    SQLDEVELOPER_INSTALL_DIR/sqldeveloper/binIf you are not already running in English try changing this.

  • User defined report with bind variable

    How can I create an user defined report using a bind variable?

    We currently do not support bind variables in User Defined Reports. We are looking at adding that function before production but I can't promise.
    -- Sharon

  • Error creating a user defined report in the grid control

    I am trying to create a simple User Defined report in the Grid OEM
    Under the 'Elements' tab I have a 'Type' - 'Database Table from SQL'
    And I have this 'Statement' - SELECT * FROM SYS.DBA_USERS
    When I Click the 'Preview' button I get this error.
    Error rendering element. Exception: ORA-00942: table or view does not exist
    I'm logged on as SYSTEM.
    Isn't the SYS.DBA_USERS table accessible by SYSTEM?
    Any advice on what I'm doing wrong/
    Edited by: bfee_sdc on Oct 19, 2010 9:12 AM

    What are the tricks?
    It has to be some what supported since I found this somewhere in an Oracle note...
    How to create custom reports on tables other than mgmt* views.
    To create reports on other tables, grant permissions to MGMT_VIEW user as MGMT_VIEW is responsible for creating reports in grid control
    SQL> GRANT SELECT on SYSMAN.<table_name> to MGMT_VIEW;
    And then create the reports in the reporting framework referencing SYSMAN.<table_name> in the query.
    I tried GRANT SELECT on SYS.DBA_USERS to MGNT_VIEW but this did not work.

  • Columns tab in User Defined Report

    I've written a few user defined reports, but so far I've just filled in the SELECT command. I'm looking at the tab labeled "Columns" and trying to understand how that affects the report formatting.
    Am I right in assuming that this is equivalent to the COLUMN command in SQL*Plus? So "Name" maps to the column name in the SELECT, right? "hAlign" and "vAlign" are pretty self explanatory, and valid values for these are listed in the on-line help. But what about "Format"? What are valid values for this field? Do I use the format values from SQL*Plus, like "A30" for a 30 character wide column?
    Finally, is there a way to specify that a column is not to be displayed? I have a primary key that I don't want to display, but I do need to include in the SELECT, because the report has a Child query that needs to use this as a bind variable for a foreign key.

    <p>
    I've found part of the answer to my own question:
    </p>
    <p>
    Formats for the "format" field in the Columns tab are the formats used in the java.text.MessageFormat class. For example, you can use:
    </p>
    {0,date,yyyyMMdd hh:mm:ss}<p>
    The zero means the first argument; it will always be zero because we are only formatting one column. The second part tells what kind of formats to use, date or number. There is also a "choice" format type, which is related to number - works sort of like the DECODE function. The third part is the format itself, which can be one of several default formats like "currency", "percent" and "integer" for numbers, or "short", "medium", "long" or "full" for dates. I used an explicit format.
    </p>
    <p>
    I still don't have an answer to the second part of my question: How do I include a column in my query to be used as a bind variable in a child query, but exclude it from the report?
    </p>

  • Not able to edit user defined reports

    Hi,
    I've run into an issue recently with user defined reports. After some time, I'm not able to edit them. This only happens on some of them. Is there a way to work around this?
    Thanks.

    Hi,
    The platform is Windows XP Pro (32 bit) sp3, sql developer 1.5.5 (although I've seen this happen on earlier versions as well). After some time, some reports become un-editable. If I right click on the report and click edit, nothing happens. I've also tried exporting and re-importing the reports, but that doesn't seem to help.
    Also, I open it up via sqldeveloper.exe, but no console window come up.

  • Using bind variables in user defined reports

    How do I go about using a bind variable in a user defined report?
    Here's a trivial example in SQL*Plus:
    var ublocksize number
    begin
    select value into :ublocksize
    from v$parameter
    where name = 'db_block_size';
    end;
    select :ublocksize from dual;
    This code does not work in raptor.
    The error displayed is:
    Missing IN or OUT parameter at index:: 1
    Vendor code 17041
    any ideas?

    You also have a second issue of supporting the following syntax in SQL scripts:
    var ublocksize number
    begin
    select value into :ublocksize
    from v$parameter
    where name = 'db_block_size';
    end;
    We are itterating to support all SQL plus commands
    Mike

  • SQL field (not large enough) - Create Report Dialog - User Defined Reports

    When creating a user defined report it would be good to have the sql field the query is entered into bigger. The tiny size is awkward for large queries.

    When you increase the window size, we increase horizontally but not vertically. I will log an enhancement request to see if we can get it longer.
    -- Sharon

  • [3.0.04] Delete user defined report folder

    Hello Forum,
    a few days ago, I got a new computer and exported my user defined reports from the old installation. After importing these into the new installation, all reports were put into an additional subfolder. Since I'm using german localization, the reports were put into "Benutzerdefinierte Berichte/Benutzerdefinierte Berichte". I could move them one folder up by cut and paste, but now I would like to delete the empty subfolder, but I don't have any menu options to do so.
    Is there any way to get rid of that subfolder?
    Many thanks in advance,
    dhalek

    Hi Binom,
    Correct. In fact similar behavior reported in earlier posts such as...
    Bug 2.1: Report folders are read only
    1.5.5 Cannot add user defined report to folder
    ...resulted in the logging of an internal bug:
    Bug 9231534 - FORUM:USER DEFINED REPORT FOLDER MISSING ACTIONS IN NON ENGLISH LOCALES
    I updated it with a reference to this forum thread in order to give it a bump.
    Thanks,
    Gary Graham
    SQL Developer Team
    Edited by: gggraham on Aug 1, 2011 1:30 PM

Maybe you are looking for

  • How do I tell iphoto NOT to load ALL images from camea and iphone, only new images?

    I've bee using my MacBook Pro, iphoto and Nikon for many years. I travel alot and take many pictures, and like to keep them on the memory cards as an extra backup. All was going great on a recent trip, until one day, suddenly, when I plug camera into

  • Error when creating transport request for transfer rules

    Hi When we are creating the transport request it is giving the Warning 1."source system are not transported.      Error  2." you can't use request BQAK900164      Error  3."object ISTS Zevkkn_bb could not be saved                 to order BQAK900164.

  • Swinging/Rotating an object in AE 5.5

    Hi all, I have a question about something that I am trying to achieve in AE5,5. I have a clip that I would like to 'rotate' into the frame and was wondering how I could do this. If I might explain: If you can imagine the action of a clapperboard, you

  • Does anyone have an issue when listening through the earpiece you get a vibration?

    Experiencing a small issue with the iPhone 4s, when making a phone call and listening through the phones earpiece I get a vibration like something is loose through the earpiece, I've had iPhone 3G, iPhone 4 but never experienced this before.

  • Do I use the iphone apps for itouch?

    I don't see a listing for the itouch in the apps store. Should I use the iphone apps? I have a 4th generation itouch. This has been VERY confusing any help would be greatly appreciated!!!