Subscribe Bookmark RSS Feed

Referring to Outline Box name dynamically

satish

Community Trekker

Joined:

May 29, 2012

Hello all, I am writing scripts to generate control charts for each column in a table and moreover change chart titles using a For loop. In order to change the OutlineBox title I need to first know the name of the outlinebox and that's where I am stuck. How can I dynamically change the bolded text below ("XBar of Delay"). I tried OutlineBoxName = "XBar of" || varCustomName where I set the varCustomName but I get an error Outlinebox not found.

Any help much appreciated.

Control Chart(

  Sample Size( :Day ),

  KSigma( 3 ),

  Chart Col( :Delay, XBar, R ),

  SendToReport(

  Dispatch(

  {},

  "XBar of Delay",

  OutlineBox,

  Set Title( "XBar of Delay test" )

  )

  )

)

1 ACCEPTED SOLUTION

Accepted Solutions
satish

Community Trekker

Joined:

May 29, 2012

Solution

Figured this one...

param = "XBar of Delay";

Show( param );

cChart =

Control Chart(

  Sample Size( :Day ),

  KSigma( 3 ),

  Chart Col( :Delay, XBar, R )

);

report(cChart)[Outlinebox( param )] << set title( "test" );

1 REPLY
satish

Community Trekker

Joined:

May 29, 2012

Solution

Figured this one...

param = "XBar of Delay";

Show( param );

cChart =

Control Chart(

  Sample Size( :Day ),

  KSigma( 3 ),

  Chart Col( :Delay, XBar, R )

);

report(cChart)[Outlinebox( param )] << set title( "test" );