Welcome to the nuBuilder forums!

Please register and login to view forums and other content only available to registered users.

[Added] nuOnProcessBrowseRows() PHP

Information about updates, news, Code Library
admin
Site Admin
Posts: 2781
Joined: Mon Jun 15, 2009 2:23 am
nuBuilder Version: 4.5
Been thanked: 1 time

[Added] nuOnProcessBrowseRows() PHP

Unread post by admin »

Add a function called nuOnProcessBrowseRows() in the BB PHP event to pre-process/manipulate rows before they are displayed in a Browse Form.

Example: Replace all 1 in column 1 with a character.

Code: Select all

function nuOnProcessBrowseRows() {

	for($i = 0 ; $i < count($f->browse_rows) ; $i++){

		if ($f->browse_rows[$i][1] == '1') {
			 $f->browse_rows[$i][1] = '✓';
		}
	}
}
Post Reply