Jump to content

I'm using the embed function, to join several charts on one single active table, I need save this table on a hold, and open on a <div> but that turns on error, I try save on different kinds of formats, but always the same error: (FOC36225) UNABLE TO OPEN


OMAR ABREGO

Recommended Posts

TABLE FILE CAR

"CHART0<+0>CHART1<+0>CHART2<+0>CHART3<+0>CHART4"

FOOTING CENTER

"USTOTRND"

BY COUNTRY NOPRINT

IF RECORDLIMIT EQ 1

ON TABLE SET HTMLCSS ON

ON TABLE SET PAGE-NUM NOLEAD

-* try many formats but none manage to open in a div

-*ON TABLE HOLD FORMAT HTMTABLE AS UCOM_EMBED

ON TABLE SET STYLE *

type=heading, headalign=internal, $

type=heading, line=1, item=1, embed=CHART0, $

type=heading, line=1, item=2, embed=CHART3, $

type=heading, line=1, item=3, embed=CHART4, $

type=heading, line=1, item=4, embed=CHART1, $

type=heading, line=1, item=5, embed=CHART2, $

type=footing, line=1, item=1, embed=USTOTRND, $

   <div class="alignDiv">!IBI.FIL.UCOM_EMBED;</div>

The charts are saved with JSCHART format

Thank you in advance.

Link to comment
Share on other sites

In the manual WebFOCUS Developing Reporting Applications there is an example of embedding charts.

SET EMBEDDABLE=ONGRAPH FILE GGSALESSUM UNITS BY CATEGORYON GRAPH SET LOOKGRAPH BARON GRAPH HOLD FORMAT JSCHART AS GRAPH1ON GRAPH SET STYLE *type=data, column=n1, bucket=x-axis, $type=data, column=n2, bucket=y-axis, $ENDGRAPH FILE GGSALESSUM UNITS BY REGIONON GRAPH SET LOOKGRAPH BARON GRAPH HOLD FORMAT JSCHART AS GRAPH2ON GRAPH SET STYLE *type=data, column=n1, bucket=x-axis, $type=data, column=n2, bucket=y-axis, $END-HTMLFORM BEGIN<html><head><title>Two HTML5 graphs in an HTMLFORM</title>!IBI.OBJ.IBIHEADJS;</head><body>!IBI.FIL.GRAPH1;<br>!IBI.FIL.GRAPH2;</body></html>-HTMLFORM END

When you run this code, does this have any of the elements you are trying to accomplish?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...