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]Language IF statement JAVA

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED]Language IF statement JAVA
 Login/Join
 
Member
posted
Hello All,

I have a procedure that creates a GAUGE. But I need to make the TITLE dynamic, not the heading (multi language) but not sure how. We use the &IBIWF_language variable to check language settings.

The portion of the code I want to make dynamic is the following
title: {text: 'test title', visible: true, color: '#F2942F'},

Procedure:
GRAPH FILE TEMPHOLD
SUM CUR NOPRINT
COMPUTE PCT_REACHED/D20.5=(CUR/BUDGET) *100 ;
WHERE COL EQ 'Total Sales'
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET VZERO OFF
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET UNITS &WF_STYLE_UNITS
ON GRAPH SET HAXIS &WF_STYLE_WIDTH
ON GRAPH SET VAXIS &WF_STYLE_HEIGHT
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 0
ON GRAPH SET LOOKGRAPH GAUGE
ON GRAPH SET AUTOFIT ON
ON GRAPH SET STYLE *

*GRAPH_SCRIPT
setPieDepth(0);
setPieTilt(0);
setDepthRadius(0);
setCurveFitEquationDisplay(false);
setPlace(true);
setScaleMax(getY1Axis(),100.0);
setScaleMinAuto(getY1Axis(),false);
*END

INCLUDE=IBFS:/WFC/Repository/Formatting/ENID_WarmGF.sty,$

TYPE=REPORT, TITLETEXT=&WF_TITLE.QUOTEDSTRING, SIZE=8, COLOR=RGB(242 148 47), $
*GRAPH_SCRIPT

setReportParsingErrors(false);
setSelectionEnableMove(false);

*END

*GRAPH_JS

legend: {visible: false},

introAnimation:{enabled:true},

title: {text: 'test', visible: true, color: '#F2942F'},
width: 250,

height: 250,

chartType: 'gauge',

series: [{series: 0, color: '#08614A'}],

gaugeProperties: {

layout: 'simple',

totalLabel: {color: '#808080',numberFormat: '#.#`%'},

startAngle: 270, // number 0 to 360. 0 = 3 o'clock, 90 = 6 o'clock

axisWidth: '25%', // Width of gauge range as % of overall radius

outerBorder: {

fill: {color: 'transparent'},

width: '0'

}

}

*END
ENDSTYLE
END
-RUN

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


WebFocus 8.1.05
 
Posts: 5 | Registered: May 17, 2016Report This Post
Member
posted Hide Post
I found my answer.

I just needed to put it into a regular &variable

Thanks


WebFocus 8.1.05
 
Posts: 5 | Registered: May 17, 2016Report 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]Language IF statement JAVA

Copyright © 1996-2020 Information Builders