I have a check box and a date field on the form. The requirement is to display the System Date in the date field when the check box is checked by the user and to clear the date field when the check box is unchecked by the user. Although the user has unchecked the check box and saved the form it displays the previously saved date by the user. I used the following code to save it.
Following code will solve the problem and will set it to Empty when it saved.
//get the value of Reviewed by Manager checkbox
var ReviewedManager = crmForm.all.cpms_reviewedbymanager.DataValue;
//if Reviewed by Manager chekbox is checked
if (ReviewedManager == true)
//set the Date Reviewed by to system date
crmForm.all.cpms_datereviewedbymanager.Disabled = false;
crmForm.all.cpms_datereviewedbymanager.DataValue = new Date();
crmForm.all.cpms_datereviewedbymanager.DataValue = null;
crmForm.all.cpms_datereviewedbymanager.ForceSubmit = true;
crmForm.all.cpms_datereviewedbymanager.Disabled = true;
Type “regedit” on run and find follwing;
Add new String value to Text Editor and name it as “Guides”
Enter its value as “RGB(204,204,204) 99”
Visual Studio 2008 Text Editor looks like this;
The Book named “Object-oriented Programming with C++” by E. Balagurusamy, one of the best books I have ever read to learn and understand object oriented concepts as a beginner. I read it in 2002 for the first time and it was the 2nd edition of that book. The author uses real life simple examples to teach and express the real meaning of object oriented concepts. At the end of every chapter he gives a summery of that particular chapter and review questions. Now the publisher has released its 3rd edition.
Programming With Java- A Primer is another good book written by the same author.