Focal Point
[SOLVED] Security using APP PATH

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/7327065706

July 28, 2011, 12:36 PM
vaayu
[SOLVED] Security using APP PATH
I am trying to set some security using the APP PATH Command based on the MRE user logged.

 -* GET THE USERLOGGED IN AND THE USER LEVEL
-TYPE USERLOGGED IN IS &MREUSER
-SET &CHARLEVEL= EDIT(&MREUSER,'$$$$9');
-TYPE ACCESS LEVEL IS &CHARLEVEL

TABLE FILE MYFILE
PRINT MYFIELD
WHERE READLIMIT EQ 10
ON TABLE HOLD AS H1
END
-RUN
-*SET THE APP PATH BASED ON THE LEVEL
APP PATH APP01

-* TRY DOING TABLE FILE AFTER THE LOCK
TABLE FILE MYFILE
PRINT MYFIELD
WHERE READLIMIT EQ 10
ON TABLE HOLD AS H2
END
-RUN 


I was really hoping to see it execute the first request but fail on the second but looks like it did not change anything by looking at the messages..
USERLOGGED IN IS blah1
ACCESS LEVEL IS 1
0 NUMBER OF RECORDS IN TABLE= 10 LINES= 10
0 NUMBER OF RECORDS IN TABLE= 10 LINES= 10


Please advise..I need to able to force the users to look at specific app folders so they can only see that metadata and nothing else.

This message has been edited. Last edited by: Kerry,


-********************
Sandbox: 8206.10
Dev: 8201M
Prod:8009
-********************
July 28, 2011, 05:41 PM
Waz
Could you add APP SHOWPATH after the APP PATH, so you can see what the path is.

I assume APP01 exists.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

July 28, 2011, 05:50 PM
vaayu
It does exist but, the problem is I am getting the baseapp at all times which I don't want. I would really like to keep it to one folder per user.

Any ideas?
July 28, 2011, 06:02 PM
Waz
Please see my comments in this post.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

July 28, 2011, 06:59 PM
j.gross
vaayu-

The command
WHENCE MYFILE MASTER
placed just before TABLE MYFILE ...
will reveal where the copy that Table uses is located.
July 29, 2011, 02:44 PM
vaayu
@j.gross
Very neat..
August 02, 2011, 03:27 PM
BobSh
Would an APP PREPENDPATH xxxx be searched before baseapp or still afterwards?


WebFOCUS 7.7.05M, gen 144, Windows 2008 Server R2 64-bit, Tomcat 6.0.33, IIS 7.0, SQL Server, Excel 2013, PDF, HTML, FOCUS files.
August 02, 2011, 06:21 PM
Waz
To check the order of the APP Paths, use APP SHOWPATH.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!