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] referenceLineInsert

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[closed] referenceLineInsert
 Login/Join
 
Silver Member
posted
Can someone provide an example using referenceLineInsert.

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


Brian Bollmann
Spartan Light Metal Products
WebFocus 7.6.4 / iSeries / WebSphere
 
Posts: 34 | Registered: May 09, 2008Report This Post
Virtuoso
posted Hide Post
quote:
referenceLineInsert

There is a book, DN4500708.1107, called WebFOCUS Graphics, that explains each and every function of the graph api, including the referencelineinsert. Examples are also provided in this book. You can find it on the IBI documentation website.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Silver Member
posted Hide Post
quote:
referenceLineInsert


Master GamP, I had already searched the entire IBI site and found the description of the API in the book you mentioned. Why did I do that? Because I knew if I didn't, someone would respond as you did.

The reason I asked someone to provide an example is becase THERE IS NO EXAMPLE ANYWHERE I CAN FIND FOR THAT API.

When I try various inclusions of that API in a graph, I see no difference in the graph.


Brian Bollmann
Spartan Light Metal Products
WebFocus 7.6.4 / iSeries / WebSphere
 
Posts: 34 | Registered: May 09, 2008Report This Post
Virtuoso
posted Hide Post
Brian,
quote:
I had already searched the entire IBI site and found the description of the API in the book you mentioned. Why did I do that? Because I knew if I didn't, someone would respond as you did.

Then, please next time you post something, mention what you already did, just to prevent reactions like mine.
If you don't, we can't know it ...

Having said that, on page 951 in the mentioned book there is a nice example of the reference line. Translated into an example for the car file it looks like:
 APP APPENDPATH IBISAMP

GRAPH FILE CAR
SUM CAR.BODY.SEATS
BY CAR.ORIGIN.COUNTRY
ON GRAPH PCHOLD AS HOLD FORMAT PNG
ON GRAPH SET HAXIS 770
ON GRAPH SET VAXIS 405
ON GRAPH SET UNITS PIXELS
ON GRAPH SET LOOKGRAPH VBAR
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 1
ON GRAPH SET GRAPHSTYLE *

setTemplateFile("/images/tdg/template/IBISouthWestern.txt");
setReportParsingErrors(false);
setSelectionEnableMove(false);
setPlace(true);
setDepthRadius(5);
setReferenceLine(getY1Axis(),0,25);
setTransparentBorderColor(getChartBackground(),true);
ENDSTYLE
END
 

Hope this helps ...


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Expert
posted Hide Post
If you are taling about graphs and can't find out about the command, then look at www.threedgraphics.com, they are the ones that made the graph engine.

I just did a google for referenceLineInsert, and it was at the top of the list.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Silver Member
posted Hide Post
That example doesn't use referenceLineInsert?!?!

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


Brian Bollmann
Spartan Light Metal Products
WebFocus 7.6.4 / iSeries / WebSphere
 
Posts: 34 | Registered: May 09, 2008Report This Post
Virtuoso
posted Hide Post
quote:
referenceLineInsert
is a deep api call. The result of this is an integer value. You can't use this as-is in the graph style. The setreferenceline function (from the example) uses the referenceLineInsert method to do its trick.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Expert
posted Hide Post
I don't think the WebFOCUS documentation on so-called "graphics" is very good. A whole pile of Java methods and properties with very few poor examples.


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 agree with you Francis. I have found that the best resource for the "Advanced Graphic" properties is available at Three D Graphics, Perspectives on the web, drill down to More. It's been bookmarked for years on my systems.
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Expert
posted Hide Post
Try
setDisplay(getReferenceLineY1(0),true);
setReferenceLineValueY1(0,&RefLine1);
Where &RefLine1 is a value within you graph display area.




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Expert
posted Hide Post
There's 188 different GraphTypes showing the associated setGraphType (values) Here on Three D Graphics
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report 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] referenceLineInsert

Copyright © 1996-2020 Information Builders