- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Error message from Elements( Points( X, Y, Legend( 2 ) ) ),
Hi all,
I am trying to make a graph, However, I get an error message, but I don't have any idea where it comes from.
Here is my program:
graph = RAW_DATA_TABLE << Graph Builder(
Size( 450, 400 ),
Show Legend( 0 ),
Show Control Panel( 0 ),
Variables( X( :Numéro de lot ), Y( Eval( defaut ) ),
Elements( Points( X, Y, Legend( 2 ) ) ),
SendToReport(
Dispatch(
{},
Eval( defaut ),
ScaleBox,
{Add Ref Line( Seuil1, "Solid", "blue", "Seuil d'action =" || Char( Seuil1 ), 2 ), Add Ref Line(
Seuil2, "Solid", "Green", "Seuil d'alerte =" || Char( Seuil2 ), 2
)}
),
)
))
The error is from the : Elements( Points( X, Y, Legend( 2 ) ) ),
Here is the message I got:
The specified column could not be found in the data table. when accessing or evaluating "Elements", Elements( Points( X, Y, Legend( 2 ) ) ) /*###*/
Any suggestion of the problem?
Thanks a lot,
Sébastien
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Error message from Elements( Points( X, Y, Legend( 2 ) ) ),
Hi,
At first glance, the variable "default" is not defined, at least in the segment of code you shared. It is possible that the expression "Eval (default)" does not return a reference to a column.
If you precede the Graph Builder script with a simple
Show (Eval (defaut));
What does the log return?
Let us know.
Best,
TS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Error message from Elements( Points( X, Y, Legend( 2 ) ) ),
Hi Thierry,
Thank you for your reply.
I have not added all my script, however, the defaut variable is well define:
I tried directly with the variable itself and it does not work as well.
Any other suggestion?
Thank you,
Sebastien
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Error message from Elements( Points( X, Y, Legend( 2 ) ) ),
As long as "Ma variable d'étude " is the name of a column in RAW_DATA_TABLE, this should work. I believe that's what @Thierry_S was getting at. Double check to make sure that "Ma variable d'étude " is the name of a column in the data table.