SELECT EXPERT formula howto?

<p>Hi All! I write a program under VS 2005 C# and Crystal Report. So I have a problem with the formula (and with the sql expression formula). My problem is this:</p><p> How can I do create a group with the selection expert? My task is the next: </p><p> I have called numbers (in a table) and the prefixes (36) with the description (Hungary) (in other table). I would like to see ( in a report ) the description before the called number. For example: <br /><br />Hungary 36201234567 (The prefix is the 3620 and the location is Hungary). How can I do make this? I don&#39;t to know the selection expert so good, and this is the another problem.</p><p> Please Guy! Help Me!</p><p>Thanks!!!</p>

If so... In the Change Group dialog, go to the second tab (Options) and choose  "Customize Group Name" and then select the formula button (x+2)
In the formula just get the string you want.
{table.description} + " " + cStr({table.prefix},'########') + cStr({table.number}'########')
I only add the CStr() function in just in case your numbers are stored as numbers. If they are stored in strings, then the formula would be even easier.
     - Kathryn Webster (Report Design Consultant)Â
           Kat&#39;s News: http://diamond.businessobjects.com/blog/279

Similar Messages

  • Select expert formula help needed

    I'm trying to come up with a formula to put in the select expert that will include all records. But if there is a record id(which would be a parameter field) passed to the report, it will only select that record that matches the parameter record id.  Is this possible?

    Yes, you can do that with an "All" option in the parameter list.
    And you selection formula would look like this:
    {?your parameter} = "All" or {your id field} = {?your parameter}
    The "All" option is not a really selection rule.
    It's just to control to use or not use:
    {your id field} = {?your parameter}
    So you can name it whatever you like, "*", "Any ID", or anything
    Bryan Tsou@Taiwan

  • Select Expert - Formula : Some clarifications

    Hi,
    Can anyone explain the below formula in Select Expert:
    IF {?param} = "AAA" THEN {Command.CD} = "ALL"
    ELSE IF {?param} = "BBB" THEN NOT({Command.CD} = "BALL")
    ELSE true
    My doubts are:
    1) This formula will be executed after the query in the 'Command' object is completed. That is from the output of the Command query, we are filtering the records based on the above formula - Please confirm my understanding.
    2) The final return type is True . What is the effectiveness of this return type? How is it affecting my output?
    Thanks in advance!!
    Meena

    Hi Fritz,
    Thanks for your response!!!.
    One more query regarding the execution of the formulas in Select Expert.
    1) The record filtration using Select expert will be done while retrieving from database itself
    or
    2) the output of the database retrieval will be filtered based on the Select expert ?
    Which one is true?
    Thanks in advance!!
    Meena

  • Selection Expert Formula

    I need to select Customers and Customer Address from one table
    that do have invoices in another table using an Invoice Date field.
    Trying to determine: Customers that have not bought anything since July 2009.
    How would this be entered in the Select Expert?

    I think the only way to achieve this is with an SQL Command, something like (MS SQL):
    select cust.*
    from customer cust
    inner join (
      select customer_code, max(invoice_date) as LastSale
      from invoices
      having max(invoice_date) < {?Date Cutoff}
    ) inv
    on inv.customer_code = cust.customer_code
    Where {?Date Cutoff} is a parameter to the SQL Command for the "no sales since" date.
    HTH,
    Carl

  • Select Expert on Formula Fields

    <p>Hello guys I have a Formula</p><p>if <a href="mailto:{@TrueAndFalse}<>{#RTotal0">{@TrueAndFalse}<>{#RTotal0</a>} then "Caution !"<br />    else "Is OK"</p><p>I need to created Select Expert and show only the "Caution !" </p><p>so I dont want to show "Is OK" in the report</p><p>thanks for you help<br /></p>

    Hi,
    You just Call formula in selection expert window and give like this
    formulaname = "Caution !"
    !/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-cool.gif|title=Cool|height=18|alt=Cool|width=18|src=/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-cool.gif!
    Let me know any other info u want......Â
    Thanks
    Rajesh

  • Passing DateArray or Date Range from formula result to Select Expert

    Is there a way to pass Two (2) dates from a single formula to the Select Expert?
    I calculate Beginning and Ending dates of periods ie: fiscal year to date, calendar year to date, last calendar quarter.  I would like to pass both the beginning and end date to a formula in the Select Expert.
    Please show code samples if possible.
    Thanks

    In your selection criteria, have code similar to this:
    datevar begindate;  // this is from your formula for date range
    datevar enddate;  // this is from your formula for date range
    {database.datefield} in begindate to enddate;
    Edited by: Sanjay Kodidine on Jun 27, 2009 11:43 AM

  • New Formulas don't show under Select Expert --Record

    Hello,
           Some how my CR 2008 don't show new formulas in my report when I go in Select Expert-Record, all the formulas show under Field Explorer?? the odd part is that old formulas still showing only new ones don't show is a setup that I'm missing????

    The old formulas most likely have the evaluation time function WhileReadingRecords or BeforeReadingRecords referenced in them.
    Try adding WhileReadingRecords to your new formulas (If CR can process those formulas at that time) and you should be able to see them in the Record Select Expert.

  • Select expert and dates

    Post Author: barflyz
    CA Forum: Crystal Reports
    Hi, I am using Crystal 11. I connect to Oracle. My report pulls a date field which displays correctly and can be formatted. However, when I use the select expert and select "equal to", the drop down list does nor display the correct dates stored in this field. Any idea on how to solve this issue? thanks!

    Post Author: SKodidine
    CA Forum: Crystal Reports
    Some sample data might prove useful in understanding what exactly is happening.  Barring that, have you tried clicking on 'Show Formula' in the select expert and then just typing in the date instead of choosing it from the drop down list?

  • Crystal 2008 problem with Record Select Expert

    I had a Crystal 10 report that worked fine where the Record Select Expert had a database table ID equal to a parameter... it was only supposed to report on 1 record.  After using Crystal 2008 on the same report it completely ignores this Select Record Expert setting.  I have tried deleting and re-adding the parameter.  It acts like there is no record select setting.
    Here is the formula that it shows me it is using:    {Components.ID} = {?@ID}
    If I go to the application opening the same record on a different machine using the old crystal, it works fine.
    This used to only show me the 1 record, now it shows me the report on every record in the table.  I tried upgrading the report to a 2008 report and it still does the same thing.  The report filter no longer works.   Do I need to do something different to select only 1 record in 2008 ?
    After installing Crystal 2008 on my computer none of my reports work correctly anymore - all of them are ignoring my Record Select ...they worked fine before I installed 2008.  The reports are older reports... they worked fine when I had Crystal XI R2 installed.  This all started after installing Crystal 2008
    Thanks,
    Jeff
    Edited by: Jeff Dressing on Aug 27, 2008 12:06 PM

    Hello, Jeff;
    I noticed the Record Selection Formula uses a Stored Procedure parameter:
    {Components.ID} = {?@ID}
    A parameter created in the report (not by a stored procedure) would be:
    {Components.ID} = {?ID}
    A report based on a Stored Procedure does not need a Selection formula for the Stored Procedure parameter. Connecting to the Stored Procedure automatically creates the parameter in the report and the value is passed automatically when the report is run.
    Does the report work in the Crystal Reports 2008 designer?
    Open the report in the designer. Go to Database Set Datasource location. Are the properties of the database at runtime still the same as what is saved in the report.
    If the database is different at runtime, just as a test, change to the new database in a copy of your original report. Do a Database|Verify Database. Does it come back the "Database is uptodate" or are there changes?
    Elaine

  • Select Expert data field

    Post Author: ckaesche
    CA Forum: Older Products
    I am using Crystal 8.5. I'm running a query to find database entry errors in a particular field, i.e. "country", &#91;such as 'britin'&#93; and then correcting the database record.
    Even though the data has been removed from the database, the value listed in the drop down within crystal reports is retained and not reflecting the actual values of the field in the database.  Any suggestions?
    Thanks for any help,  ckaesche

    Post Author: pandabear
    CA Forum: Older Products
    Ok,
        Sorry, when I heard "drop down" I immediately saw "parameter" so "Action" is the wrong direction for you.  
        You don't need the "Select Expert" to see a field.  You can just drag the field on to the report.
        If you know all the valid country names, you can do this:
        Make a formula:  @GoodCountry  -  If UpperCase(table.emp_ad_country) IN ("USA","ENGLAND" etc) Then "" Else table.emp_ad_country
    That way you'll get a complete list of all the countries that are not 'IN' the list (of properly spelled countries).  After the changes,
    you should see the new values when you run (F5) the report again.
    If it doesn't show the changes, you need to check that the database.table.field you are looking at is the same one you are changing.
    Sounds basic, but it's certainly happened (many times) before    
    Hope this helps,
    The Panda

  • Select Expert using ISNULL

    I am using Crystal Reports XI and I have a table that has customer names with "NULL" values. I am wanting to print all of those records in the table with the NULL value. Can someone help me with this issue.
    Thanks Jim

    Just to throw my $.02 in, I never turn on the report option to change null values to default. it vastly complecates any other forumla you might want to write in the report, and can cause performance issues under certian circumstances.
    I use 'default values for null' in the formula workshop for the select expert, or explicitly in formulas where I need that functionality.
    Also, just a picky point, but asing "isnull() = true" is redundant. if the field is null, isnull evaluates to true, and then you're asking if true = true. If it isn't null you're asking if false=true which is clearly false. In cases such as these isnull() alone will suffice.

  • Select expert - 'A string is required here'

    Post Author: greg_zen
    CA Forum: Formula
    Hi All,
    in select expert I put code like below:
    1)
    '{sp.ContractNo} like {?ContractNo}' 
              where ?contractNo is a parameter declared as a 'string'
    It worked fine with Crystal Enterprise 10 SP3
    After coping all reports and stored procedures to another server and installing SP6  for Crystal Enterprise 10 it stopped working.No idea why.
    So I tried to replace select formula like this:
    2)
    if cstr({?ContractNo})="" or cstr({?ContractNo})="*" or IsNull({?ContractNo}) then True
    first I used it without cstr function but after running there was always 'A string is required here' error message. Adding cstr didn't helped. Still the same.
    Original select was based on 'like' keyword to make it possible to enter starting character or just a part of string.
    As because users in most cases want to select data for all Contracts, select 2) was acceptable or at least I wanted to see anything. No way,
    still the same error 'A string is required here' during the runtime.   
    Any idea what's going on ?
    I'd appreciate any suggestions and comments.
    Regards,
    greg_zen 

    Post Author: SKodidine
    CA Forum: Formula
    For your first formula, why not try with wildcards and see if it works, since you mentioned that the intent was for the user to enter a part of a string?
    Try one of these:
    {sp.ContractNo} like {?ContractNo} & '*'     // for any number of characters
    {sp.ContractNo} like {?ContractNo} & '?'    // for a single character
    For the second (re-write) formula, make sure that the NULL condition is always checked first.
    if IsNull({?ContractNo}) or cstr({?ContractNo})="" or cstr({?ContractNo})="*" then True

  • 'select expert' option is not filtering data in CR, in VS2012

    ,Hi,
    We have a VB  VS2005 crystal report application , is working good with ' select expert ' option for filtering data in side crystal report. When we are migrated the application to VS2012, the application is not filtering the data inside crystal report. I could see the 'select expert ' options and Formula editor code in VB 2012 exactly same as VB 2005. But, there is no data filtering in Crystal Report. Please help. We are using Crystal report developer version for VS2012.  My formula editor code inside CR 'select expert' is {REPORT.CODE} in ["3102",  "4010"]

    Hi George
    Please see if KBA 1204895 - Selection formula is ignored when using Crystal Reports 2008 and VS .NET 2005 helps to resolve the issue.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
      Follow me on
    Twitter

  • Select Expert Record. Last 6 months and week start date on Monday

    Hello,
    i am trying to use the select expert record to grab the last 6 months worth of data. I require the week start day to be a monday and end on a sunday.
    Can someone please provide some advice the best way to do this
    kind regards
    david

    Hello Abhilash,
    Once again thanks for your reply.
    Yes this is correct, when it goes back 6 months i need it to skip the days prior and begin on a monday as we are reporting on a mon-sunday basis.
    I have tried your formula Date field >= dateadd('m',-6,currentdate) and it seems to grab 6 months of data, but the group weeks are not grouping from Monday to Sunday...
    kind regards
    david
    Edited by: davitali on Dec 2, 2011 9:35 AM

  • CRXI R2 and VS 2005 select expert

    Hello Every One,
    For our Project we use CR XI 2 and VS2005. We use ODBC connection to run the reports. At the time of designing the report i have added the paramter and filler to select expert. In our windows application I asses the parameter and assign the values to report by using
    CrystalDecisions.Shared.ParameterValues
    CrystalDecisions.Shared.ParameterDiscreteValue
    If I use peview method show the report. Selection formula will be disappers and data does not fillter properly.
    If any one has any better idea let me know.
    Thanks in advance

    Hi, Lakshmi;
    You may be running into the issue documented here:
    [SelectionFormula|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233303331333533353335%7D.do]
    Regards,
    Jonathan

Maybe you are looking for

  • Actuate to BIP Conversion Need Help with Sum and Distinct

    Hi, I am in the process of converting an Actuate report to BI Publisher .rtf format. Within the actuate report I have encountered the following code in one of the fields: Sum([ssCalc])Distinct([ssProfessional_Id]) From what I understand this Actuate

  • Strange redaction issue with no color fill for redacted area

    I have it set for No Color in the redacted area fill color.  When I mark my redaction, choose apply redaction, the selected area is still shown.  When I save the file, exit, and then re-open, the redaction is gone like it is supposed to.  Now if I ch

  • How to tell Word to sort the Bibliography by last name of author alphabetically

    Anyone can tell me how to sort MS word Bibliography by alphabetically?

  • IMovie not communicating with camcorder

    i have a panasonic pv-gs14 and i got imovie 6. I used a firewire cable and made sure it was securely in. I tried turning the camera on and off (same in imovie), etc., etc. HELP! PowerBook G4, 12-inch   Mac OS X (10.4.8)   Puhcased in 2004

  • DATE PICKER

    Hello Guys I need ur help pls help me out. i neeed date picker tool to uses in oracle 10g forms so pls let me know from whr i got that and how to use in forms thanks in advance and expecting quick and favourable replies