How to proceed with a requirement on changing the input type

I have a requirement that seems rather simple yet I am having a hard time achieving it. What I have is a table where there is a Data_Value field and a Data_Type field. The Data_Value is stored in the database as a VARCHAR2(100) and the Data_Type contains the following values: STRING, DATE, DATETIME, NUMBER.
The page I am working on is an update page, and what I am hoping to achieve through PPR is that whenever the user changes the Data_Type (I have these in a messageChoice) that the Data_Value will then be rendered with the correct settings.
Originally I thought that I could just programmetically change the DataType property in the messageTextInput I am using, but this was causing errors since I had it bound to that field in the view which is a Varchar. I then thought that I could create one field of each type and render the one I want based on the selection, but I am getting an error saying: Data Type - Attribute set for DataType in view object Xo2cCustAcctUpdateVO1 failed whenever a new value is picked from my picklist.
Does anyone have some suggestions on how I should tackle this issue? As a last resort I thought about just leaving that field as a String (which is how it is stored anyway) and do some validation in my controller to ensure it is formatted correctly.
Thanks,
Greg

Greg,
The simplest approach would be to define one field per data type and toggle them based on the data type selected from the choice bean. Use SPEL and PPR.

Similar Messages

  • Change the input parameter in Check Status screen

    Hi,
    I have a requirment to change the input parameter option in the check status screen. Currently when we search the SC using the date and staus from the extended search it picks the SC created date and displays the SC, my requirement is to make the date as the approved date insted of SC created date with the status as aprpoved.
    Please suggest if this is possible with the help of any Badi.
    Regards
    GGL

    I managed to find the solution myself. If anyone is interested, just follow those steps here:
    http://apple.stackexchange.com/questions/44913/make-a-custom-keyboard-layout-the -system-default-even-for-the-login-screen
    (terminal skills required tho)

  • How to proceed with Fun Group In 4.7 to ECC6.0 upgradation

    Hi ABAP guru's,
    I am an ABAPer  and new to upgradation project
    I have a prob with Function Group
    1)what is the exact meaning of change of function group in upgradation.
    2)what is the relation b/w fun group and maintenance view
    3)what is the meaining of regeneration
    4)how to proceed with se11 and SM 30.
    Please reply soon
    its urgent
    Thanks in advance for your inputs
    Regards,
    Ramahari.

    Check this document link
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/103b1a61-294f-2a10-6491-9827479d0bf1
    Thanks
    Arghadip

  • How do i stop my itunes from changing the location of my itunes media.  i have it saved on a external HD and it keeps changing back to my local drive with out being told

    how do i stop my itunes from changing the location of my itunes media.  i have it saved on a external HD and it keeps changing back to my local drive with out being told

    No, an external drive will not always be mounted. If the drive goes to sleep, it can unmount, or it may unmount for other reasons. As Chris said, confim that the drive is mounted and active before launching iTunes.
    Regards.

  • I have a new Macbook pro and can't recall the password I used with my Time capsule - How can I (ideally) retrieve or possibly change the time capsule password?

    I have a new Macbook pro and can't recall the password I used with my Time capsule - How can I (ideally) retrieve or possibly change the time capsule password?

    Remember security on a TC is an illusion.
    Simply press the reset button for 1-2 sec.. you must not do too long .. it will then hard reset.. but soft reset will revert all passwords to default for 5min. ie TC password is now public.
    Remember this the next time because anybody at all can change your passwords.
    Once into the TC you can then open the view passwords if you wanted any weaker security. Click and open the TC.. and click on edit.. then go to the top menu..
    Voila .. all your passwords in plain sight to any Tom Dick and Fred.

  • This is so basic: How do you turn off Apple TV, or do you just exit by changing the Input back to regular TV? When I put Apple TV to sleep, I had to log in again, a very tedious process with that awful "announcer" for the hearing impaired (how to remove?)

    This is so basic: How do you turn off Apple TV, or do you just exit by changing the Input back to regular TV? When I put Apple TV to sleep after I installed it, I had to log in again, a very tedious process with that awful "announcer" for the hearing impaired (and how to remove that?).

    Welcome to the Apple Community.
    The Apple TV will put itself to sleep. I'm not sure what you needed to log into again, but you shouldn't have to. Do you have a little more detail about what happens.

  • How to change the data type in the table ESLL for the field USERF2_NUM ?

    Hello Friends,
    I have a requirement in which one of the change is to convert the data type of the field 'USERF2_NUM' in the table 'ESLL'  from 'QUAN' to 'CHAR'. 
    How do i do it if i have an access to change it..........i think i should also check the impact of the change if done.
    Kindly tell me as my requirement starts with this small change.
    Regards,
    Rajesh Kumar

    Thanks for the reply Sowmya.
    I would like to know 2 things.
    1. Is it ok to change the data type of the field 'USERF2_NUM '  which is in the table ESLL. from quan to char.
    2.  The table ESLL  already has entries. if we change the data type from QUAN to CHAR what is the  effect on the existing entries of the table .
    Kindly reply me back.
    Thanks & Regards,
    Rajesh Kumar

  • Hey i have a iphone 4s 64gb but and using the internet share .. how can i change the nat type from strict to open please help me :)

    hey i have a iphone 4s 64gb but and using the internet share .. how can i change the nat type from strict to open please help me

    You will have to configure that with your router. Type your router's IP address in the search/domain bar and allow port forwarding.
    What is requiring you to have an open NAT? That issue is usually for gaming consoles, etc.

  • How can we change the input field on a view stop showing zeros

    Hello,
           To make screen look consistent with other character input field. How can we change the input field on the view stop displaying zeros even though the data type is NUMC and data type should not be change?
    Edited by: sap_learner on Mar 25, 2010 5:44 PM
    Edited by: sap_learner on Mar 25, 2010 5:49 PM
    Edited by: sap_learner on Mar 25, 2010 5:55 PM

    hello Manas Dua,
                           Thanks for your help. I am able to resolve my problem.
    My code will help  the future comers to resolve this kind of issues.
    *The code is applied to method WDDOINIT of the default view.
      DATA lo_nd_terms_input    TYPE REF TO if_wd_context_node.
      DATA lo_nd_terms_input_i TYPE REF TO if_wd_context_node_info.
      DATA lv_zeros             TYPE wdy_attribute_format_prop.
      lv_zeros-null_as_blank = 'X'.
      lo_nd_terms_input = wd_context->get_child_node( name = wd_this->wdctx_input ).
      lo_nd_terms_input_i = lo_nd_terms_input->get_node_info( ).
      lo_nd_terms_input_i->set_attribute_format_props(
        EXPORTING
          name              = `ENTER THE ATTRIBUTE NAME`
          format_properties = lv_zeros     ).
    Edited by: sap_learner on Mar 26, 2010 5:02 PM

  • How to change the Encoding type of a XML

    Hi all,
    I'm having a XML(generated at run time) with UTF-8 Encoding. If I'm going to parse it, getting an error saying "*Document root element is missing*".
    If I change the encoding to ANSI, it parses without error.
    How can I change the encoding type of a documnet ?
    Any comment welcome.
    Kaushalya

    There's no such thing as the "encoding of a String". If you produced a String from a sequence of bytes using the wrong encoding, you may not be able to repair that problem by hacking about in your code. You're better off to produce the String using the correct encoding in the first place. Read this for more information about XML and encodings as you appear to be misunderstanding basic concepts:
    [http://skew.org/xml/tutorial/]

  • Change the Data Type of a Standard Required Field

    Hello Experts,
    Need to know if is it possible to change the data type of a standard field. The field is marked as a required field.
    For example: If a standard field is an Object Picker and I would like to change it to a string field. Is it possible? How can I do it?!
    Many thanks,
    Igor Nakamura

    Hi Igor,
    Since you cannot hide a required field, what you can do is move the standard required field to someplace less noticable (like the bottom of the page) and then use a validation script to set it to some benign value.
    -Howie

  • How to change the document type while creating a PO by ME59N

    Hi,
    I  have 2 groups of PR's, for group one the document type is picked as NB and PO is created and for the group 2 it should pick as XYZ and PO should be created using ME59N tcode.
    How to change the document type for group 2 in ME59N? Which user exists to use to change the document type while creating PO in ME59N? 
    Can any one suggest me.

    Hi,
    There a config area, where you can define default PO doc types for a particular Pr doc type. If you maintain the settings properly there, then your requirement can be fulfilled.
    SPRO->IMG->MM->Purchasing->Purchase requisation->Define doc types.
    This will serve your purpose.
    Thanks,
    Srinu

  • How  to change the billing type Rv to DG

    Dear all,
    when ever we are doing the return order to a sales we will create a customer credit memo through the VF01 T-code.where billing type will be customize one that is credit memo..
    once we save that the in customer G/L we are getting the document type as RV instead of DG.
    please tell me how to change the document Type in customer Ledger.
    regards,
    chethan

    Hi,
    Just to draw your attention that DG is doc.type used to issue credit memo from FI (t.code FB75), where it does not involve the inventory movement.
    Whereas the credit memo generated from OTC cycle (i.e.VF01) involves inventory movement. Ideally, both of these types of credit memos should have different doc. types, so that users can distinguish the returns based on doc. types later on.
    So, after explaining the above, please check with your business thoroughly if they really need to use DG instead of RV. I would suggest to create new doc. type 'ZC' and set up through VOFA.
    Thanks,
    Nirav

  • How to change the input variable xml structure before invoking an ext. serv

    Hi all;
    I have a bpel. in my bpel i have an invoke activity which calls an external webservice. I call my bpel with the input below.
    *<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">*
    *<SOAP-ENV:Body>*
    *<requestCustomerAccountBalance xmlns="http://impl.ejb.service.almanak.baca.turkcelltech.com/">*
    *<header xmlns="http://impl.ejb.service.almanak.baca.turkcelltech.com/">*
    *<application xmlns="http://impl.ejb.service.almanak.baca.turkcelltech.com/">CSI</application>*
    *<operationDate xmlns="http://impl.ejb.service.almanak.baca.turkcelltech.com/">03/14/2011 14:51:37</operationDate>*
    *<operationName xmlns="http://impl.ejb.service.almanak.baca.turkcelltech.com/">CSI</operationName>*
    *<transactionId xmlns="http://impl.ejb.service.almanak.baca.turkcelltech.com/">3424342</transactionId>*
    *<userId xmlns="http://impl.ejb.service.almanak.baca.turkcelltech.com/">tuba</userId>*
    *</header>*
    *<msisdn xmlns="http://impl.ejb.service.almanak.baca.turkcelltech.com/">5356474828</msisdn>*
    *<applicationName xmlns="http://impl.ejb.service.almanak.baca.turkcelltech.com/">CSI</applicationName>*
    *<channel xmlns="http://impl.ejb.service.almanak.baca.turkcelltech.com/">CSI</channel>*
    *<clientTimeStamp xmlns="http://impl.ejb.service.almanak.baca.turkcelltech.com/">03/14/2011 14:51:37</clientTimeStamp>*
    *<transactionId xmlns="http://impl.ejb.service.almanak.baca.turkcelltech.com/">3424342</transactionId>*
    *<accountType xmlns="http://impl.ejb.service.almanak.baca.turkcelltech.com/">ACC</accountType>*
    *</requestCustomerAccountBalance>*
    *</SOAP-ENV:Body>*
    *</SOAP-ENV:Envelope>*
    Before invoking the ext. service i want to change the input as follows.
    *<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:impl="http://impl.ejb.service.almanak.baca.turkcelltech.com/">*
    *<soapenv:Header/>*
    *<soapenv:Body>*
    *<impl:requestCustomerAccountBalance>*
    *<!--Optional:-->*
    *<header>*
    *<!--Optional:-->*
    *<application>?</application>*
    *<!--Optional:-->*
    *<operationDate>?</operationDate>*
    *<!--Optional:-->*
    *<operationName>?</operationName>*
    *<!--Optional:-->*
    *<transactionId>?</transactionId>*
    *<!--Optional:-->*
    *<userId>?</userId>*
    *</header>*
    *<!--Optional:-->*
    *<msisdn>5356474828</msisdn>*
    *<!--Optional:-->*
    *<applicationName>CSI</applicationName>*
    *<!--Optional:-->*
    *<channel>CSI</channel>*
    *<!--Optional:-->*
    *<clientTimeStamp>20101010</clientTimeStamp>*
    *<!--Optional:-->*
    *<transactionId>676767</transactionId>*
    *<!--Optional:-->*
    *<accountType>ACC</accountType>*
    *</impl:requestCustomerAccountBalance>*
    *</soapenv:Body>*
    *</soapenv:Envelope>*
    HOW TO ACHIEVE THIS.???
    Any comment would be appreciated.
    Best Regards

    You can go through the below thread for removing the namespce
    Removing namespace from xml  created
    http://beatechnologies.wordpress.com/2008/09/25/stripping-namespace-from-an-xml-using-xquery/
    Edited by: 333333 on Mar 17, 2011 6:44 PM
    Edited by: 333333 on Mar 17, 2011 6:45 PM

  • How to change the input and output schema in BPEL process

    hi',
    Please tell me how to change the input and output schema in BPEL process after the process is made.
    thanks
    Yatan

    If your intention is just changing the content you are passing to bpel/returning from bpel
    Here is another way
    just update your default created xsd files with new elements, update wsdl elements in message definition and chnage bpel code to reflect new elements in activities
    Regards,
    Praveen

Maybe you are looking for

  • Lame Foldernavigation with Zen Stone plus with spea

    I purchased the 4GB Model because i hear a lot of Audiobooks. Those are organised in folders. I downloaded the manual / help file before purchasing and was quite happy that the Zen support folders. Now im disappointed the way the Zen Stone handles th

  • How can I resolve trial downloads?

    I joined Adobe Creative Cloud yesterday. I own Creative Suite CS4 which I purchased from Adobe. I was approved for the 29 dollars a month. My downloads went fine except I have the trial products. How can I resolve this? Thanks, Renee

  • How do I stop Illustrator CS3 from continually stealing file associations?

    Since moving from CS2 to CS3 I've been plagued with a file association problem. Every time I run Illustrator CS3, it steals the file association for .FLT files (this didn't happen in CS2). .FLT files don't appear in the Bridge so I can't do anything

  • Can someone help me with my Library problem

    I had to restore my user library and it named it Library(Original). How can I change this back to just "Library". It will not allow me to rename.

  • Sharing between different Security Domains..

    Hello! there are two different security domains and i have two applets which are under different sD. is it possible to communicate with each other by using classic shareable interface methods. Thanks a lot in advance!