Formula as Parameter

I have Crystal Reports X1, Pack 2.
I have an inventory forecasting report with 2 subreports. I have set up the report with parameters as the user likes to view the report for a specific brand or item category. The report
Item     Brand     Net Stock  Out of Stock Days     Out of Stock Date
A      Bike         20             10                             8/11/2010
B      Bike          30             15                             8/16/2010
C      Bike         40               20                             8/21/2010
D      Bike         50               30                             8/31/2010
The Out of Stock days and out of stock date is calculated locally after the information is retrieved from the database. It is in the subreport.
Is there a way to add the out of stock date as a parameter? The user for example would put in 8/20/2010 and only dates before this would show up on the report. (First two rows)
Could I filter on this out of stock date in Crystal Reports 2008 using the parameter panel, or does it only work with database values?

>
Sean Byrne wrote:
> Thanks.
> Would using the SP require that the out of stock date be contained somewhere in the tables or written to some table as a result of this process?
No.  The hope is that the SP can compute that value.
> Exporting to ODBC. Does this mean that I would be exporting to a user created table in the same database?
It doesn't have to be in the same database.
> Could you give me the names of some 3rd party tools that can export to ODBC?
Sorry, due to forum ethics I'm not allowed to name the tool but it's one of the 3rd-party Crystal Reports Desktop Scheduling tools listed at: http://www.kenhamady.com/bookmarks.html
What is unique about that tool is that it allows you to not only create the table, but also to Replace it (or append to it).  Other tools only allow you to export to a brand new table (they fail if the table already exists).
> Can Crystal Reports read from two data sources?
Yes.

