on 12-22-2013 4:04 PM
Hello,
We are developing a Hybrid web application.
In which, we are passing dates as a input.
When we run the application in device, the date field shows the current Date by default.
Can we set null or blank(no value) in date field?
Kindly help
Regards
Ajay
Give more information on the requirement.
When you want get a null value from date field. Attach a screen of the screen.
- Midhun VP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Midhun,
We are trying to fetch data between the date range, as follows:
But, when this screen loads into the device, the date fields display the current Date by default.
These date fields are edit boxes, with Logical type as Date.
And, we have a requirement to keep these fields blank(as displaying no value by default).
Kindly help.
Thanks & Regards
Ajay
In "customAfterShowScreen" of custom.js file, set the value null ("') for date attributes.
If (screenToShow="your_screentname"){
document.getElementById("date1_attribute").value=""; |
document.getElementById("date2_attribute").value="";
}
date1_attribute and date2_attribute are the attribute value that you can find in workflow html.
Regards
Yokesvaran Kumarasamy
It depends on your device type.
If your device type doesn't support html5 (Basic model) then "Hybridapp_custom.html" will be taken to load your screen.
Ex: Blackberry 5 OS will not support html5. So BB 8520 will take "Hybridapp_custom.html" to show the screen.
If your device type is high end model then "Hybridapp_jqm.html" will be taken to load screens.
Ex: Android 2.3 and above, BB 6 and above, iOS4 and above will support "Hybridapp_jqm.html"
If hybrid web container not able to find the device version and its type then it will take "Hybridapp.html".
I hope you might have used high end model, so edit "Hybridapp_jqm.html". OR you can edit all the three htmls.
Regards
Yokesvaran Kumarasamy
Hi Ajay
Which version of SUP you are using?
Did you check the attribute(id) values for the date1 and date2 tag of the input box.
You should use the same attribute(id) value in custom js file. pls refer the attached screen.
Hybridapp_jqm.html
Custom.js
date1_attribute and date2_attribute should be same in html and custom.js
if you are using the screentoshow function check the screen name or remove for time being, then deploy and test the application.
Please share the screen shot if you still have issues.
Regards
Yokesvaran Kumarasamy
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.