Code line count in a view/MView

Hello All,
Can any one help me with a code where I could retreive the no of lines in DDL for a view. I would ideally would like to find out for all the views in a schema if possible. DBA_Source is not helping me with the views.
Thanks,
Reddy

select view_name,text_length from all_views;

Similar Messages

  • Code for Line Count

    Hi to all,
    I need to write the code to linecount for microsoft document.i.e, is code to count the number of lines in a word document.
    If any one know hoe to write the code please send me the code or any information regarding that.
    Thanks in advance.

    I admit, I've never used POI myself. Just vaguely
    aware that it exists and gets recommended for all the
    "How do I read/write MS Xyz docs?" questions.I haven't used POI for Word either, only the Excel part (which I had to patch a bit). Here's what the POI site says about its Word component, now that I look at it:
    "At the moment we unfortunately do not have someone taking care for HWPF and fostering its development. What we need is someone to stand up, take this thing under his hood as his baby and push it forward. Ryan Ackley, who put a lot of effort into HWPF, is no longer on board, so HWPF is an orphan child waiting to be adopted."
    In other words they had somebody working on it.
    "Of course we will help you as best as we can. However, presently there is no committer who is really familiar with the Word format, so you'll be mostly on your own. We are looking forward for you and your contributions! Honor and glory of becoming a POI committer are waiting!"
    And now they don't have anybody working on it.
    So I think we should lay off recommending POI for MS Word processing. If it was me I would be looking at recent versions of Word that can save themselves as XML whose format is available to the public.

  • How I activate, when in code view current code line, to be highlighted (all line) eg light-blue ?

    How I activate, when in code view current code line, to be
    highlighted (all line) eg light-blue ?

    Actually, in Windows (XP) the highlight color (in DW8) is a
    byproduct of the
    color scheme you set for your desktop.
    Walt
    "Michael" <[email protected]> wrote in message
    news:gn7fpk$hbp$[email protected]..
    > In code view, click the line number in the left margin
    corresponding to
    > the line of code you wish to highlight. Left click that
    number and the
    > whole line will be highlighted in blue.
    >
    > Michael
    >

  • Getting line count of wrapped text in JTextArea

    I'm trying to get the line count of wrapped text in a JTextArea, but I see no way to do it other than to write a function for manually determining the line count, which I'm struggling with. I'm trying to get the following code to print out "4 4" on both lines, but it's printing out "1 1" instead. Is there a built-in way to get the actual line count? I'm guessing the JTextArea.getLineCount() function is supposed to count line breaks, which I don't have.
    public class SSCCE
         public static void main(String args[])
              String s = "abc def ghi jkl mno pqr stu vwx yz1 234 567 890";
              JFrame f = new JFrame("test");
              JPanel p = new JPanel();
              JTextArea t[] = {cta(s,1,3),cta(s,1,4)};
              p.add(t[0]);
              p.add(t[1]);
              f.setSize(500,500);
              f.add(p);
              f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              f.setVisible(true);
              try
                   Thread.sleep(200);
              catch (InterruptedException e)
                   e.printStackTrace();
              System.out.println(t[0].getRows()+" "+t[1].getRows());
              System.out.println(t[0].getLineCount()+" "+t[1].getLineCount());
    }

    Oh wait, I see. Never mind. I went back there and saw that there were indeed two (last time I checked, I looked for the first one I saw since you didn't give me the full signature), and I got the one for the JTextArea, but I still need Thread.sleep to get the accurate line count.
    import java.awt.Font;
    import java.awt.KeyboardFocusManager;
    import java.lang.reflect.InvocationTargetException;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JTextArea;
    import javax.swing.SwingUtilities;
    import javax.swing.text.View;
    public class SSCCE implements Runnable
         private static JTextArea t = cta("abc def ghi jkl mno pqr stu vwx yz1 234 567 890");
         public SSCCE()
              SwingUtilities.invokeLater(this);
              try
                   SwingUtilities.invokeAndWait(this);
              catch (InterruptedException e){
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              catch (InvocationTargetException e){
                   // TODO Auto-generated catch block
                   e.printStackTrace();
         @Override
         public void run()
              System.out.println(t.getLineCount());
         public static JTextArea cta(String text)
              JTextArea ta = new JTextArea(text,4,12);
              ta.setFocusTraversalKeys(KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS, null);
              ta.setFocusTraversalKeys(KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS, null);
              ta.setFont(new Font("Courier New",Font.PLAIN,12));
              ta.setLineWrap(true);
              ta.setWrapStyleWord(true);
              return ta;
         public static int getWrappedLines(JTextArea component)
              return (int)component.getUI().getRootView(component).getView(0).getPreferredSpan(View.Y_AXIS)/component.getFontMetrics(component.getFont()).getHeight();
         public static void main(String args[])
              JFrame f = new JFrame("Text Area Lines");
              JPanel p = new JPanel();
              p.add(t);
              f.add(p);
              f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              f.setSize(200,200);
              f.setLocationRelativeTo(null);
              f.setVisible(true);
              System.out.println(getWrappedLines(t));
              try
                   Thread.sleep(50);
              catch(Exception e)
              System.out.println(getWrappedLines(t));
    }Although, it's not working exactly the way I want it to. Is there a way to get this to work before I paint? It works fine after I paint, but I was just wondering.

  • Determine line count with wordwrap without Textcomponent visible

    Hi,
    I read a lot of post here that contains code that return number of line occupied by a wrapped text in JTextArea/JTextPane.
    However, the code only work if the text component is visible and already on screen.
    What I want is calculate the number of line count of wrapped text in those component even before the component is visible.
    Currenly, the line count always return 0 because component yet to display on screen.
    Can someone tell me how to do this ? thanx.

    I've been struggling with this for JTextArea. This seems to work. tp is the JTextArea and I get width from the preferred size.
            public int getLines(float width) {
                View view = tp.getUI().getRootView(tp).getView(0);
                view.setSize(width, (float)Short.MAX_VALUE);
                int preferredHeight = (int)view.getPreferredSpan(View.Y_AXIS);
                int lineHeight = tp.getFontMetrics( tp.getFont() ).getHeight();
                return preferredHeight / lineHeight;
            }

  • Varying the line count in every page

    Hi All..
    I want to vary the line count in a page in my report.
    I have mentioned the line size n line count at the starting of the report, n it prints the same no of lines in every page but in the subsequent pages , I want to increase the line count .
    How can I do that ? 
    Thanks.

    Hi Naimesh..
    thanks for the reply .
    well,the code u suggested does not work..NEW-PAGE is jus a standalone command with which the line count cannot be associated.
    I actually have some header details that shud only appear on 1st page , n basing on the line count all works fine on 1st page ..but on the 2nd page the header details ned not appear , so only the itab details are getting printed , so the sy-tabix value remains the same but the line count is less than the 1st page leaving some space at the bottom of the page .
    And in the subsequent pages the printing takes place but from the begining of the page n also leaving more space at the bottom of the page.
    I want that equal no of lines get printed each page , also leaving equal no of lines at the bottom of each page.
    Hope I'm  sounding clear.
    Any answers ?
    Thanks.
    Sangeet.

  • Dynamic setting of line count and footer in classical report

    Hi all,
    In classical report,we can set line count and footer at the beginning of the report  as Line-count 6(2), here out of 6 lines 4 lines is for content and 2 lines is for footer (assume no standard heading), but if my report produces less content than 4 say 3 at run time ,then footer will not be displayed .Here again i have to set line count and footer as 5(2) in order to get the footer to be displayed ,so How can i achieve dynamic setting of the line count and footer,
    Thanks,
    Avinash

    Use RESERVE,
    START-OF-SELECTION.
    RESERVE 6 LINES.           "at the last of your code
    This will trigger a page-break & footer will be displayed.

  • How to get file line count.

    Hey guys,
    How to get file line count very fast? I am using BufferedReader to readLine() and count. But when dealing with big file, say several GB size, this process will be very time consuming.
    Is there any other methods?
    Thanks in advace!

    What I'd do is you create an infofetcher, register a listener, implement gotMore() and have that scan for '\n'
    Some might suggest getting rid of the listener/sender pattern or use multiple threads to make ii faster. This might help a little, but only if your I/O is super-duper speedy.
    you are welcome to use and modify this code, but please don't change the package or take credit for it as your own work.
    InfoFetcher.java
    ============
    package tjacobs.io;
    import java.io.IOException;
    import java.io.InputStream;
    import java.util.ArrayList;
    import java.util.Iterator;
    * InfoFetcher is a generic way to read data from an input stream (file, socket, etc)
    * InfoFetcher can be set up with a thread so that it reads from an input stream
    * and report to registered listeners as it gets
    * more information. This vastly simplifies the process of always re-writing
    * the same code for reading from an input stream.
    * <p>
    * I use this all over
         public class InfoFetcher implements Runnable {
              public byte[] buf;
              public InputStream in;
              public int waitTime;
              private ArrayList mListeners;
              public int got = 0;
              protected boolean mClearBufferFlag = false;
              public InfoFetcher(InputStream in, byte[] buf, int waitTime) {
                   this.buf = buf;
                   this.in = in;
                   this.waitTime = waitTime;
              public void addInputStreamListener(InputStreamListener fll) {
                   if (mListeners == null) {
                        mListeners = new ArrayList(2);
                   if (!mListeners.contains(fll)) {
                        mListeners.add(fll);
              public void removeInputStreamListener(InputStreamListener fll) {
                   if (mListeners == null) {
                        return;
                   mListeners.remove(fll);
              public byte[] readCompletely() {
                   run();
                   return buf;
              public int got() {
                   return got;
              public void run() {
                   if (waitTime > 0) {
                        TimeOut to = new TimeOut(waitTime);
                        Thread t = new Thread(to);
                        t.start();
                   int b;
                   try {
                        while ((b = in.read()) != -1) {
                             if (got + 1 > buf.length) {
                                  buf = IOUtils.expandBuf(buf);
                             int start = got;
                             buf[got++] = (byte) b;
                             int available = in.available();
                             //System.out.println("got = " + got + " available = " + available + " buf.length = " + buf.length);
                             if (got + available > buf.length) {
                                  buf = IOUtils.expandBuf(buf, Math.max(got + available, buf.length * 2));
                             got += in.read(buf, got, available);
                             signalListeners(false, start);
                             if (mClearBufferFlag) {
                                  mClearBufferFlag = false;
                                  got = 0;
                   } catch (IOException iox) {
                        throw new PartialReadException(got, buf.length);
                   } finally {
                        buf = IOUtils.trimBuf(buf, got);
                        signalListeners(true);
              private void setClearBufferFlag(boolean status) {
                   mClearBufferFlag = status;
              public void clearBuffer() {
                   setClearBufferFlag(true);
              private void signalListeners(boolean over) {
                   signalListeners (over, 0);
              private void signalListeners(boolean over, int start) {
                   if (mListeners != null) {
                        Iterator i = mListeners.iterator();
                        InputStreamEvent ev = new InputStreamEvent(got, buf, start);
                        //System.out.println("got: " + got + " buf = " + new String(buf, 0, 20));
                        while (i.hasNext()) {
                             InputStreamListener fll = (InputStreamListener) i.next();
                             if (over) {
                                  fll.gotAll(ev);
                             } else {
                                  fll.gotMore(ev);
    InputStreamListener.java
    ====================
    package tjacobs.io;
         public interface InputStreamListener {
               * the new data retrieved is in the byte array from <i>start</i> to <i>totalBytesRetrieved</i> in the buffer
              public void gotMore(InputStreamEvent ev);
               * reading has finished. The entire contents read from the stream in
               * in the buffer
              public void gotAll(InputStreamEvent ev);
    InputStreamEvent
    ===============
    package tjacobs.io;
    * The InputStreamEvent fired from the InfoFetcher
    * the new data retrieved is from <i>start</i> to <i>totalBytesRetrieved</i> in the buffer
    public class InputStreamEvent {
         public int totalBytesRetrieved;
         public int start;
         public byte buffer[];
         public InputStreamEvent (int bytes, byte buf[]) {
              this(bytes, buf, 0);
         public InputStreamEvent (int bytes, byte buf[], int start) {
              totalBytesRetrieved = bytes;
              buffer = buf;
              this.start = start;
         public int getBytesRetrieved() {
              return totalBytesRetrieved;
         public int getStart() {
              return start;
         public byte[] getBytes() {
              return buffer;
    ParialReadException
    =================
    package tjacobs.io;
    public class PartialReadException extends RuntimeException {
         public PartialReadException(int got, int total) {
              super("Got " + got + " of " + total + " bytes");
    }

  • Order of delivery schedule line counter at schedule agreements from MRP run

    Currently we are using schedule agreements for our long term external suppliers, but we are facing a problem with the order of new delivery schedule lines created during MRP run.
    Because of master data settings like, lot size, rounding value, plan delivery time and planning time fence to set as firm new requirements, multiple schedule lines are created with no order for schedule line counter.
    Does anyone is aware of a BADI, user exit or customizing control to have this schedule line counter in order?
    Thank you
    Daniel Guillen
    IT
    Skyworks Inc.

    Hi,
    Pls put this query in SD fourms  and get immly help because this is technical fourms.
    Anil

  • Multiple small stories with variable line counts assigned to different editors

    I have a "best practice" question for you more experienced InCopy users about what workflow you recommend for my specific issue. I am experienced in InDesign, but am a InCopy newbie. I want to make sure I'm not missing a solution because my lack of experience with InCopy may be causing me not to see the forest for the trees.
    Short version: What is the best way to allow multiple editors access to each of multiple small stories separately (one story per editor), but to allow the line count of each story to be variable each week, while adjusting the rest of the stories along with it on the page (see image below)?
    Details: My publishing company's workflow is on CS6 with editors working in Word, and we're upgrading to CC2014 with InCopy. We have 7 in-house editors, and all files on an in-house server. We have quick deadlines (some are 15 minutes from editor writing copy to transmitting publication to subscribers). In the example below, we have 10 sections, and I have all seven editors writing different sections at the same time. A final editor has control over fitting the final page. My INDD files to test the new workflow use an assignment-based workflow. I understand I can place each of these sections as their own story, under the same assignment, so a different editor can have them checked out. However, each section does not have the same line count from week to week. Markets with more activity will get more lines.
    In our current workflow, we have multiple rough Word docs pulled into one master doc with a script, that the final editor edits to fit, so each section can be a different number of lines as long as the total is the same. Then production staff load it in. When we upgrade, we can use a hybrid workflow where the final editor just loads that final Word doc into one InCopy story and edits it to fit.
    It would be great if I just didn't understand how to make the text height variable for the story each editor is typing, and auto-adjust so the next story starts below where the story above it ends, and you all had an idea how I can do it!
    Thanks! Nancy

    I disagree to Seshu's answer to question 1.
    Correct answer of question 1 is C and <u><b>not A.</b></u>
    Sorry I didn't find time to check the rest.
    <u>To the examinee</u>
    I wouldn't assume all answers from SDN-ers are correct if my certification exam was knocking the door! I would rather try and find out the correct answers myself from the system instead of mugging these answers without any understanding of the technology involved! Find out the answers yourself from the system...that way it will help you to understand why the answer is 'C' and not 'A'...just knowing the answer is 'C' is not good enough...one has to understand "why" its 'C' and not 'A'. Hope you get my point! Good luck.

  • Pl sql Code To count how max checkboxes are checked In the Report Region

    I am developing a APEX report where I put check boxes to row row of the report result . So I checked Some of this check box. Now I need a code to count how many checkboxes are checked during the runtime

    there is a forum for APEX: Oracle Application Express (APEX)

  • Link between Delivery schedule line counter from PO and the material docume

    Dear Gurus,
    I have one PO with single line item having delivery schedule -
    Material 1 -
    delivery schedule 01.01.2009     2000
                                                         01.03.2009    5000
    I have received quantity against this Po
    I want to know where I can find the link between Delivery schedule line counter from PO and the material document
    Best regards
    Sar

    There is no link from the MAterial document line item (Table Mseg) to the PO Schedule Line (EKET).
    If this is for Evaluating an on time delivery or GR, you may consider the following approach.
    PO details Po Date  QTY
    Sch1   01Jun2009   200   
    SCH2  08Jun2009   100
    GR Details
    GR1   01Jun2009   180
    GR2   07Jun2009   110
    GR3  09Jun2009      10
    Calculate a *** total qty for the PO Line.
    PO details Po Date  CUMUL QTY
    Sch1   01Jun2009   200   
    SCH2  08Jun2009   300
    Calculate a *** total qty for the ontime GR.
    PO details Po Date  CUMUL PO QTY  CUMUL GR on time
    Sch1   01Jun2009   200                180
    SCH2  08Jun2009   300                 290 (180+110)  the 3rd GR was too late
    Evaluate the PO SChedule Lines as follows:
    Po SCL qty + CUMUL GR QTY - CUMUL PO QTY = ADJ GR ON Time Qty
    SCH1 01Jun2009
    200 + 180 - 200 = 180 on time for 01Jun2009 date ( 90% fill rate)
    SCH2 08Jun2009
    100 + 290 - 300 = 90 on time for 08Jun2009 date (90 % fill rate) the first 20 of the GR on 07Jun2009 went to fill the late, early date.
    Best of luck !
    SCH2 100 +290 - 300 = 90 on time for 07Jun2009 date

  • How to print text in a new line in a text view.

    Hi,
    I have a situation where I need to print two lines inside a text view.
    for eg:     Bye Bye < user name>
                  Have a nice day!!
    I am assigning this to the context by conactenating   Bye Bye   < user name>   Have a nice day!!.
    But the text view prints it a same line.
    How can I print Have a nice day!!. in the second line. 
    Any suggestions and ideas are welcome and  appreciated.
    Thanks and regards.

    Hi,
    This link will help you to do all the functions in text view using HTML.
    [html in text view|http://help.sap.com/saphelp_erp2005/helpdata/en/08/5696420cc2c56ae10000000a155106/content.htm]
    Karthik.R

  • Is it possible to view information such as play count on Artist view in itunes 11?

    is it possible to view information such as play count on Artist view in itunes 11?

    There is no column view for the artist tab in iTunes 11. The songs are chunked up by album, no option for list view, let alone column chooser. Also, everything under view > column browser is grayed out.

  • Is there a t-code that allows you to view the AUC Settlement Log?

    One of my counterparts in a different region would like to review the AUC Settlements for the prvious month.  Is there a t-code that allows one to view the AUC Settlement Log or is there a special procedure required to view those results?
    thanks in advance for your help.
    Dan

    This was perfect.  By the way the t-code for program RAHERK01 is:  S_ALR_87012058
    Thanks to everyone that replied.  The other two reports will help with some other needs.
    Dan
    Edited by: Daniel Goodhart1 on Nov 10, 2011 5:14 PM

Maybe you are looking for

  • Connecting my Macbook Air with 26" Cinama Screen to my Blackberry Curve

    Hi All Firstly thanks for all the help with previous questions, its really making my mac more enjoyable. I am hoping someone can help me with this little issue I would like to use my mac as a handsfree kit with my Blackberry Storm, i could then liste

  • Repeat one recordset many times

    I have a recordset that will always return 1 record with anywhere from 1 to 16 tbl.Fields, which is where my problem starts. Since I can't use repeat region I need to get this recordset to repeat multiple times depending on the  session variable (Ses

  • Illustrator 17.1.0 update issues

    Mac 10.8.5, Illustrator CC 17.0.0.  Uninstalled Illustrator and CC Desktop App manager, reinstalled. When uninstalling the App Manager, this shows up in the error long.  Permissions errors also show up when uninstalling Illustrator 17.0.0.  I have re

  • No phone since Tropical Storm Lee and all we get is a $5.00 credit?

    We notified customer service several times on our cell phones that our phone was down since September 9th and we got answers like we know, and we will be credited, and they are still working on the lines .It was the whole town. Last week we finally g

  • Common distribution channel and common division

    Hi experts, Wt is the use of common distribution channel and common division in sale prcocess? let me know wt are the configuration i have to do for common dist chanl and common division activation. Regards Ishikesh