| WebFOCUS Wheels |
|---|
|
Relative Paths, Repository File Reference • 2022-Aug-08
In release 8.2.07 documentation there is a change, relative path file references had been unsupported, but then doc states that it is supported. An example:
-INCLUDE ./chart1.fex
This is a repository feature, not supported in the reporting server. The included fex is in the same repository folder as the fex with the include. The documentation has been improved to describe the difference between file references within the repository versus file references on the repository. Developing Reporting Applications, page 402 |
|
Save variables to a file • 2022-Jul-20
The following code can be used to write out variables and values to a file. It could be useful for debugging. For example, use it in a procedure that populates valules in a dropdown when the values don't seem to be appearing in the dropdown. The file gets written out to the foccache application directory with the name of the fex that created it and date time stamp in the name of the created file. -DEFAULTH variables and values are not included.
|
|
Calendar report • 2022-July-08
Using SQL CREATE, MODIFY FILE, -REPEAT, ACROSS, several date data types, and report styling, all working together, a nice calendar for the current year can be produced.
Here is the code:
|
|
Trigonometric functions • 2022-July-01
As early as version WF 9.0.0, trigonometric functions have been added to the function library. Additionally, functions for converting between degrees and radians have been added and a function for returning the value of 𝜋.
|
|
Date-time system variables • 2022-June-23
There are a number of date and time system variables. In general any system variable following this pattern:
where fmt is any date time format that could appear as a field format:
COMPUTE SALESDATE/fmt
as documented in Describing Data with WebFOCUS Language Date Formats and Date-Time Formats. In some cases a particular output can be achieved with two variables used together. &DATEMt = Jun &DATEYY &DATEMt = 2022 Jun &DATEYY &DATEMtr = 2022 June &DATEYYBMtBD = 2022 Jun 23 &DATEYYBMtBD = Jun 23 2022 &DATEtrMDYY = June 23, 2022 &DATEWtMtrDYY = THU, June 23 2022 &DATEHMDYY = 06/23/2022 &DATEM = 06 &DATED = 23 &DATEQ = Q2 &DATEYYQ = 2022 Q2 &DATEQYY = Q2 2022 &DATEW = 4 &DATEWt = Thu &DATEWR = THURSDAY &DATEWtr = Thursday &DATEYY = 2022 &DATEH6 = 202206 &DATEYYMD = 2022/06/23 &DATEHHA = 06PM &DATEHHIA = 06:50PM &DATEHHIb = 06:50 pm &DATEHHISb = 06:50:43 pm &DATEHHISB = 06:50:43 PM &DATEHHa = 06pm &DATEHHB = 06 PM &DATEHHb = 06 pm &DATEHIS = 50:43 &DATEHHIS = 18:50:43 &DATE = 06/23/22 &DATEHYYMDI = 2022/06/23 18:50 &DATEHMDYYS = 06/23/2022 18:50:43 &DATEHYYMDIB = 2022/06/23 6:50 PM &DATEHYYMDIa = 2022/06/23 6:50pm &DATEHYYMDIA = 2022/06/23 6:50PM &DATEHYYMDSA = 2022/06/23 6:50:43PM &DATEHYYMDSB = 2022/06/23 6:50:43 PM &DATEHYYMDSb = 2022/06/23 6:50:43 pm &DATEHMDYYS = 06/23/2022 18:50:43 &DATXtrMDYY&DATEHHIA = June 23, 2022 06:50PM &DATXtrMDYY&DATEHHIa = June 23, 2022 06:50pm &DATXtrMDYY&DATEHHIB = June 23, 2022 06:50 PM &DATXtrMDYY&DATEHHIb = June 23, 2022 06:50 pm &DATXtrMDYY&DATEHHISA = June 23, 2022 06:50:43PM &DATXtrMDYY&DATEHHISa = June 23, 2022 06:50:43pm &DATXtrMDYY&DATEHHISB = June 23, 2022 06:50:43 PM &DATXtrMDYY&DATEHHISb = June 23, 2022 06:50:43 pm |
|
Millions, billions, etc. datatypes • 2022-June-02
With some newer field formats, fields can be displayed in millions or billions and many other formats. This example from the Describing Data With WebFOCUS® Language, Page 127 shows how.
The full range of formats is described in the following table:
WebFOCUS
Format English Name
Prefix Code Size Example American / British
yotta nY 10**24 1000000000000000000000000 septillion / quadrillion
zetta nZ 10**21 1000000000000000000000 sextillion / trilliard
exa nE 10**18 1000000000000000000 quintillion / trillion
peta nP 10**15 1000000000000000 quadrillion / billiard
tera nT 10**12 1000000000000 trillion / billion
giga nG 10**9 1000000000 billion / milliard
mega nM 10**6 1000000 million
kilo nK 10**3 1000 thousand
milli nm 10**(-3) 0.001 thousandth
micro nu 10**(-6) 0.000001 millionth
nano nn 10**(-9) 0.000000001 billionth / milliardth
pico np 10**(-12) 0.000000000001 trillionth / billionth
femto nf 10**(-15) 0.000000000000001 quadrillionth / billiardth
atto na 10**(-18) 0.000000000000000001 quintillionth / trillionth
zepto nz 10**(-21) 0.000000000000000001 sextillionth / trilliardth
yocto ny 10**(-24) 0.000000000000000000000001 septillionth / quadrillionth
|
Trace SQL • 2022-June-01
The following SET statements can be used in a fex show the SQL statement(s) created to pull data from a relational database. SET XRETRIEVAL = OFF SET MESSAGE = OFF SET TRACEOFF = ALL SET TRACEON = STMTRACE//CLIENT SET TRACEON = SQLAGGR//CLIENT SET TRACESTAMP = OFF SET TRACEWRAP = 100 SET TRACEUSER = ONThe SET XRETIRIEVAL=OFF will suppress data retrieval from the database. The SET MESSAGE=OFF shows the sql trace code without having to click on the Blue "No Data" message. |
|
Handy documentation links • 2022-April-30
Use this page https://webfoc.us for ready access to WF documentation links, Search links, video links and other resoures for the WF developer. |