Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Capture User Name on changing filed values

Locked
arvind.acharya
Posts: 18
Joined: Tue Nov 26, 2013 9:14 am

Capture User Name on changing filed values

Unread post 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
You do not have the required permissions to view the files attached to this post.
admin
Site Admin
Posts: 2815
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Capture User Name on changing filed values

Unread post 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
You do not have the required permissions to view the files attached to this post.
arvind.acharya
Posts: 18
Joined: Tue Nov 26, 2013 9:14 am

Re: Capture User Name on changing filed values

Unread post by arvind.acharya »

Thanks Steven.. This works :)
admin
Site Admin
Posts: 2815
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Capture User Name on changing filed values

Unread post by admin »

.
Locked