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

Similar Messages

  • 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

  • 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

  • Bex Formula help needed

    Hi Experts,
    I have repots which displays
    ...........................     *Good stock.............Stock Age          *
    *Brand..................Qty.....Value     *
    Product A.........103.....77066.41................10
    Product B...........79......50071.54................45
    Product C.............4.....235.77     2..................25
    Product D............38     ....31583.1..................20
    I want to display the stock which is older than 30 days in a separate row like this
    ...........................     Good stock.............._Good stock >30days_          
    Brand..................Qty.....Value......................Qty.....Value     
    Product A.........103.....77066.41
    Product B...........79......50071.54................79............50071.54
    Product C.............4.....235.77     2
    Product D............38     ....31583.1
    All should be displayed in a single report. and only the stock and the stock which is older than 30 days should be displayed in the next columns.
    Can anyone tell me how do I achieve this plz.
    Thanks

    Hi,
    U can drag the 'stock age' column under key figures and then in display property for 'stock age' -hide it..THen for the column 'Good stock >30days'-create a formula as follows:
    ( 'stock age' > 30 ) * 'goods stock value'
    and similarly for qty as well:
    ( 'stock age' > 30 ) * 'Qty'
    hope it helps.
    Regards,
    Rathy

  • SQL Select Statement. Help Needed

    Hi all,
    Can anyone point out why i am getting this error. Any help is appreciated.
    javax.servlet.ServletException: [Microsoft][ODBC Microsoft Access Driver]COUNT field incorrect
    EmployeeID field is text field.(MS Access DB). It is not a primary key.
    Here is what I have(code)
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    String url = "jdbc:odbc:empapp";
    Connection conn = DriverManager.getConnection(url);
    Statement stmt = conn.createStatement();
    String id = request.getParameter("ID"); // ID is passed from another jsp page.
    if(id != null)
    String query = "SELECT EmployeeID, LastName, FirstName, EmailAddress, PhoneNumber from Employees where EmployeeID=?";
    PreparedStatement statement = conn.prepareStatement(query);
    statement.setString(1, id);
    ResultSet rs = stmt.executeQuery(query);
    %>
    Employee ID: <%= rs.getString("EmployeeID") %>
    Lasyt Name: <%=rs.getString("LastName")%>
    First Name: <%=rs.getString("FirstName")%>
    Email Address: <%=rs.getString("EmailAddress") %>
    PhoneNumber: <%=rs.getString("PhoneNumber") %>
    <%
    %>
    I m only trying to print it out.
    Thanks

    Thanks for the reply. I know this is not the way to do
    it. I have a question for you.
    What's the difference in storing the DB connection
    info, query etc..
    a. In a pure java object.
    b. In a servlet.
    c. In a java bean.
    Which one to use and why?
    Thank you
    What's the difference between (a) and (c) in your mind? Are not Java Beans pure Java objects?
    Depends on the app.
    For my Web apps I let Tomcat create a connection pool for me. I don't store connections anywhere in my code. I check them out of the pool, use them, and put them back.
    I think this is a good way to go for any app.

  • Experts: ****Urgent**** help needed.

    We need to give a demo to a customer tomorrow.
    We need to store data in the Oracle 10g DB in Persian.
    Our development DB which we inserted data in English has a WE8ISO8859P1 character set. There is no data in Persian in this DB.
    We created a new 10 DB with char set AL32UTF8.
    Now we need to import data (From WE8ISO8859P1 dev DB which has data only in English) to AL32UTF8 DB.
    We will start entering in Persian only in the AL32UTF8 DB.
    All our columns in tables are just default VARCHAR2 columns.
    Will we have to change the columns of our tables in AL32UTF8 DB to NVARCHAR2?
    Will there be any problems exp/imp???
    Will there be any problems in entering data in Persian in AL32UTF8 DB?
    Will a column in WE8ISO8859P1 which is VARCHAR2(10), allow to enter 10 Persian characters in the AL32UTF8 DB?

    Thanks Experts for the answers.
    I finally got hold of a AL32UTF8 DB, changed my machine's language to Farsi and started inserting records and discovered these things which you also have mentioned.
    (1.) One Farsi character will take up 2 bytes.
    (2.) In AL32UTF8 if you declare a field as VARCHAR2(1 CHAR) it will allocate 4 bytes for that. If you just say VARCHAR2(1) only one byte will be allocated.
    (3.) You can declare a field as (maximum) VARCHAR2(4000 CHAR). Then maximum bytes you can store is 4000. i.e. only 2000 Farsi characters. If you enter 2001 Farsi characters it will give "value too large for column" error.
    (4.) So, if you have a WE8ISO8859P1, and have a table which as a VARCHAR2(10) field. You use a DDL script from WE8ISO8859P1 and run it just as it is in AL32UTF8. Now, if you EXPORT from WE8ISO8859P1 and IMPORT to AL32UTF8 there wont be any problem, since WE8ISO8859P1 is a single byte character set.
    (5.) Here is the problem. There is a NAME VARCHAR2(100) field in AL32UTF8. Now in AL32UTF8 you will be only be able to enter 50 Farsi characters into that. Solutions:
    (5.1) In AL32UTF8 recreate the column as NAME VARCHAR2(100 CHAR). I did it this way for the demo.
    (5.2) When creating the AL32UTF8 DB create it with NLS_LENGTH_SEMANTICS set to CHAR. So you can just use DDL extracted from WE8ISO8859P1 (i.e. NAME VARCHAR2(100)) in the AL32UTF8, since in AL32UTF8 100 will go as 100 CHAR. This way you don't have to modify the DDL scripts. Only drawback is for VARCHAR2 fields which need more than 2000 Fasi characters to be input, you will have to make those VARCHAR2 fields to CLOB. i.e. any field which is VARCHAR2(2000) or greater in WE8ISO8859P1 will have to be changed in AL32UTF8 to CLOB.
    I find this method (5.2) the better method. But I read somewhere that it is NOT ADVISIBLE TO set the NLS_LENGTH_SEMANTICS to CHAR at DB creation time.
    Is this true? If so why??

  • Formula help needed

    Hi,
    I have a sheet with abt. 3.000 rows. From one of the rows I want to extract the date. The row looks like this:
    Festgelegt für 5. September 1946 von 09:15 bis 10:15, that is a textstring
    So in the first field I used part to get the Date "5. September 1946" this works fine.
    In the next step I used left;4 to extract the word "Fest", this works fine to
    Now in the next step I want to work with "if".
    What I would like to have a formula that looks like this
    If leftstring4="Fest" than get the partstring"5. September 1946" an fill the field with this date.
    Any help available
    tks in advance
    olaf

    Hi Yva,
    still one problem with the formula.
    "Urlaub
    Festgelegt für 25. Juni 1977 von 09:00 bis 10:00 25. Juni 1977
    Portugal
    Festgelegt für 6. Juli 1977 um 23:00 bis 7. Juli 1977 um 00:00 0"
    as You can see the first row works, but the second not why.
    The errorcode says "could not find " von "
    any idea ?
    like to hear from You
    regards
    olaf

  • How To: ServerSide ?TEMPLATES? - Expert level help needed

    I dont know what this is called or how to search on it.
    But what I want is the ability to make changes to a template,
    upload JUST the template and have the files on the server get their
    structure etc from the template - WITHOUT having to download all
    files in site, then apply template to pages, then reupload pages. I
    know it can be done - I have seen it done.
    How? Please

    Server-side includes....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Acts7" <[email protected]> wrote in message
    news:e69gq5$5qu$[email protected]..
    >I dont know what this is called or how to search on it.
    > But what I want is the ability to make changes to a
    template, upload JUST
    > the
    > template and have the files on the server get their
    structure etc from the
    > template - WITHOUT having to download all files in site,
    then apply
    > template to
    > pages, then reupload pages. I know it can be done - I
    have seen it done.
    > How? Please
    >

  • Expert editing help needed

    OK, so here is the situation. I filmed my friends son's christening. The ceremony was a feast for the eyes and ears. The audio track is beautiful, and a complete record of the ceremony.
    I want to preserve the audio track and much of the video, while I overlay video clips (without their audio), and stills in places where my camera faltered.
    My problem is, how do I put video/pics over the audio, and cut back to the video of the ceremony while maintaining the synch between the audio/video of the original footage?
    I only know how to trim/split/crop clips, and it seems like it would be near impossible to get the audio and video to match-up every time I splice in new footage.
    I am extracting the audio from the original footage as we speak.
    Thanks in advance
    -Tim

    Under the Advanced menu, use "paste over at playhead" instead of manually cropping/splitting/pasting. Prior to using this command, you will need to copy your clip into memory (command-c).
    This command pastes your clip into your movie, while not affecting the audio track. The movie will get automatically cut the same exact length as the clip you are pasting.

  • 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

  • *help*  Select Expert (filters) in crystal

    problem with crystal....
    i need help in the following situation.   when i go to create a report i go to select expert,  then click on category and select say copper fittings.  boom i get a list of all my copper fittings.  my design sheet is set up so that it shows the item number, description, quantity on hand, and quantity sold.  now when i go to select expert again and choose say date transfer of an item...put in my dates( 1/1/2009-1/3/2009)... boom the list refreshes and this list is now shorter than my original list and it shows me the items that have transfered during that period of time as well as the quantity...  well my question is what happened to all the other items that were in the list before???  i understand that they are no longer there because they did not transfer during that period of time, so it doesnt show them... well i still want those items to show up with the rest that did transfer... so that way i can see what transferred and what dint all in one list... i keep trying different things but keep running into the same problem... does anyone know of a solution for this???
    thanks...appreciate any help

    thank you very much for your advice,
    unfortunately my problem has not really been resolved.
    when i did as you said..  in crystal, all i wanted was my copper list... but when i put the "or" in, it included all the other pieces in my inventory not "just"  my copper.
    heres what i had before:
    {VIEWITEMMOVEMENT.DATETRANSFERRED} in Date (2009, 01, 01) to Date (2009, 06, 11) and
    {Category.Name} = "COPPER FITTINGS"
    now if i were to take out the: {VIEWITEMMOVEMENT.DATETRANSFERRED} in Date (2009, 01, 01) to Date (2009, 06, 11) and
    then all i get are my copper fittings and that ends up being like say 10 pages long... but then i put in my the date transferred... to view the items that moved and see how much of each was sold during that time.  the list then gets smaller to about 5 pages and shows me the items that moved and the quantities that were sold but at the same time i still want it to show the other items that did not move on the same list... i dont want them to be taken out...like its doing it now.
    hope this explains my situation a lil better... i appreciate your help, thanks

  • Select Expert or SQL Expression Fields help

    I am trying to do something I would consider very simple but can figure it out.
    I have two tables.  FDC_Trips & Facility.  On the report I can get the FDC_Trips.DivertedbyFacility field to populate a number value because that field is an integer.  But we need the name to show up.  That field is the ID (foreign key) of a Facilty which matches with the field Facility.Code.  Instead of it displaying the DivertedbyFacility number/ID I would like it to be able to show the Facility.Name value.  If I place the filed Facility.Name field on my report it is blank. 
    How can I write a where clause to query the Name of the Facility where the Facility.Code = FDC_Trips.DivertedbyFacility?
    Do I use the Select Expert or SQL Expression Fields.
    Please advise.

    Actually you'll use the Links tab in the Database Expert. If CR did it's stupid auto linking thing... delete them. It usually get's it wrong.
    Now just link the fk field in FDC_Trips to the pk field in Facility. Once you have that done you'll be able to simply drop Facility.FacilityName directly onto the report.
    HTH,
    Jason

  • 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

  • Help Needed with a Formula

    Can someone help me with a particular formula I need?
    I’ve set up a simple sheet to track budget spending for Christmas.
    http://i623.photobucket.com/albums/tt320/_dash/NumbersShot.png
    Let’s say we have $500 to spend. What I want to do is have it so that when a purchase amount is entered into D3, D9 would then show $500 less that amount (thus automatically reflecting how much is left to spend without having to do the math).
    Then later when an amount is entered into D4, D9 would show $500 less the amounts in D3 and D4, etc.
    What formula would I need to put in D9 for this?

    I figured it out.
    In case this will help someone, I put the total available to spend in D2 and then put this formula in D9:
    =D2-SUM(D3:D8)

