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", [such as 'britin'] 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

Similar Messages

  • Select-a-date field not working on iPhone

    I'm having trouble getting this form to work on a mobile device: www.centralparkpetretreat.com/contact-us
    There are 2 select-a-date fields on this form (drop-off date and pick-up date). The first one works and the second one doesn't. It seems to only be a problem on an iPhone. Has anyone else encountered this problem? Any ideas?
    Thanks!

    HI Vivek,
    Go to Universe Designer
    click on object (Latest Approved Date)
    click on definition
    go to TYPE scroll down and select type as DATE
    and export now check the filter it will work
    try once
    Regards,
    Ranjeet

  • Select -option Date field in MM/YYYY format!

    Hi.. Friends..
       Iam having DATE field as selection screen SELECT_OPTION parameter.
    And I am fetching records from one of my tables with where condition of this select-option.
    Now my reuirement is to modify that DATE select-option with 7 characters i.e. MM/YYYY
    So if user enters 09/2008 as DATE-LOW.. I have to fetch all records of September 2008.
    If user enters 09/2008(lower limit) and 02/2009(Upper limit)...
    I have to fetch records between... September 1st 2008 to 28th february 2009.
    What is the simplest way to impliment this?
    Thanks,
    Naveen.I

    Hi
    Use data element SPMON as in below code.
      TABLES: S001.
      DATA: l_year(4)  TYPE n,
            l_month(3) TYPE n,
            g_sdate TYPE sy-datum,
            g_edate TYPE sy-datum.
      RANGES: gr_pdate FOR sy-datum.
      CONSTANTS: lc_low   TYPE sy-datum VALUE '00010101',
                 lc_high  TYPE sy-datum VALUE '99990101'.
      SELECT-OPTIONS:   s_spmon  FOR  s001-spmon.
      l_year  = s_spmon-low(4).
      l_month = s_spmon-low+4(2).
    * Get the first day of PERIOD-LOW
      CALL FUNCTION 'FIRST_DAY_IN_PERIOD_GET'
        EXPORTING
          i_gjahr        = l_year
          i_periv        = 'K2'
          i_poper        = l_month
        IMPORTING
          e_date         = g_sdate
        EXCEPTIONS
          input_false    = 1
          t009_notfound  = 2
          t009b_notfound = 3
          OTHERS         = 4.
      l_year  = s_spmon-high(4).
      l_month = s_spmon-high+4(2).
    * Get the last day of PERIOD-HIGH
      CALL FUNCTION 'LAST_DAY_IN_PERIOD_GET'
        EXPORTING
          i_gjahr        = l_year
          i_periv        = 'K2'
          i_poper        = l_month
        IMPORTING
          e_date         = g_edate
        EXCEPTIONS
          input_false    = 1
          t009_notfound  = 2
          t009b_notfound = 3
          OTHERS         = 4.
      IF NOT s_spmon-low IS INITIAL.
        gr_pdate-low = g_sdate.
      ELSE.
        gr_pdate-low = lc_low.
      ENDIF.
      IF NOT s_spmon-high IS INITIAL.
        gr_pdate-high = g_edate.
      ELSE.
        gr_pdate-high = lc_high.
      ENDIF.
      IF NOT s_spmon-low IS INITIAL OR NOT s_spmon-high IS INITIAL.
        gr_pdate-option = 'BT'.
        gr_pdate-sign = 'I'.
        APPEND gr_pdate.
      ENDIF.
    " SELECT RECORDS
    " >>> SELECT field1 field2 FROM TAB1 WHERE erdat IN gr_pdate. <<<

  • Query for select CLOB data field

    Hi All,
    I want to know how to write a SQL query for select CLOB tyoe data from a tablw. when I am trying to use the simple SQL it gives an messageLOB types requires OCI8 mode and currently uasing OCI7 ode.
    Also I am not aware of oci mode?
    If its working for OCI8 mode how I should changer it in to OCI8 mode? (I am using 10g rel 2)
    Thans and regards
    Buddhike

    Hi ,
    i don't want to use loop (sy-tabix) ..
    any particular reason for this ?
    as u cannot automatically generate serial number, u have to go for loop....endloop.
    Thanks
    Karthik

  • Date field not updated when select on F4 value on editable ALV Grid

    Can some one look into this to see what was wrong.
    I have a report that display fields extracted from a ZTable and display on an ALV Editable Grid.
    The data are displayed as read only mode for these fields:
    Field A -   type char20 and have a search help available.
    Start Date - type dats
    End Date - type dats.
    Field B
    Field C ...
    When user select to add new record,  Field A, Start Date and End Date must be editable, the rest are read only.
    On field A because there is search help available, I have no problem select data on F4 pull down menu and the data is updated on the grid.
    But on field start date and end date, there is F4 menu and when you pull down, it shows the calendar date.  But when I select the date to change, it acts like nothing happens.  I run the debug mode and found out that in function module 'F4IF_FIELD_VALUE_REQUEST', after you select the date field, I got the return code irc = 8 from line 305 of this FM.
    Here is what I did.
    I build field catalog similar like BCALV_EDIT04  (add table type lvc_t_styl to each extracted record to indicate which field will be  editable.
    In the PBO,  I build field catalog and set style as enable for these fields:
    CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
        EXPORTING
          i_structure_name = p_struct
        CHANGING
          ct_fieldcat      = p_t_fieldcat.
    LOOP AT p_t_fieldcat INTO ls_fcat.
        CASE   ls_fcat-fieldname.
           when 'Field_A'.
               ls_fcat-ref_table = 'ZTABNAME'.
            ls_fcat-ref_field = 'FIELD_A'.
            ls_fcat-edit = 'X'.
            MODIFY p_t_fieldcat FROM ls_fcat.
       when 'START_DATE' or 'END_DATE'.
        ls_fcat-style = CL_GUI_ALV_GRID=>MC_STYLE_enabled.
             MODIFY p_t_fieldcat FROM ls_fcat.
       endcase.
    Just curious, I copied program BCALV_EDIT_08 to ZBCALV_EDIT08 and make field booking date as editable to test.  When I select to change booking date from F4 menu pull down, the new date is populated to the screen field.  So what was wrong between my program and BCALV_EDIT_08?  Thanks for your help.  I am stuck on this problem for 2 days and could not figure out what was wrong.

    not sure why you use that FM for date filed , you just need in the field catalog make sure that are use a date field of reference , anyway check program BCALV_EDIT_01

  • Can a today's date be added in a date field when the submit button is pressed?

    I created a form with a submit button and the form is sent via email.  Can the date when the form is submitted show up in a date field with the button is pressed?
    Any help with this is much appreciated. Thanks.

    Hi,
    there is a preSubmit event for form objects you can use.
    Select your date field, open the script editor and add this script (language is FormCalc) into the preSubmit event.
    $ = num2date(date(), "MM/DD/YYYY")

  • Additional Date fields in Address Book Contacts

    I am trying to add *new date fields* to my contacts and Address Book Help says this can be done either at the form level or at the contact level by selecting a *"Date" field to add from the fields categories*.
    Problem : I have no "Date" field to add.
    *Anyone knows how to make this category (re)appear or, perhaps, a workaround ?*
    TIA

    Nice work! I didn't suspect you'd know how to edit prefs...
    Just goes to show, you never know a person's skill levels here
    -mj

  • Focus lost in Date Field when the property autosubmit="true" is added

    Hi,
    I am using jdeveloper version 11.1.2.0.0.
    The issue I am facing is when I add the property autosubmit="true" for a date field and if I am selecting a date value using date picker, the focus is lost for the date field. But when I remove the property autosubmit="true" for the date field and if I am selecting a date value using date picker, the focus stays in the date field. This I tried in sample application with the default converter and validator. Anybody can help me with this issue?

    Hi,
    there is a preSubmit event for form objects you can use.
    Select your date field, open the script editor and add this script (language is FormCalc) into the preSubmit event.
    $ = num2date(date(), "MM/DD/YYYY")

  • Populate current date into date field?

    I've been working on trying to get a date field to populate the current date if the user enters ' / ' into the field.  So far I have been able to replace ' / ' with a value but I am not able to populate the current date.  I have tried several suggests that on who to populate current date but have not been able to get my code functioning. 
    I have place the below code on the exit even of the date field which runs correctly but when I try to add in the date it breaks.  Any one have a suggestion?
    if  (this.rawValue == "/")
    this.rawValue = 1
    Thanks

    I have to agree with Radzmar that the workflow is quite odd. That character is a bit unique; however there are 2 ways you can get this to work. One is just to use the code snippet (below) on the Exit event of the text field where the "/" is located or you could use the Action Builder. The Action Builder is a bit easier to understand if your coding knowledge is a bit lacking like myself. Just go to the toolbar at the top, select tools then Action Builder. Each action has a condition and a result. In the condition section select the field which is going to contain the "/", make sure it is set to "is" and then in the box put /. From the result box, select "set the value of a field", select the date field that you wish to have today's date and then it make sure it says "to today's date". Then whenever someone puts "/" into the text field, the date field will populate today's date automatically.
    if (this.resolveNode("$").rawValue == "/") {
      this.resolveNode("DateTimeField1").rawValue = util.printd("yyyy-mm-dd", new Date());

  • Delta with data field works if delta not run everyday?

    Hello,
    I have a doubt related with how delta works,
    I have a generic datasource with delta behaviour. In delta, i selected a date field to control delta and i put one day for limit.
    So, my doubt is:
    I have a table with records with delta date 24.05.2007.
    Last delta extraction were at 23.04.2007.
    When i execute delta infopackage at 26.04.2007, i'm i going to get all records since 23.04.2007?
    Thanks
    Best Regards,
    Maria

    Hi,
    if delta initialisation was done you'll get the diff between current run date and last delta run
    /manfred

  • Comparing Date/Time Field In Select Expert

    I have a Formula field defined INVDATE as follows:
    WhileReadingRecords;
    tonumber(totext(year({INV1.DocDate}),'##')totext(month({INV1.DocDate}),'#')totext(day({INV1.DocDate}),'#'))
    I need to select a date range by passing parameters in the Select Editor as follows:
    {@INVDATE} in {?Begin Date} to {?End Date}.
    My questions is this doesn't select only the records i have entered for the date range, it gives me all records in the table. Any idea how to code this so it only give me the records I have passed a date range for.
    Thanks Jim Dyer

    Mark I have replicated to what you have mentioned in your post and my dates are coming out perfectly.
    Here is what I did...
    Created two date parameters (Start date and End Date)
    Created formula exactly like yours
    WhileReadingRecords;
    tonumber(totext(year({order_header.date_entered}),'##')+
    totext(month({order_header.date_entered}),'#')+
    totext(day({order_header.date_entered}),'#'))
    placed it in the detail section.
    Created a Report--->Record Selection formula
    {order_header.date_entered} in {?Start Date} to {?End Date}
    Ran the report and chose the date range for today and I got all the dates which are for today.
    Can you please let me know if you are doing the same what I did? or perhaps a screenshot of what you are getting and what you expecting?
    Regards
    Jehanzeb

  • 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?

  • Number fields in select expert

    I am currently using Crystal 2008 and I am having issues with numeric values entered in the select expert.
    The record selection criteria that I have entered is
    {HSP_BKT.BKT_ID} in [94633, 94920]
    however, crystal defaults/converts to these numbers with 8 decimal places (.000001)
    {HSP_BKT.BKT_ID} in [94633.00000001, 94920.00000001]
    94633 and 94920 are valid numeric values with data but because crystal is converting it to 94633.000001, I am not getting any records back.
    Any help is very much appreciated.

    You didn't mention the data type of the field.  If it is integer, then one way to work around this might be to define an integer array, put your values in that, and use it in place of the constants.  (Crystal really shouldn't be converting the constants to a decimal in this case, so you might wanna let SAP know about it...)  If it is a floating point type, then you may need to use CInt() to convert the field to integer.
    HTH,
    Carl

  • 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

  • Using a parmater field for a Date field using the "in the period" selection

    Users would like to fetch records using the "in the period" record selection. They would like to be prompted on the period to run the report. ie
    MonthToDate
    YearToDate
    Last7Days
    Last4WeeksToSun
    LastFullWeek
    LastFullMonth
    AllDatesToToday
    etc...
    I've created a parameter with a dropdown list of values. However the parmeter field I created isn't available as a value in the date field in the "Select Record Expert" function.
    Is there a work around?

    Ron,
    Unfortunately you still have a little bit more work to do... but not much.
    You need to add a formula to your selection criteria. Something along these lines:
    IF {?DateRange} = "MonthToDate" THEN {TableName.DateField} in MonthToDate ELSE
    IF {?DateRange} = "YearToDate" THEN {TableName.DateField} in YearToDate ELSE
    IF {?DateRange} = "Last7Days" THEN {TableName.DateField} in Last7Days ELSE
    IF {?DateRange} = "Last4WeeksToSun" THEN {TableName.DateField} in Last4WeeksToSun ELSE
    IF {?DateRange} = "LastFullWeek" THEN {TableName.DateField} in LastFullWeek ELSE
    IF {?DateRange} = "LastFullMonth" THEN {TableName.DateField} in LastFullMonth ELSE
    IF {?DateRange} = "AllDatesToToday" THEN {TableName.DateField} in AllDatesToToday
    On the plus side, you'll be able to go back into your parameter and add some spaces to list options... which will look better for the end users.
    HTH,
    Jason

Maybe you are looking for