Script for table & column

Gurus,
I am looking for the scipt which should find the name of table in the current and other schemas .. i.e if I give a table name, may be as parameter to the procedure, it should search for that table name in my current schema or other schemas in my database.
Likewise, if I provide table name, the script should find the name of the column name which I have provided exists in that table or in any other tables.
Can anyone help me with the scripts
Regards

I am looking for the scipt which should find the name of table in the current and other schemas .. i.e if I give a table name, may be as parameter to the procedure, it should search for that table name in my current schema or other schemas in my database.You need to query dba_tables
select *
from dba_tables
where table_name = 'MYTABLE'
Likewise, if I provide table name, the script should find the name of the column name which I have provided exists in that table or in any other tables.
select *
from dba_tab_columns
where table_name = 'MYTAB'
and column_name = 'MYCOL'

Similar Messages

  • Change Font Size for Table Column

    Hi,
    How can we set different font sizes for table columns?
    Thanks,
    Uma.A

    Hi
    Set Design property of table column
    Aslo check this link
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/66/18b44145143831e10000000a155106/frameset.htm
    Thanks

  • How to use simple types for table column names ?

    Hi,
    can any one tell how to to use simple types for table column names?
    It is required in internationalizing of webdynpro applications.
    Regards,
    Rajesh

    Hi,
    1: define required column names in <SimpleType>
    2:use the following code to get those values
    3:bind 'text' property of Column headers to context attributes
    4:take a context attribute 'Value' as type of <SimpleType>
    5:set these values to context attributes
    IWDAttributeInfo objAttrInfo=wdContext.getNodeInfo().getAttribute(IPrivate<ViewName>View.IContextElement.VALUE);
    ISimpleTypeModifiable simple=objAttrInfo.getModifiableSimpleType();
    Map m=simple.getEnumerationTexts();
    Collection c=m.values();
    Iterator it=c.iterator();
    if(it.hasNext())
    wdContext.currentContextElement.set<att1>(it.next().toString);
    if(it.hasNext())
    wdContext.currentContextElement.set<att2>(it.next().toString);
    if(it.hasNext())
    wdContext.currentContextElement.set<att3>(it.next().toString);
    Regards
    LakshmiNarayana

  • Header1 size is required for Table Column header

    Hi Friends,
    I wanted to use Header1 size for Table column headers. Pls help me how to do.
    Now I am using external label with Header1 size to the table but labels are not aligned properly with the table columns.
    Regards,
    Lakshmi Prasad.

    Hi,
    For headers design property is not their so you cant change the font. Other option is to change the theme (Not tried personally).
    Regards
    Ayyapparaj

  • How to get the F4 help for table columns ..

    Dear All,
    Here I have created table with cell editors of INPUT FIELD .
    And I would like to provide the f4 help for those columns .
    Here I have checked the node , which i have binded to the table, there input help mode is set to Automatic and search helps are also attached for that node .
    But in the table I am not getting the F4 help . Where as if i create the input fields invidually i am able to see the F4 help .
    But for table column I am unable to find..
    Help me regard this...
    Thanks & regards,
    Veerednra Nath

    Hi,
    In debugging , the I have seen the node info attributes list ( VALUE_HELP_ID and VALUE_HELP_MODE ) .
    For you understanding, Here I am giving the values which contains ,
    VALUE_HELP_ID contains the AUTO:VBUK
                                                    AUTO:VBUP
                                                    AUTO:MAT1
                                                    AUTO:H_T023
    and
    VALUE_HELP_MODE contains the  all Zeros for all the four attributes .
    Hope I have given correct inputs .
    Thanks & Regards,
    Veerendra Nath

  • Frame 9 solution for table column + side head does not work in Frame 10 and 11

    In Frame 9 structured (DITA) we could force Frame to record the actual widths of table columns in the DITA XML.  Frame 9 would respect the widths when opening the file.  This was particularly useful for forcing tables to be wide -- to go across the column and the side head -- and for the columns to never resize. 
    In Frame 9 this was done by commenting out the line
    "writer use proportional widths;" 
    like this
    "/* writer use proportional widths; */"
    in the topic.rules.text" file located in
    "...\FrameMaker9\Structure\xml\DITA\app\DITA-Topic-FM"
    This no longer works in Frame10 and Frame 11.  Even though the same line is commented out in all the "NAME.rules.txt" files in all the subdirectories of
        "...\AdobeFrameMaker11\Structure\xml\DITA_1.2\app"
    and
        "...\AdobeFrameMaker11\Structure\xml\DITA\app"  
    and
        "...\AdobeFrameMaker10\Structure\xml\DITA_1.2\app"
    and
        "...\AdobeFrameMaker10\Structure\xml\DITA\app"  .
    Commenting out the line does force Frame 10 and 11 to record  the absolute column width (2.357" etc.) in the DITA XML.
    However, on Open,  Frame 10 and 11 force the table to fit in the column, not the column and sidehead. That is they behave as though they were still using proportional column widths.  It seems the original values (as inserted by Frame 10 and 11 before closing!) are recalculated on Open, thereby mimicking the default proportional width behavior.  
    For example, this on Save then Close from Frame 10 or 11
    <table frame = "topbot" colsep = "0" rowsep = "1">
    <tgroup cols = "4" colsep = "0" rowsep = "1" outputclass = "FormatB">
    <colspec colnum = "1" colname = "1" colwidth = "1.796in" colsep = "0"/>
    <colspec colnum = "2" colname = "2" colwidth = "1.852in" colsep = "0"/>
    <colspec colnum = "3" colname = "3" colwidth = "1.179in" colsep = "0"/>
    <colspec colnum = "4" colname = "4" colwidth = "2.152in" colsep = "0"/>
    goes to this on Open then Save: 
    <table frame = "topbot" colsep = "0" rowsep = "1">
    <tgroup cols = "4" colsep = "0" rowsep = "1" outputclass = "FormatB">
    <colspec colnum = "1" colname = "1" colwidth = "1.351in" colsep = "0"/>
    <colspec colnum = "2" colname = "2" colwidth = "1.393in" colsep = "0"/>
    <colspec colnum = "3" colname = "3" colwidth = "0.887in" colsep = "0"/>
    <colspec colnum = "4" colname = "4" colwidth = "1.618in" colsep = "0"/>
    Any help at all would be appreciated!  
    We have 8,000 to 10,000 pages to PDF in the next few days and about 33% of those pages are messed up tables!
    Message was edited by: borealforest

    Hi...
    Unfortunately, I don't have any insight into the default DITA table handling in FM10 or FM11 .. so can't give you the answer you're looking for. Since both FM10 and FM11 offer ExtendScript, you could write a script (or have one written) that processes all of your files to reset the table widths. Or, perhaps the best short term solution may be to reinstall FM9 to get the job done, then spend more time later to figure out a better solution.
    One alternative would be for you to use DITA-FMx, which supports the table/@pgwide attribute for controlling which tables span the page and which don't. Since your tables probably don't make use of this attribute, it won't help in the near term, but might make sense going forward.
    Cheers,
    Scott Prentice
    Leximation, Inc.
    www.leximation.com

  • How to make a script for expand column width

    Hi experts,
    Is that possible to make a script for expand the column width aim to let the columns show up all the overset text?
    Regard
    John

    Hi John,
    As Uwe advised it would be wise to put a stop on any while loop in case the condition is never fulfilled which would mean the script will break.
    Without knowing what specifically you are working on you could make the below amendments to do this.
    myTables = app.documents[0].stories.everyItem().tables.everyItem().getElements();
    for (var t = 0; t < myTables.length; t++) {
        BE_resizeColumnsToFitContents(myTables[t], 200);
    function BE_resizeColumnsToFitContents(tableToEdit, tableMaxWidth) {
        for (var i = 0; i < tableToEdit.columns.length; i++) {
            while (tableToEdit.columns[i].overflows === true) {
                if (tableToEdit.width < tableMaxWidth) {
                    tableToEdit.columns[i].width += 1;
                    tableToEdit.columns[i].recompose();
                else {
                    alert("Column " + i + " contents too large for column.");
                    break;
    I won't put any extra functions in this because it might not be what you're after. To use this you just define the table width as a second argument to the function (but you could change this parameter to something else, like page, column or cell width). And, if you want to have a fail action you just put it in the 'else' part.
    Brett

  • Nested Composite Component Doesn't work for table column

    I have reported this issue as defect 1541 but I'm hoping someone my have a suggestion on a work around for this. Here is the issue
    I am attempting to use composites to represent a table column. I have tried this with both IceFaces and the standard implementation. I have a custom component that is of type UIColumn that is being inserted into another composite that houses a table. The table renders and the column renders. However, the outputText that should represent the row data does not render. Interestingly this will render using composites when I don't have the column rendering as a composite (IE the table is contained in the composite and the row level output is contained in the top level page.). That is not my requirement though. This seems to be a tough cookie to crack. I have the source now and am starting to acquaint myself with it in an attempt to figure out what is going on. Any brilliant ideas out there?
    Code is below.
    tableColumn.xhtml
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:ice="http://www.icesoft.com/icefaces/component"
    xmlns:composite="http://java.sun.com/jsf/composite">
    <h:head>
    </h:head>
    <h:body>
    <composite:interface componentType="MyColumn">
    </composite:interface>
    <composite:implementation>
    <ice:column headerText="Make" id="column3">
    <composite:insertChildren />
    </ice:column>
    </composite:implementation>
    </h:body>
    </html>
    table.xhtml
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:ice="http://www.icesoft.com/icefaces/component"
    xmlns:composite="http://java.sun.com/jsf/composite">
    <h:head>
    <title></title>
    </h:head>
    <h:body>
    <composite:interface>
    </composite:interface>
    <composite:implementation>
    <ice:dataTable augmentTitle="false"
    rows="10"
    value="#{SessionBean1.carDataProvider.tableDisplayList}"
    var="item" >
    <composite:insertChildren />
    </ice:dataTable>
    </composite:implementation>
    </h:body>
    </html>
    Example Page
    <html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:ice="http://www.icesoft.com/icefaces/component"
    xmlns:temp="http://java.sun.com/jsf/composite/tempcomp"
    <h:head id="outputHead1">
    </h:head>
    <h:body>
    <ice:form id="form1">
    <temp:table>
    <temp:tableColumn>
    <ice:outputText id="outputText3" value="#{item.make}"/>
    </temp:tableColumn>
    </temp:table>
    </ice:form>
    </h:body>
    </html>
    The the new UIMyColumn class
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package icefacestestapp2;
    import com.icesoft.faces.component.ext.UIColumn;
    import javax.faces.component.FacesComponent;
    @FacesComponent(value = "MyColumn")
    public class MyColumn extends UIColumn {
    @Override
    public String getFamily() {
    return "custom";
    Interestingly the row text will not render even if I add it directly to the new
    composite column class as seen below.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:ice="http://www.icesoft.com/icefaces/component"
    xmlns:composite="http://java.sun.com/jsf/composite">
    <h:head>
    </h:head>
    <h:body>
    <composite:interface componentType="MyColumn">
    </composite:interface>
    <composite:implementation>
    <ice:column headerText="Make" id="column3">
    <ice:outputText id="outputText3" value="#{item.make}"/>
    </ice:column>
    </composite:implementation>
    </h:body>
    </html>

    Hi,
    I recall an issue in 10.1.3.2 with inner frames that had the wrong JavaScript reference to the DOM. So I assume this to be the same in your case. So you can give it a try with JDeveloper 10.1.3.3 and see if this fixes the problem
    Frank

  • Equal space for Table column Gutter?

    Hi All,
    I want to make the tables column between space equally by using the Scripting (InDesign CS5.5 Windows).  I'm stuggled in creating the algorithm to this task.  Is any one already completed this type of automation means please share your thoughts, or please suggest the algorithm you are using.?
    Thanks in Advance.
    Regards,
    Imagine.

    In the above snapshot In between columns are having the uneven spaces.  I need to give the even space between columns based on the maximum characters on that columns.
    Do you mean the equivalent of Table > Distribute Columns Evenly?
    No.

  • Soft enters for table column head breakup

    Hi,
    Can i have any option for the the below requirement?
    I need to give soft enters for all table column head breakup's. (see the below screen shot). When i export to HTML the column heads are run-in against the PDF output.
    Regards,
    Velu

    Hi Velu,
    try the following:
    var curDoc = app.activeDocument;
    var allTables = curDoc.stories.everyItem().tables.everyItem();
    app.findTextPreferences = app.changeTextPreferences = null;
    app.findTextPreferences.appliedParagraphStyle = curDoc.paragraphStyles.itemByName("TCH");
    var allFounds = allTables.findText();
    app.findTextPreferences = app.changeTextPreferences = null;
    for ( var i = 0; i < allFounds.length; i++ ) {
        var tableFound = allFounds[i];
        if ( tableFound.length > 0 ) {
            for ( var j = 0; j < tableFound.length; j++ ) {
                var curFound = tableFound[j];
                        var allParaLines = curFound.lines;
                        for (var n = allParaLines.length-2; n >= 0 ; n--) {
                            var curLine = allParaLines[n];                       
                            if (curLine.characters[-1].contents != SpecialCharacters.FORCED_LINE_BREAK) {
                                curLine.insertionPoints[-1].contents = "\n";
                            } // end if
                        } // end for
            } // end for
        } // end if
    } // end for
    –Kai

  • JDeveloper 10.1.3.4: text-align for table column has no effect

    Hi,
    I am using JDeveloper 10.1.3.4. In a tabe I have a column that displays numbers, which are left-aligned by default:
    Applied
    $50.00
    $2,160.00
    $50.00
    $2,260.00I want to have them aligned to the right to look neater:
    Applied
             $50.00
          $2,160.00
             $50.00
          $2,260.00Or better still, have the cell with the longest string aligned to the center, and all the other cells align to it by the decimal point:
        Applied
          $50.00
       $2,160.00
          $50.00
       $2,260.00I looked in the property inspector and the only thing that looks closest to the purpose is text-align. I set this attribute to right (text-align:right) for the column, and for the outputText, but neither has effect. Everything is still flush to the left. How to get it right?
    Thanks!
    Newman

    Hi, Branislav,
    Nice meeting you again.
    Last time the question was about formatting the total amount returned from the method, from String to Number, Re: JDeveloper does not handle expert SQL, cannot add query clause in view link, which can also format the number as currency.
    This time, your answer again solved my problem. I was looking in the inline styling section, and did not notice this property in the General section. Thank you so much for your help!
    Newman

  • Remain case for table column name

    Hello, i am a java developer. I had helped my company to develop a java application all the while and before this we are using ms sql server database. Recently, we want to migrate the database to oracle database. The problem is, in our application, we use the resultsetmetadata to retrieve all the table column name and respective data and store in hashtable, but in ms sql server the table column name is not all in uppercase. When our application try to get the data using hashtable.get("aColumnName"), it will fail because in oracle the column name is all in uppercase. There are more than 1000 jsp page and java code that used the same method to get data, so if i want to change all the code to uppercase, it will consume a lot of unproductive time, is there any way to solve this?

    I assume that your code builds an SQL statement like "select * from ??? where table_name = '????';".
    If this is correct just wrap the table_name in UPPER(table_name).
    If my assumption is incorrect then please give more information.
    James.

  • Help Please!! Script for table needed.

    Hi,
    I'am formating a table in Indesign with figure in the cell like for example $(123.45) and theres a lot if it. I need to separate or move the $ sign to previous column and the closing parenthesis to the next column. What I do is to insert new column before and after then copy and paste the $ to previous column and the parenthesis to the next. Is there anyone knows to automate this using script.
    Thanks,
    DennisM

    dennismacaburas wrote:
    I'am formating a table in Indesign with figure in the cell like for example $(123.45) and theres a lot if it. I need to separate or move the $ sign to previous column and the closing parenthesis to the next column. What I do is to insert new column before and after then copy and paste the $ to previous column and the parenthesis to the next. Is there anyone knows to automate this using script.
    If your tabel isn't too complicated you can use this workaround:
    1) convert table to text with TAB separator
    2) replace "^t$(" to "^t$^t("
    3) replace ")" to "^t)"
    4) convert text to table
    But what with "(" ?
    Do you want to have this:
    $ | (123.45 | )
    or
    $( | 123.45 | )
    robin
    www.adobescripts.com

  • Dynamic binding for table column

    Hi,
    I am using standard application and in a table (not ALV) i want to chnage the name of a column. Already a OTR is placed in it so am planning to do a dynamic bind for the text in the header. Kindly suggest ways.
    Thanks,
    Koushik

    DATA:
            l_caption          TYPE string,
            l_title            TYPE string.
      data lr_caption type ref to cl_wd_caption.
    *---Get OTR Text for Value Description
      CALL METHOD cl_wd_utilities=>get_otr_text_by_alias
        EXPORTING
          alias      = 'ZPERF_MGMT_DEV/RATING'
      language   =
        RECEIVING
          alias_text = l_title.
    lr_caption ?= view->get_element( 'TBL_VAL_HELP_DESCRIPTION_HEADER' ).
    lr_caption->set_text( value = l_title ).

  • Get a focus for table column

    Hi, need your help again.
    How to do this:
    A JTable is inside a form, whenever this form is called out, the first row and first column in table must get the focus, with cursor blinking.
    Any way to do this?

    Hi,
    GROUP BY (using aggregate functions) is the best way to do what you described.
    PIVOT and UNPIVOT are probably what you'd want in this case.  The phrase "GROUP BY" may not actually appear in your code, but you'll essentially be doing a GROUP BY.
    Analytic functions (rather than aggregate functions) can do the job, too, but they'll be less efficient.  Analytic functions get you results about the groups, without losing each row's identify, but in this case, losing each row's identity is eactly what you want to do.  You only want 'Apple' to appear 1 time, not 3 times.
    The fact that you need to do the same query on 20 different tables suggests that there's something wrong with your table design.  Wouldn't it be better to have 1 big table, with a new column that has 20 unique values instead?
    I hope this answers your question.
    If not, please post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) from all tables involved, so that the people who want to help you can re-create the problem and test their ideas.
    Also post the results you want from that data, and an explanation of how you get those results from that data, with specific examples.
    Simplify the problem as much as possible.  For example, instead of posting a problem with 20 tables, each having 25 columns, post a similar problem involving, say, 2 tables, each with 3 columns.
    Always say which version of Oracle you're using (for example, 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002

Maybe you are looking for

  • Syndicator Preview tab values are not same to Syndicator Output file

    HI All, I am struct with the following issue, can any one give there inputs where the issue is: In the MDM Syndicator preview tab I can see the look up flat multiple table values... But in the output file I cant abel to see the entire node at all...

  • Flash Builder 4 and PHP  Data/Services for beginners

    Hello, I'm new here, so I do not know if I posted my doubts in the right place. without much la la la go straight to the point. I am developing an application in flex / mysql / php / zend DataWizard and used the flex to create the data service. popul

  • Tables names in forms

    Hi, you all. I'm making new security module for a system made in oracle forms, and when I tryied identify all tables used in one form I realized it will take me a lot of time, because there are more than 500 forms! There is a way to find tables names

  • Having trouble fading in with masks on a still

    Hi, I'm working on a project and i need some help. I created a still in Motion and added some masks on to the left and right ends of it to give it a feathery effect, however when i brought it in to FCP and applied the fade in effect it would cause th

  • Deactivating production order changes after 1st operation is confirmed

    Hi, I want to deactivate production order changes after 1st operation is confirmed through CO11n.Ie. production order qty should not be allowed to change after 1st operation is confirmed. Expecting ur immense help on this. Regards, JS Karthi