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] Focal Point stips the word BY from the search

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Focal Point stips the word BY from the search
 Login/Join
 
Guru
posted
This is a Focal Point interface issue.

I would like to search for discussions 'Variable BY Fields' but when I do, the word BY is stripped from my search criteria. Has anyone else seen this? Been successful searching or can point me to methods of using variable BY fields?

This message has been edited. Last edited by: Kerry,
 
Posts: 291 | Location: Greater Cincinnati  | Registered: May 11, 2005Report This Post
Expert
posted Hide Post
How about explaining what you mean by "using variable BY fields"? Variable based on a selection in the launch form? GUI or coding? Software version?


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post
Standard search engine usage (ish). Enclose your search phrase in double quotes within the input control. If you want to see results in which some of your words appear then prefix it with <ANY>. You can also use <ALL>.

Other words that will be ignored are "A", "OR", "AND" etc.

T

This message has been edited. Last edited by: Tony A,



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
Guru
posted Hide Post
Thank you.
 
Posts: 291 | Location: Greater Cincinnati  | Registered: May 11, 2005Report This Post
Master
posted Hide Post
If it is of any help, I understand what you mean by "VARIABLE BY FIELDS". Try:

-SET &BY1=IF &SORT1 EQ 'CAR' THEN 'BY CAR' ELSE IF &SORT1 EQ 'COUNTRY' THEN 'BY COUNTRY' ELSE 'BY MODEL';

TABLE FILE CAR
SUM SALES
&BY1
END


Pat
WF 7.6.8, AIX, AS400, NT
AS400 FOCUS, AIX FOCUS,
Oracle, DB2, JDE, Lotus Notes
 
Posts: 755 | Location: TX | Registered: September 25, 2007Report This Post
Expert
posted Hide Post
I see that Patricia answered your question about stripping the BY... However, I'd suggest another way, withot the -SET:
TABLE FILE CAR
SUM SALES
BY &SORT1.EVAL
END
This requires that the &SORT1 has a value even if it's FOC_NONE... Just a thought... And a freebie at that...
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Expert
posted Hide Post
And to Tony's point about standard search engines: see if you can find my post about the Teradata "QUERY_BAND" command... it's not found via the FocalPoint search, with or without double-quotes. However, I find my FocalPoint post via Google. The reason: the "underscore" is changed to a "space" in FocalPoint...
Weird, huh? Music

BTW: The QUERY_BAND issue has been resolved and it works well within WebFOCUS.
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Platinum Member
posted Hide Post
I use qoogle to search FOCAL POINT. Just add site:informationbuilders.com to your search.


Jim Morrow
Web Focus 7.6.10 under Windows 2003
MVS 7.3.3



 
Posts: 129 | Registered: June 01, 2005Report This Post
Expert
posted Hide Post
Brilliant, Jim!


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post
I've done the Google search as well... But, that bekons the question: Why can't we do a similar search from within FocalPoint? New Feature Request?
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Expert
posted Hide Post
Doug,

To put it in your current industry terms -

Why can't cars built in America (generally) be driven from the right hand front seat? Wink

Not all site search engines are the same, and good luck getting "Social Strata" Forum software changed without paying "through the nose" for it!

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
Wonder if Social Strata is powered by WebFocus? That seems a plausible reason 'By' would be skipped.

Not that that's a good excuse...


------------------------------------
WF Environment:
------------------------------------
Server/Client, ReportCaster, Dev Studio: 7.6.11
Resource Analyzer, Resource Governor, Library, Maintain, InfoAssist
OS: Windows Server 2003
Application/Web Server: Tomcat 5.5.25
Java: JDK 1.6.0_03
Authentication: LDAP, MRREALM Driver
Output: PDF, EXL2K, HTM

------------------------------------
Databases:
------------------------------------
Oracle 10g
DB2 (AS/400)
MSSQL Server 2005
Access/FoxPro
 
Posts: 561 | Registered: February 03, 2010Report This Post
Member
posted Hide Post
quote:
Originally posted by PBrightwell:
If it is of any help, I understand what you mean by "VARIABLE BY FIELDS". Try:

-SET &BY1=IF &SORT1 EQ 'CAR' THEN 'BY CAR' ELSE IF &SORT1 EQ 'COUNTRY' THEN 'BY COUNTRY' ELSE 'BY MODEL';

TABLE FILE CAR
SUM SALES
&BY1
END

Hi! Complete newbie here, so please excuse my ignorance. I got the above example to work great, but I'm trying to modify it to evaluate whether a field is GT or LT 0 then change the sort order with no luck.

