Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED]limitations on data source security?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED]limitations on data source security?
 Login/Join
 
Master
posted
We're trying to implement the DBA functionality on a simple master file. (no joins) and we're running into an error of

(FOC053) DBA ERROR. INVALID ATTRIBUTE IN MASTER FILE: SALESPERSON_NUM EQ '193'
OR '4407' OR '4602' OR '3873' OR '3866' OR '3872' OR '3222'
BYPASSING TO END OF COMMAND

Here's the line...
USER=JKELLY, ACCESS=RW, ACCESS=R, RESTRICT=VALUE, NAME=SYSTEM, VALUE=SALESPERSON_NUM EQ '193' OR '4407' OR '4602' OR '3873' OR '3866' OR '3872' OR '3222' ,$

The line works fine until we add the 6th salesperon_num to the OR. If we take off the "OR '3222'" it works as expected.

Is there a limitation to the number of OR's you can have, or maybe there's a better way to do what we're trying to do here.

Thanks!

This message has been edited. Last edited by: <Emily McAllister>,


Prod: Single Windows 2008 Server running Webfocus 7.7.03 Reporting server Web server IIS6/Tomcat, AS400 DB2 database.
 
Posts: 611 | Registered: January 04, 2007Report This Post
Master
posted Hide Post
I'd like to add that I tried to use an IN ('x','y','z') and got errors. Wink


Prod: Single Windows 2008 Server running Webfocus 7.7.03 Reporting server Web server IIS6/Tomcat, AS400 DB2 database.
 
Posts: 611 | Registered: January 04, 2007Report This Post
Expert
posted Hide Post
Jason,

Have you tried converting the multiple ORs into an IN statement?

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Expert
posted Hide Post
I guess you did Frowner - overlap of postings!

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Master
posted Hide Post
thanks for the tip tony!
we were never able to get an IN statement to work without syntax errors, we figured it had something to do with it being a DBA setup rather than an actual where clause.

Is there a way to use an IN in a DBA?


Prod: Single Windows 2008 Server running Webfocus 7.7.03 Reporting server Web server IIS6/Tomcat, AS400 DB2 database.
 
Posts: 611 | Registered: January 04, 2007Report This Post
Virtuoso
posted Hide Post
I would suggest an other approach.

Create a separate user table with two keys

USERCODE
SALESPERSON_NUM

and build the restrict on that table at the first field.

Then if you want to run a report you first select the salesperson_num records based on this table.

The advantage is that you can add records in the database instead of changing the master.




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
Master
posted Hide Post
hold the phone...
Frank, I think I'm understanding you correctly, but I'm not sure....

I could create a table of
MR User ID's | Salesperson_Num
and join it to
Salesperson_Num | Payroll$

and that would only return the salesperson_num associated with the user id!

How could I do this join in my fex? I don't know how to specify the user-id they used to log into webfocus.


Prod: Single Windows 2008 Server running Webfocus 7.7.03 Reporting server Web server IIS6/Tomcat, AS400 DB2 database.
 
Posts: 611 | Registered: January 04, 2007Report This Post
Master
posted Hide Post
actually, nevermind Frank... that won't work too well as we have to do this for every report built over that master file...there's dozens of them.


Prod: Single Windows 2008 Server running Webfocus 7.7.03 Reporting server Web server IIS6/Tomcat, AS400 DB2 database.
 
Posts: 611 | Registered: January 04, 2007Report This Post
Platinum Member
posted Hide Post
when your values span multiple lines you need to repeat value=or on each line

example:

PASS=SHIPPENK, ACCESS=R, RESTRICT=VALUE, NAME=CT_LOC,
VALUE=EC_CSTRING EQ 'GCH' OR 'GEO' OR 'GIB',$
VALUE=OR 'GLO' OR 'GRS' OR 'GSV' OR 'GVM' OR 'GWS',$


WF 8 version 8.2.04. Windows.
In focus since 1990.
 
Posts: 189 | Location: pgh pa | Registered: October 06, 2004Report This Post
Platinum Member
posted Hide Post
your example would be:

USER=JKELLY, ACCESS=RW, ACCESS=R, RESTRICT=VALUE, NAME=SYSTEM, VALUE=SALESPERSON_NUM EQ '193' OR '4407' OR '4602' OR '3873' OR '3866' OR '3872' ,$
VALUE=OR '3222' ,$


WF 8 version 8.2.04. Windows.
In focus since 1990.
 
Posts: 189 | Location: pgh pa | Registered: October 06, 2004Report This Post
Virtuoso
posted Hide Post
If Spence brought the solution then that's ok otherwise.

Create a small select fex that you can include in the others.

TABLE FILE USERS
PRINT SALESPERSON_NUM
WHERE USERCODE EQ '&LOGINID';
ON TABLE HOLD AS HSALENUM FORMAT ALPHA
END
-RUN
..
put an escape if the number of records is zero. and display a functional message


Then you include the line

WHERE (SALESPERSON_NUM IN FILE HSALENUM) ;

In each fex where you need this..




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
Member
posted Hide Post
.
 
Posts: 5 | Registered: October 24, 2006Report This Post
Platinum Member
posted Hide Post
HI,
Was this issue ever resolved. I am kinda facing the similar issue.

thanks


WebFOCUS 8202M
 
Posts: 167 | Location: Montreal | Registered: September 23, 2014Report This Post
Master
posted Hide Post
BM,

I believe there is a limitation on how long a line in a master file can be. You may need to wrap your restriction. I use DBA Security extensively, unfortunately I've never run into this issue before.

On another note, there is a bug in 8105 when using DBA security and Clustered Master Joins. I would run some sql traces once you get this running to be sure that you are getting the expected results before moving this to a production system.


Eric Woerle
8.1.05M Gen 913- Reporting Server Unix
8.1.05 Client Unix
Oracle 11.2.0.2
 
Posts: 750 | Location: Warrenville, IL | Registered: January 08, 2013Report This Post
Platinum Member
posted Hide Post
Thanks.. any tip on how i would go about Wrap the restriction?


WebFOCUS 8202M
 
Posts: 167 | Location: Montreal | Registered: September 23, 2014Report This Post
Master
posted Hide Post
spence talks about it above. I would try that and check the help file. You may also need to open a case if you aren't able to resolve it.


Eric Woerle
8.1.05M Gen 913- Reporting Server Unix
8.1.05 Client Unix
Oracle 11.2.0.2
 
Posts: 750 | Location: Warrenville, IL | Registered: January 08, 2013Report This Post
Platinum Member
posted Hide Post
Thanks.
I think I have found the issue.
In the FILEDEF I had (LRECL 81 .
I changed 81 to 800 and it seems to have fixed the issue.
I think the limitation is 4000.
I guess I will have to figure something better out.


WebFOCUS 8202M
 
Posts: 167 | Location: Montreal | Registered: September 23, 2014Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED]limitations on data source security?

Copyright © 1996-2020 Information Builders