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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
Across Field
 Login/Join
 
Silver Member
posted
I am using field (which stores Day of week) in across. I want in the output
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
Sunday

But right now the days value is getting sorted either in ascending or descending order.

Could you please tell me a solution for this?

Thanks
Deepa


WebFocus 7.1.4, Windows Server 2005 , HTML/EXL/PDF
 
Posts: 35 | Registered: August 17, 2007Report This Post
Expert
posted Hide Post
Use the Day-of-Week Date format, WR or wr. If the date is not a date format date convert it and then define a new field that is just the Day-of-Week.

DEFINE FILE GGORDER
ORDER_DAY/wr = ORDER_DATE
END
TABLE FILE GGORDER
COUNT
ORDER_NUMBER
ACROSS ORDER_DAY
BY PRODUCT_CODE
END


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
Deepa,

Check out the documentation for the syntax of ACROSS fieldname COLUMNS fieldvalue AND fieldvalue etc. In your case it would be -

ACROSS weekdayfieldname COLUMNS 'Monday' AND 'Tuesday' etc.

I would recommend you reading the manual though as it will give you more insight.

And please, update your signature as per this topic.

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
Virtuoso
posted Hide Post
If you update your signature we all know what version you use.

Are these day of the week fields alpha fields? Then you have to sort them in the report.
I would suggest using smartdate fields they are sorted in the normal sort order.

You can force the sorting in many ways.

1) ad the command line
COLUMNS MONDAY AND TUESDAY AND etc...

2) In a define ad a decode field that says MONDAY = 1 etc
use that extra field as the first BY field (NOPRINT)




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
Silver Member
posted Hide Post
I added a decode field that says MONDAY = 1 etc
use that extra field as the first BY field (NOPRINT). It worked!!!
Thanks for your help

Deepa


WebFocus 7.1.4, Windows Server 2005 , HTML/EXL/PDF
 
Posts: 35 | Registered: August 17, 2007Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders