Hi Shane,
that "on click" is for javascript code (ie it's embeded onto the web page) so you can't set a value in that.
To pass a value to a procedure via a menu item URL is to tag the parameters onto the URL like this;
'BrowseCustomers?ViewAll=yes'
or (of course)
'BrowseCustomers?ViewAll=no'
You can add multiple parameters using the & as a separator.
'BrowseCustomers?ViewAll=yes&paid=no'
In the BrowseCustomers procedure, at the top of the "GenerateBrowse" routine, you should "store" this value for future use.
if p_web.IfExistsValue('ViewAll')
p_web.SetSessionValue('ViewAll',p_web.GetValue('Viewall'))
end
OR (in 4.27 or later) this can be simplified to
p_web.StoreValue('ViewAll')
Ok, so now the parameter is _passed_ and it's _saved_ into a session value. All that remains is to _use_ that session value wherever you want. (probably in the browse filter.)
Cheers
Bruce