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     [CLOSED] Drilldown with DBA Security

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Drilldown with DBA Security
 Login/Join
 
Platinum Member
posted
Hi,
I have a DBA rule set in my masterfile (car.mas).

DBA=DBA, $
USER=ruser, ACCESS=R, RESTRICT=FIELD, NAME=COUNTRY, $
and i have a Business view Country ->Car ->Model.

I have created a report for sales sorted by CAR or COUNTRY(if ruser access the report it is BY CAR else it is COUNTRY).Until here everything is fine.
When enabling auto drill it wont show level up to country for ruser which is expected.But when the home link in the breadcrumb is selected it gives me an error
'Error Invalid session used in call'.
I guess that while clicking home it is trying to change the BY field as COUNTRY and it ends up in error.
How this can be handled.

Thank you

WF 8204
windows 10

This message has been edited. Last edited by: FP Mod Chuck,
 
Posts: 181 | Registered: October 25, 2017Report This Post
Virtuoso
posted Hide Post
Siva

Please post your car.mas file along with the two fex files so I can try to reproduce the issue. I haven't been able to reproduce your error.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 2127 | Location: Customer Support | Registered: April 12, 2005Report This Post
Platinum Member
posted Hide Post
 
-DEFAULTH &TYPES = '';
-DEFAULTH &COUNTRY = '';
-SET &USERID = &FOCSECUSER;


TABLE FILE USERS_TEST_SHEET1
PRINT TYPE AS TYPES
	  COUNTRY
WHERE USERID EQ '&USERID';
ON TABLE SET ASNAMES ON
ON TABLE HOLD AS H1

END
-RUN
-READFILE H1
-SET &&TYPES = &TYPES;

-SET &BYCOMP = IF &TYPES EQ 'CAR' THEN &TYPES ELSE 'COUNTRY';


-SET &BYCOMP = 'COUNTRY';

TABLE FILE CAR_SHEET1
SUM SALES
BY  &TYPES
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET ASNAMES ON
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLEMBEDIMG ON
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
$
ENDSTYLE
END
  


This is the code i am using.Based on the user logged in the BY component changes accordingly(CAR/COUNTRY)
 
Posts: 181 | Registered: October 25, 2017Report This Post
Virtuoso
posted Hide Post
quote:
Originally posted by Siva1925:
 
-DEFAULTH &TYPES = '';
-DEFAULTH &COUNTRY = '';
-SET &USERID = &FOCSECUSER;


TABLE FILE USERS_TEST_SHEET1
PRINT TYPE AS TYPES
	  COUNTRY
WHERE USERID EQ '&USERID';
ON TABLE SET ASNAMES ON
ON TABLE HOLD AS H1

END
-RUN
-READFILE H1
-SET &&TYPES = &TYPES;

-SET &BYCOMP = IF &TYPES EQ 'CAR' THEN &TYPES ELSE 'COUNTRY';


-SET &BYCOMP = 'COUNTRY';

TABLE FILE CAR_SHEET1
SUM SALES
BY  &TYPES
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET ASNAMES ON
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLEMBEDIMG ON
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
$
ENDSTYLE
END
  


This is the code i am using.Based on the user logged in the BY component changes accordingly(CAR/COUNTRY)


What is COUNTRY for in your HOLD file ?
What are the possible values for TYPES : CAR and COUNTRY ?
Why so many -SET that are not used ?
What is really good ?

You assign a global variable &&TYPES that is not used anywhere, same for &BYCOMP that is not used.
Then you have -SET &BYCOMP with the IF condition that is overwritten by the next -SET &BYCOMP = 'COUNTRY';

It seems that we are missing information


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Platinum Member
posted Hide Post
Sorry I was working on this code and i posted it just like that.
Below is the code
-* File: IBFS:/NJServer/WFC/Repository/Training/~skumar/Report2.fex Created by WebFOCUS AppStudio

-DEFAULTH &TYPES = '';
-DEFAULTH &COUNTRY = '';
-SET &USERID = &FOCSECUSER;


TABLE FILE USERS_TEST_SHEET1
PRINT TYPE AS TYPES
	  COUNTRY
WHERE USERID EQ '&USERID';
ON TABLE SET ASNAMES ON
ON TABLE HOLD AS H1

END
-RUN
-READFILE H1


-SET &BYCOMP = IF &TYPES EQ 'CAR' THEN &TYPES ELSE 'COUNTRY';




TABLE FILE CAR_SHEET1
SUM SALES
BY  &TYPES
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET ASNAMES ON
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLEMBEDIMG ON
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
$
ENDSTYLE
END
  


