cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar
peter_michel
Level III

Workflow builder

Hi, I want to automate the Load of data from Excel and set Speclimits to the loaded Columns. I have the limits in Limits Files. The script that I created with the Workflow builder stops in the "Manage Limits" Window where I can eighter enter the limits or load the limits file. Typing is not recorded, as well as loading the limit file does not work.

 

The error code is attached as picture as well as the stopping Window.

Any help is very appreciated.

 

Many thanks

Peter 

 

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: Workflow builder

I'm not sure where I'm supposed to know which are all of your your process variables, so I just took all continuous columns from your limits table

Names Default To Here(1);

dt = Open("$DOWNLOADS/MC_After_ Hard.jmp");
dt_limits = Open("$DOWNLOADS/Limits_MC_After_Hard.jmp");

processnames = dt_limits << Get Column Names("Continuous", String);

ml = dt << Manage Limits(
	Process Variables(Eval(processnames)),
	Load From Limits Table(dt_limits)
);
ml << Save to Column Properties;

ml << Close Window;
-Jarmo

View solution in original post

4 REPLIES 4
jthi
Super User

Re: Workflow builder

Manage Spec limits is one platform which has quite a few features which aren't being captured by action recorder so you might have to take a peek to Scripting Index and Manage Limits

jthi_0-1723046252643.png

This most likely gives quite good of an idea what you can do. Then you can create a custom step in workflow builder and utilize this example. You might also want to see all options for the Manage Limits (category on the left and filter empty) to see how to set those specification limits after they have been loaded

jthi_1-1723046432567.png

 

-Jarmo
peter_michel
Level III

Re: Workflow builder

Hello Jthi,

Thanks, I understand how you want to tackle the read in of the spec Limits. Unfortunately my scripting skills are that low, I get always error messages.

 

May be you or someone else is able to write the script for me.

My DataTable is already open.

I need to open the Limits Table.

I need to join the Limits with the process variables in my Data table and then

I need to save the Datatable with the added Limits. 

 

I attached one example of Files that I have to enrich with Spec limits.

 

Thanks

Peter

 

 

 

jthi
Super User

Re: Workflow builder

I'm not sure where I'm supposed to know which are all of your your process variables, so I just took all continuous columns from your limits table

Names Default To Here(1);

dt = Open("$DOWNLOADS/MC_After_ Hard.jmp");
dt_limits = Open("$DOWNLOADS/Limits_MC_After_Hard.jmp");

processnames = dt_limits << Get Column Names("Continuous", String);

ml = dt << Manage Limits(
	Process Variables(Eval(processnames)),
	Load From Limits Table(dt_limits)
);
ml << Save to Column Properties;

ml << Close Window;
-Jarmo
peter_michel
Level III

Re: Workflow builder

Hello Jthi,

 

That was the push I needed. MANY THANKS

Peter