Kevin,
Here is my filter: 'CLI:ID_NO=<39>'&p_web.GSV('ID_NO')&'<39>'
I tried your suggestion but no good. I actually call a form, with a tab that contains the filtered browse (see image clinhist.png).
Perhaps I should explain what I'm trying to accomplish. I built this app to allow patients to enter medical data on-line, to replace paper forms. I have a user.tps file that holds user account info such as acct. number, name, user name, password hash, etc.
Each user logs in and is immediately taken to a filtered browse of their demographic information. A session variable, 'ID_NO' is set at login time and is used to filter this demographic table. I also have a drop menu that has items such as Clinical History, Chemo, etc. Each of these is also filtered using the session variable 'ID_NO'. All this works very well as is.
Now, I'm trying to allow certain "Admin" level users (physicians, etc.), to verify this patient entered data. Each Admin should be able to to see a list of all patients, search for a specific one, and then view all their demographic and history information. The Admin user also has their account in the user.tps file, but of course they have no information in the demographic or clinical history files.
To do this, I created another shorter version of the browse that displays the demographic information (see patlist.png). At the end of each row, I have created a button (type other) that calls the original clinical history browse seen above. Now here is where the issue is. The account number assigned to users in user.tps is meant to be used as a filter for the demographic and clinical history browses. When an Admin user logs in, their account number is set in the 'ID_NO' session variable. But, it won't find any items in the demographic or clinical history browses and this is entirely expected.
So, I'm attempting to reset the 'ID_NO' session variable with code in the "afterbrowserowclicked" embed of the shorter demographic browse. This does work, as long as I manually select the row first, before clicking on the corresponding Hx button of the row. By the way, I use the 'PatientName' session variable and the 'ID_NO' session variable to create a sub-header for each browse and form.
Hopefully, I explained this well. Perhaps there is a better approach?
Thanks,
Jeff
[attachment deleted by admin]