Page 1 of 1

Capture User Name on changing filed values

Posted: Wed Apr 16, 2014 3:36 pm
by arvind.acharya
Hi All,

I have subform. I need to capture user name in “Rec By” Column once the user changes the date in “Rec Date” column. I tried using nuRownumber function, but din’t work. Refer to attached screen.

Regards,

AA

Re: Capture User Name on changing filed values

Posted: Wed May 07, 2014 3:40 am
by admin
AA,

Put this in Before Open of the Form your Subform is on..

Code: Select all



$j = "
	window.customerID = '#nu_user_id#';
	
	function updateRecBy(pthis){
	
		var pre = $('#' + pthis.id).attr('data-prefix');      //-- update the field on the same row
		
		$('#' + pre + 'RecBy').val(window.customerID);
	
	}
";

nuAddJavascript($j);


and add an onclick event on the date field..
Capture.PNG
Steven

Re: Capture User Name on changing filed values

Posted: Sun May 11, 2014 10:16 pm
by arvind.acharya
Thanks Steven.. This works :)

Re: Capture User Name on changing filed values

Posted: Mon May 12, 2014 12:11 am
by admin
.