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

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

Remove Multiple Fields in InfoTable

pshashipreetham
17-Peridot

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 

Shashi Preetham,
Email: psp316r@outlook.com,
Mobile: +91 8099838001.
ACCEPTED SOLUTION

Accepted Solutions

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

HI,

 

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

 

Regards

Shyam

Hi,

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

Thanks !
Shashi Preetham 

Shashi Preetham,
Email: psp316r@outlook.com,
Mobile: +91 8099838001.

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

 

Regard

Shyam

Announcements


Top Tags