Welcome to the nuBuilder Forums!

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

[Added] nuOnProcessBrowseRows() PHP

Information about updates, news, Code Library
admin
Site Admin
Posts: 2813
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

[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