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] Slicer Group Date

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Slicer Group Date
 Login/Join
 
Member
posted
I created a report with with 2 groups hour and date, I am able to default the hour to all by selecting all (time is set 7:00am - 6:00pm), but would like to default the date to current date on the dashboard, the date will change when the user changes the date to view a different date for stats. Is there a way to default in slicer? The purpose of the report it to count the number of payments by hour.


-OLAP ON
OLAP MYIA
ENGINE INT CACHE SET ON


-*COMPONENT=Join_J001
JOIN CI_PAY_TNDR.CI_PAY_TNDR.PAY_EVENT_ID IN GWAPROD_CCB/CI_PAY_TNDR
TO UNIQUE CM_PAY_EVENT_TI.CM_PAY_EVENT_TI.PAY_EVENT_ID IN GWAPROD_CCB/CM_PAY_EVENT_TI TAG J001 AS J001
END
-*COMPONENT=Define_CI_PAY_TNDR
DEFINE FILE GWAPROD_CCB/CI_PAY_TNDR
CM_HOUR_FIELD/A15=IF J001.CM_PAY_EVENT_TI.HOUR_INTERVAL EQ '7 - 8' THEN '07:00 - 07:59' ELSE IF J001.CM_PAY_EVENT_TI.HOUR_INTERVAL EQ '8 - 9' THEN '08:00 - 08:59' ELSE IF J001.CM_PAY_EVENT_TI.HOUR_INTERVAL EQ '9 - 10' THEN '09:00 - 09:59' ELSE IF J001.CM_PAY_EVENT_TI.HOUR_INTERVAL EQ '10 - 11' THEN '10:00 - 10:59' ELSE IF J001.CM_PAY_EVENT_TI.HOUR_INTERVAL EQ '11 - 12' THEN '11:00 - 11:59' ELSE IF J001.CM_PAY_EVENT_TI.HOUR_INTERVAL EQ '12 - 13' THEN '12:00 - 12:59' ELSE IF J001.CM_PAY_EVENT_TI.HOUR_INTERVAL EQ '13 - 14' THEN '13:00 - 13:59' ELSE IF J001.CM_PAY_EVENT_TI.HOUR_INTERVAL EQ '14 - 15' THEN '14:00 - 14:59' ELSE IF J001.CM_PAY_EVENT_TI.HOUR_INTERVAL EQ '15 - 16' THEN '15:00 - 15:59' ELSE IF J001.CM_PAY_EVENT_TI.HOUR_INTERVAL EQ '16 - 17' THEN '16:00 - 16:59' ELSE IF J001.CM_PAY_EVENT_TI.HOUR_INTERVAL EQ '17 - 18' THEN '17:00 - 17:59' ELSE IF J001.CM_PAY_EVENT_TI.HOUR_INTERVAL EQ '18 - 19' THEN '18:00 - 18:59' ;
CM_CRE_DTTM/YYMD=HDATE ( J001.CM_PAY_EVENT_TI.CRE_DTTM , 'YYMD' ) ;
END
-DEFAULTH &WF_TITLE='WebFOCUS Report';
GRAPH FILE GWAPROD_CCB/CI_PAY_TNDR
-* Created by Info Assist for Graph
SUM CNT.CI_PAY_TNDR.CI_PAY_TNDR.PAY_EVENT_ID AS 'COUNT'
BY CM_HOUR_FIELD AS 'HOUR'
BY HIGHEST J001.CM_PAY_EVENT_TI.HOUR_INTERVAL AS 'HOUR' NOPRINT
WHERE J001.CM_PAY_EVENT_TI.HOUR GE 7;
WHERE J001.CM_PAY_EVENT_TI.HOUR LE 18;
HEADING
"Payment Count"
" "
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET ARGRAPHENGIN JSCHART
ON GRAPH SET VZERO OFF
ON GRAPH SET GRWIDTH 1
ON GRAPH SET HAXIS 707.0
ON GRAPH SET VAXIS 405.0
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 2
ON GRAPH SET LOOKGRAPH VBAR
ON GRAPH SET STYLE *
*GRAPH_SCRIPT

setPieDepth(0);
setPieTilt(0);
setDepthRadius(0);
setCurveFitEquationDisplay(false);
setPlace(true);

*END
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/javaassist/intl/EN/combine_templates/ENTeal_Medium2.sty,$
TYPE=REPORT, TITLETEXT=&WF_TITLE.QUOTEDSTRING, $
TYPE=HEADING, JUSTIFY=CENTER, FONT='ARIAL', SIZE=8, COLOR=RGB(32 0 32), STYLE=NORMAL, $
*GRAPH_SCRIPT

setReportParsingErrors(false);
setSelectionEnableMove(false);
setLabelStagger(getO1Label(),false);
setTextRotation(getO1Label(),0);
setFontName(getO1Label(),"ARIAL");
setFontSizeAbsolute(getO1Label(), true);
setFontSizeInPoints(getO1Label(), 6);
setPlaceResize(getO1Label(), 0);

*END
ENDSTYLE
END

-RUN


Thanks,
Lou

This message has been edited. Last edited by: Tamra,


WebFOCUS 8
Windows, All Outputs
 
Posts: 5 | Registered: September 24, 2015Report This Post
Guru
posted Hide Post
Lou,
While we wait for others to reply can you clarify if this report/graph is being created within a Reporting Object?

How are you creating the Dashboard ? Is this an HTML page ? IF so the Date can be defaulted to today's date on the properties panel for the date calendar.

Using InfoAssist there is no option to directly set the default of a variable within the InfoAssist tool itself.

A bit more overall clarification of what you are doing will help with figuring how to resolve your question.

Thank you for participating in the Focal Point Forum.

Kind Regards,
Tamra Colangelo
IBI Focal Point Moderator


WebFOCUS 8x - BI Portal, Developer Studio, App Studio, Excel, PDF, Active Formats and HTML5
 
Posts: 487 | Location: Toronto | Registered: June 23, 2009Report This Post
Member
posted Hide Post
will go ahead and close out the post, question has been answered in your post.

Using InfoAssist.

Thank you


WebFOCUS 8
Windows, All Outputs
 
Posts: 5 | Registered: September 24, 2015Report 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] Slicer Group Date

Copyright © 1996-2020 Information Builders