Maybe you are looking for

  • Is there a way to identify the iTunes user?

    Since the StoreKit API does not return subscription InApp purchases during a restoreCompletedTransactions call, only way to know for sure that someone purchased an app is to tie the initial purchase to the iTunes account in the server (developer serv

  • My ipod touch 3rd gen is zoomed in on all screens....how do i unzoom it?

    I was having trouble getting my ipod to charge and now it is zoomed in on all screens!! how do i UNzoom it? it just zoomed in all by it self when i went to try to charge it!!

  • Will my 5th generation Mac with purchased upgrades support Diablo 3?

    Hello Mac family!! I have a question that I have been getting multiple answers to.  My 5th generation Mac has the following specs: OS X: 10.5.8 Leopard but I will be purchased Snow Leopard and Lion this weekend. Hard Drive: 50 GB Processor: 2.1 GHz I

  • I have a mini iPad and just got iPhone 5c

    I have an icloud email address and obviously an apple account what I want to know is can I use these on both my iPad and iPhone.

  • PLANT WISE FINANCIAL STATEMENT REQUIRED

    Hi Can any one tell me whether any standard report is available in SAP to get the plant wise Financial Statement ( No Business area wise ) as it is having in FBL3N ( thro dyanamic selection ) for GL balances. Please reply immediately if possible. Tha