Save Formula Fields

Is there a way to save a formula field for future use? For example, I create a formula field that I will need to use on various reports. Do I have to recreate this formula field for each new report? Or can I save it for future access on the new reports?
Thanks!

Hello
As far as i can see the only way to re-use formulas is if you are connected to a BO repository (Crystal Reports server or BO Enterprise)
Then you can add a formula to the repository and pull it into another report from the repository
When you are just using Cr designer then i think you need to copy your formulas across, from report to report
If you copy from the desing canvas of one report to the desing canvas of another report then the formual will be created in the new report for you (you would then need to change field names etc)
I hope i am wrong, and that there is another way
Best regards
Patrick

Similar Messages

  • New formula field in PLD

    Hi All,
             I created a new field in PLD, that is when customer exceeds balance Rs.1000 it should be printed in the PLD like "Please pay your debit-Rs1000, and when customer balance is below Rs1000 it should not be printed.
             First I created a text field that is "Please pay your debit"
             Second I created a database Field, Table "Business Partner"
         and Column "Account Balance".(Unique ID is F_138).I linked this database to formula field.
             Third I created a formula "Field_138>=1000".(Unique ID is F_141).
            But it displays in the PLD, even if the business partner balance is less than Rs.1000. Please explain what is the problem.
    Thanks
    Pratheeviraj

    Hi Sridharan,
                   Yes, I gone through the E-Learning for PLD, from that only I created a formula for scenario which I mentioned above and the formula is "Acc_Balance>=1000" and the system message is "errors were found in the formula field: Acc_Balance. Do you still want to save".
           Because of this problem only I post a new thread for formula creation, which you have answered.
           And in the E-Learning demo I am not understanding properly, in that the unique ID is mentioned as cond1 I don't know how to create cond1 in unique ID, and they links this unique ID to database, formula and text fields, this is not understanding for me.  
           That's why I post new thread.
    Thanks
    Pratheeviraj.

  • Using formula field as parameter to subreport fails

    Anyone passing formula fields to subreport to feed into a SQL stored proc?  I'm using Crystal XI to develop the report and I haven't consistently been able to get it to work. 
    The main report is essentially a shell to call the subreport.  I have created a variable to store the currentceusername value so it can be passed to the subreport as a parameter.  This doesn't work immediately since I get the error message "Database connector error '42000:[Microsoft][ODBC SQL Server Driver][SQL Server]Procedure or Function 'usp_PG0123...' expects parameter '@username', which was not supplied. [Database vendor code: 201]
    But I have set up that parameter in the Subreport Link.  My workaround is to edit the subreport, refresh the report and enter the parameters to the subreport to retrieve data.  Close the subreport and the main report will now function properly and pass the data to the subreport.
    After it is working locally in my CR XI, I save the report to the BOE XI server.  Running the report on the server I get "Error in file reportnamerpt: Database Connector Error".  My local copy of CR XI is patched with the latest SP and hotfixes.  Our BOE XI server is on SP3 with hot fixes. 
    I can't figure out what I'm not doing right... I have been constantly removing and re-creating the subreport and re-creating the sublinks.  This error does not occur if I replace the formula field with a regular parameter in the main report to feed to the subreport.
    Anyone have any suggestions?
    Thx.
    Patrick

    I know this can be done, because that's basically how I pass multiple-selection parameters to an SQL Command.
    The only thing I can think of is if the data types of the formula field is not exactly the same as the database parameter, Crystal may drop the link or something.  That's pretty much a WAG, but it's something...
    HTH,
    Carl

  • Trying to bottom align a formula field column header

    Hello, I am using CR 2008 and Edge 3.1.  I have 5 formula column headers that are designed to hold four lines of text with 10 characters per line with the font that we have chosen.  The text for each column heading comes from a parameter field.  I am trying to bottom align the text and it works in CR 2008 but when I load the report into the Enterprise and run it I do not get the same results.  Here is my code for the Column 1 Header:
    If length({?Col1 Header}) > 30 Then
        formula = {?Col1 Header}
    ElseIf length({?Col1 Header}) > 20 Then
        formula = Chr(13) + {?Col1 Header}
    ElseIf length({?Col1 Header}) > 10 Then
        formula =  Chr(13) + Chr(13) + {?Col1 Header}
    Else
        formula = Chr(13) + Chr(13) + Chr(13) + {?Col1 Header}
    End If
    I have the same formula for all 5 columns except the other 4 are reading their respective column prompt, ie: {?Col2 Header} for column 2. I changed the number of returns for testing purposes in columns 2, 3 and 4 to step up what was printed in each column.  So I put the same thing in each column header: Qtr 4 2009.  When I print in CR 2008 column 1 prints in the desired location, at the bottom of the formula field, the fourth line.  I changed the code in column 2 by taking away one of the carriage returns from the Else part of the code and the text prints on the third line as it should.  In column three I took away another carriage return from the Else part and the text prints on line two and with no carriage returns in the Else part of the code in column 4 the text prints at the top of the field.  Exactly what I want.
    What happens when I save the report in the Enterprise and run it is that columns 2, 3 and 4 have the desired results but there is nothing in column header 1.  I have absolutely no idea of how to fix this because it runs as desired locally.
    Does anybody have any ideas?  Any help would be greatly appreciated.

    Carl,
    The report is being created from a VS .NET 2005 program that scedules the report to run immediately.  I just use Infoview to look at the report after it has finished running.  Here is the part of the VS code that tells it how to print:
    Dim rfo As ReportFormatOptions = myreport.ReportFormatOptions
            rfo.Format = CeReportFormat.ceFormatPDF
            rfo.PDFFormat.ExportAllPages = True
            query = "SELECT SI_DEST_SCHEDULEOPTIONS, SI_PROGID FROM CI_SYSTEMOBJECTS " & _
                "WHERE SI_PARENTID=29 AND SI_NAME='CrystalEnterprise.DiskUnmanaged'"
            Dim destinationInfoObjects As InfoObjects = myInfoStore.Query(query)
            myInfoObject = destinationInfoObjects(1)
            Dim destinationPlugIn As DestinationPlugin = CType(myInfoObject, DestinationPlugin)
            Dim diskUnmanaged As DiskUnmanaged = CType(destinationPlugIn, DiskUnmanaged)
            Dim destinationOptions As DestinationOptions = diskUnmanaged.ScheduleOptions
            Dim diskUnmanagedOptions As New DiskUnmanagedOptions(destinationOptions)
            Dim strFile As String = "E:\BOBJ Reports\" & Environment.UserName.ToString & "\"
            strFile = strFile & strDeptName & ".pdf"
            diskUnmanagedOptions.DestinationFiles.Add(strFile)
            mySchedulingInfo.Destination.SetFromPlugin(diskUnmanaged)
            myInfoStore.Schedule(myInfoObjects)
            myEnterpriseSession.Logoff()
            myEnterpriseSession.Dispose()
    I went into InfoView though and looked at how you did it above.  When I go to Format->Format Options I do not have an "Adobe Acrobat" option.  I have twelve options, one of which is "PDF".
    Under Print Settings I could not find a "None" option anywhere no matter which of the radio buttons, checkboxes or listboxes that I chose.
    Do I need to add Adobe Acrobat/Adobe PDF as a printer option in Edge somewhere or is my only option always going to be "PDF"?

  • SAP Crystal reports formula fields

    hi,
        how to use formula fields in crystal report.
                         thanks & regards,vinoth

    Hi Vinoth,
    That's a very vague question.
    You can create formulae via the Field Explorer > Formula option.
    After you save and close the formula editor, you need to drag and drop the formula on the report for it to execute.
    If you need help with a formula, please post the requirement.
    -Abhilash

  • How to appear a formula field for once at a fom-like report?

    Hi All,
    I have created a formula field and then set the property "Maximum Records per page" to the value 12 for the repeating frame containing this field and all other fields.
    Now I want to make an exception for that formula field
    I want it to be appeared only for one time not 12 times!
    how to do this Plz?

    Hi,
    I assume that your formula column is at a higher level than your repeating frame (in other case it's not clear which value you want to display). Bring the filed representing the formula column behind the repeating frame, then it's diplayed only once.
    Regards
    Rainer

  • Unable to save lookup field data in SharePoint 2013 online list

    Dear Support,
    I had successfully created provider hosted app and deployed on SharePoint 2013 online site, in my project I created orderservice.asmx.cs web service and write a code for save record on SharePoint
    2013 online list as I mentioned below and calling on App1.js file.
    But I am unable to save lookup field value as mentioned below code
    Customer is a lookup field I want to save data in SharePoint 2013 online list( Order)where I had successfully
    inserted text field  data (Title &
    Special_x0020_Instruction).
    i am getting error as mentioned below
    500 Internal Server Error {"Message":"Invalid web service call, missing value for parameter: \u0027Title1\u0027.","StackTrace":"   at System.Web.Script.Services.WebServiceMethodData.CallMethod(Object target, IDictionary`2
    parameters)\r\n   at System.Web.Script.Services.WebServiceMethodData.CallMethodFromRawParams(Object target, IDictionary`2 parameters)\r\n   at System.Web.Script.Services.RestHandler.InvokeMethod(HttpContext context, WebServiceMethodData methodData,
    IDictionary`2 rawParams)\r\n   at System.Web.Script.Services.RestHandler.ExecuteWebServiceCall(HttpContext context, WebServiceMethodData methodData)","ExceptionType":"System.InvalidOperationException"}
    Please let me know the code how to insert lookup field value (Customer)
    in SharePoint online list.
    OrderService.asmx.cs
    Public
    int InsertOrder (Order
    orderRecord)
                pwd.MakeReadOnly();
                clientContext.Credentials =
    new
    SharePointOnlineCredentials (myUserName, pwd);
    try
                  Web
    oWeb = clientContext.Web;
    ListCollection lists = oWeb.Lists;
    List oOrderlist = clientContext.Web.Lists.GetByTitle("Order");
                    clientContext.Load<ListCollection>(lists);
                    clientContext.Load<List>(oOrderlist);
                    ListItemCreationInformation
    itemCreateInfo = new                 ListItemCreationInformation();
    ListItem oListItem = oOrderlist.AddItem(itemCreateInfo);
                    oListItem["Title"]
    = Title;                        listItem["Special_x0020_Instruction"]
    = orderRecord.Instruction;
                        listItem ["Customer"]
    = orderRecord.CustomerId;
                        listItem.Update();
                        clientContext.ExecuteQuery();
    return 1;
    catch
    return -1;
    App1.JS
    $("#Save").click(function
    debugger;
    var OrderProfile = $('#orderprofile').val();
    var CustomerId = $('#exCustomerlist').jqxComboBox('getItem',
    $('#exCustomerlist').val());
    //var Instruction = $('#instruction').val();
            alert(OrderProfile);
            alert(CustomerId);
    var obj = {
    'Title': OrderProfile,
    'Customer': CustomerId }
            $.ajax({
                url:
    "OrderService.asmx/InsertOrder",
                type:
    "POST",
                dataType:
    "json",
                data: JSON.stringify(obj),
                contentType:
    "application/json; charset=utf-8",
                beforeSend:
    function (XMLHttpRequest) {
    //Specifying this header ensures that the results will be returned as JSON.
                    XMLHttpRequest.setRequestHeader("Accept",
    "application/json");
                success:
    function (response) {
                    $(".errMsg ul").remove();
    var myObject = response.d;
                    alert(myObject);
                error:
    function (response) {
                    alert(response.status +
    ' ' + response.statusText +
    ' ' + response.responseText);
    Regards,
    Akhilesh

    Hi Alex Brassington,
    Thanks for your reply.
    I am having the Site Administrator Permission of the public site.
    I am having the permission of Company Administrator of that site but still unable to find
    Device Channel on Site Setting. still I gave the user full control from Site Permission but nothing is happening.
    What should I do next?

  • Error when embedding a formula field in a text box in a subreport

    I am rewriting an application that merges data from a .net application into a Crystal Report template and displays it in the application.  In VS2003, I have had no problems with the reports as they are written.  In VS2010, I get an unusual error on some reports with subreports. 
    In one report I have multiple subreports.  In those subreports, I have formula fields.  If I take one of those formula fields and embed it into a Text Box and attempt to generate the report through the application, I get the following error:
    This field name is not known.
    Details: errorKind
    Error in File Confirm {20564DCB-5CA4-4832-8931-DF1CC6C54784}.rpt:
    Error in formula  optionStrike:
    '{Command.OPTIONSTRIKETIME}'
    This field name is not known.
    Details: errorKind
    If I take the very same field out of the text box and put it directly on the report, the report will generate without error.
    In the case above, OPTIONSTRIKETIME is a string field.  This rules out any conversion errors from a date/number/etc to string for the text box.
    Has anyone else encountered this error?  If so, what can be done to avoid it?

    Hello,
    Thank you for the info.
    Which driver are you using for the dataset?
    If you are using ADO.Plus add this to your App.Config file:
    <startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
    </startup>
    Thank you
    Don

  • Not able to clear out a formula field value when variables are equal to 0

    I am trying to calculate the difference between a formula field from a main report and a formula field from a subreport. When i run the report i get a correct difference calculation only when both formula fields have a value different than 0. When both values are 0 then the difference calculation shows the last item quantity from the formula field in the subreport that had different values than 0.  It looks like the difference calculation is not being clear out before jumping to the next value calculation.

    try to clear the variable values once done with calculation like
    whileprintingrecords;
    shared numbervar i:=0;
    regards,
    Raghavendra

  • How to use the distinct key in formula field in SAP Crystal Reports

    I want to use the distinct key in formula field in SAP Crystal reports.
    When i'm using it shows an error.
    Please suggest me....

    Hi,
    Use DistinctCount keyword directly for your calculation instead of count(distinct(....
    Alternatively, if you want to avoid duplicate records, under "File" > "Report Options" make the 'Select Distinct Records' as True.
    Thanks,
    Raghavendra

  • How can we pass a formula field of Main report to SubRepor's Parameter. in CryastlReport 11

    Post Author: Nikhil
    CA Forum: General
    Hi
    Crystal Report version : 11.0.0.1282 Standard
    There is MainReport1. Other is Subreport1
    Scenario : 
    MainReport1 having paramater PdateMain1 as dateTime.
    SubReport1 having parameter dateSub1 ,dateSub2.
    datesub1 is used for One datasource1 (DataSource- XML -from webApplication)  , dateSub2 is used for datasource2 (DataSource-SQl Procedure ) ( This is requirement as i need to used two datasource )
    Value of datesub1 and datesub1 is same (it is created automatical as it is part of SQLProcedure and XML Query ) but get prompted twice for the same valuewhich  is not desirable. so for that i have created main report and calling this subreport in main report.
    Now i want's to pass PdataMain1 to Parameter datesub1  and datesub2. I am able to pass  PdataMain1 to datesub1.  through Change Sub report link ( Option on right click of report).and it is working fine,
    Problem : 
    But Subreport link Menu does not allow to bind PdateMain1 to datesub2 as it is allready bind with datasub2.
    to overcome this i created one Formula field in main report as fMaindate1 which copy date from Parameter PdateMain1.and bind ( link) the  fMaindate1 to datesub2.  when i link this , subreport does not display any thing at all. It it a limitation of crystal report or i am missing some thing , Is it like that we can pass formula of ,main report to subreport Paramater in Crystal 11 Standard , if we can anyone please Provide help on this.
    This can be easily achieve through application programming but my need to get this done in Report itself.Thanks
    Nikhil Patel

    Post Author: Jagan
    CA Forum: Crystal Reports
    Shared variables. Looked in the help at variables - shared

  • Chart Expert - Why are some formula fields not available?

    I have a report where I had to do Running Totals with formulas.  Following what I learned long ago from the documentation, I laid in my formulas, and then setup some "Display" formulas to print out the results at the end of my report.
    Now I am adding a chart to show a sort of 'summarized' version of the report - its a simple Pie chart...
    But when I go into the Chart Expert and want to select those Display formula fields (there are 4 of them) - they do not appear in the list?
    FYI - These four Display formulas are in the Report Footer of the report, and my chart is in the Report Header. 
    Why do some of my formula fields appear in the Chart Expert "select field" list - while others do not?
    I checked the documentation on this, but it is very "lite" and does not indicate why this might be...
    Any help is most appreciated!

    Read again -  "Problem has been circumvented" NOT "worked around".  In other words, when you pay a fortune for a poorly documented piece of software and you are dependent on answers from a Forum, where at times no one answers your question(s) and your boss is shouting at you as to how you selected such a lousy piece of software with such "lite" documentation and is hardly going to pay any more money for a support call to answer a simple question that should have been covered (and then some) in the documentation, (let alone support of the problem) - you CIRCUMVENT, i.e. give up and find some other way to do what you were trying to do.
    Hence, problem circumvented, NOT worked around.
    Thanks for asking - here's 10 points for your efforts.

  • Working with 3 Reports -- How to Display Summary/Formula field in Each Repo

    I have 3 Report that represent three Company.
    Each Company/Report has their report Details and field totals at the bottom.
    Now what I am trying to accomplish is that I need to add all three companies grand total and sum it up and display at the bottom of each reports.
    FYI, I have created matrix report and i pass user parameter where user can choose which company's report him/her would like to run so for example: if user run Company_1 then at the bottom i want to display all the companies Grand Total.Each reports have 6 columns and all the columns are same in each report except the data change by company. and with the same thing with Company_2, and Company_3
    Now, I tried to use create a separate query and tried to use DATA LINK but it didn't work due to very awkward report design.
    Is there a way where i can create a formula field and write PL/SQL and display at the bottom of my report.
    Please let me know if its possible I will very appreciated.
    Thank You

    Thanks for your reply,
    Actually, I would done that before taking Company's parameter off but i have to send out this report to all three companies thats resoan why I put companies paramters.
    Also, I have solved that problem by creating new query that will give me total off each company so in my Data Model. I have Q_1 (main query), Q_2 (Company 1 query which give me total for each field), Q_3 (Company 2 query....), Q_4
    and call those all fields and RESET AT REPORT level.
    so, no mather which company i choose in my parameter field it will give me final total at the bottom of my report for all the departments.
    Thank You,

  • Crystal Reports XI - How  to create a new field using a formula field

    I'm quite new to CR, but have been learning quickly!
    I would like to know how to automatically create a new record/field based on another field in that row...
    I have a report showing the following data:
    Run Code     Start KM    Stop KM    Status 
    H2                 100            150           Partial
    H2                 150             155          Partial
    H2                 155             160          Partial
    S3                 120             150       Completed
    The status is generated by comparing the 'Start KM' and 'Stop KM' against fields in another table called 'Start Odo' and 'Stop Odo'
    In this example...
    H2 has 'Start Odo' and 'Stop Odo' values of 90 to 160, therefore there is still 90-100 to check.  The 'Start KM' and 'Stop KM'  is equal to the 'start Odo' and 'stop Odo' for S3, therefore it shows completed.
    My question is how do you create a formula field, which will add an entire row...displaying the values 90-100.
    I've been trying to use a conditional check in the 'Start KM' column, that sees if status is equal to partial than if start km is greater than start odo (Which is the reference km) then display the value of start odo in the new row. I'm stuck at how to create a new row.
    I want the final result to look like this...
    Run Code     Start KM    Stop KM    Status 
    H2                  90              100         Partial
    H2                 100             150          Partial
    H2                 150             155          Partial
    H2                 155             160          Partial
    S3                 120             150       Completed
    Any suggestions would be more than appreciated

    Hi Adi
    Looking at your examples it seems that you want to add a row to the existing recordset (rows fetched from the database).
    If it is the case (even if based on a formula) then you can not do it within crystal. Crystal is designed to display data and ideally it should not generate the new data.
    However, as per your requirement you can try to add this logic at database end. May be a command object within Crystal Reports can help you.
    Let me know if you do not understand anything.
    Regards
    Nikhil

  • How to apply formula field for a chart object in crystal report XI

    Hi
    how to add formula field for a chartobject, i tried the following code but returns invalid condition field.
    i want to show  different chart in same crystal report viewer with different coursestatus values.
    please suggest where ia m wrong.
                   FormulaField oFormulaField;
                   oFormulaField = new FormulaField();
                   oFormulaField.Name = "Status1";
                   oFormulaField.Text = "{CSP_PROCESS_REPORT.Coursestatus} = 'Mastered'";
                   oFormulaField.Syntax = CrFormulaSyntaxEnum.crFormulaSyntaxCrystal;
                   oFormulaField.Type = CrFieldValueTypeEnum.crFieldValueTypeStringField;
                    boChartObject.ChartDefinition.ConditionFields.Add(oFormulaField);
    regards,
    Padmanaban V

    i missed the following line in my code.
    rcDoc.DataDefController.FormulaFieldController.Add(oFormulaField);
    now it works......
    my next issue is that,
    chart returns True & False captions. but i want to show actual value. how its to be done
    regards,
    Padmanaban V

Maybe you are looking for

  • What is the diffrence between LIS and LO Cockpi

    Hello All, What is the diffrence between LIS and LO **** pit. Regards, Lisa

  • Do I really need an Airport device for my home wireless network?

    Hi Apple Users, I am seriously considering purchasing my very first Apple computer: a MacBook Pro to be precise.  I'm a very experienced Windows PC user - was a Microsoft Windows & Office -based Help Desk Analyst at my company for 13 years till I was

  • I-trigue 3400

    Hi,I've just bought the i-trigue 3400 speaker set. However I am having a few problems playing it through windows and the subwoofer.When the pc is playing directly to the speakers without the speakers it plays well.When my mp3 player is connected to t

  • Pls help  in WEBDYNPRO  Function Module 'RFC_START_PROGRAM' not found error

    Dear Friends, While i am calling one function module in webdynpro the follwing erroe is coming. Error:- Function Module 'RFC_START_PROGRAM' not found error Code:- CALL FUNCTION 'ZUPDATE' DESTINATION 'PCNCLNT300'     EXPORTING       im_material = item

  • 10.7.4 Update disables my custom login background

    I've been using a custom login background tile by the usual method; replacing NSTexturedFullScreenBackgroundColor.png in System-->Library-->Frameworks-->AppKit.framework-->Versions-->C-->Resources. After the 10.7.4 update, my custom tile is still in