Decimal's in Prompt dropdown for Integer datatype

Hi All,
I have a year column which is of integer data type. It is giving me decimal's in the drop down.
So what I did was when to the data format and tried to override and save the default format for the column and also for the data type.
It didn't work. It was still giving decimal's in the drop down.
The only way I see is to cast it as varchar in the rpd and use it. But in future also should i do this for any Integer data type if I don't want to see decimals? Is there any other way that this can be handled?
Thanks in Advance.
Deep

Hi,
One way:
Please go the corresponding column properties in Physical Layer in the repository and change the data type to INT. because most of the time, even though it is INT in db after importing it may take double automatically in physical layer
Or,
Edit the column in Formula in answers and CAST( COLUMN AS INT).
First one will give you the permanent solution and the second one will have to user wherever you are having year in the report in prompt.
Hope it helps!

Similar Messages

  • Sql syntax for converting a long datatype value in to a integer datatype value

    I have to make a sql query where in i have a value of long datatype and i want to convert it into integer datatype value
    null

    It would have helped if you could have posted sample data.
    now my requirement is to calculate the difference in hours between the start time and end time.Assuming you want the difference in time irrespective of the dates and the time is stored like HH24:MI:SS format, you could try something like:
    SQL> WITH test_tab AS
      2       (SELECT '09:12:33' start_time, '12:30:33' end_time
      3          FROM DUAL
      4        UNION ALL
      5        SELECT '09:12:33' start_time, '14:12:33' end_time
      6          FROM DUAL)
      7        -- end of test data
      8  SELECT end_time, start_time,
      9         TRUNC (  (  TO_DATE (end_time, 'HH24:MI:SS')
    10                   - TO_DATE (start_time, 'HH24:MI:SS')
    11                  )
    12                * 24
    13               ) diff_in_hours
    14    FROM test_tab
    15  /
    END_TIME START_TI DIFF_IN_HOURS
    12:30:33 09:12:33             3
    14:12:33 09:12:33             5
    2 rows selected.Hope this helps,
    Regards,
    Jo

  • 50027: Invalid format mask for given datatype.

    hi ,
    i have a non database Number Item maximum length is 8
    when i try to put
    NNNNNNNN0.99 as a format mask
    i got the following error
    50027: Invalid format mask for given datatype.
    i want this field to view it's value Such as
    0.55when there is no integer no before the decimal point
    Can anyone help please?
    Form Ver Is Form6i
    Edited by: ayadsufyan on Apr 25, 2013 3:58 AM

    ayadsufyan wrote:
    hi ,
    i have a non database Number Item maximum length is 8
    when i try to put
    NNNNNNNN0.99 as a format mask
    i got the following error
    50027: Invalid format mask for given datatype.
    i want this field to view it's value Such as
    0.55when there is no integer no before the decimal point
    Can anyone help please?
    Form Ver Is Form6i
    Edited by: ayadsufyan on Apr 25, 2013 3:58 AMtry
    099999.99Hope this helps

  • Dynamic Command Parameter Prompts twice for Value

    I am having trouble in CR 2008 with command parameters.  Whenever I make the command parameter dynamic, I am prompted twice for the value: first I'm prompted to enter the value freehand, then the second prompt is a dropdown list with just the freehand value (or an error if the freehand value does not exist in the db).
    I need to use dynamic command parameters for two reasons: 1) to allow users to select the value from a dropdown list rather than a free-text value, and 2) to limit the record set returned from my initial command query.
    Any help on how to get dynamic command parameters to display all values in a dropdown list, and in one prompt, is appreciated!

    Hi
    If you create a parameter in your command it will be always static.  You can't make this as dynamic because, once your command get executed only you will get values in your report or in your list of values (dynamic parameter).
    There is a work around for this :
    --Create a report with command without any parameters at command level
    --Create a dynamic parameter at report level and do not place any fields in your report.
    --Now insert your orginal report as sub report in Report footer.
    --Right click on your sub report and go in change sub report links and link Main report dynamic parameter to your sub report command parameter.
    --Suppress all other section in your main report.
    Now when you refresh, it will execute your main report dynamic parameter with pick list.  Once user selects a value it will be passed to your command parameter.
    Thanks,
    Sastry

  • Integer datatype

    Hi,
    In my Oracle 11 database, I have an INTEGER datatype. When I try to synchronize that to my database, datamodeler comes back saying the database column is a NUMBER(*,0) and, as such, indicates that the column does not match the model.
    Specifically, I have a table COUNTRIES in model that has a column COUNTRY_ID defined as an INTEGER. In the database, it is also an INTEGER. When I synchronize the model, it shows that the columns do not match and the difference is the Data Type (NUMBER(*,0) != INTEGER) and Data Type Kind (Logical Type(NUMERIC) != Logical Type (Integer))
    Is there a way to get SQL Datamodeler 4.0 to match the integer datatype to native?
    Thanks!

    Sorry, the exact version is SQL Datamodeler 4.0.0.833.
    Interestingly, I use PL/SQL Developer. In there, a NUMBER(38,0) is automatically mapped/labelled an INTEGER.
    This seems to be the interpretation from the DDL behaviour.
    For example:
            SQL> create table test (x integer, y number);
            Table created.
            SQL> desc test
             Name                                      Null?    Type
             X                                                  NUMBER(38)
             Y                                                  NUMBER
    The problem seems to be that if I define a column in Datamodeler as an INTEGER, it will always show as being different from the database when doing a merge.
    Is there any way to define the mapping such that when I do a merge, this scenario is ignored?

  • Usage of octel,hexadecimal for integer literals with approprate example

    I am the beginner of the java programming language.So can you help me on how do we employ the octel,hexadecimal for integer literals with suitable example eventually.......

    http://java.sun.com/docs/books/tutorial/java/nutsandbolts/datatypes.html

  • Report should prompt me for parameters, please help.

    Hi All,
    I am using Crystal version 10, So is there any way I can get the behaviour of my parameters as dynamic parameter? I have this requirement because when I am deploying the Report on BO server, and try to open the report from InfoView, it is not prompting me for parameters, rather it is giving me the copy which we had scheduled earlier. To get the fresh data with different parameters, we again need to schedule the report.
    What I want is simple, Whenever user clicks on the report link in infoview, I should be promted for the parameters my report is using.
    Please help..
    Thanks
    -Azhar

    Hi
    It would prompt whenever it's refreshed.
    You can refer to Business View manager guide from [here|http://help.sap.com/businessobject/product_guides/boexir2/en/xir2_bv_admin_en.pdf ] for detailed information.
    Hope this helps!!
    Regards
    Sourashree

  • Issue in creating a dropdown for Industry sector field

    Hello Gurus,
    Am trying to create a dropdown for Indusry field. 3 dropdown should come up for Industry sector field namely primary,secondary and tertiary.Corresponding to the value selected in primary,data should come up in Secondary and corresponding to value selected in secondary ,data should up in tertiary.Am only able to fetch the value at first instance but corresponding values are not coming up secondary and tertiary.I have followed the procedure that had to be followed in order to make a field as dropdown.Can anyone Please help.
    In get_v , i have added this code.
    DATA:  lt_ddlb  TYPE          bsp_wd_dropdown_table,
               wa_ddlb  LIKE LINE OF  lt_ddlb.
    DATA:
              lr_entity1         TYPE REF TO if_bol_bo_property_access,
              lv_index           TYPE sytabix,
              lr_collection      TYPE REF TO cl_bsp_wd_collection_wrapper,
              lv_high_ind_sector TYPE string,
              lv_istype          TYPE string.
        CLEAR: wa_ddlb, lt_ddlb
        lr_collection = me->GET_COLLECTION_WRAPPER( ).
       lv_index =   lr_collection->get_current_index( ).
      IF lv_index = 1.
    lr_entity1 ?=  lr_collection->find( iv_index = lv_index ).
            lv_high_ind_sector = lr_entity1->get_property_as_string( iv_attr_name = 'INDUSTRYSECTOR' ).
          lv_istype = lr_entity1->get_property_as_string( iv_attr_name = 'INDUSTRYSECTORKEYSYSTEM ' ).
          CLEAR: lv_high_ind_sector.
    ELSE.
          lv_index = lv_index - 1.
          lr_entity1 ?=  lr_collection->find( iv_index = lv_index ).
          lv_high_ind_sector = lr_entity1->get_property_as_string( iv_attr_name = 'INDUSTRYSECTOR' ).
          lv_istype = lr_entity1->get_property_as_string( iv_attr_name = 'INDUSTRYSECTORKEYSYSTEM ' ).
        ENDIF.
        SELECT aspras aind_sector atext INTO CORRESPONDING FIELDS OF TABLE GT_IND_SECTOR FROM tb038b AS a INNER JOIN tb038a AS b ON  bistype = a~istype
    AND bind_sector = aind_sector
    AND b~istype = lv_istype*
    AND b~father_sec = lv_high_ind_sector.
      Loop at GT_IND_SECTOR into wa_ind_sector.
          wa_ddlb-key   =  wa_ind_sector-ind_sector.
          wa_ddlb-value =  wa_ind_sector-text.
          Append wa_ddlb to lt_ddlb.
        endloop.
        IF lt_ddlb IS NOT INITIAL.
          INSERT INITIAL LINE INTO lt_ddlb INDEX 1.
        ENDIF.
        IF GR_DDLB_INDUSTRY_SEC IS NOT BOUND.
          CREATE OBJECT GR_DDLB_INDUSTRY_SEC
            EXPORTING
              iv_source_type = 'T'.
    IF sy-subrc = 0.
            GR_DDLB_INDUSTRY_SEC->set_selection_table( it_selection_table = lt_ddlb ).
    ENDIF.
    ENDIF.
    rv_valuehelp_descriptor =  GR_DDLB_INDUSTRY_SEC.

    Hello,
    Not sure I understood your requirement 100%, but kindly check the following thread where a question on How-to make dropdown list values dependent has already been answered:
    How to link the first Drop down values witht the second Drop down Values
    Regards,
    Nicolas Busson.
    PS: also it would be good to know your CRM version... because I thought this thread was posted in the WebClient forum, but it's not.

  • Currency Translation key not appearing in dropdown for selection

    Hi BI Gurus,
    We are using BI 7.0 SP 08 and SAPGUI 6.40 patch level 19. Let me explain our scenario.
    We are using SEM-BPS for Planning. Data is loaded to BW InfoCubes and then uploaded to summerized Infocube.
    We are also loading data from flatfiles into other set of custom Infocubes similar to IM Cubes.
    Planning is done in Transactional infocube and there is multiprovider on top of Transactional Cube, Summerized standard Cube and summerized custom infocube (for flatfile) for reporting.
    We are pushig back the final plans to R/3 system and currency conversion is automatic. There is no problem here.
    We are loading planing data and actuals from flat files to our IM custom Infocubes. The data is coming in different currencies and we are converting and updating in the cubes in fixed currency USD. Once plans are finalized,we want to give some kind of tool to the users to see their appropriation requests and the plan value in local currency. We are thinking to create some BEX queries for this purpose. Users will Select their requests and currency and the query will display their requests in local currency.
    RRC1 tcode does not work in BI 7.0. There is an equivalent Tcode RSCUR to create the Currency Translation Key. I created a translation key. Now I am trying to use this key into BEX, using GUI for 3.X and BI 7.0. This key is not appearing in the dropdown for the currency translation key selection. So there is no way I can use this key. 
    I went through a number of postings in this forum and still looking for the right one. Is something I am missing? or Is some bug in BI 7.0.
    I know it was working in BW 3.5. Can you guys share your experience? Any help is appreciated.
    Thanks.
    Sheo

    OSS note 968356 might be applicable.
    <i>
    Symptom
    No currency translation is available in BEx Web. You cannot call a currency translation dialog box using the context menu.
    Reason and Prerequisites
    Business Explorer, NW2004s, SPS8, SPS9
    You use BEx Web applications in SAP NetWeaver 2004s.
    </i>

  • IPod touch screen freezes up and become unresponsive whenever it needs to prompt me for passcode

    I know my problem may sound strange. My iPod touch is complete screwed to the point that I can only unlock it using the password when it boots up from off mode. After that, when I lock the screen and it prompts me for the password again, I slide the slider and it hangs down there. I tried to go to the settings app to turn off the passcode but it needs to prompt me to enter my current passcode before I can enter to turn it off and it just hangs down there. I tried to Reset All Settings which also needs my passcode, I tapped on "Reset All Settings" and the next thing it should pop out is ask me to enter my passcode but it just freezes down there being unresponsive. Help. I've tried restoring but there was an error message in the process of restoring.

    I suspected it is a bug of iOS 5.1.1. The problem is in a very vicious loop. But with many tries, there will be times when it doesn't hang when it needs to prompt you to enter a passcode. Found a solution here: https://discussions.apple.com/message/18896056

  • I need to know the multitude of reason why my iPhone 5s would prompt me for my Apple ID password. Please help.

    I need to know the multitude of reason why my iPhone 5s would prompt me for my Apple ID password.
    All I did was place my phone on the charger, I then walked away for 10-15mins and when I came back it was asking me to enter my Apple ID password.
    I never gave my password out to anyone ever and hardly anyone knows my email address.
    I haven't recently downloaded anything either and I only have one apple device which is my iPhone 5s.
    I just want to know really if it could have been because someone was trying to log into my Apple ID?
    Please help with multiple reasons why this could have happened. I just want to know the options. Thank you

    My iPhone 5s did the same thing yesterday. I have iCloud backup turned on in Settings > iCloud > Storage & Backup and that means it will automatically do a backup when the phone is plugged in, locked and connected to wi-fi. I had it charging and when I returned it was asking for the password and the prompt did identify that it was requesting it for the iCloud backup (something you may not have noticed if you didn't look closely).
    It has never done that before and 2 iPads in my household have not yet done it. All are on iOS 7.1
    I have found a report of the same issue by a user of the 7.1 beta and in that case it was happening every day. In my case I entered the password then went to the same area in Settings as above and used the "Backup Now" button to do a backup. I will see tonight when I charge again whether this is going to be an every day problem.

  • Crystal report input prompt..for sub report

    Hi All,
    I developed crystal report and retreived the fields from the exsiting Query.Now for  enhancing the report i must creat a sub report for th eexisting one.In this case iam getting 2 input prompts one for the old report and the other one is for the enhanced sub report .But the requirement is tha t, the report must get only one input prompt for both the reports. Is this can be possible from the Query end or the crystal report end?
    YVL

    Hi Vijayalakshmi
    You can apply just one input parameter for the main report and then link your subreport with this parameter.
    Once you link the subreport, you would get only one prompt for inputting parameter values.
    This way you can optimize the performance of the report as well.
    For more information about linking subreports you can refer to the user guide for the respective crystal reports version you are using.
    Hope this helps!!!
    Regards
    Sourashree

  • My iPhone 5S prompts me for my password to an Apple ID email that no longer exists as an account.  How do I change my Apple ID address without having to change the primary address to a non-existent email account?

    I cannot sign into icloud on my phone because the Apple ID is an email account that has been deactivated and deleted.  How can I change my Apple ID without having to change the primary email address to this non-existent account? If I did so, I wouldn't be able to access the account to receive the verification email. Please help!

    To change the iCloud ID you have to go to Settings>iCloud, tap Delete Account, provide the password for the old ID when prompted to turn off Find My iDevice, then sign back in with the ID you wish to use.  When you do this you may find that the password for your old ID isn't accepted.  If this should happen, and if your old ID is an earlier version of your current ID, you need to temporarily recreate your old ID by going to https://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Click edit next to the primary email account, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You should not need to verify the old email address.  You can now use your current password to turn off Find My iDevice on your device, even though it prompts you for the password for your old account ID. Then save any photo stream photos that you wish to keep to your camera roll.  When finished go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https://appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • I just bought a brand new iPhone 4s from a Three store. When I used the cloud restore to put the data from my old 3gs onto the device, it's prompting me for an Apple ID login with an email address that isn't mine!

    I just got a brand new iPhone 4S on a contract from my local Three store. When I used the cloud restore to put the data from my old 3GS onto the device, it's prompting me for an Apple ID login with an email address (hotmail) that isn't mine! My old phone has NEVER had any Apple ID other than mine log into it, and the new one's a sealed box that I've opened and set up from scratch. Can anyone please explain this? I'm worried there's some kind of problem with my iCloud data being mixed with someone else's or something... Since I logged in with my own ID, it's downloaded the data perfectly fine, but I just got the Apple ID prompt again a moment ago with this same hotmail address in it... I'd be very grateful for any explanation!

    In iTunes on your computer, select the Purchased section under STORE in the left column. Click on the first track and choose "Get Info" from the "File" menu.
    In the "Summary" tab you'll see details of the purchaser of the track. Click Next to go through all your purchased music one by one until you find the ones you need to get rid of.
    Unfortunately, there are no smart playlist rules that can filter tracks by the purchaser that I know of.

  • Creating a dropdown for Roles

    Hello All,
    Can anybody please help me to create a dropdown for various roles in the portal,so that if the user clicks on the first role in the Top Level Navigation ,he should see a dropdown list with other roles being displayed and listed to be selected ...
    Any help would be really appreciated
    Thanks

    hi subhash.....
    are u trying this in PDk or in WebDynPro.....???
    if its in PDK...the following code will work....
         public DefaultListModel getRoleModel() {
              roleList = new DefaultListModel();
              roleList.setSingleSelection(true);
              roleFactory = UMFactory.getRoleFactory();
              try {
    //               String[] roles = roleFactory.getRolesOfUser(uniqueID,true);
                   searchRoleFilter = roleFactory.getRoleSearchFilter();
                   searchResult = roleFactory.searchRoles(searchRoleFilter);
                   int i = 0;
                   while (searchResult.hasNext()) {
                        Object name = searchResult.next();
                        IRole role = roleFactory.getRole(name.toString());
                        String roleName = role.getDisplayName();
                        if(roleName!=null)
                        roleList.addItem(role.getUniqueID(),roleName);
                        i++;
              } catch (UMException e) {
                   e.printStackTrace();
              return roleList;
    Regards,
    Sudheer
    Message was edited by:
            Sudheer Reddy
    Message was edited by:
            Sudheer Reddy

Maybe you are looking for