Similar Messages

  • NEWBIE HELP - Supress Header with Formula using Parameter

    Post Author: Melanie
    CA Forum: Crystal Reports
    Hi,
    I am new to CR10, and I am working with it and C#.
    I have a report that lists all calls made to a motor vehicle registry agent office after the office is selected from a dropdown on a webpage. I have been asked to make an enhancement whereby the user can select All from a dropdown menu and the report will show all calls for all registry offices. I can do that much and get it to group by the registry agent.
    The problem is the header which currently has the Reg. Office Name, Address, City listed on it. If the user now selects All from the dropdown, I just want it to display text "All Registry Offices". Otherwise, I want the name etc...of the registry office selected. I was trying to add a parameter in the code saying if all offices are selected:
    objReport.SetParameterValue("AllAgents", 1);
    and then in the report, I added a parameter called AllAgents (it showed up in my parameter list). Then I right clicked by the left side of the header, selected Section Expert -> the formula button by Suppressed and typed in this formula:
    if {?AllAgents} = "1"    then trueelse false
    Then when I saved everything, ran the app and try to view the report I get this error:
    Server Error in '/src' Application. -
    The resource cannot be found. Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly.
    Requested URL: /src/reports/temp/CallSummaryByQuestionAgentReport_paincme_21112007140219.pdf
    I can see when I go to where the pdf is generated that the pdf was never created. I am lost and stressed out a little bit by this.
    Any help is genuinely appreciated!

    Hi,
    1. (argh, I can't get it to paste! lol, just a simple little thing... :/):
    Yes it is (you've surely forgotten):source code > Strg or Ctrl A (if you want to send the whole code) > Strg or Ctrl C (copy) > Strg or Ctrl V
    2. garywpaul is surely right, BUT only to show you one way how you could center your image (from my German DW):
    Header 1
    yours:
    <body>
    <div class="container">
      <div class="header"><a href="index-2.html"><img src="images/I%26F%20Header.jpg" alt="I&amp;F Header" width="781" height="271" align="absmiddle" /></a><!-- end .header --></div><div class="sidebar1">
    new:
    <body>
    <div class="container">
      <div class="header">
        <div align="center"><a href="index-2.html"><img src="images/I%26F%20Header.jpg" alt="I&amp;F Header" width="781" height="271" align="absmiddle" /></a></div>
      <!-- end .header --></div><div class="sidebar1">
    Hans-G.
    P.S.
    You should delete the blanks in the names of your images,

  • From scorecard Pass parameter to be used as Measure in query of analytic Grid report in PPS in SP2013

    From scorecard Pass parameter  to be used as Measure in query of analytic grid report in PPS
    Any idea of how we can pass this parameter while connecting scorecard and report
    any use of MDX in connection formula ?
    Parameter needs to be assigned on click of scorecard cell

    Hi,
    That API has restrictions on its usage. Please see http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/apex_util.htm#CHDICGDA
    The lines to be referred to are Also, this method requires that the parameters that describe the BLOB to be listed as the format of a valid item within the application. That item is then referenced by the function.Regards,
    PS: Your report must be on Page 98 , so it is able to reference the item P98_NAV_IMAGE. List being a Shared Component it may not be able reference that Item.
    Edited by: Prabodh on May 28, 2012 3:16 PM

  • RECN (Process Contract) Error while adding condition type

    Hi All
    I am processing the contract (RECN). While adding a new condition type, it gives me thr error
    Parameter KWH (area unit) for calculation formula Y3 has errors
    Moreover when i defined this calculation formula (Y3), units KWH are not coming in area unit field (F4-possible entries).
    Pls help me with that.
    Thnx in advance
    Deepak

    Hi,
    i am assuming you have added customised formula to condition type while creation of conditon. for the formula there is no link to Badi.
    if the above is right, you need not to add any formula and parameter while creation of conditon,first remove the formula form the conditon and assign standard one.
    then select the formula after inserting the condition. error about the formula may be  no value is being supplied from the formula.
    thanks
    Jilani

  • Crystal Reports Developer XI shuts down when trying to run a report

    I have been using Crystal Reports in my office since 2005 without any problems.
    However, recently when previewing reports in the Developer edition of Crystal Reports XI I have experienced a problem. After logging onto the databases and selecting the parameters, instead of displaying the report the application closes. This only occurs on a few of my reports, I have not made any changes to these reports and up until now they have been working without error.
    The only change to the operating environment has been a recent upgrade to Windows XP.
    Any suggestions for a fix?

    Naveen,
    The reports where developed in the current version. 
    There isn't any other version installed on the machine.
    I only have Crystal Reports Developer XI installed on 1 machine in the office.  The reports are loaded in the Business Objects Management Console and available for other office staff to run from the Business Objects Viewer.  The reports run OK from the viewer.
    I have tried un-installing Crystal Reports Developer XI and re-installing it already - the problem still occurred.
    There are a number of faulty reports, some query 1 database others only 1 database, some have SQL tables others do not, most of them have subreports, formula fields, parameter fields, and group name fields, 1 also has a running total field.
    Most of the reports I have created are similar but have different selections.
    Thanks for your help, hope we can find a solution.
    Ann.

  • Windows Explorer shuts down when trying to run Quicktimes

    We are using Quicktime 6 Player on PCs running Windows 2000 Professional. Whenever you try to run a Quicktime movie from the Explorer browser, it shuts down along with Quicktime!!!
    In addition, we cannot copy or move Quicktimes from one folder or drive to another without both software packages shutting down. The Quicktime movies are varied and are themselves not bad files. The only way I have found that allows me to run, copy or move Quicktimes is to work within Start/Run/Browse and doing a bunch or Right Clicking!!!
    We are all up to date in regards to Windows Updates, so I am at a total loss as figuring out what the fix is. Any ideas? gsarahs

    Naveen,
    The reports where developed in the current version. 
    There isn't any other version installed on the machine.
    I only have Crystal Reports Developer XI installed on 1 machine in the office.  The reports are loaded in the Business Objects Management Console and available for other office staff to run from the Business Objects Viewer.  The reports run OK from the viewer.
    I have tried un-installing Crystal Reports Developer XI and re-installing it already - the problem still occurred.
    There are a number of faulty reports, some query 1 database others only 1 database, some have SQL tables others do not, most of them have subreports, formula fields, parameter fields, and group name fields, 1 also has a running total field.
    Most of the reports I have created are similar but have different selections.
    Thanks for your help, hope we can find a solution.
    Ann.

  • SQL Expression Fields not showing

    Hello,
    I want to use "SQL Expression Fields", however, it doesn't appear in the Field Explorer.
    The only options that appear in my Field Explorer are:
    - Database Fields
    - Formula Fields
    - Parameter Fields
    - Running Total Fields
    - Group Name Fields
    - Special Fields
    I am connecting to Oracle 10g Rel.2 with ODBC.
    I have no problems creating reports with queries that access the database.
    Do you have any idea about why the option doesn't appear?
    Cesar

    Post Author: synapsevampire
    CA Forum: Data Connectivity and SQL
    V361 is mistaken, SQL Expression fields are available in CRXI.
    As with previous versions though, it turns off depending upon the type of database and connectivity used.
    Try using a real SQL database, or if MS Access, set up an ODBC connection to the database.
    In the future include your database in your post to avoid guess work on our part.
    -k

  • Call transaction ME33K

    Dear Abapers,
    I have a problem when calling transaction ME33K from a custom program I develop. I know that we can pass agreement number using SAP memory with parameter ID = 'VRT'.
    This is the code to call transaction
          SET PARAMETER ID 'VRT' FIELD agreement_num.
          CALL TRANSACTION 'ME33K' AND SKIP FIRST SCREEN.
    agreement_num is filled with agreeement number.
    Before that I did same things to call ME23N and it works well.
    Definitely I use same formula:
          SET PARAMETER ID 'BES' FIELD po_num.
          CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.
    po_num is filled with PO number.
    Could anybody help explain to me why this thing happened. Are there other any possible solution to call ME33K?
    Thanks
    Regards
    Hadi

    Hi Kranthi,
    Thank you for your answer.I was having the same problem but now It is ok.
    Thank you  I appreciate yout help too.
    Regrards
    William 

  • How to render a html content in a text field?

    Hi! Is it possible to render a html content(like <strong>< b >This text is bold  </strong></b>) in a Text field with Crystal Report for Eclipse Basic . In .Net there were a field called  Text Interpretation where you could choose HTML. But in Eclipse I can&#39;t find it.    Thanks in Advance,                           Jeff

    I don't think the Text object supports the Text Interpretation feature.  I think this is limited to specific type of objects like database, formula and parameter fields.  I checked the full product CR designer and it too does not support this feature for Text objects.
    As a workaround, you could use a Formula field to specify the HTML data and format the formula field for HTML interpretation.
    -MJ

  • Converting simulink to vi

    Hi All,
    I'm now working my final assignment at my college using LabVIEW 8.2.1 (Simulation Module Addon attached) and PCI-6221.
    The idea is to convert the anaerobic digestion (AD) model in simulink into LabVIEW. I'm doing this by converting the variable and formula on Simulink one by one to VI. Now I have the exact model of AD with the same variable, formula, and parameter (no error).
    The problem is while I run that model, the output yield is completely different from the simulink model.
    I will attach the simulink model and the VI I've been working for.
    Thanks in Advance,
    Septian
    NB: the simulink model, run from the BO.m
    Attachments:
    AD.zip ‏220 KB
    Simulink AD.zip ‏18 KB

    hi Michelle,
    thanks for your attention. I'm already did the check and re-check routine about the formula, the result is totally different. I should be attached the graph result when running the model using the simulink and labview so you can compare them. i'll try to send it later.
    I got another problem michelle, if you dont mind please help me. Still on that anaerobic digestion model, i'm now trying to create the VI model using the simulation translator (with a lot of data type fixing using index array and build array, is it normal?). I'll attach the result using simulation translator.
    when the compiler says ok, i can't run the simulation. the error message send this:
    Error−2318
    The dimensions of the parameter vectors of this function do not match.
    After a while, the system always crash and needed to close everytime I run this model. The main system's VI is AD.
    The time is running out for me, anybody help me on this problem.
    Thanks In Advance,
    Asep
    Attachments:
    AD-With Translator1.zip ‏1354 KB

  • Cannot find SQL Expression Fields

    Hi,
    I am using Crystal Reports 2008 and trying to locate the SQL Expression Fields.  According to the user guide, the SQL Expresion Fields should be under Field Explorer.  But when I go to Field Explorer, I only see the following options:
    - Database Fields
    - Formula Fields
    - Parameter Fields
    - Running Total Fields
    - Group Name Fields
    - Special Fields
    Would you please let me know where I can find SQL Expression Fields?
    Thanks and regards,
    Al

    Al,
    If you are reporting off of a Stored Procedure, View, Command Object, or multiple datasources SQL Expression fields will not be available. The reason is for the first 3 is that the SQL has been hard coded, the reason it would not work when ussing multiple datasources is that it would not know which query to append the SQL expression to.
    Correction: SQL Expressions will be available when reporting off of a View.
    Edited by: Graham Cunningham on Jul 21, 2008 9:38 AM

  • BPS extraction to BI

    Hello BW-BPS experts,
    I have worked on R/3 to BI extractions but totally new in BPS part of BI 7.0
    1. I want to know how to implement BPS in BW 7.0. Is it better practise to make different reports to view BPS data??
    2. Is extraction process from BPS to BW different from extraction from R/3 modules(MM, SD etc) to BW ?? if yes then whats the difference.
    3. Are there any standard datasources for extracting BPS data that we have to activate and use like what we do for LO extractions??
    4. From some threads in forum i get to know that BPS dont need different server then BW as what we do for R/3, then how do we extract data from BPS to BW.
    Please suggest. Points assured.
    Thanks,
    null

    Hi sdn,
    Planning functions change the transaction data in a planning package. Each planning function is assigned to just one planning level. There are various types of planning function (for example, copy, distribute, delete, formula). Parameter groups are created for a planning function. Those fields that are to be changed are determined when a planning function is defined The values of those fields are determined when a parameter group is defined.
    You want to copy data from the actual version to the plan version. When you define the planning function you can determine which fields are to be changed during the copy operation. Select the Version field. When determining the parameter group you determine that version 001 is to be copied to version 002.
    This one link can drive you thru......
    http://help.sap.com/saphelp_nw04s/helpdata/en/05/242537cedf2056e10000009b38f936/frameset.htm
    Regards
    Karthik
    *****Thanks for what ever points you assign me

  • Calculations for data collection

    Hi,
    In 'formula' type parameter for data collection, for the first time when operator enters values, the formula parameter does the calculation and give results.
    However, if later on the same data is edited, then the calculations donot take place and operator himself has to calculate and update the field.
    foreg: P1 and P2 are 2 parameters under 1 DC group.
    P3=P1+P2.
    When operator enters for the first time values for P1 and P2, P3 gets calculated. However, If later on values for P1 and P2 are edited through 'data collection edit' activity, P3 calculations donot change and operator has to calculate it and re-enter in P3 field.
    This is my understanding, please correct me if these calculations automatically takeplace whenever the base values are edited .
    Thanks.
    Regards
    Mansi

    nimaq,
    One of my more astute coworkers (a know it all, so he thinks, hehe), reminded me that we do sell a PCMCIA/Cardbus PXI Chassis controller and a ExpressCard PXI controller (if you have a computer with an ExpressCard slot).
    Cardbus controller link...
    NI PXI-CardBus8310
    ExpressCard controller link...
    NI PXI-ExpressCard8360
    If you buy a PXI controller for your Laptop, a PXI Chassis, and a PXI digital frame grabber, then you will have a system that allows you to grab images from your digital camera via your Laptop.  If you have not yet purchased a Laptop, I highly recommend you purchase a Laptop with an ExpressCard slot (they have much higher bandwidth) which you will want for frame grabbing.
    Below is a Link to a 4 slot PXI Chassis...
    NI PXI-1031
    Below is a Link to a Digital PXI Frame grabber...
    NI PXI-1422
    Buying these 3 products (PXI-ExpressCard8360, PXI-1031, and the PXI-1422) and the proper laptop, will give you a top of the line digital camera acquisition system.
    Lorne Hengst
    Application Engineer
    National Instruments

  • Display more pictures in crystal report not work why

    Hi guys i try to show picture of specified employee from network path in crystal report  it work
    but i don't know how to show all pictures to all employees in crystal report
    Can any one help me to customize my code to accept show all employee pictures
    i try to make this from crystal report and assign path but version of crystal report not allow to me
    to put path
    my code below show picture to one employee from text box control from network path
    I need to customize this code to accept show more one  pictures of employees from  employee table
    the following fields i show in report
    EmployeeNo      integer
    EmployeeName   nvarchar(50)
    Image     datatype  image 
    btnemployeeno_click
       DataTable dt = new DataTable();
    string connString = "data source=192.168.1.105; initial catalog=hrdata;uid=sa; password=1234";
    using (SqlConnection con = new SqlConnection(connString))
    con.Open();
    SqlCommand cmd = new SqlCommand("ViewEmployeeNoR", con);
    cmd.CommandType = CommandType.StoredProcedure;    // Viewxxx doesn't seem a good name for a sp
    cmd.Parameters.Add("@EmployeeNo", SqlDbType.NVarChar, 20);
    cmd.Parameters["@EmployeeNo"].Value = textBox1.Text;
    SqlDataAdapter da = new SqlDataAdapter();
    da.SelectCommand = cmd;
    da.Fill(dt);
    string path = Path.Combine("\\\\192.168.1.105\\Personal Pictures", textBox1.Text) + ".jpg";
    FileStream fs=null;
    if (File.Exists(path))
    fs = new FileStream("\\\\192.168.1.105\\Personal Pictures\\" + textBox1.Text + ".jpg", FileMode.Open);
    else
    MessageBox.Show("Please File Not Exist");
    BinaryReader br = new BinaryReader(fs);
    byte[] imgbyte = new byte[fs.Length + 1];
    imgbyte = br.ReadBytes(Convert.ToInt32((fs.Length)));
    foreach (DataRow dr in dt.Rows)
    dr["Image"] = imgbyte;
    ReportDocument objRpt = new Reports.CrystalReportData2();
    objRpt.SetDataSource(dt);
    crystalReportViewer1.ReportSource = objRpt;
    crystalReportViewer1.Refresh();                     

    Hi, 
    Put an image field in your report, then change the image’s Graphic Location:
    right click the image, select Format Graphic, select Picture tab, click the conditional-formula button that look like a x2 and set the formula’s text to
    the name of the formula or parameter field that will contain the image’s URL.
    Save the formula and click the OK button. Save the report and test it.
    Be carefull with the size of the image field. If this size is not equal to the image itself it could get resized.
    Good Tutorial
    Mark as answer or vote as helpful if you find it useful | Ammar Zaied [MCP]

  • Can we use formula column in lexical parameter in sql query ...

    hi
    can we use formula column in lexical parameter in sql query ...
    as example
    i want to give
    select * from & c_table
    forumula
    function c_table
    if :p_sort = 1 then
    return 'dept'
    else
    return 'emp'
    end;
    c_table formula column
    is this possible ...
    i have such example in oracle apps reports
    if i try in ordinary report usinf emp table it show error ..
    how we can give formula column...
    please help me in this regard...
    Edited by: 797525 on Feb 20, 2012 9:31 PM

    thanks sir,
    iam not exactly saying select * from &c_table but some thing that like columns in select stmt also will be populated in user_parameters ,there are lot of table select.......from     mtl_demand md,     mtl_system_items msi,     mtl_txn_source_types     mtst,     mtl_item_locations loc     &C_source_from &C_from_cat
    &c_source_from and &c_from_cat formula column and there are defined at report level only ......
    pl/sql code &c_source_from is
    function C_source_fromFormula return VARCHAR2 is
    begin
    if :P_source_type_id = 2 then return(',MTL_SALES_ORDERS mkts');
    else if :P_source_type_id = 3 then return(',GL_CODE_COMBINATIONS gl');
    else if :P_source_type_id = 6 then return(',MTL_GENERIC_DISPOSITIONS mdsp');
    else if :P_source_type_id = 5 then
         if :C_source_where is null then
              return NULL;
         else
              return(',WIP_ENTITIES wip');
         end if;
    else if :P_source_type_id = 8 then return(',MTL_SALES_ORDERS mkts');
    else if :P_source_type_id is null then
    return(',MTL_SALES_ORDERS      mkts,
    MTL_GENERIC_DISPOSITIONS mdsp,
    GL_CODE_COMBINATIONS gl ');
    else null;
    end if; end if; end if; end if; end if; end if;
    RETURN NULL; end;
    this is forumula column i hope that you understand what iam saying
    please help me in this regard....
    thanking you...

Maybe you are looking for

  • Mouse Scroll is not working in safari

    Hi After instlling Safari on my Win 7, could not use mouse scroll to navigate through the pages (scroll up and down). Went through few posts and found the solution by installing "Microsoft Intellipoint latest software ver." Downloaded directly from M

  • LDAP sync with AD

    Is it possible to sync data with users in a group? Our AD structure separates users by their location, so it's quite a bit of work setting this up to sync.  We do have a group setup which contains all or our SAP users. In this example SAP USERS is a

  • I want to send my calender to a thumb drive so I can print it out at a store

    I want to export my Calender to a thrum drive so I can print the calender out at a store.  The only  way I see available is to sent the calender to a apple store and buy the calender from them.  How can I do this or is it not allowed? Thanks Bill

  • Facebook messenger for Firefox doesn't show the chat tab

    Hi. I have just installed Facebook messenger for Firefox, which was advertised in the Firefox start page. Here's the link for it: https://www.facebook.com/about/messenger-for-firefox?src=firefox_promo_2 I don't like the sidebar taking a chunk from my

  • AR Consolidated Invoices - Oracle R12

    Is there a way to cancel or revert AR consolidated invoices from FINAL or ACCEPTED STATUS.