access to otheroptions button

On a form in, I have this: (button to do zip uploading, initially hidden)

Page_Render() {
$options = &$this->OtherOptions;
$option = $options[“action”];
$item = &$option->add(“cBulkComplete”);
… code
$item->Visible = FALSE;
}

need to get access to it in here, if the search value has something selected…

Recordset_Searching(&$filter) {
if(strpos($this->SearchWhere, “AccountId”) != FALSE) {
?? unable to get access to object… its not present in the options array
}
}

is this possible?. This button should only be visible if a filter has been set and the AccountId must be included…

thanks,

sticcino wrote:

    if(strpos($this->SearchWhere, "AccountId") != FALSE) {

Why not try above in the first event (Page_Render)?

Why not try above in the first event (Page_Render)?

It didn’t even dawn on me to do it there. The reason for the required filtering is we know the employees will make mistakes and archive multiple accounts together…

working fine.

Thanks