cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar
Ali84
Level I

Getting an error creating a list

I'm getting errors with my attempt select a list of matching rows.  Any suggestions as to what is wrong with this JSL code:

 

 

dt = Gas_Analysis_Full_0127
newList = {"Pump OIL", "ABD GAS"};
dt << Select Where( Contains( newList, :Well Status ) );

 

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: Getting an error creating a list

In order to point to a data table you need to use the Data Table() function

dt = data table("Gas_Analysis_Full_0127");

newList = {"Pump OIL", "ABD GAS"};

dt << Select Where( Contains( newList, :Well Status ) );
Jim

View solution in original post

2 REPLIES 2
txnelson
Super User

Re: Getting an error creating a list

In order to point to a data table you need to use the Data Table() function

dt = data table("Gas_Analysis_Full_0127");

newList = {"Pump OIL", "ABD GAS"};

dt << Select Where( Contains( newList, :Well Status ) );
Jim
Ali84
Level I

Re: Getting an error creating a list

Thank you so much Jim!