My code:
SET ORIENTATION = LANDSCAPE
-SET &CHANGE_VALUE = 'TOTAL_CHANGE';
-SET &SORT1 =IF &CHANGE_VALUE LT 0 THEN 1 ELSE 2;
-SET &BY1=IF &SORT1 EQ 1 THEN 'BY LOWEST CHANGE_NET' ELSE IF &SORT1.EVAL EQ 2 THEN 'BY HIGHEST CHANGE_NET';

DEFINE FILE PRC_MC_PATIENTMIX ADD
CodePrint/A35=PRC_MC_PATIENTMIX.ANSWERSET1.COST_CODE |' - ' | PRC_MC_PATIENTMIX.ANSWERSET1.DESCRIPTION;
&CHANGE_VALUE/P9.2M = PRC_MC_PATIENTMIX.ANSWERSET1.TOTAL_CHANGE.EVAL;

END
TABLE FILE PRC_MC_PATIENTMIX
PRINT

'PRC_MC_PATIENTMIX.ANSWERSET1.PLAN_NAME' AS 'Plan Name'
'PRC_MC_PATIENTMIX.ANSWERSET1.A_QTY/I8' AS 'Units'
'PRC_MC_PATIENTMIX.ANSWERSET1.A_AVG_PRICE/P9.2M' AS 'Avg Rate'
'PRC_MC_PATIENTMIX.ANSWERSET1.A_NET_CHARGE/P9.2M' AS 'Net Charges'
'PRC_MC_PATIENTMIX.ANSWERSET1.B_QTY/I8' AS 'Units'
'PRC_MC_PATIENTMIX.ANSWERSET1.B_AVG_PRICE/P9.2M' AS 'Avg Rate'
'PRC_MC_PATIENTMIX.ANSWERSET1.B_NET_CHARGE/P9.2M' AS 'Net Charges'
'PRC_MC_PATIENTMIX.ANSWERSET1.CHANGE_QTY' AS 'Change in Units'
'PRC_MC_PATIENTMIX.ANSWERSET1.CHANGE_NET/P12.2CM' AS 'Change in Charges'
BY 'PRC_MC_PATIENTMIX.ANSWERSET1.LOCATION_ID' NOPRINT
BY 'PRC_MC_PATIENTMIX.ANSWERSET1.COST_CODE' NOPRINT
&BY1.EVAL


ON PRC_MC_PATIENTMIX.ANSWERSET1.COST_CODE SUBHEAD
"ON PRC_MC_PATIENTMIX.ANSWERSET1.COST_CODE SUBFOOT WITHIN
"Total:<+0> "
" <+0> <+0> <+0> <+0> <+0> <+0> <+0> <+0> <+0> "


WebFOCUS 7.6.11
Windows Server 2003
Excel, PDF and HTML
 
Posts: 5 | Location: Nashville, TN | Registered: November 30, 2010Report This Post
Expert
posted Hide Post
quote:
no luck

What happens?


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Member
posted Hide Post
It sorts by highest throughout the entire report even though some values of TOTAL_CHANGE are less than zero.


WebFOCUS 7.6.11
Windows Server 2003
Excel, PDF and HTML
 
Posts: 5 | Location: Nashville, TN | Registered: November 30, 2010Report This Post
Virtuoso
posted Hide Post
This question should have been opened in a new post because it is really unrelated to the topic of this post.

You cannot dynamically change a sort condition in the middle of a query. In addition, your Dialogue Manager (DM) statements (begin with a dash) are executed before the FOCUS statements, so it is not possible for a DEFINE to alter the previously set DM variables. The value of &CHANGE_VALUE will always be 'TOTAL_CHANGE', which is greater than zero, so &BY1 will always have a value of 'BY HIGHEST CHANGE_NET'. Note that in PBrightwell's example, the sort order of the output will not change from CAR to COUNTRY when the SUM of SALES is less than or equal to zero. The value for &BY1 must be set in a method external to the query itself. The only potential solution that comes to mind at the moment is a compound report, where the filtering and sort order for each section of the report changes based on previously-determined values from the data source. In other words, you would first need to determine which locations/cost code combinations have TOTAL_CHANGE less than zero and then use that information to generate your compound report.


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
Member
posted Hide Post
Thanks for the answer, Dan. I appreciate it.


WebFOCUS 7.6.11
Windows Server 2003
Excel, PDF and HTML
 
Posts: 5 | Location: Nashville, TN | Registered: November 30, 2010Report 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] Focal Point stips the word BY from the search

Copyright © 1996-2020 Information Builders