Place the following in the column:
@Text(@Year(StartDate)) + "/" + @Text(@Year(EndDate))
Depending on the dates in StartDate and EndDate, the display will show:
2003/2004
The following will calculate the number of years by rounding off the decimals.
var f = document.forms[0];
f.Age.value = Math.round((Date.parse(f.CurrentDate.value) - Date.parse(f.BirthDate.value) ) / (1000 * 60 * 60 * 24*365));
Place the following in the onChange or onClick of the combobox:
var f = document.forms[0];
var specialRm = f.RoomSelection.options[f.RoomSelection.selectedIndex].text;
var chkIndex = specialRm.indexOf('(*)'); //Some of the options contain (*) therefore indexOf('(*)') is used.
if...
So far, I've seen only male IT managers. My company so far, I've seen is a female sales manager. The other managers are male.
Fight?
[lightsaber]
What fight? [shocked]
Below is the code to be placed in the onChange of the Select field:
var f = document.forms[0];
var fldVal;
num = 0;
fldVal = f.PersonName.length;
for ( i = 0; i < fldVal; i++ )
{
if ( f.PersonName[i].selected)
{
num = num + 1;
}
}
f.NoOfRep.value = num;
NoOfRep will display...
From what I understand, your normal day to day user account has Administrator privileges because you may want to install programmes without logging in as the Administrator in order to install.
If you don't install programmes all the time, then a limited user account will do if you can run the...
You create a button by selecting 'Javascript' on the 'Run' drop down option. Put the code in 'onClick' event. e.g
document.forms[0].b.value = document.forms[0].a.value
document.forms[0].b2.value = document.forms[0].a2.value
document.forms[0].b3.value = document.forms[0].a3.value
.
.
...
Kjonnn, I agree with you. It's really a danger too at my side. The users, esp those with IT Degree, they think that they know something but the thing is they don't know the impact of what they are doing. Hence, they keep thinking that the IT dept is not working hard enough, not installing...
The following is placed in the onChange:
var f = document.forms[0]
var v = f.GPNo.value
for ( i=0; i<v.length; i++) {
if ( ( v.charCodeAt(i)<48 || v.charCodeAt(i)>57 ) && v.charCodeAt(i) !== 44 ) {
alert ( "Gate Pass must be numeric." )
f.GPNo.value = "";
f.GPNo.focus()
return false...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.