Number of lines in the Analysis

Hello
I - novice, so perhaps the question may seem too simple.
Is Analysis. One measure is the period (month). There are two presentation variables. The first sets the latest period for this date. The second stores the number of periods.
How to display a specified number of lines starting with a given in the Analysis?
Thanks in advance.

It I understood your question correctly, please check the Running Aggregates OOTB functions in column formula. You can use the functions like RCOUNT to get the number of record counts starting 1 .. x.
Hope this helps.

Similar Messages

  • How to find number of lines in the text content?

    Hello All,
    I have a multi line text item. I want to know the number of lines in a text item? How can I do that?
    Note that every lines end with the shift+enter.
    Example,
    This is a
    sample.
    After line This is a there is (Shift + Enter).
    Thanks for any help.

    Whenever the user inputs Shift-Enter, Photoshop inserts an [EOT] (End Of Text) control character (\x03 or \u0003) in the string.
    Also, in order to split the text according to multiple separators in only one call, it is necessary to use a regular expression instead of a string.
    Try replacing:
    var theArray = theText.split("\r");
    with:
    var theArray = theText.split(/[\u0003\r]/);
    BTW, you can improve performance by explicitely requesting the textKey property of the current layer object.
    Try using:
       ref.putProperty( charIDToTypeID("Prpr"), stringIDToTypeID("textKey") );
       ref.putEnumerated( charIDToTypeID("Lyr "), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
    instead of:
       ref.putEnumerated( charIDToTypeID("Lyr "), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
    HTH...

  • Count the Number of Lines

    Hi All,
    I want to count the Number of lines that the user had entered in a multi-lined text box.
    Because I want to restrict him up-to 6 lines.
    How Can I don this.
    Thanks in Advance,

    sql>select length('count no
                      of line
                      in the text')-length(replace('count no
                                                  of line
                             in the text',chr(10),'')) lines
        from dual;
    LINES 
    2
    jeneesh                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Display number of line items in my report at the title bar

    hi,
    i would like to ask, how am i going to add in the number of line items to be display under the title bar above of the SAP. example similar to SE16, where it will show you the number of lines under the bar above.
    may i know how am i going to program it for my report? thanks

    Hi,
               check out the following code........copy-paste....and then....................
    data : it type STANDARD TABLE OF vbak,
           wa type vbak.
    data : ctr TYPE sy-dbcnt.
    data : str(20) type c.
    select * from vbak into table it UP TO 10 ROWS.
      ctr = sy-dbcnt.
      move ctr to str.
    set titlebar 'LIST' OF PROGRAM sy-repid with str.
    loop at it into wa.
      skip 1.
      write wa-vbeln.
    endloop  .
    ................create the title-bar 'LIST' as 'List Details : &'.
    (double-click on 'LIST' ....... 
    give 'TITLE' as 'List Details : &'. ).
    run.....& get solved !!!!!
    Rewards points if helpful..............

  • How to remove characters/lines from the beginning of an InputStream

    Hi,
    I have a program which receives several InputStreams. From each of these streams I have to remove 2 lines from the beginning. After the lines are removed, all the streams are combined to one with SequenceInputStream and read in one chunk. Is there an easy/simple way of doing this?
    One option I thought would be to read the char by char until 2 end of line chars have been detected and then read the rest of the data to a buffer. And the create a ByteArrayInputStream out of this buffer. Problem with this approach is, that the amount of data can be large, so putting all the data in to memory might cause problems.
    Another option is to use BufferredInputStream and use the readline() method twice to get rid of the lines that are not needed. After this I would write the data to some output stream, which is then converted back to input stream. Propably would work, but sound too much of work for a simple thing like this. There has to be better way.
    To make it simple, what I need is a method that looks like the following, or something similar
    *  Removes n number of lines from the beginning of a InputStream.
    *  @param is InputStream where the lines are removed
    *  @param numberOfLines int value to indicate how many lines whould be removed
    *  @return InputStream where lines have been removed.
    public InputStream removeLines(InputStream is, numberOfLines);Thanks.

    Here's the code, feel free to use it. Comments are also welcome.
    public InputStream removeLinesFromTheBeginning(InputStream is, int numberOfLines) throws IOException
              char c = 'c';
              int i = 0;
              for(int n = 0 ; n < numberOfLines ; n++)
                   do
                        c = (char)is.read();
                        System.out.print(c);
                        if(c == (char)-1)     // end of stream reached before any newline characters were found.
                             return null;
                        i++;
                   while(c != '\n');
                   System.out.println();
                   System.out.println("Characters removed:" + i);
                   System.out.println("n: " + n);
                   i = 0;
              return is;
         }Edited by: dave_spaghetti on Jun 16, 2009 5:42 AM
    Fixed a bug.

  • Script to determine number of lines of text in a paragraph?

    I'm revisiting an issue I first posted here last summer, thanks to all who offered help, but I've not been able to sort it out.
    http://forums.adobe.com/thread/455526?tstart=0
    What I'm after is  a 'search function' to insert into a FindChangeByList.
    Jongware suggested the following - but when inserted into my list I can't get it to do anything - it doesn't throw up a Javascript error.
    app.findTextPreferences = NothingEnum.nothing;
    app.findTextPreferences.appliedParagraphStyle = "Callout_3";
    foundItems = app.activeDocument.findText();
    for (var i=foundItems.length-1; i>=0; i--)
      if (foundItems[i].paragraphs[0].lines == 2)
        foundItems[i].paragraphs[0].appliedParagraphStyle = "Callout_2";
      if (foundItems[i].paragraphs[0].lines == 1)
        foundItems[i].paragraphs[0].appliedParagraphStyle = "Callout_1";
    I regularly receive a 'word' document on which I run a 'FindChangeByList' which cleans up and formats the text with a number of GREP/text searches.
    One of the search lines converts a particluar string of text to a paragraph style "Callout_3" (the most common occurence of Callouts).
    This style applies a paragraph rule, above and below the line, to create a coloured block/band out of which said text is reveresed.
    The problem that I have is that the style (because of the paragraph rules), only works correctly if the paragraph has x3 lines of text.
    I have styles set up for every other eventuality - Callout_1 (for single line of text), Callout_2 (for x2 lines of text) etc.
    What I'm looking for is a script that can count the number of lines in the paragraph (once the "Callout_3" style has been applied) and then change the style accordingly to the number of lines in each paragraph/Callout.
    Any further thoughts?
    Steve

    Hi Steve!
    Well, I said it was untested ... Found two major errors. First one is also visible when you manually search for the style "Callout_3". Rather than marking each and every paragraph on its own, InDesign gathers as much as possible. Hence, just testing paragraph[0] would miss out all other paragraphs. Explicitly looping over all paragraphs per "found item" does work.
    The other one is sort of a "syntax" error. Merely testing "lines == 2" does not work -- but it doesn't give an error either! Apparently, it's okay to compare an object ("lines") to a number, even though it doesn't work. The property to check is "lines.length" -- that returns the number of lines for a paragraph.
    Putting it all together results in this script.
    'And now I shall test it,' said Wen. This time he twisted it gently to and fro. 'That si-si-si That simple-ple, eh eheh simple, eh?'
    ... And I tested it.
    app.findTextPreferences = NothingEnum.nothing;
    app.findTextPreferences.appliedParagraphStyle = "Callout_3";
    foundItems = app.activeDocument.findText();
    for (var i=foundItems.length-1; i>=0; i--)
    for (var j=0; j<foundItems[i].paragraphs.length; j++)
      if (foundItems[i].paragraphs[j].lines.length == 2)
       foundItems[i].paragraphs[j].appliedParagraphStyle = "Callout_2";
      if (foundItems[i].paragraphs[j].lines.length == 1)
       foundItems[i].paragraphs[j].appliedParagraphStyle = "Callout_1";

  • Limit number of lines in a text editor

    Hello.
    In my program, i'm creating a text zone and i need to limit the data users will put in this zone.
    To create that, i'm using the object cl_gui_textedit. I've looked in the methods of this object but i wasn't able to find one that will limit the number of lines of the text editor.
    Did i miss it ? Does anybody knows how i can for example limit the input zone to 5 lines ?
    Thanks for your help.
    Here's my code
      IF g_editor IS INITIAL.
    *   Instanciation du container pour la zone de texte
        CREATE OBJECT g_textedit_custom_container
            EXPORTING
                container_name = 'TEXTEDITOR'
            EXCEPTIONS
                cntl_error = 1
                cntl_system_error = 2
                create_error = 3
                lifetime_error = 4
                lifetime_dynpro_dynpro_link = 5.
        IF sy-subrc NE 0.
    *      add your handling
        ENDIF.
    *   Création de la zone d'édition du texte
        CREATE OBJECT g_editor
          EXPORTING
            parent        = g_textedit_custom_container
            wordwrap_mode = cl_gui_textedit=>wordwrap_at_fixed_position
            wordwrap_position          = 68
            wordwrap_to_linebreak_mode = cl_gui_textedit=>true.
      ENDIF.

    I just notice there is a method SET_HEIGHT but this one is implemented in CL_GUI_CONTROL.
    I tried this :
            CALL METHOD g_editor->set_height
                    EXPORTING height = w_height.
    But in fact, i never enter the method.
    Do i have to create a CL_GUI_CONTROL object ? If yes, how do i link it to the CL_GUI_TEXTEDIT.
    Sorry if some questions mays seem obvious. It's my first object abap program.

  • Delete X number of lines from files

    I am trying to find a way (either through an extension or
    some other third-party freeware) to remove a number of lines from
    the beginning of my files and replace them with alternate code.
    I know that in many cases, a Search and Replace would do the
    trick. But in my case, the lines that I want replaced do not
    exactly match. For example, I might want to remove the first 15
    lines from the beginning of each file in question; however, I might
    have three lines of code in the files that each set a variable
    value, with that value being different in each file. Thus, as far
    as I understand it, the DW Search and Replace would not work for
    me.
    Even if I have can just find some way to first strip the
    lines of code out without replacing it with the new code I want,
    that would be fine. Adding in the new code afterwards would not be
    an issue.
    Any help would be very much appreciated. Thank you very much.
    James

    On Mon, 7 May 2007 17:14:52 +0000 (UTC), "MUSC Webmaster"
    <[email protected]> wrote:
    > Gary: Thanks for the suggestion; however it wasn't quite
    working for me.
    >After your posting, I played around for a bit with
    regular expressions and the
    >best that I could do was get an expression (^.*\r) that
    grabbed all of the
    >first line, with the "r" representing a carriage return
    as opposed to a line
    >feed. If I try to expand on that expression, the search
    results come up with
    >nothing.
    Actually the linfeed is the \n in my suggestion. The ^
    designates the
    beginning of the string.
    Are you on a Mac? I tested it and it worked correctly on my
    windows
    machine. Come to think of it, I have my line feeds set to
    Unix because
    that's what my web server uses. You can try replacing the \n
    with \r or
    \n\r depending on which line feed you're using:
    ^.*\r.*\r.*\r.*\r.*\r.*\r.*\r.*\r.*\r.*\r.*\r.*\r.*\r.*\r.*\r
    or:
    ^.*\r\n.*\r\n.*\r\n.*\r\n.*\r\n.*\r\n.*\r\n.*\r\n.*\r\n.*\r\n.*\r\n.*\r\n.*\r\n.*\r\n.*\r\ n
    One of the three should work.
    Gary

  • Record Count of Lines in the Reciever Txt file

    Hi,
    I am Working with File to Idoc Scenarion. Where I have field "Record Count in the reciever. Where the total number of lines in the reciever file has to mapped with the field and the file to be recieved to the destination.
    eg:Each Idoc that we receive, 2 lines are written out, one starts with BATHDR, the other is SECPTY.
    There is also then 1 extra line, the header line.  I looked at a bunch of iFiles,  and it seems to be if we knew the total  # of idocs for a given payment run, the total # of lines we would output is:
         ( ( #ofIDOCS * 2) + 1).
    With this observation can you advise on the action to be taken for the out put.
    Thanks ,
    Manoj

    Hi,
    I am Working with Idoc to File Scenarion. Where I have field "Record Count in the reciever. Where the total number of lines in the reciever file has to mapped with the field and the file to be recieved to the destination.
    eg:Each Idoc that we receive, 2 lines are written out, one starts with BATHDR, the other is SECPTY.
    There is also then 1 extra line, the header line. I looked at a bunch of iFiles, and it seems to be if we knew the total # of idocs for a given payment run, the total # of lines we would output is:
    ( ( #ofIDOCS * 2) + 1).
    With this observation can you advise on the action to be taken for the out put.
    Thanks ,
    Manoj

  • SAP-Script - Draw Table (Boxes) with variable number of lines

    Hello,
    I want to create a Table with Frames in a SAP-Script Form. First of all I don´t know the position of the table in the window main. It can be page 2 or 3 on top or in the middle. But i have to describe a position like
    POSITION YORIGIN '12.95' CM.  How can i position the table in a variable way?
    And i don´t know the number of lines of the table. How can I manage to draw the correct numbers of boxes as numbers of lines exist?
    Kind Regards
    Carsten Fuchs

    Hi carsten,
    1. Drawing GRID (just like excel, matrix)
       is very cumbersome in sapscript layout.
      (either dynamically, or hardcoded)
    2. Moreover, the final look,
       may or maynot appear as requried,.
      ie. exactly with proper alignment and grid lines.
    3. If the font size is required to change,
      then the dynamic position also changes.
    4. If the grid is supposed to go to the next page,
      again the calculation and logic becomes tougher.
    5. To use grid, its better to use smartform,
       which provided FINE CONTROL of the grid
      and its lines and width, height, style etc.
    6. In sapsctip, at most we can use
       UNDERLINE (_) and PIPE (|)
    regards,
    amit m.

  • How to extract the lines from the image

    Hi Everyone,
    I have an Image. In that, a circle object (plastic material) placed at centre with dark background. When the light is allowed to propagate through the plasic ring, It is getting disturbed by the cut made in that. When light allowed to pass through, we can see some lines (via camera) in the plastic ring. Now I need to count the number of lines in the plastic ring programatically using Vision. How to start this ??? I m new here, so please treat me like a baby...
    Find the sample Image below.
    I am using NI Vision assistant & Labview 8.2.1.
    Thanks in Advance
    Attachments:
    DSC_3017.JPG ‏165 KB

    I followed the same procedure in Labview 8.2 and it doesnt work (Returns an error: Invalid ROI). Then I started the same programming in 2013 and its working good. I really dont know why ?????!!!!!!!!
    Now the problem is different. After thresholding the image, it stays with some noise. I need to eliminate all and count the number of lines in the image. How to do that ???
    Here I dont see any function like Threshold Detector like what BruceAmmons said.''
    Refer the modified VI attached below.
    Attachments:
    IMAQ_lines_Modified.vi ‏51 KB

  • Maximum number of lines textfield

    Hi everybody !
    I need to set a maximum number of lines on a text field that should be expandable up to that line number and not beyond.
    Who do I know how to do?

    You can control the number of chars in the field, you can limit the field to the visible area but you cannot dictate a number of lines that the field can be. The closest thing you can get is to make  the field the max number fo lines and then use "limit to visible area" so that people cannot add more text.
    Paul

  • Effiecient method to get number of lines in a JEditorPane

    My Computer Science class has a major grade project to complete by Dec. 15. For my project I've decided to make a tabbed Java IDE with save, open, compile, run, and some font options. Due to the need to make Java use the command prompt to compile and run, it will be Windows specific.
    Now, next to my JEditorPane I want to put a JPanel with a GridLayout full of JLabels that will hold the line numbers. I'm having a small problem getting the precise number of lines though. Due to the nature of JEditorPane, I can't just count the number of newline characters in the JEditorPane. I've tried to use a Scanner to go through the text and find all instances of the string "<p style=\"margin-top: 0\">" but because the JEditorPane doesn't make a new <p> tag until text is entered into a new line, this only works some of the time.
    Does anyone know of a way I can effectively and efficiently find the number of lines in the JEditorPane at any given time?
    Message was edited by:
    TheGuy@YourWindow

    Swing related questions should be posted in the Swing forum.
    Normally for a text editor you would use a JTextArea for simple text or a JTextPane if you plan on doing syntax highlighting. JEditorPane is typically used to display HTML files.
    If you search the Swing forum using "utextcomponent" you will find my class that has methods that might be handy for what you want.

  • I purchased photoshop elements 8 on line in 2010. I recently switched to a new desktop computer. Photoshop asked for my serial number. I entered the correct serial number (obtained from Adobe). It says it is invalid. How do I get this corrected so I can u

    I purchased photoshop elements 8 on line in 2010. I recently switched to a new desktop computer. Photoshop asked for my serial number. I entered the correct serial number (obtained from Adobe). It says it is invalid. How do I get this corrected so I can use the product I purchased?

    Hi Rosera,
    This is bad and I am sorry to hear that you are running into these issues.
    Let me connect with you, so right now, the current state is that you have installed copy of PSE 8 in trial on your windows 7 machine, and when you are trying to enter the serial number from your PSE 8 Box, it is saying the serial number to be invalid?
    It might sound pretty obvious, but please make sure that you are entering the serial number correctly and of PSE 8(in case you bought a PEPE box)?
    Have you tried the steps mentioned below by Barbara?
    If possible, you can send me the serial number through PRIVATE MESSAGE and I can check it on my end that whether the serial number is indeed invalid or that the issue is with your machine?
    Regards,
    Ankush

  • How to count number of lines inside methods() using the Doclet API

    Wrote a custom doclet using the [Doclet API|http://java.sun.com/j2se/1.3/docs/tooldocs/javadoc/doclet/index.html ] .
    The purpose for the doclet is to load Java source files and create stubs (which are identical Java source files but do not contain any method implementation details).
    Instead, the method implementation details need to be replaced with blank lines...
    public class MyDoclet {
         private static String TAB = "\t";
         public static boolean start(RootDoc root) {
              ClassDoc[] classes = root.classes();
              // Parse through class or interface
              for (ClassDoc clazz : classes) {
                   Type superClass = clazz.superclassType();     
                   // Print Methods
                   MethodDoc[] methods = clazz.methods();
                   for (MethodDoc method : methods) {
                        Parameter[] parameters = method.parameters();
                        println();
                        if (!method.isPrivate()) {
                             print(TAB + method.modifiers() + " "
                                                    + method.returnType().simpleTypeName() + " " + method.name());
                             print("(");
                             for (int i=0; i < parameters.length; i++) {
                                  Parameter parameter = (Parameter) parameters;
                                  print(parameter.type().simpleTypeName() + " " + parameter.name());
                                  if (i != parameters.length - 1) {
                                       print(", ");
                             print(")");
                             println(" {");
                             println("\n");
                             println(TAB + "}");
              return true;
    As one can see, I am just creating the method and placing the opening and closing curly braces (along with a new \n line escape sequence, in between).
    Am not really that familiar with the Doclet API...
    Question(s):
    (1) What is the best way to figure out how many lines of code are inside each method and then use a for loop to insert the exact same number of blank lines inside the methods?
    (2) Is there a way to do it using the com.sun.javadoc.SourcePosition.line() method?
    Would really appreciate it if someone could help me because this is an important requirement (hence the 10 Duke Stars).
    Happy coding to all,
    Mike                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    This is not possible using the Doclet API, because JavaDoc does not store any information regarding implementation detail. Although MethodDoc#position will give you the line where the method is declared, there is no way to determine where the method body starts and ends.
    If you need that much information, maybe you would be better of using a tool such as Eclipse's Abstract Syntax Tree parser. AST will provide you with line numbers for each code expression, hence it is relatively easy to compute the first and last line in a method body.

Maybe you are looking for

  • MAC VS. PC

    I have a mac, i love it. i had a PC i don't hate it but lets say we have gone our separate ways My question is thus: I hear everyone say that Macs have superior graphics abilities compared to ibm/windows/whatever you want to call them PCs. Yet when i

  • Unable to open itunes after upgrading

    i just did a upgrade to my itunes now it wont open on my computer im using windows 7 64 bit

  • Removing punctuation from the beginning and end of a string

    I am working on a project for a "spell checking" program. So far the StringHash class is made, and the dictionary is read into a hash table. Then the document to be checked is specified via command line, the document scans through each word and check

  • ODS reporting

    Hi All,                I have 4 ODS's ,and i want to create report on these 4 ods's.But when i try to create query on this i am not able to see the ODS's(in bex analyser).I have changed the settings of ODS's ie.   I have enabled the reporting option

  • Audio and video not working

    I am using safari on windows vista but keep getting the MIME type application/x-mplayer2 message. I downloaded the realplayer plug in from the apple website but it doesnt seem to have fixed the problem. Help please!!