[URL=Users List]https://ibb.co/zPWcV0c[/URL]
 
Posts: 181 | Registered: October 25, 2017Report This Post
Platinum Member
posted Hide Post
Please let me know whether you were able t reproduce the issue.

 
-*Do not delete or modify the comments below
*-INTERNAL_COMMENT LINE#0$PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+DQo8IS0tMS4wLS0+PFJvb3QgcmVsZWFzZT0iOC4yLjAuNCIgdmVyc2lvbj0iMS4zIj4NCiAgICA8T2JqZWN0IG9iamVjdElkPSJUYWJsZUNoY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cm1hdFRhYkluZm9NaW5pUHJlZmVyZW5jZSIgdHlwZT0iamF2YS5sYW5nLlN0cmluZyI+dHJ1ZTwvRW50cnk+DQogICAgICAgICAgICA8RW50cnkga2V5PSJJc0dyYXlPdXRGaWVsZHNNb2RlIiB0eXBlPSJqYXZhLmxhbmcuU3RyaW5nIj5mYWxzZTwvRW50cnk+DQogICAgICAgIDwvUHJvcGVydHk+DQogICAgICAgIDxQcm9wZXJ0eSBuYW1lPSJjYXNjYWRlTmFtZXMiIHR5cGU9Ik1hcCIvPg0KICAgICAgICA8UHJvcGVydHkgbmFtZT0iTWFzdGVyX0ZpbGVzIiB0eXBlPSJTZXQiPg0KICAgICAgICAgICAgPEVudHJ5IHR5cGU9ImphdmEubGFuZy5TdHJpbmciPmZsb3lkL2Nhcl9zaGVldDE8L0VudHJ5Pg0KICAgICAgICA8L1Byb3BlcnR5Pg0KICAgICAgICA8UHJvcGVydHkgbmFtZT0ibWV0YWRhdGFWaWV3QXMiIHR5cGU9Ik1hcCI+DQogICAgICAgICAgICA8RW50cnkga2V5PSJmbG95ZC9jYXJfc2hlZXQxIiB0eXBlPSJqYXZhLmxhbmcuU3RyaW5nIj5NZXRhRGF0YVRyZWUuVklFV19ESU1TPC9FbnRyeT4NCiAgICAgICAgPC9Qcm9wZXJ0eT4NCiAgICAgICAgPFByb3BlcnR5IG5hbWU9IkFjY29yZGlvbiIgdHlwZT0iamF2YS5sYW5nLkJvb2xlYW4iPmZhbHNlPC9Qcm9wZXJ0eT4NCiAgICAgICAgPFByb3BlcnR5IG5hbWU9ImVuYWJsZVByZXZpZXciIHR5cGU9ImphdmEubGFuZy5Cb29sZWFuIj50cnVlPC9Qcm9wZXJ0eT4NCiAgICA8L09iamVjdD4NCjwvUm9vdD4NCg==
-*Do not delete or modify the comments above

ENGINE INT CACHE SET ON
SET PAGE-NUM=NOLEAD
SET SQUEEZE=ON
-DEFAULTH &WF_HTMLENCODE=ON;
SET HTMLENCODE=&WF_HTMLENCODE

SET HTMLCSS=ON
-DEFAULTH &WF_EMPTYREPORT=ON;
SET EMPTYREPORT=&WF_EMPTYREPORT

-DEFAULTH &WF_SUMMARY='Summary';
-DEFAULTH &WF_TITLE='WebFOCUS Report';
TABLE FILE ibisamp/car
SUM CAR.BODY.DEALER_COST
BY CAR.COMP.CAR
ON TABLE PCHOLD FORMAT HTML
ON TABLE NOTOTAL
ON TABLE SET CACHELINES 100
ON TABLE SET STYLE *
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/ibi_themes/Warm.sty,$
TYPE=REPORT, TITLETEXT=&WF_TITLE.QUOTEDSTRING, SUMMARY=&WF_SUMMARY.QUOTEDSTRING, ORIENTATION=LANDSCAPE, $
ENDSTYLE
END

-RUN
 


I created a simple CAR report with DBA security on the car.mas file.
Still i see the same issue.

This message has been edited. Last edited by: Siva1925,
 
Posts: 181 | Registered: October 25, 2017Report This Post
Virtuoso
posted Hide Post
Siva

Post your updated car.mas file please.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 2127 | Location: Customer Support | Registered: April 12, 2005Report 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     [CLOSED] Drilldown with DBA Security

Copyright © 1996-2020 Information Builders