Hi,
I want to update date column of those rows which are checked. I have a popup date picker But my problem is how i can pass ids of those rows which are checked or name of text fields of columns in that function of date picker from html file.Can any one please guide me how i can do that.
I am pasting those portion of my codes
date_picker.js
===============
function Build(p_item, p_month, p_year, p_format) {
var p_WinCal = ggWinCal;
gCal = new Calendar(p_item, p_WinCal, p_month, p_year, p_format);
// Customize your Calendar here..
gCal.gBGColor="white";
gCal.gLinkColor="black";
gCal.gTextColor="black";
gCal.gHeaderColor="darkgreen";
// Choose appropriate show function
if (gCal.gYearly)gCal.showY();
elsegCal.show();
}
function show_calendar() {
/*
p_month : 0-11 for Jan-Dec; 12 for All Months.
p_year: 4-digit year
p_format: Date format (mm/dd/yyyy, dd/mm/yy, ...)
p_item: Return Item.
*/
p_item = arguments[0];
if (arguments[1] == null)
p_month = new
String(gNow.getMonth());
else
p_month = arguments[1];
if (arguments[2] == "" || arguments[2] == null)
p_year = new String(gNow.getFullYear().toString());
else
p_year = arguments[2];
if (arguments[3] == null)
p_format = "MM/DD/YYYY";
else
p_format = arguments[3];
vWinCal = window.open("", "Calendar",
"width=250,height=250,status=no,resizable=no,top=200,left=200");
vWinCal.opener = self;
ggWinCal = vWinCal;
Build(p_item, p_month, p_year, p_format);
}
=============
In html file Iam calling function like below :
onClick(Button) = show_calendar(calform.datebox)
where calform is form name and datebox is text field name of date column.
I can pass one text field name but i want to pass all text field name of date columns in that function which are checked by user so that when user click on date in date picker i can update dates of all columns which are checked.
Thanks
Bikash
[ January 25, 2005: Message edited by: Bikash Paul ]