Page 1 of 1

Edit buttons - nuuserhome

Posted: Fri Jan 12, 2018 4:49 am
by toms
Hi,

Where can I edit these buttons? (e.g. to change their caption)
The Form Object List is empty and they are not listed in the "Objects"-Form either.

Re: Edit buttons - nuuserhome

Posted: Fri Jan 12, 2018 8:30 pm
by admin
toms,

I've fixed that now.

You'll need to do another pull and Update.

Steven

Re: Edit buttons - nuuserhome

Posted: Fri Jan 12, 2018 9:12 pm
by toms
I pulled the latest update and run the update. But I still can't see the them.

Update: I can see them after I run

Code: Select all

UPDATE `zzzzsys_setup` SET `set_denied` = '0';
But normally this shouldn't be necessary, should it?

Re: Edit buttons - nuuserhome

Posted: Fri Jan 12, 2018 9:14 pm
by admin
toms,

Did you run the Update Button?

Steven

Re: Edit buttons - nuuserhome

Posted: Fri Jan 12, 2018 9:19 pm
by toms
Yes I did!

Re: Edit buttons - nuuserhome

Posted: Fri Jan 12, 2018 9:47 pm
by admin
Well, I tested it a few times and its working for me.

You should have the following code in the Before Browse of the Object Form.

Code: Select all


$s  = "CREATE TABLE #TABLE_ID# SELECT zzzzsys_object_id AS theid FROM zzzzsys_object WHERE ";
$w  = "1";

if($GLOBALS['nuSetup']->set_denied == 1){
    $w  = "sob_all_zzzzsys_form_id NOT LIKE 'nu%' OR sob_all_zzzzsys_form_id = 'nuuserhome'";
}

nuRunQuery("$s$w");


Steven