Help!  Simple Formula, Unique Output?

Post Author: kjameson70
CA Forum: Crystal Reports
In order to save space, I am creating a simple formula to include a company name, location, contact & phone instead of putting each field into a Text Box, which makes the Detail section of the report the same size whether data is reported or not. 
Creating the formula is easy, but I want each field to print on a new line, instead of in the same row or to wrap. 
How do I tell the formula to go to the next line? **
Current Formula:  + + +
Preferred Result:   Company   Location   Contact   Phone
Not:  CompanyLocationContactPhone2
What needs to be done to get the Preferred Result?
This result is one of many columns on the report.

Post Author: SKodidine
CA Forum: Crystal Reports
  & chrw(13) & & chrw(13) & & chrw(13) &

Similar Messages

  • Query on simple formula write in transformation

    Hi Bw Experts,
    i am loading 0calday(20100401) to Standard cube(BI 7.0) from flat file.In the cube output i need only month and year(i.e 04.2010).I have to write the simple formula in transformations on 0CALDAY Field.What is the formula i have to write?
    Could you please help me out?
    Thanks

    Hi,
    you can achive this using the Filed routine or formula
    DATE_MONTH(0calday) which will display month and year.
    or write filed routine
    RESULT = TRAN_STRUCTURE-0CALDAY+0(6). (BW 3.x)
    RESULT = SOURCE_FIELD-0CALDAY+0(6). (BI 7.0)
    Regards
    Kp
    Edited by: prashanthk on Jul 31, 2010 7:12 PM
    Edited by: prashanthk on Aug 1, 2010 6:21 AM

  • Creating a single variable from a simple formula

    Hi guys,
    I'm ploughing my way through the basics of expressions, constantly running into syntax errors as I still haven't found out the logic behind it all. It is still a great mystery to me when to use spaces, [ ] { } and ( ) not to mention =.
    I was trying to create a variable called "y" from a simple formula. My scripting looks like:
    veloc = 3;
    amplitude = -5;
    decay = 0;
    y = amplitude*Math.sin(veloc*time)/Math.exp(decay*time);
    [value[0],y[1]]
    But whatever brackets and things I put around this formula, whatever spaces or newlines, somehow AE doesn't accept it. When I replace the formula for a wiggle, the fifth line is accepted, and when I replace the "Y" in the fifth line for "value" there are no errors, so obviously AE considers the formula not valid. What is the difference between the output that wiggle(,) gives and the output of this formula? How should I write this expression? Is there any website resource where the logic behind the bracket, spacing, newline, order etc. of this script language is demystified? And I mean really at basic, really baby level. I am pretty good at maths, but the programming hieroglyphs and their secret rules still don't make sense to me.
    Any help is greatly, greatly appreciated.

    Hi Mylenium, thanks for your fast answer. I tried both
    veloc = 3;
    amplitude = -5;
    decay = 0;
    y = amplitude*Math.sin(veloc*time)/Math.exp(decay*time);
    [y[1]]
    and
    veloc = 3;
    amplitude = -5;
    decay = 0;
    y = amplitude*Math.sin(veloc*time)/Math.exp(decay*time);
    y[1]
    but it's a big no-go still. I am really not getting the logic of the format. AE reports Class 'Number' has no property or method named '1', or that the outcome should be of dimension 2, not 1. Any more ideas?

  • Search help problem in ALV output for field TD24A-DISMM

    Hi Abap-Experts,
          I have one issue regarding simple ALV report.
          I need to display search-help for field DISMM.  I have used below code in ALV fieldcatalog.
          ts_fieldcat - tabname = 'TD24A'.
          ts_fieldcat - tabname = 'DISMM'.
          I have attached search-help for fields such as MATNR and WERKS too.
          The search-helps are getting displayed for MATNR as well as WERKS.
          But, the search-help is not gettting displayed for field DISMM(RP-TYPE) .
             The output displayed is done using Simple ALV.     
            Could anyone please help me and correct my code or logic i have used.

    Hi,
      I have changed code a bit...and used T438A table.
      CLEAR ts_fieldcat.
      ts_fieldcat-col_pos = '5'.
      ts_fieldcat-fieldname = 'DISMM'.
      ts_fieldcat-seltext_l = text-014.
      ts_fieldcat-outputlen =  2.
      ts_fieldcat-reptext_ddic  = ''.
      ts_fieldcat-ref_tabname   = 'T438A'.
      ts_fieldcat-ref_fieldname = 'DISMM'.
    ts_fieldcat-ddic_outputlen = '2'.
      ts_fieldcat-input         = 'X'.
      APPEND ts_fieldcat TO gt_fieldcat.
    still it is not showing me the F4 help in simplae ALV output..
    kindly help me

  • Avchd   converter for help  you create unique videos easily

    Emicsoft HD Video Converter is the high definition video converter software develeped to convert HD video files with high quality. With this HD video converter you can also easily convert between HD video formats, convert standard definition videos to HD videos, or convert HD videos to SD (Standard-Definition) videos. The HD video converter supports most of HD video formats: MTS/M2TS, TS, HD MKV, HD AVI, HD MP4, HD WMV, HD MOV, HD ASF.
    How to use this HD Converter?
    1. Launch the software and click "Add File" button to import files into the software. You c help yoan watch them on the preview screen.
    2. Edit the added movie by clicking "Effect" "Trim" or "Crop" button which can help you create unique videos easily.
    3. Select output in Profile option. Here all popular formats and mobile devices are supported. Then make sure the destination folder.
    4. Click "Start" button and the program will automatically start conversion.
    Emicsoft AVCHD Converter can convert AVCHD video to all popular video formats, and convert other videos to AVCHD video. So many formats are supported such as HD video (TS, MTS, M2TS, HD MPEG-4, HD MOV, HD AVI, HD VOB, HD ASF, HD WMV, etc.), general video (AVI, MP4, WMV, MPEG-1, MPEG-2, VOB, MOV, 3GP, FLV, SWF, etc.) and audio track (MP3, WMA, WAV, AAC, AC3, OGG, etc.).
    Emicsoft MOD Converter is a powerful MOD video converter which can MOD to AVI, MOD to MPG, MOD to MPEG, MOD to WMV and to other video format, such as FLV, SWF, ASF, DivX, XviD, MP4, VCD, SVCD, DVD-Video, VOB and so on. Batch conversion supported, so you can add several .MOD files one time.
    More softwares may help you:
    Emicsoft Video Converter
    Emicsoft FLV Converter
    Emicsoft MTS Converter

    Komposer-NVU is an html editor for Mac based on the Mozilla Gecko engine (Seamonkey).
    http://www.kompozer.net/
    Seamonkey (mozilla.org) has an html editor called Composer.
    Dreamweaver by Adobe (not free of course). The standard everyone
    else is judged by:
    http://adobe.com
    Freeway
    http://www.softpress.com/store/
    Edit Rocket, never tried it, but the price is right if it works!
    http://www.editrocket.com/download_mac.html
    PageSpinner:
    http://www.optima-system.com/pagespinner/
    More:
    http://www.pure-mac.com/webed.html
    Kj

  • Help in XML Report output

    Hi Experts,
    I have created the XML report which will generate the output in EXCEL format. I have used the template(rtf) to generate the output. I am facing the critical issue the output file (excel) is giving output with headings( ex: empno,ename,job..)even if there is no record count in the query.
    But some times it gives the empty file(excel) without the heading information if the record count is zero.
    Could anyone suggest me to solve this error.
    Any solution or link will be great help for me. Waiting for your valueable reply
    Thanks in Advance,
    Ravi.

    Hi,
    Please see if this thread helps.
    XML publisher output report in excel format
    Re: XML publisher output report in excel format
    Regards,
    Hussein

  • Editable field with F4 help in alv tree output using cl_gui_alv_tree

    HI
    i need Editable field with F4 help in alv tree output using cl_gui_alv_tree
    Regards
    Naresh

    Hi Naresh,
    Pass the field catalog with the additional parameter (ls_fcat-edit = 'X'.).
    for F4 help if the data element have the search help it automatically will come. other wise include the additional parameter in the field catalog (ls_fcat-F4AVAILABL = 'X')
    Reward if found helpful.
    Regards,
    Boobalan Suburaj

  • Can anyone help me find the output option in Bridge CC?

    Can anyone help me find the output option in Bridge CC?

    http://helpx.adobe.com/bridge/kb/install-output-module-bridge-cc.html

  • Sort descending a column generated by a simple formula?

    I have just upgraded to Numbers 3.2 from '09 and I have discovered this nasty problem where I can not “sort descending” a column generated by a simple formula.
    Imagine the sequence 1, 2, 4, 8, 16, 32, 64…
    — Let's add the first number, “1” in B1
    — Click on B2 and make it equal to B1*2
    — And so on, click your B2 cell and drop to bottom.
    We get this nice succession:
    OK. Now imagine we want to “sort-descending” this. We press on top and choose the descending option. And then we get this annoying result:
    How I can to fix this problem?
    This worked perfectly on previous Numbers versions ('09) and of course in Excel or OpenOffice. And it's a very “simple” and common feature.
    Or maybe I'm forgetting or misunderstanding something?
    Thanks for your support :-)
    Cristóbal Vila.

    Sorting has changed since the previous version.
    You can sort this by selecting the column with the sequence, then copy
    then select the menu item "Edit > Paste Formula Results"
    now sort
    another way is to place a "count" in column A... 0 thru whatever
    and place a formula to computer the power of two from that count:
    In this case I entered 0 in cell A1, then 1 in cell A2
    select cells A1 and A2 and fill down as needed by dragging the yellow dot that appears when you hover the cursor over to bottom edge of the selection
    In cell B1 I entered the formula "=2^A1"
    no select cell B1 copy
    select column B,  paste
    now you have a sort-safe table and may sort as needed

  • Simple formula going nuts!

    Post Author: echoi
    CA Forum: Formula
    I've a very simple formula that... for the life of me, I can't figure out whats going on with it.
    It is in a subreport, and all it's supposed to do is look up a string for every record and if it matches, it adds on the value of a different coulmn.  So here's the formula:
    whileprintingrecords;numbervar hours;
    if {Command.DESCRIPTION} = "Closed Labor Charges" thenhours := hours + {Command.QTY}else1234 // failure code
    What's weird about this is that there are three records that should match the "Closed Labor Charges" but the formula returned the value for only one of those records.  That's typical, I could have holes in my formula.
    What makes it even more odd from here on is that if I bring up 6 more records that have "Closed Labor Charges", the formula returns "1234" which is the failure code defined in the formula.  The records even contain the original match the formula found before and it's still returning a fail code.
    What is going on here?

    Post Author: V361
    CA Forum: Formula
    You may be able to peek into it a little by doing this.  add /0 to the formula, and save it. (You will get an error message, but save anyway)  run the report
    whileprintingrecords;numbervar hours;
    if {Command.DESCRIPTION} = "Closed Labor Charges" thenhours := hours + {Command.QTY}  /0else1234 // failure code
    The formula should pop up in formula explorer, and should show some values.
    (Not a great way to trouble shoot, but sometimes it is handy to see what the Formula is doing. )  Also, after you remove the /0 and convert back to the orginal formula, add {Command.DESCRIPTION} to the report (next to the formula), or in the details, and unsupress them, this way, you should be able to see the value for {Command.DESCRIPTION} just before the formula is evaluated.

  • Need help with a simple prime number output program

    ok, the teacher asked for a program to output the first 90 prime numbers and i have been able to do that so far. but now he is asking for the numbers to be printed in a grid of columns and rows. specifically 9 across and 10 down.
    im stumped. what should i do 0_o
    so far, this is my program:
    package primetest;
    public class Main {
    public static void main(String args[]){
    int num1,num2;
    int flag=0; //Checks to see if the number in question is prime or not
    for(num1=1;num1<=463;num1++)
    flag=0;
    for(num2=1;num2<num1;num2++) //Remove the num2<=num1 and let it be as shown
    if(((num1%num2)==0) & num2!=1) //Thus you can remove the third condition
    flag=1; //Flag set to indicate that the number is prime
    if(flag==0)
    System.out.println(num1);
    }

    Congratulations, your code compiles, runs, and appears to produce correct output. (I didn't check every result.) That's far more than most students manage.
    I'd recommend that you separate generating the values from printing them. Can you store primes in an array and then pass that array to another method that prints them out according to your assignment's requirements?
    The good news is that you've solved a good chunk of the problem already. You only have the printing to worry about.
    I'd improve on your class naming. Main? C'mon. How 'bout PrimeFinder or something with a bit more imagination. Names matter in programming. If you gave me this class I'd have to look at the source code to figure out what Main did, but PrimeFinder gives me a hint just from the name.
    Move that stuff out of the main() method and into one of its own. Maybe you can pass in the upper limit over which you want the method to search for primes and return an array of values.
    %

  • Help with a label output. Probably something simple.

    Don't worry about the rest of the code, my problem is that the label will not update after the btOption1 button is clicked.
    Any suggestions?
    // Create the event
        class ButtonListener implements ActionListener
            public void actionPerformed(ActionEvent e)
                if(e.getSource() == btOption1)
                    // Declare variables
                    int intTickets = 0;
                    double dblSurcharge = 0;
                    double dblTotal = 0;
                    String strNum1 = lblFName1.toString();
                    String strNum2 = lblFName2.toString();
                    String strNum3 = lblFName3.toString();
                    String strNum4 = lblFName4.toString();
                    String strOutput = "";
                    // Calculate the amount of tickets sold for the surcharge
                    intTickets = Integer.parseInt(strNum1) + Integer.parseInt(strNum2) + Integer.parseInt(strNum3) + Integer.parseInt(strNum4);
                    // Calculate the surcharge
                    dblSurcharge = 5 * intTickets;
                    // Calculate the total cost
                    dblTotal = dblSurcharge + ((Integer.parseInt(strNum1) * 7.50) + (Integer.parseInt(strNum2) * 6.25) + (Integer.parseInt(strNum3) * 8.75) + (Integer.parseInt(strNum4) * 7.50));
                    //  Convert the double to string
                    strOutput = dblTotal.toString();
                    // Display the total cost of the tickets
                    lblOutput.setText("$" + dblTotal);
        }Edited by: Anonymous23 on Jun 7, 2010 3:05 PM

    import javax.swing.*;
    import java.awt.GridLayout;
    import java.awt.event.*;
    import java.awt.*;
    public class FandangoTickets extends JFrame
        int intTickets = 0;
        int intSurcharge = 5;
        double dblTotal = 0;
        private JButton btOption1 = new JButton("Order");
        private JLabel lblImage = new JLabel(new ImageIcon("Images/Fandango.jpg"));
        private JTextField lblFName1 = new JTextField("0");
        private JTextField lblFName2 = new JTextField("0");
        private JTextField lblFName3 = new JTextField("0");
        private JTextField lblFName4 = new JTextField("0");
        private JLabel lblOutput = new JLabel("$0.00");
        public FandangoTickets()
            setLayout(new GridLayout (7,3,3,3));
            add(new JLabel("Matinee Tickets:"));
            add(new JLabel(""));
            add(new JLabel(""));
            add(new JLabel(""));
            add(new JLabel("Adult Ticket"));
            add(lblFName1);
            add(new JLabel(""));
            add(new JLabel("Child Ticket"));
            add(lblFName2);
            add(new JLabel("Evening Tickets:"));
            add(new JLabel(""));
            add(new JLabel(""));
            add(new JLabel(""));
            add(new JLabel("Adult Ticket"));
            add(lblFName3);
            add(new JLabel(""));
            add(new JLabel("Child Ticket"));
            add(lblFName4);
            add(lblImage);
            add(btOption1);
            add(lblOutput);
        class ButtonListener implements ActionListener
            public void actionPerformed(ActionEvent e)
                if(e.getSource() == btOption1)
                    String strNum1 = lblFName1.toString();
                    String strNum2 = lblFName2.toString();
                    String strNum3 = lblFName3.toString();
                    String strNum4 = lblFName4.toString();
                    String strOutput = "";
                    dblTotal = intSurcharge + ((Integer.parseInt(strNum1) * 7.50) + (Integer.parseInt(strNum2) * 6.25) + (Integer.parseInt(strNum3) * 8.75) + (Integer.parseInt(strNum4) * 7.50));
                    strOutput = Double.toString(dblTotal);
                    lblOutput.setText("$" + dblTotal);
        public static void main()
            FandangoTickets frame = new FandangoTickets();
            frame.setTitle("Fandango Tickets");
            frame.setSize(300,300);
            frame.setLocationRelativeTo(null);
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setVisible(true);
    }

  • Help with formatting multiline output into comma delimited ordered output

    I have 2 tables:
    SQL> desc table_1;
    Name Null? Type
    ===================================
    ID NOT NULL NUMBER
    DATA1 NOT NULL VARCHAR2(440)
    DATA2 NOT NULL VARCHAR2(1024)
    SQL> desc table_2;
    Name Null? Type
    ===================================
    ID NOT NULL NUMBER
    ATTNAME NOT NULL VARCHAR2(255)
    ATTVAL                          VARCHAR2 (4000)
    DATA1 NOT NULL CHAR(1)
    DATA2                          VARCHAR2 (2000)
    DATA3                          VARCHAR2 (255)
    I need to get ATTVAL from where e.g. ATTNAME=att_name1 to ATTNAME=att_name6 from every entry (with its unique ID), and format the output into comma delimited format in e.g. this order:
    att_val1,att_val3,att_val6,att_val4,att_val5,att_val6
    So e.g. for entry with ID "9812" from the query below, the output I need would be:
    187,179,156,134,1436,1809
    What I've got so far is as follows:
    SQL> SELECT id,attname,attval FROM table_2 WHERE id in (SELECT id from table_1 WHERE data2='xxx')
    AND attname in ('att_name1','att_name3','att_name6','att_name4','att_name5','att_name6');
    ID               ATTNAME               ATTVAL
    ===============================
    1970 att_name1 123
    1970 att_name2 abc
    1970 att_name3 1234
    1970 att_name4 def
    1970 att_name5 1134
    1970 att_name6 ghj
    9812 att_name4 134
    9812 att_name5 1436
    9812 att_name3 156
    9812 att_name1 187
    9812 att_name2 179
    9812 att_name6 1809
    77 att_name1 1980
    77 att_name5 1867
    77 att_name3 174
    77 att_name4 1345
    77 att_name2 1345
    77 att_name6 1345
    but I don't know how to format the output comma limited in certain order. (or if this is the best way of getting the data out)
    Would someone have idea how this could be done?

    846954 wrote:
    Thanks Frank!
    I got much further now :).
    I've got Oracle 10g So I used the "SYS_CONNECT_BY_PATH" for my query.
    Now I get the output in the format I want, however, it comes out in the order that the attributes are (which is pretty random).The values you posted are in order: 'attval1' < 'attval2' < ...
    So I'm using this now(had to use "|" as separator because SYS_CONNECT_BY_PATH would not work with comma due to some of the attval having comma in them ):The values you posted don't contain and commas.
    You're hiding what the problem is. It would really help if you posted actual data. It always helps if you post CREATE TABLE and INSERT statements for a little sample data, and the results you want from that data.
    Assuming you really have something that has to be in a certain order, and that order is not based on anything in the values themselves, then DECODE might be a good way to do it. Storing the sort value in a table might be even better.
    It looks like you were using an Oracle 9 exanple. In Oracle 10, using SYS_CONNECT_BY_PATH is simpler:
    SELECT     id
    ,     LTRIM ( SYS_CONNECT_BY_PATH (attval, '|')
               , '|'
               )          AS attvals
    FROM     (
              SELECT     id
              ,     attval
              ,     ROW_NUMBER () OVER ( PARTITION BY  id
                                  ORDER BY          DECODE (...)
                                )     AS curr
              WHERE     id     IN (
                             SELECT  id
                             FROM     table_1
                             WHERE     data2     = 'xxx'
              AND     attname     IN ('attname1','attname2','attname3','attname4','attname5','attname6')
    WHERE     CONNECT_BY_ISLEAF     = 1
    START WITH     curr     = 1
    CONNECT BY     curr     = PRIOR curr + 1
         AND     id     = PRIOR id
    ;You don't need two almost-identical ROW_NUMBERs; one will do just fine.

  • Help !! no output in xcode !!

    hello i just downloaded the OS X maverick and the new xcode 5 and when i open a c   project and write a simple code nothing appears on the output screen !!! , can anyone help me ??

    Working for me
    Are you sure you are creating a command line tool?

  • Need help with formula in Numbers for iPad 2

    I have a spreadsheet with a formula such as b2 x c2  very simple.  However, if the formula cells (b2 and 2) are blank then the destination cell contains a zero. How can I make my destination cell b blank while the formula cells are blank? I got thsvresponse from a person working with Mac os x, if this helps...
    I can't seem to make this work in my formula bar on ipad2!
    =if(isblank(<source cell>), "", <What ever your formula is>)
    Thanks for any suggestions!
    iPad 2

    Your friend was close, but forgot one thing. If you want it to be blank if either cell is MT, then you need an OR as well o test if either one or the other is blank...
    =IF(OR(ISBLANK(a1),ISBLANK(b1)),"",a1xb1)
    The isblank can also be represetned by ="" in many cases, usually accompanied with a trim to make sure there are no spaces were entered...
    =IF(OR(TRIM(a1)="",TRIM(b1)="")),"",a1xb1)
    Jason

Maybe you are looking for