javascript - Using Value of a Date Picker/Time Picker -
i got date , time picker in code:
<datepicker id="datepicker" placeholder="{i18n>enterdate}" width="15%"> <layoutdata> <flexitemdata growfactor="1" /> </layoutdata> </datepicker> <timepicker id="timepicker" placeholder="{i18n>entertime}" width="15%"> <layoutdata> <flexitemdata growfactor="0" /> </layoutdata> </timepicker>
from api reference not able understand how can use values user types in....
what did this:
var abc = new sap.m.datepicker(); var date = abc.getvaluedate().byid("datepicker");
but seems not work.... guess i'm doing horribly wrong here
var abc = this.byid("datepicker"); // 'this' - controller instance var date = abc.getdatevalue();
first, instance of date picker - loaded in xml view, , obtain date entered.
Comments
Post a Comment