cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Remove Multiple Fields in InfoTable

psp316r
13-Aquamarine

Remove Multiple Fields in InfoTable

Hi, 

My Infotable has around 21 Fields, for an particular situation I need just one Field Results, how can I remove unwanted feilds at a time instead of doing the following coding:

 

result.RemoveField("X1");
result.RemoveField("X2");
result.RemoveField("X3");
result.RemoveField("X4");
result.RemoveField("X5");
result.RemoveField("X7");
result.RemoveField("X8");
result.RemoveField("X9");
result.RemoveField("X10");
result.RemoveField("X11");
result.RemoveField("X12");
result.RemoveField("X13");
result.RemoveField("X14");
result.RemoveField("X15");
result.RemoveField("X16");
result.RemoveField("X17");
result.RemoveField("X18");
result.RemoveField("X19");
result.RemoveField("X20");

 


is there a query or any shortcut to remove all the Fields at a time ?

@paic @slangley  @c_lowy 

Thanks,
Shashi 

1 ACCEPTED SOLUTION

Accepted Solutions
BABA-SHYAM
13-Aquamarine
(To:psp316r)

HI,

 

Why don't you create a Datashape with just one field that you want and put it in service output.

 

Regards

Shyam

View solution in original post

3 REPLIES 3
BABA-SHYAM
13-Aquamarine
(To:psp316r)

HI,

 

Why don't you create a Datashape with just one field that you want and put it in service output.

 

Regards

Shyam

View solution in original post

psp316r
13-Aquamarine
(To:BABA-SHYAM)

Hi,

It works but, Creating a DataShape just for a Output will be little unnecessary !!

Thanks !
Shashi Preetham 

BABA-SHYAM
13-Aquamarine
(To:psp316r)

This will be one time activity with no harm on the performance.

 

Regard

Shyam

Announcements