× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Thanks. I just set up a very simple model of the "user-sensitive view" concept, with a PF, "FOO," defined thusly:
A R FOO_REC A ACCTNAME 50A A ARBAL 15S 2
A SALESUSER 10A

and a view defined on it thusly:
create view mercury/bar as SELECT acctname, arbal, salesuser
from mercury/foo where salesuser = USER

("Mercury" is a catch-all library for utilities and experiments on the AS/400 of that same name, that don't have some other home library)

It works beautifully, whether I look at it from QuestView (which uses native record-level access, rather than SQL), or from Squirrel SQL on my WinDoze box.

But there's another wrinkle, at least with the existing customer installations.

It seems that in most cases, the field that indicates which sales rep owns an account contains something other than the actual user profile name. It might be the user's enrollment number in the application (5 decimal digits in either a zoned or alphanumeric field), or it might be the user's "Sales Rep ID" in some native application we've tied into.

How would that work? A join with the user enrollment file (or with whatever we use to cross-reference sales rep IDs in the native system)?

****

I don't know enough about the third party reporting tools being contemplated (in fact, I don't know SCAT about ANY third party reporting tools), but I'm thinking that we can probably control access to the reporting tools in such a way that we probably wouldn't need to lock users out of the PFs.

****

And a question from the "peanut gallery": Is there a way to automatically set up a view that would not only censor the data, but change the field names to something based on the field text (or the column headings) in the PF?

--
JHHL

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.