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.
I'm trying to put 3 Access types in the ABCGRP, but when I run a report to list the ABCGRP, I only get the AAs. How do I code my form to include AA BB and CC in ABCGRP?
ACSTYPE/A5=IF EDIT(ACCESS,'9') EQ 'M' OR 'O' THEN 'MGR' ELSE IF ACCESS EQ 'AA' OR 'BB' OR 'CC' THEN 'ABCGRP' ELSE DECODE ACCESS ('XX' 'Admin' 'YY' 'REPS' 'XY' 'SUP' 'ZZ' 'REC' 'XZ' 'X_MGR ELSE '** Missing **'); END
-first db, your field size has to be big enough to hold your largest element. In your case A5 wasn't big enough to hold the '** Missing **' value. Then you might enjoy this rewrite: ACSTYPE/A13=IF ACCESS LIKE 'M_' OR 'O_' THEN 'MGR' ELSE IF ACCESS EQ 'AA' OR 'BB' OR 'CC' THEN 'ABCGRP' ELSE DECODE ACCESS ('XX' 'Admin' 'YY' 'REPS' 'XY' 'SUP' 'ZZ' 'REC' 'XZ' 'X_MGR' ELSE '** Missing **'); END -* you might enjoy this rewrite -* ..good eyes John, thanksThis message has been edited. Last edited by: susannah,
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
Thanks for the reply Susannah, my field size was a typo, it should have been set to A16. I have a report that prints by the decoded field, the problem is that the list is not picking up the BB and CC in the ABCGRP, only the AA. I checked over my form and tried to set the value to be any of the 3,(value="AA, BB, CC") and (value=ABCGRP) but it still does not work. I'll keep searching, there must be an error else where in the scheme of things. I like the rewrite and will use it. Thanks for the quick response.
DEFINE FILE EMPDATA CTR/I5 = IF LAST CTR EQ 9 THEN 1 ELSE LAST CTR + 1; ACCESS/A2 = DECODE CTR ( 1 'AA' 2 'BB' 3 'CC' 4 'XX' 5 'YY' 6 'XY' 7 'ZZ' 8 'XZ' 9 'M1');
ACSTYPE/A15=IF EDIT(ACCESS,'9') EQ 'M' OR 'O' THEN 'MGR' ELSE IF ACCESS EQ 'AA' OR 'BB' OR 'CC' THEN 'ABCGRP' ELSE DECODE ACCESS ('XX' 'Admin' 'YY' 'REPS' 'XY' 'SUP' 'ZZ' 'REC' 'XZ' 'X_MGR' ELSE '** Missing **'); END TABLE FILE EMPDATA PRINT CTR ACCESS BY ACSTYPE BY PIN END
What is the format of your ACCESS field? Have you printed it out along with the field you are creating? What do you get for the BB and CC fields.
And finally, try something simple like: IF (ACCESS EQ 'AA' OR 'BB' OR 'CC')...
ttfn, kp
Access to most releases from R52x, on multiple platforms.
Posts: 346 | Location: Melbourne Australia | Registered: April 15, 2003