How do I divide a paragraph to lines a certain number of words?

Hello,
I have written a class that is supposed to basically, divide the number of paragraphs (in this case separated by newlines) to lines with 10 words or less, meaning each line has 10 words until the last line, which might have fewer words.
I am using jre 1.3, and in my assignment at work I don't have the choice of changing it to a higher jre. So, I have to use 1.3.
I have explained in the code what I want to do, and what I have done. Right now, my problem is in the last for loop, where I wish to take all the words, divide them to 10-word (or less for the last line) sets and add them to the String object line. Afterwards, I'd like to add these 10 words to the Vector lines. As of now, the individual words are getting added to the Vector, instead of lines.
So, basically what I need to do is, count up to 10 words, add them to String line, and when this is finished (which is not the case now), add line to the Vector lines.
Any help will be greatly appreciated. I am really confused on how to implement this part of the code.
Here's the code:
import java.util.StringTokenizer;
import java.util.Vector;
public class StringTester {
     public static void main(String[] args) {
          // TODO Auto-generated method stub
        String str = new String("WASHINGTON (CNN) -- Vice President Joe Biden brushed aside "+
            "recent criticism by predecessor Dick Cheney that moves by the Obama " +
            "administration had put the United States at risk, telling CNN on Tuesday " +
            "that the former vice president was dead wrong.\n"+
            "I don't think [Cheney] is out of line, but he is dead wrong, he told CNN's " +
            "Wolf Blitzer. This administration -- the last administration left us in a " +
            "weaker posture than we've been any time since World War II: less regarded " +
            "in the world, stretched more thinly than we ever have been in the past, " +
            "two wars under way, virtually no respect in entire parts of the world.\n"+
            "I guarantee you we are safer today, our interests are more secure today than " +
            "they were any time during the eight years of the Bush administration."+
            "In an interview with CNN's John King last month, Cheney said President Obama " +
            "had been making some choices that in my mind will raise the risk to the " +
            "American people of another attack.");
        //Basically, what I want to do is divide each of these paragraphs to lines
          //with 10 or less words.  That is, each line has 10 words until the last line
          //which might have fewer words.     
        StringTokenizer st = new StringTokenizer(str, "\n");
        //1. Take each token (which is a paragraph)
        //2. count the number of words it has
        //3. count up to 10 words, until the word count has reached the
        //total number of words on each paragraph, and each of the ten words to a line.
        Vector paragraphs = new Vector();
        while (st.hasMoreTokens()) {
           paragraphs.addElement(st.nextToken());
        Vector lines = new Vector();
        int wordCount = 0;
        Vector words = new Vector();
        for(int i=0;i<paragraphs.size();i++) {
           StringTokenizer st2 = new StringTokenizer((String)paragraphs.elementAt(i), " ");
           //the number of tokens in st2 represents the number of words (separated by space)
           //in each paragraph.
           while(st2.hasMoreTokens()) {
               //then add each word to an arrayList
                words.addElement(st2.nextToken());
        for(int i=0;i<words.size();i++) {
             String line = "";
            while(wordCount < 10 * i) {
                 line = line.concat((String)words.elementAt(i));
                 wordCount+=10;
            System.err.println("adding line: "+line);
            lines.addElement(line);
}

I was bored at the time, im sure you can improve on this example immensely.
import java.util.LinkedList;
public class StoryClass {
     private final String storyOne = new String("WASHINGTON (CNN) -- Vice President Joe Biden brushed aside "+
            "recent criticism by predecessor Dick Cheney that moves by the Obama " +
            "administration had put the United States at risk, telling CNN on Tuesday " +
            "that the former vice president was dead wrong.\n"+
            "I don't think [Cheney] is out of line, but he is dead wrong, he told CNN's " +
            "Wolf Blitzer. This administration -- the last administration left us in a " +
            "weaker posture than we've been any time since World War II: less regarded " +
            "in the world, stretched more thinly than we ever have been in the past, " +
            "two wars under way, virtually no respect in entire parts of the world.\n"+
            "I guarantee you we are safer today, our interests are more secure today than " +
            "they were any time during the eight years of the Bush administration."+
            "In an interview with CNN's John King last month, Cheney said President Obama " +
            "had been making some choices that in my mind will raise the risk to the " +
            "American people of another attack.");
     public static void main(String[] args) {
          StoryClass sc = new StoryClass();
          sc.start(sc.storyOne);
     public void start(String story){
          LinkedList<String[]> allSentences = new LinkedList<String[]>();
          String[] paragraphs = getParagraphs(story);
          LinkedList<String[]> temp;
          for(String s : paragraphs){
               temp = getSentences(s);
               if(!temp.isEmpty())
                    allSentences.addAll(temp);
          for(String[] s : allSentences){
               System.out.println(stringArrayToString(s));
     public String[] getParagraphs(String str){
          return str.split("\n");
     public LinkedList<String[]> getSentences(String sentence){
          LinkedList<String[]> list = new LinkedList<String[]>();
          int count = 0;
          String[] stringy = new String[10];
          String temp;
          for(String s : sentence.split("[ .,]")){
               if((temp=s.trim()).length()==0)
                    continue;
               if(count == 10){
                    list.add(stringy);
                    stringy = new String[10];
                    count = 0;
               stringy[count++] = temp;
          if(count != 0){
               String[] last = new String[count];
               for(int i=0; i<count; i++){
                    last[i] = stringy;
               list.add(last);
          return list;
     public String stringArrayToString(String[] s){
          if(s.length==0){
               return "";
          StringBuilder sb = new StringBuilder();
          sb.append("[");
          for(int i=0; i<s.length; i++){
               sb.append(s[i]).append(", ");
          sb.delete(sb.length()-2, sb.length());
          sb.append("]");
          return sb.toString();
}Mel                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • How to get checkbox checked when sum equals a certain number

    I have created a spreadsheet with 25 rows that will have numerical entries. How do I put in a checkbox that becomes checked once the sum of the numbers Un that row equals a certain number?
    Thanks in advance.

    A hack would be to use CHAR. You have thousands of symbols to choose from. I scanned through some and found a check (there are many more which might better fit your needs).
    So, if your numbers are listed in B1:B25 and 100 is your magic number, then:
    =IF(SUM(B1:B25)=100, CHAR(10004), "")
    or something like:
    =IF(SUM(B1:B25)=100, CHAR(10004), CHAR(10063))

  • How do I use multiple paragraph styles in one line?

    I'm working on my thesis in APA style.  I'm creating a Table of Contents with the help of Pages.  When you get to Level 3 in APA headings (no problems with Levels 1 and 2) it needs to look like this:
    [0.5in Indent] Masculinities in higher education.  For men, the college experience.... (paragraph starts on same line as the heading).
    I created a paragraph style for the (bolded) heading above [Heading 3].  When I do this, like magic the heading shows up in the table of contents (yeah!).  However when I do this the rest of the paragraph shows up too (boo!).  When I highlight to change the just rest of the paragraph (not the heading) to the style "Body" it changes the heading too and removes it from the table of contents.  How can I make 2 paragraph styles work together in the same paragraph so I can use the tale of contents tool??  Surly there is a work-around.
    Pages 5

    As the name implies, paragraph styles are not intended to be used on a unit smaller than a paragraph. Therefore if you want the TOC to be automatically generated then you need to have distinct  paragraphs... as you specify the APA style with the content and heading continuous then you will have to manually create the TOC.

  • Paragraph and line break tags not working in inserted html

    I used some code found on this forum to insert a text box with a scoll bar. The scroll bar is exactly what I needed, and I figured out how to style the text (using the text option that popped up on the far right side of the options bar), but for some reason the text all runs together. The <p> </p> tag is not creating the extra lines, nor could I get extra lines with <br/>. How can I get my paragraph spacing to show up?
    Here is the forum discussion: http://forums.adobe.com/message/4514956
    Here is the code I used:
    <style type="text/css">
         .scroll {     
             padding: 10px;     
             height: 280px;
             width: 450
    0px;
             overflow-y: scroll;
    overflow-x: hidden;;
    </style>
    <div class="scroll">
        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.
           Aliquam venenatis elit et dui scelerisque id condimentum
           tellus mollis. Phasellus varius augue at lectus egestas
           sit amet dapibus sem interdum. Vivamus aliquet augue vitae
           magna porttitor eget sagittis quam convallis. Integer aliquam
           sodales odio vel aliquet. Suspendisse non orci ut quam
           ultricies iaculis vitae vel neque. Sed sit amet neque a dui
           adipiscing convallis. Nam consectetur commodo arcu, eget
           feugiat risus tempus non. Suspendisse dignissim porta risus,
           eu lobortis metus facilisis non. Mauris id lacus eu tellus
           porttitor sodales in sed enim. Mauris euismod libero sed mi
           ultricies ac vehicula tellus tristique. Donec lacus tellus,
           varius sit amet mattis at, feugiat sed ante. Duis auctor
           iaculis aliquet. Vivamus fringilla nisi non eros congue
           dapibus. Praesent quis molestie mauris. Donec adipiscing
           dui ut elit interdum eu scelerisque sem pellentesque.
        </p>
        <p>Nulla pharetra nisl adipiscing ipsum fringilla at auctor
           ipsum posuere. Etiam ac dolor turpis. Nam non ligula purus.
           In metus nisl, ullamcorper ac sodales quis, molestie id leo.
           Etiam faucibus dui at eros molestie interdum. Quisque quis
           eros vel urna fermentum iaculis. Quisque vestibulum erat in
           risus lobortis malesuada rhoncus purus vestibulum. Integer
           vehicula ultrices quam, ac faucibus dui tristique sed. Duis
           nec felis mauris. Morbi non neque turpis, at lobortis mauris.
           Fusce a turpis sit amet leo ullamcorper semper et dignissim
           sem. Phasellus lacinia sodales massa, eget egestas velit
           malesuada at. Quisque feugiat erat in dolor eleifend ut
           convallis ante vehicula. Aenean a turpis neque, vitae eleifend
           augue. Class aptent taciti sociosqu ad litora torquent per
           conubia nostra, per inceptos himenaeos. Nunc porta, massa
           at viverra tincidunt, quam sem pellentesque felis, sed
           mattis lectus arcu eu turpis.
        </p>
        <p>Sed rutrum iaculis vulputate. Duis sed lectus lacus. Etiam
           faucibus, libero id placerat congue, turpis leo varius magna,
           vitae dapibus neque libero eu elit. Vivamus quis urna sed
           nibh elementum sodales quis in dolor. Sed ut metus ut metus
           facilisis fringilla vel sit amet mi. Etiam placerat lectus
           sed nibh bibendum vulputate non rhoncus est. Quisque vulputate
           luctus tincidunt. Duis quis tortor massa, sed scelerisque elit.
           Nam id vulputate orci. Morbi a porta lorem. Nunc elementum
           viverra sem quis blandit. Cras vel eros erat. Aliquam erat
           volutpat. Sed id odio nec erat viverra ultricies vel ac mi.
         </p>
    </div>

    For anyone else struggling with this problem, I chatted with support and got an answer. According to the agent "
    Muse is removing the default margin for various tags including the <p> tag to reset default styles to achieve consistency and control. All you need to do is specify the margin:1em for p tags in CSS to fix this."  Another --simpler-- solution turned out to be another suggestion the agent made: "just place <p> </p> after every closing </p> tag." The &nbsp is what turned out to work for me. Now I have a way to only show a portion of the text yet still allow the reader to access more (through a scroll bar) without leaving the page.

  • How can I indent a paragraph WITHOUT creating spaces above or beneath?

    I am using Dreamweaver CS3 on a G5 Macintosh running OS
    10.5.5.
    I selected a new HTML document (Dreamweaver opened it as a
    CSS) and pasted text from a MS Word document.
    When I "Indent" ALL of the text everything stays the same
    except that it is ALL indented.
    BUT when I "Indent" only one paragraph then that paragraph is
    not only indented BUT there ALSO appears an extra space before and
    an extra space after that paragraph.
    What this is doing is inserting <blockquote> before and
    after the paragraph.
    How can I "indent" a paragraph without any spaces appearing
    before or after the paragraph?
    Also can this be easily done from the Design page?
    I tried inserting a tag by pressing the "tag" button on the
    keyboard but that did the same thing as using the "indent" function
    (i.e. also inserted spaces before & after the paragraph).
    BTW: I am a novice, so please try to make it as simple as
    possible.

    When you paste from Word, you often get line breaks instead
    of paragraphs.
    I think that's the problem.
    Instead of this -
    <p>this is a paragraph</p>
    <p>this is a paragraph</p>
    <p>this is a paragraph</p>
    <p>this is a paragraph</p>
    you get this -
    <p>this is a paragraph<br />
    this is a paragraph<br />
    this is a paragraph<br />
    this is a paragraph</p>
    In which case the symptoms are completely understandable.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Alan" <[email protected]> wrote in
    message
    news:C541348F.315968%[email protected]..
    >
    >
    >> Could you please be so kind to advise me what the
    code should be.
    >
    >>>> and pasted
    >>>> text from a MS Word document.
    >
    > Please give a URL address to an uploaded file that you
    are working on.
    >
    > It could be numerous things.
    >
    > If you pasted Word text into a dw document, it could be
    thousands of
    > things.
    >
    > Specific code- specific problem- specific fix.
    >
    > Otherwise it's just mushy guesses.
    >
    > --
    > Alan
    > Adobe Community Expert, dreamweaver
    >
    >
    http://www.adobe.com/communities/experts/
    >
    >
    >

  • How do I keep a paragraph on one page?

    Hi,
    I have FrameMaker 10 and Windows 7 and I'm a newbie, having worked with InDesign.  I've reviewed the answers in the forum that include instructions about the paragraph designer, but those solutions, such as keep with paragraph, orphan lines, etc.,  don't help.
    Sometimes when I'm typing, the next line jumps to the beginning of the next page even though there's plenty of the current page left.  I guess I must say that this happens when I'm typing into a document that also has material following.  This material usually seems to be an anchored frame.  I've looked at the anchored frame parameters, tried every option, and still I'm stumped. Right now I'm using a workaround; a paragraph style with a font of one point that I insert where necessary to force things to stick together.  Otherwise, my broken line often travels below the anchored frame.  BTW, when I backspace before the line, more material from the previous page jumps down, instead of that piece of sentence being backspaced back up.
    Also, in Indesign it's very easy to size content into the frame.  In FM I'm always shift-dragging to picture after import, to get it to the size of the frame.  Is there a better way to do this?
    Also, is there a way to change the defaults?  I never want the frame to be cropped but the checkbox is checked and I have to uncheck it every time.
    Also is there a keyboard shortcut for getting a page break to the next page?  The popup is very annoying.  I don't even know what 'wherever it fits' means; doesn't a page break mean, the next page?  And how can I get the default to change to 'next page' or better still get rid of that box altogether?
    There is no symbol for a page break, so what happens if I want to remove one?  Does this happen automatically if a break is no longer necessary?  Maybe this is connected to my paragraphing problem?
    I hope you experts out there can make some sense out of my questions.  PLEASE help, these things are driving me crazy!!  Thank you so much in advance.
    PS  This also has nothing to do with master pages or the template; I'm working in a very smooth template that was prepared by experts.  (Luckily.)

    This is probably not the answer to all your questions, but I am sure it answers some.
    Unlike Word and InDesign, FrameMaker's anchored frames, which hold graphics, "hang" from their insertion points, typically at the end of the paragraph. An anchored frame that follows a paragraph is set to be below the line, the line being the last line in the paragraph. If you turn on View > Text Symbols, you will see a marker that indicates the point from which the anchored frame is hanging.
    If the anchored frame is taller than the available space, it is moved to the next page ALONG with that last line. If the paragraph style/tag has a widow/orphan lines number that is more than 1, then that number of lines are also moved to the next page, because the paragraph tag says to keep that many together, EVEN if there is space at the bottom of the previous page.
    So, you can set the widow/orphan lines number smaller OR as you have done put a blank line before the anchored frame, which now holds the marker for the anchored frame, and set its font size to 2 pt (the lowest FrameMaker allows) and its line height to zero. This is the standard workaround UNLESS you use the line above the anchored frame as the title/caption of a figure, which is also a typical way of dealing with FrameMaker's ways.
    To my knowledge, one cannot change the default of the checked cropped box. Maybe others know of some way to change this.
    There is no page break in FrameMaker, hence there is no symbol for it. In the paragraph designer for the paragraph, you set to Start of the paragraph to Top of page. Top of page is FrameMaker's equivalent to a page break. To "remove" a page break, set the Start of the paragraph to Anywhere.
    Since you are new to FrameMaker, I suggest reading throught the User Manual that comes with FrameMaker. You will likely find the answers to most of your questions there.
    Hope this helps,
    Van

  • How do I keep the paragraph spacing in tables?

    Hi,
    I used a table and styles to format a CV in InDesign. Unfortunately the paragraph spacings are only applied in cells, but not inbetween them.
    In the following table, for example, there would be a paragraph spacing between p1 and p2 but not between p2 and p3, and p3 and p4.
    Header 1
    Header 2
    p1
    p2
    p3
    p4
    So far, I matched the cell indents with the paragraph spacings, but creating a cell style for each paragraph style seems weired to me.
    Is there a better way to do this?
    Regards

    qzmufu wrote:
    Thank you. I don't use border lines and a column layout came to my mind. The reason why I didn't opt for it was that I did not know how to place the text like in the example below in columns - well at least not conveniently.
    Header 1
    Header 2
    00/0000 - 00/0000
    Experience 1
    blablabla
    00/0000 - 00/0000
    Experience 2
    blablabla
    00/0000 - 00/0000
    Experience 3
    blablabla
    Unfortunately, the fancy split and span functions aren't availabe for me, as I'm still using CS4.
    Anyway, knowing that there is probably no better way already helps me. So again, thank you.
    You're welcome.
    If this is the format you want, you can create a paragraph stye that uses an indention setting that positions the wrap-around "blablabla" content where you want it, and sets the first-line indent to a negative amount equal to the positive indent. For example, if the blahblah should start at 4" from the left, the first-line indent should be set to -4". Also include a left-aligned tab stop position of 4" so that when you type a tab character after the date, the Experience starts at the same 4" indent. This is called a "hanging paragraph."
    Search Google for terms like "InDesign hanging paragraph tutorial" without quotes for more about this technique.
    For the different vertical position of the left column's text vs. the right column's text, you can create a character style that sets the baseline shift in Advanced Character Formats to a minus value that gives you the look you want. If your right-column paragraphs run longer than 2 lines, you'll need to modify the baseline shift to suit the centering against the right column. You can create paragraph styles named 2-line shift, 3-line shift, etc for this effect. You can apply the character style to the selected left-column text manually, or you can incorporate the character styles into the paragraph styles by using the Nested Styles feature in the Drop Caps and Nested Styles pane of the Paragraph Styles panel. You'll need a paragraph style for each different number of experience wrap-around lines; for example paragraph styles named 2-line experience, 3-line experience, etc. In each of these styles, create the nested style for the appropriate number of experience lines.
    Search Google for terms like "InDesign nested styles tutorial" without quotes for more about this technique.
    There's a lot you can do with tailoring your text. Usually styles are helpful for repeating any things you'd need to do manually, but often folks avoid styles because they take some time to set up. When you choose New Paragraph Style, the settings of the paragraph that contains the cursor are used, so you can easily save any manual work you've done to tailor a paragraph into the style you create. Consider the effort of creating styles as an investment that pays you back many times over, each time you use the styles.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • I need in more lines of the Index some words in Bold text and some others in Kursiv text. How can i get it? It seems to me that either i can have all the Style in Bold Text or in Kursiv Text :(

    I need in more lines of the Index some words in Bold text and some others in Kursiv text. How can i get it? It seems to me that either I can edit a Style only in Bold Text or in Kursiv Text
    I make you an example to clear what I really need:
    Index
    Introduction
    I. Leonardo's Monnalisa
    II. Leonardo's Battaglia
    Bibliography
    Please HELP HELP HELP

    What version of Pages are you referring to?
    Basically if you are talking about the Table of Contents in Pages and want to have different character styles within paragraphs in the T.O.C. you will have to export the T.O.C. and bring it back in as text and change that.
    Peter

  • How to get columns of type to line up across the bottom of the page

    I want to improve a newsletter I design. Right now all the leading is the same throughout. Body copy, caption & Heads. I want to add space after the paragraphs. I want the captions to have less leading than the body copy. That's doable right? Withe Baseline Grid. But how can I get the columns to line up at the bottom of the page if each one is an unpredictably different height? Maybe this is a design grid problem not a typographic one? Any suggestions?

    If you use a baseline grid and space before/after your spaces must by necessity equal the leading (using the align to grid option will force them to the grid, regardless of the chosen size). The grid should match the leading of your body copy.
    If you have headings that you want space before and after, don't align them to the grid, but make sure that the total of the space before, after, and leading for the style add up to a multiple of the body text leading. That will work smoothly everywhere except at the top of a column, where the space before is ignored, and will be added to the space below by virtue of the align to grid on the body copy.
    If instead of having all the copy lign to the grid you just want the top and bottom lines flush, and you want the leading within the paragraphs constant, but a variable space between paragraphs, set the text frame to vertically justified, then set the maximum spacing between paragraphs to a ridiculously large number and all of the extra space required to fill the column will be split between the paragraphs.
    Peter.

  • How do I change the spacing between lines in Pages 5.5.2?  Single spacing prints more like double spacing.

    How do I change the spacing between lines in Pages 5.5.2?  Single spacing prints more like double spacing.

    In the Format panel under the Text Style tab, there is a ▸ Spacing category. Click it to open, and you will have a selector that defaults to Lines, and to the right, the ability to set your spacing in decimal values. In addition to Lines, you also have At Least, Exactly, and Between capability. You can even set exact line height  in points. Check that your Before Paragraph, and After Paragraph settings are correct for your needs.

  • How to print the message in 2 lines?

    How to print the message in 2 lines?
    Here i am having it like this... MESSAGE i000(zm) WITH lv_uname.
    here I want to print lv_uname in 2 lines because it lengthy one.
    Thanks,
    Sridhar.

    No man, itas not comming..I am using the below logic to print my message:
        CONCATENATE text-I01 lv_printdate1 text-I02 INTO lv_printname
    SEPARATED BY space.
        MESSAGE i002(zm) WITH lv_printname.
    its printing in a single line...

  • How to create a report in Form line Style and can display Image field?

    Hi,
    In Report builder 10g, I would like to create a Report with Form Line Style and this report included a Image field.
    I can choose this Style only when Select Report type is Paper Layout. Because, If I choose Create both Web & Paper Layout or Create Web Layout only then in the next Style tab 03 option Form, Form letter and Mailing Label be Disabled.
    But in Paper Layout, my report can not display Image field.
    I tried with Web layout and all the other Styles (Except 03 mentioned be Disabled) then all Styles are displayed Imager field OK.
    How to create a report in Form line Style and can display Image field?
    I was change File Format property of my Image field from text to Image already in Property Inspector. But report only showed MM for my Image field.
    Thanks & regards,
    BACH
    Message was edited by:
    bachnp

    Here you go..Just follow these steps blindly and you are done.
    1) Create a year prompt with presentation variable as pv_year
    2) Create a report say Mid report with year column selected 3 times
    - Put a filter of pv_year presentation variable on first year column with a default value say @{pv_year}{2008}
    - Rename the second time column say YEAR+1 and change the fx to CAST(TIME_DIM."YEAR" AS INT)+1
    - Rename the second time column say YEAR-1 and change the fx to CAST(TIME_DIM."YEAR" AS INT)-1
    Now when you will run Mid Report, this will give you a records with value as 2008 2009 2007
    3) Create your main report with criteria as Year and Measure col
    - Change the fx for year column as CAST(TIME_DIM."YEAR" AS INT)
    - Now put a filter on year column with Filter based on results of another request and select these:
    Relationship = greater than or equal to any
    Saved Request = Browse Mid Report
    Use values in Column = YEAR-1
    - Again,put a filter on year column with Filter based on results of another request and select these:
    Relationship = less than or equal to any
    Saved Request = Browse Mid Report (incase it doesn't allow you to select then select any other request first and then select Mid Report)
    Use values in Column = YEAR+1
    This will select Year > = 2007 AND Year < = 2009. Hence the results will be for year 2007,2008,2009
    This will 100% work...
    http://i56.tinypic.com/wqosgw.jpg
    Cheers

  • How do I edit a paragraph typed into one of my pdf contracts sent from someone?

    How do I edit a paragraph that has been typed into one of my pdf contract drafts from someone else?

    You can purchase Acrobat or you can install it as a Trial for thirty days
    Trial is available at below mentioned link
    https://www.adobe.com/cfusion/tdrc/index.cfm?product=acrobat_pro&loc=ap
    you need to create an adobe ID if you do not have one.
    ~Pranav

  • How about some more samsung products in the auctions ? I really don't want to bid on those crappy ipads. How about a better mix of product lines or at least some of your "new" digital coupons geared towards Samsung products????

    How about some more Samsung products in the auctions ? I really don't want to bid on those crappy ipads.
    How about a better mix of product lines or at least some of your "new" digital coupons geared towards Samsung products????

    How about some more Samsung products in the auctions ? I really don't want to bid on those crappy ipads.
    How about a better mix of product lines or at least some of your "new" digital coupons geared towards Samsung products????

  • When I take my phone off charge in the morning I get an info box on the front which has the sound trumpet icon with a line through it and the word Mute.  The only way to get rid of it is to reboot the phone any ideas as to how I can stop this happening?

    When I take my phone off charge in the morning I get an info box on the front which has the sound trumpet icon with a line through it and the word Mute.  The only way to get rid of it is to reboot the phone any ideas as to how I can stop this happening?

    Hello cor-el, thanks for your reply. I changed my settings for downloads to desktop and it has appeared on there. When I double click I am asked which program I want to open file. I click firefox and another box "opening install" says I have chosen to open the file which is an application and do I want to save it. This is the only real option so I press save file. I get a box saying this is an executable file which may contain viruses - do you want to run. I press ok and the final box showing C drive file name and desktop appears stating application not found.
    This happens the same whenever I try to install.
    To my untrained eye the application is not being recognised as an application and I cannot work out how to get it to do that.
    My plugin is still showing as out of date.
    Is there anything you could suggest. Thanks for your time.

Maybe you are looking for