Richard: Good. You're on your way.
Regarding the Error Variable. The value of the error variable resets for
each command run. If you wish to evaluate it, you must capture it
immediately.
(1) Create the error variable with an unambiguous name, e.g. SET ERROR
VARIABLE verrorVar
(2) Create the error "capture" variable with a name describing it's
role, e.g. verrorCapture
(3) Set the value of the capture variable to the value of the error
variable IMMEDIATELY after the command you're evaluating,
example:
SET ERROR VARIABLE verrorVar
SET VAR verrorCapture INTEGER = NULL
COMMAND_BEING_EVALUATED
SET VAR verrorCapture = .verrVar
IF verrorCapture = 0 THEN ; do something R:BASEey ; ENDIF
If you don't have one already, I highly recommend an R:Docs
subscription, which provides a listing of error codes and descriptions.
Feel free to reach out with R:Charts questions. Happy to help. Not so
happy to show how little I actually know.
Best Regards, Bruce
Bruce A. Chitiea | SafeSectors, Inc.
112 Harvard Ave #272 | Claremont CA 91711-4716 | USA
+011 (909) 238-9012 m | rby...@safesectors.com
------ Original Message ------
From "'R Hopkins' via RBASE-L" <rbase-l@googlegroups.com>
To "rbase-l@googlegroups.com" <rbase-l@googlegroups.com>
Date 3/13/2023 11:10:27 AM
Subject Re: [RBASE-L] - RCharts Plugin
Bruce,
Thank you for your advise. What I learned in the meantime is that I
can use the PLUGIN command without specifying an image size. That
wasn't the source of my error message. The error message resulted
instead from the command
R> SHO vResults
My problem was that the PLUGIN command does not create this variable,
so it didn't exist to be shown. I didn't know that to test with this
variable, you first need to define it as the error variable with the
command.
R> SET ERROR VARIABLE vResults
After doing this, the error message went away and the value of vResults
was shown as 0.
Thanks for your help. Now that I have an initial R:Chart chart
displayed in a form, I can now experiment with the other option
parameters to try to get to the real capability I am trying to
implement.
Richard
-----Original Message-----
From: Bruce Chitiea <rby...@safesectors.com>
To: rbase-l@googlegroups.com <rbase-l@googlegroups.com>
Sent: Tue, Mar 7, 2023 2:15 pm
Subject: Re: [RBASE-L] - RCharts Plugin
Richard Hopkins
Haven't had time to dig in today. But try this, ideally in your
RBEditor:
(Based on the syntax for BeforeGenerate EEP in report:
RRBYW20:Quarterly_PieChart (shown here in Courier New font, casing in
just my style):
PLUGIN rCharts +
FILENAME midTerm.rbc +
|SAVE_TO_JPG midTermChart.jpg +
|IMAGE_WIDTH 324 +
|IMAGE_HEIGHT 244
SET VAR vImage = 'midTermChart.jpg'
RETURN
Alternately, use your line:
PLUGIN rCharts +
FILENAME D:\rbxData\midTerm.rbc +
...
Go from there if it works.
Best, Bruce
Bruce A. Chitiea | SafeSectors, Inc.
112 Harvard Ave #272 | Claremont CA 91711-4716 | USA
+011 (909) 238-9012 m | rby...@safesectors.com
------ Original Message ------
From "'R Hopkins' via RBASE-L" <rbase-l@googlegroups.com>
To "rbase-l@googlegroups.com" <rbase-l@googlegroups.com>
Date 3/6/2023 12:08:55 PM
Subject [RBASE-L] - RCharts Plugin
I am attempting to use PLUGINs for the first time, with RChart being
my guinea pig.
I am still using RBase version X, and trying to decide if RCharts is
valuable to me before I upgrade.
I used the RChart desktop icon to launch RCharts and create a chart
file: MidTerm.RBC
My databases and this chart file are stored in folder D:\RBxData\
My goal is to insert the PLUGIN command into a form's EEP to initiate
the display of this chart in a separate window (either as a chart
within a separate form or otherwise).
But before doing so, I tried testing the PLUGIN command from the R>,
using the syntax from RCharts help file.
After navigating to D:\RBxData\ and connecting to the database
containing the table with the chart's data, I used this command at the
R>
R>PLUGIN RCharts vResults |FILENAME MidTerm.RBC
R>SHO vResults
-ERROR- Invalid parameter ( 639)
R>PLUGIN RCharts vResults |FILENAME D:\RBxData\MidTerm.RBC
R>SHO vResults
-ERROR- Invalid parameter ( 639)
I noticed that all example charts in the sample database bundled with
RBase are displayed within a report. This is done by inserting an
IMAGE object into the report, using the PLUGIN command to save the
chart to a file, and then retrieving this file into the report's Image
object. Does this also work for forms by placing an IMAGE object into
a form? Is it even possible to display charts within a form?
Based on the examples, and thinking my only option is to save the
chart to a file (rather than display it real time without a form), I
tried to create a .JPG file using the PLUGIN command:
R>PLUGIN RCharts vResults |FILENAME MidTerm.RBC |SAVE_TO_JPG
D:\RBxData\MidTerm.JPG
R>SHO vResults
-ERROR- Invalid parameter ( 639)
R>PLUGIN RCharts vResults |FILENAME D:\RBxData\MidTerm.RBC
|SAVE_TO_JPG D:\RBxData\MidTerm.JPG
R>SHO vResults
-ERROR- Invalid parameter ( 639)
My installed RBase files are stored on a separate drive partition F:\
as shown below. Although this shouldn't make a difference (hasn't so
far), I provide this info anyway.
F:\RBaseX (RBase is installed in this folder)
F:\RBaseX\RChartsX (RCharts is installed in this sub-folder)
F:\RBaseX\RDocsX (RDocs is installed in this sub-folder)
F:\RBaseX\...
F:\RBaseX\RChartX.RBM (This key RChart file is in the RBaseX
folder with
F:\RBaseX\RBGX.EXE the RBase software)
My experiments show I need help to get started using RCharts. I am
hoping that some of you RChart gurus can help me get going in using
RCharts within a RBase application.
Richard Hopkins
--
For group guidelines, visit
http://www.rbase.com/support/usersgroup_guidelines.php
---
You received this message because you are subscribed to the Google
Groups "RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to rbase-l+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/rbase-l/256231001.11422.1678133335681%40mail.yahoo.com
<https://groups.google.com/d/msgid/rbase-l/256231001.11422.1678133335681%40mail.yahoo.com?utm_medium=email&utm_source=footer>.
--
For group guidelines, visit
http://www.rbase.com/support/usersgroup_guidelines.php
---
You received this message because you are subscribed to the Google
Groups "RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to rbase-l+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/rbase-l/em8d3e92ee-be07-43a3-b105-3723c2a875eb%40cc1682b9.com
<https://groups.google.com/d/msgid/rbase-l/em8d3e92ee-be07-43a3-b105-3723c2a875eb%40cc1682b9.com?utm_medium=email&utm_source=footer>.
--
For group guidelines, visit
http://www.rbase.com/support/usersgroup_guidelines.php
---
You received this message because you are subscribed to the Google
Groups "RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to rbase-l+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/rbase-l/256586528.1807334.1678731027687%40mail.yahoo.com
<https://groups.google.com/d/msgid/rbase-l/256586528.1807334.1678731027687%40mail.yahoo.com?utm_medium=email&utm_source=footer>.
--
For group guidelines, visit
http://www.rbase.com/support/usersgroup_guidelines.php
---
You received this message because you are subscribed to the Google Groups "RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to rbase-l+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/rbase-l/em493dbb21-d425-4ebe-bad5-d2ff6101121c%402b0059b9.com.