Quantcast
Channel: SCN: Message List - SAP Manufacturing Integration and Intelligence (SAP MII)
Viewing all articles
Browse latest Browse all 4841

sap.m.DateTimeInput

$
0
0

Hi All,

 

One of my requirement is to show the DateTime in the webpage and also the user should able to enter/edit the time in the textbox.

As I am using the below code

 

    var mData = { someDate: new Date() };

 

 

        new sap.m.DateTimeInput({

            type: sap.m.DateTimeInputType.DateTime,

            change: function() {

                alert("New date in model is " + mData.someDate)

            }

        })

        .setModel(new sap.ui.model.json.JSONModel(mData))

        .bindProperty("dateValue", "/someDate")

        .placeAt("content");

 

When ever I click the textbox I am able to get the datetimepicker but I am not able to edit the textbox.

Is there any solution for the above. Please let me know?

 

 

Regards

G.Partheeban


Viewing all articles
Browse latest Browse all 4841

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>