Control width of column in the output of the Script?

I want to use the button "Run the Script" (NOT execute statement) to run a SQL. I want an output text is easier to read (fixed-width fonts!) and save. The problem is that it is impossible to control the column width. SQLPlus style 'column' does not work. And even a few substr(), trim(), the column is completed up to the length (?) original.

For example, I want to display code source PLSQL USER_SOURCE:
select text from user_source
order by  name, type, line
SQLDeveloper pads the output to 4,000 characters (?), which makes the unusable output (for example, to save or even look at one). Using functions like the function rtrim(), substr() does not help.

Because SQLDeveloper is displayed not correctly output of SQL, SQLPlus is still irreplaceable. But you need everything to prevent it kicked away from the buffer to the coil.

(OK I know that I can use dbms_metadata in this case.) But this is just one example...)

SQLDeveloper: 2.1.0.63
OS: Windows XP SP2

Published by: thtsang on July 13, 2010 11:43

As you say, it's impossible.
However, I suggest that you get 2.1.1 with a fixed-width font in the grid of statement Run As. Then use the export of the grid (menu) or CTRL-+ A CTRL + C (or CTRL-SHIFT-C with position) If you want to save.

Have fun
K.

Tags: Database

Similar Questions

  • Apex 5 display image field, control width and height on the form page

    Hello everyone,

    I try to display the image from a blob directly column on the page, it does not work well, here's my question, how can control the width and height of the screen image field, because its changing dynamically the size of the screen according to the original dimensions, I want to set the dimensions.

    Any help will be appreciated.

    Concerning

    Anil

    set the width and height attributes in the attributes of the image html elements

    for example Width = "200" height = "100".

  • How can I incease the width of column in the google search results?

    The search results show all the words and the URL so I want to be able to increase the width of column - I can't see an icon that allows me to do

    The full URL is in the link, and an extension script or a user could replace the short green text (< name > element) with the full link, but I suspect it should be customized wrote, I don't know that you won't find anything in that direction right now.

  • How can I get the control specifies a reference (by the script)?

    By what method of property can I control that specifies a reference? (See an example of a reference to the code snippet).

    When I reference (ControlReferenceConstant in the script), I can't get control of the reference points to. I guess it's done with the property ' reference control bound to. " But I don't know how to convert the variant to the control. Conversion to the control class does not work. (See excerpt below). Conversion does not return an error, but the reference is not valid.

    A few details: the variant contains a reference to a control and has a name matching [2]. The type of reference data is just as well [3]. But the reference is 0, which is of course invalid digital show (seen in the probe and indicator).

    An entire book would be to iterate through all controls (indicators included as well as items in clusters and berries). The label could be the first check. But because they do not have to be unique is not enough. As a second step could be verified that the ReferenceConstant is listed by the property "nodes of control."(delede contrôle) reference ".

    [1] LV12 helps ControlReferenceConstant properties:

    http://zone.NI.com/reference/en-XX/help/371361J-01/lvscript/controlreferenceconstant_p/

    [2] get the variant name with:

    Select 'Type of Show' in the context menu of indicator varying or

    OpenG VI 'get name of data '.

    NIs in \Utility\VariantDataType\GetTypeInfo.vi VI

    [3] get the Refnum Type in the variant with

    NIs in \Utility\VariantDataType\GetRefnumInfo.vi VI

    If you look at using the property, you will see that it actually returns the data type of the node, not the actual control. That's way, you cannot use the reference in variant - it's not a real reference to a control.

    I think it's all just an oversight that no one added to the relevant property to the node, but there is a simpler solution for you that I think should work, that should come to him on the other side - for each control in the public Service, get the property [] of control reference nodes and it look for the reference of your node. If you found it, the node made reference to this control.

  • Control a custom Format of the script plugin

    Hello

    I created a plugin for custom Format based on the example of the SDK SimpleFormat.


    Can someone give me an example on how I can access its options of script?

    The block of my Betty file settings are as follows:

    {/ without the filter class plugin here * /}
    vendorName "myFormat", / * the unique class name * /.
    plugInClassID, / * class ID, must be single or Suite ID * /.
    plugInAETEComment, / * optional description * /.
    {/ * set inheritance * /}
    'Legacy <>', / * must be exactly this * /.
    keyInherits, / * must be keyInherits * /.
    classFormat, / * parent: Format, Import, Export * /.
    'format of the parent class', / * optional description * /.
    flagsSingleProperty, / * if the list of properties below * /.

    "imageFormat."
    keyImgFmt,
    typeChar,
    "image format"
    flagsSingleProperty

    / * property * /.
    },

    Work field imageFormat as expected when you create and running Actions - I just need to be able to put the script

    Thank you

    Richard

    The output of the ScriptListener plugin will show you how the JS call.

  • Default value of width of column in the finder

    For Finder column, the column in a new window widths are often too narrow and I have to resize to display the full name of each file.  is there a way to change the default column width?

    Unfortunately no, but a solution could be to hide the sidebar.

    Go to the Finder menu bar, click View > hide sidebar, or you can use the Option + command + S shortcut keyboard.

  • How can I request to all widths of columns in the view of the main folder subfolders?

    folder view column width under the folders

    Hi Mike,.

    Thank you for the update.

    If you want to have the same type of view for all folders, then open any folder in any particular view and then follow the steps.
    a. press Windows + E to open Windows Explorer.
    b. go to the view tab, click Options.
    c. click change the folder and Search Options and go to the view tab.
    d. click apply to folders and click Yes.

    Let us know if you have any additional questions.

  • Question on the definition of the width of column in SQL * more with information recovered w SQL

    Hello

    Is there a way to tell SQL * more to set the width of a column with the largest width of the items in the column? (as opposed to the default which is declared in the DDL width)

    In other words, I would like to do something functionally equivalent to this:

    COL < columname > format [select max (length (< columnname >)) < thetablethatcontainscolumname >]

    I do above manually in two steps

    1. select max (length (columnname)) of...

    2 col columnname format a [resultofstep1]

    Is it possible to do in one step?

    Thank you for your help,

    John.

    Hi John

    I don't think that there is a way to do this, because this information is not known at run time (as you proved it, you must run a separate SQL query first to calculate that information - also, what happens if there are predicates, this could affect the defined result so the request will actually be performed twice). You may decide an arbitrary width for each column and set it as being wrapped/word_wrapped/truncated.

    Other that that, you should consider whther you are using the right tool for the job, SQLplus is not exactly ideal for the presentation layer stuff. Something like APEX would give you much more control over the layout and formatting.

    See you soon

    Ben

  • How to fix the constant width in the column of the table.

    Hello.

    How to change the width of column in table programmatically... I try to change but only 1' st column only change.

  • Problem of width of column writing to the worksheet

    Hello world

    Does anyone know how to adjust the column width when you use the "write to the spreadsheet" vi in Labview?

    I always have a long string as the title and the excel file would show only part of it after that I dump them to it.

    I'm not sure that the width setting is Microsoft Excel or Labview himself.

    Any help is appreciated,

    Thank you very much

    + Kunsheng

    Hi Kunsheng,

    If you use the function 'Write to a spreadsheet file', then you can not set the width. You create a txt file with this function, not real excel file. For a true Excel file, you can use ActiveX.

    Mike

  • "Whereas unity" during the assignment of the width of column on InDesign Server 2015

    I am currently transfer my InDesign scripts to run on InDesign Server 2015, so far all worked well, so far.

    When I try to assign a width of a column, I get the following error:

    Error string: invalid value for the set 'width' property Unit expected, but received "1.058 mm".

    The code looks like this (listTable is my table object and iEigCol a counter in a loop for, so nothing out of the ordinary):

    var spacerColumnWidth = 1.058;
    listTable.columns[iEigCol].width = spacerColumnWidth + 'mm';
    

    A few lines earlier, I use this:

    listTable.columns[0].width = '82mm';
    

    Which works very well.

    I already tried these approaches instead:

    • By simply using the number without unit
    • Using an integer instead of a double
    • Concatenating the string before using to assign width
    • With the help of a literal string

    so far nothing worked here. Strange thing is that he works on dozens of other columns with the one of the ways mentioned to do.

    The exact same script also works very well to InDesign CS5.5.

    Any ideas what the problem may be?

    Thank you very much!

    InDesign does not set a table column width or row height under 1.058 mm (not even in the script). And in the scripts, it will not let you define under 1,059 mm. Try to work with 1,059 mm, and it should work.

  • [ADF, JDev12.1.3] I would like to stress that af: table takes the entire width of page and column auto-augmenter/reduce their width in proportion to the amount of available space. How...?

    Hallo,

    I see that default ADF makes all the 100px wide columns and there is the possibility to stretch a column to take full available width.

    I would like to know if there is a function / approach in ADF which - occupies all the available space - auto-calcule the width of each column to 1) the width of DB fields and 2) space in the browser window.

    I could also set the with columns of table in columns (characters) or (better?) in pixels and the framework should only for reproportion widths according to the available width.

    Or track to follow is defining the width of the columns in the table (percentage) property?

    Thank you

    Federico

    There is the possibility to stretch a column to take full available width.

    AFAIK, you can stretch several columns (read the docs for this property)

    I would like to know if there is a function / approach in ADF which - occupies all the available space - auto-calcule the width of each column to 1) the width of DB fields and 2) space in the browser window.

    (1) as far as I know, no

    (2) you can add class AFStretchWidth to the styleClass property to af:table (or surround your table with af:panelCollection and add this style class here)

    Or track to follow is defining the width of the columns in the table (percentage) property?

    Is probably not.

    % has different interpretation in different browsers, so you should use the style class AFStretchWidth.

    Dario

  • A way to return to the controls at the top of the files and thumbnails when hovering over the name of the file?  I can't even read the sticker because it has been moved to a separate column on the right.

    A way to return to the controls at the top of the files and thumbnails when hovering over the name of the file?

    I can't even read the sticker because it has been moved to a separate column on the right.

    Hi Bobca,

    I'm sorry, but the forecast of nail has been deprecated in the latest version due to security problems.

    Kind regards

    Nicos

  • How to control the default visibility of a column in the grid by using the extension. vsphere.core point ${objectType}.list.columns

    It seems that certain built-in objects have some hidden by default (in the objects tab) the grid columns. For example, the object of vApps has the column "managed by" hidden. How a column in the grid on the tab of object can be hidden by default in the sample of chassis-ui?

    Thanks in advance,

    -Darrell

    It is not possible to control the visibility of the column by an extension point.  The built-in objects using their own point of view of list.

  • How to adjust the width of my columns in the topic

    www.bristolequestrianservices.co.UK/Pricelist/HTML

    Hi I want to spend my detail left column so I can give my 4 headings a little more room as they are a little crushed you like.  If I change the width of my column 'detail', which is column-container-centre, then it goes behind my pictures that is the container for the left column.  What should I put in my code to stop what happens please.

    {#column - container - left

    Width: 300px;

    float: left;

    }

    {#column-container-Center}

    Width: 300px;

    float: left;

    }

    {#column - container - Center

    Width: 75px;

    float: left;

    }

    {#column - container - right

    Width: 75px;

    float: left;

    }

    {#column-container-rightA}

    Width: 75px;

    float: left;

    }

    {#column-container-rightB}

    Width: 75px;

    float: left;

    }

    You cannot move left more because you have a picture of fixed width.

    to the left of it.

    All you can do is to reduce its width from 300px to 250px and then make four columns to the right a little wider.

    I think as poined out before the implementation of these data - in a very strange way using a table would have been much easier.

Maybe you are looking for