Home
Analytics
date picker problem
Rajesh kmr
i am using cascading parameter ..in which i will take first parameter as a text box for date picker i.e. we will take date from date picker ..on the basis of that the next parameter will be populated ..but when i made it as a text box and taking value form date picker the next value is not getting updated on the basis of parameter.
now what to do to populate the value in the next parameter on the basis of the date picker;...
or is there any other way to do this ..please suggest
thanks
Find more posts tagged with
Comments
mwilliams
What is the second parameter getting populated based on then? Are there no values? Or all of the values?
Rajesh kmr
thanks for reply..
i have cascading parameter..the first parameter is date type..the second parameter in the same cascade is list box..which will display values based on the first date parameter..when i am using the first parameter as a list box then that value is coming from data base and every things works fine ...
but i want to use date picker for selecting date...
so i made the first parameter as text box so that we can get the date from date picker,
after doing this date picker is coming and date is also being selected but ..on the basis of that date the second parameter is not getting populated...
again if i am changing this parameter as a list box then it working fine..
but date picker is not coming...
so i put the
<%
if (parameterBean.getParameter().getDataType()==7|| parameterBean.getParameter().getDataType()==4) {
%>
<button id="<%=parameterBean.getName()%>_button" class="btn_calendar"></button>
<script type="text/javascript">
Calendar.setup({
trigger : '<%=parameterBean.getName()%>_button',
inputField : '<%=parameterBean.getName()%>',
onSelect : function() { this.hide() }
});
</script>
<%
}
%>
this code in ComboboxParameterFragment.jsp page..
so now date picker is coming ..but only image of date picker is coming in front of list-box we are not able to select dates form that..and list is also coming..
what to do yr..i am not getting any solution...
please suggest me....today i have to give this to client..
if you have any gmail account please add me in ur chat ..
my mail id is..
rajeshbcrec@gmail.com
Thanks
Rajesh Kumar
Rajesh kmr
i am also attaching one sample ..see the sample it works fine if the first parameter is list -box ..
now in property you changed the control type..to textbox then you will get date picker for this ..but now the next param will not get populated on the basis of that..
Reply ASAP
Thanks
Rajesh Kumar
Rajesh kmr
or we may think if the cacading option is not there then can we cascade using normal parameter...if
possible please let me know ..then i can use this concept in populating next parameter using date picker
Thanks
Rajesh Kumar
Rajesh kmr
my friends atleast suggest some solution...dont sit calm yr
mwilliams
Sorry, I was not working during the weekend. From the sounds of it, the date picker is not formatting the date in the format necessary to query your database or something along those lines, so no values match the date that is passed. You might look into the date format in your database and/or dataSet and the format of the date supplied by the date picker. Or did you come up with a solution with your friend?
P.S. - I am on Yahoo chat. My id is mwilliams_actuate@yahoo.com
Rajesh kmr
thanks for reply..
but till now i didn't got any solution from my friends..
i think till now the problem is not clear ..i have sent you the example..
when i am using cascading parameter ..so when the first parameter is list-box then second parameter is working fine...
but when i make first parameter as a text box then the second parameter is not working for the value of the first parameter..
and i can apply the date-picker when date-type is date and field is text-box..
so i first created a cascade parameter ..both parameter as a list-box..so its working fine ..then i just changed the type of first parameter from list-box to text-box....and it stopped working..
my date format is correct..because its working fine when i don't need any cascading parameter...
Rajesh kmr
i got the solution ..just by editing some jsp and js files...
Thanks