Quantcast
Channel: ASPRunner forums
Viewing all articles
Browse latest Browse all 2586

[SOLVED] Hide Add Button

$
0
0
Hello all,I do not know if it can be done with out a lot of coding.I have my main table Trips. Then there are a good bit of detail tables under it. What I would like to know is can I set some kind of code to hide the ADD button on all the detail tables?
I can add this code:
if ($data["locked"] == "1"){
 	$pageObject->hideItem("add", $recordId);
 	$pageObject->hideItem("add");
 	$pageObject->hideItem("update_selected");
 	}
In the list page of each detail table, and it works great. But some detail tables do not have anything and I need to make it so they can not add if the lock is set to 1 on the master table (trips).
Thank you very much for any kind of help or pointing me in the right way of learning how this can be done..
James

Viewing all articles
Browse latest Browse all 2586

Trending Articles