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>

Similar Messages

  • 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.

  • 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

  • SQL Developer user defined reports (appropriate utilization)

    I have used SQL developer on a limited basis but I have never created a user defined report. Can someone compare and contrast the
    types of user defined reports that can be created via SQL developer versus the types of user defined reports that can be created via
    a tool such as Crystal Reports or similar tool.

    Hi user7753875 -
    I agree with reidelme that it won't match the capabilities for fancy organisation/output of tools like Crystal Reports, but you can do interrelated parent/multiple child reports.
    Check out the Reports tab on the SQL Developer Exchange for some examples of what other users have done with this.
    Brian Jeffries
    SQL Developer Team
    Edited by: bjeffrie on Jun 3, 2011 5:01 PM
    Turns out no one has used that in a long time. You will have to do some interpretive cut/past from xml given by web site & report editor in SQL Developer. Here is the "Who" report (master+2 child reports) from the exchange in a format you can use the import function from "User Defined Reports" on.
    <?xml version="1.0" encoding="UTF-8" ?>
    <displays>
    <display id="57507b3a-0130-1000-8008-a9fec67b8254" type="" style="table" enable="true">
         <name><![CDATA[Who]]></name>
         <description><![CDATA[
    A Report to show active seesion and some details about there activities. Includes 2 Child-reports for Active SQL and PID for the process supporting the session.
    ]]></description>
         <tooltip><![CDATA[Who is logged in and what is he doing]]></tooltip>
         <drillclass><![CDATA[null]]></drillclass>
         <CustomValues>
         </CustomValues>
         <query>
              <sql><![CDATA[SELECT sid, serial#, username, status, server, machine, program FROM v$session order by sid]]></sql>
         </query>
         <display id="null" type="Child" style="Table" enable="true">
              <name><![CDATA[ActiveSQL]]></name>
              <description><![CDATA[]]></description>
              <tooltip><![CDATA[]]></tooltip>
              <drillclass><![CDATA[null]]></drillclass>
              <CustomValues>
                   <TYPE>null</TYPE>
              </CustomValues>
              <query>
                   <sql><![CDATA[select c.spid b1, b.osuser c1, b.username c2, b.sid b2, b.serial# b3, a.sql_text,b.status,to_char(b.logon_time, 'DD-MON-YYYY HH24:MI:SS') from v$sqltext a, v$session b, v$process c where a.address = b.sql_address and b.paddr = c.addr and a.hash_value = b.sql_hash_value and b.sid = :SID order by c.spid,a.hash_value,a.piece]]></sql>
                   <binds>
                        <bind id="SID">
                             <prompt><![CDATA[SID]]></prompt>
                             <tooltip><![CDATA[SID]]></tooltip>
                             <value><![CDATA[NULL_VALUE]]></value>
                        </bind>
                   </binds>
              </query>
         </display>
         <display id="null" type="Child" style="Table" enable="true">
              <name><![CDATA[Process]]></name>
              <description><![CDATA[]]></description>
              <tooltip><![CDATA[]]></tooltip>
              <drillclass><![CDATA[null]]></drillclass>
              <CustomValues>
                   <TYPE>null</TYPE>
              </CustomValues>
              <query>
                   <sql><![CDATA[select p.spid,p.addr,s.sid,s.server,p.username,s.osuser,p.program,t.value/1024/1024 PGA_Mb from v$process p,v$session s,v$sesstat t where p.addr=s.paddr and s.sid=t.sid and s.sid = :SID and t.statistic#=20]]></sql>
                   <binds>
                        <bind id="SID">
                             <prompt><![CDATA[SID]]></prompt>
                             <tooltip><![CDATA[SID]]></tooltip>
                             <value><![CDATA[NULL_VALUE]]></value>
                        </bind>
                   </binds>
              </query>
         </display>
    </display>
    </displays>
    Edited by: bjeffrie on Jun 3, 2011 5:01 PM

  • 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

  • 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

  • Storing User defined reports in SQL Developer

    Hi All,
         I have created some user defined reports in SQL Developer. My company requested me to update the OS from Win XP to Win 7. I forgot to export those reports. I got my machine back, they said that the data is retained. Now i need to take those reports back. Can anyone tell me in which folder would SQL Developer stores the User Defined Reports by default? My bad I dont remeber the Report Name too.
    Can anyone help me on this?
    Boopathy vasagam

    Hi,
    You can check at location
    C:\Documents and Settings\<your_user>\Application Data\SQL Developer
    HTH

  • SQL Developer 3.1 EA3 unable to import / export user defined reports

    Hi gentlemen,
    Name says it all. Import / Export do not appear anymore neither in dropdown menu for User Defined Reports, nor export for other reports (DD reports or shared reports).
    Best Regards,
    Olivier.

    Those are now Save As / Open...
    Hope that helps,
    K.

  • 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!

  • How to "print" a user-defined report to PDF?

    Hello, I am using sqldeveloper 3.1 and I've got a user-defined report (chart) working. I see one can adjust a bunch of PDF settings in the report properties, but I cannot find how to actually produce a PDF version of my report/chart...

    You can watch the movie here, but simple answer, right-mouse in the grid, Export > PDF
    http://www.youtube.com/watch?v=k7hNn2jowhQ
    The charts are not supported yet in the PDF reporting feature.
    Edit the report definition in the PDF section to control the properties of the PDF generated.

  • 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 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.

Maybe you are looking for

  • Error msg pointing to nonexistent var (WARNING: LONG POST)

    I'm sorry to have to post my entire program, but I keep getting an error msg that points to a variable that is NOWHERE in my code. The var is called PwChar. It's mentioned in the error msg, but is nowhere in my code. This is even after saving and rec

  • How can I make a query by date with several TDMS files?

    Hi, I have a project that can write and read TDMS files everyday (a file for each day with date and time). There, I can import those files to excel (I choose a file and load it). But, I have a question: How can I make a query by date with those TDMS

  • [SOLVED] Certain emacs colors too dark

    For example, the blue gdb prompt in the gud buffer is too dark against a black background. Is there any way to change this? I believe this is an emacs issue and not a terminal issue, since changing terminal colors color0-color15 doesn't affect that p

  • Is there any BAPI to update LFA1/LFB1?

    Hi, Expert: I wrote one customer program to upate the following two fields. Is there any BAPI I can use, because It's master data. we need create CHANGE POINTERS.  we can't directly update them. LFA1-SPERQ (2)  Function That Will Be Blocked LFB1-ZAHL

  • All-11-otn4.js - Page Stops responding due to Java script error

    Hi, I am getting java script error in all-11-otn4.js. My page becomes unresponisve and I am getting the cause as all-11-otn4.js file. After this error I cannot do any thing in page, I need to restart IE. I am navigating from one View state to another