Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
Hello all,
Can anyone tell me, how to compare two infotable fields are same ?
Thanks,
VR
Solved! Go to Solution.
Ok, then you need to recover Infotable definition fields, to do that you can use the following code:
var fields ;// if ((infotable.dataShape==null)||(infotable.dataShape==undefined)) { fields = infotable.ToJSON().dataShape.fieldDefinitions; } else { fields = infotable.dataShape.fields; }
Than you do for both infotables, and check if they have the same fields.
What does you mean with two infotable fields? All the rows for the same field name or what?
Hello @CarlesColl,
I want to compare whether both Infotable have same field's. We are not comparing rows.
Regards,
VR
Ok, then you need to recover Infotable definition fields, to do that you can use the following code:
var fields ;// if ((infotable.dataShape==null)||(infotable.dataShape==undefined)) { fields = infotable.ToJSON().dataShape.fieldDefinitions; } else { fields = infotable.dataShape.fields; }
Than you do for both infotables, and check if they have the same fields.
Hi @Velkumar.
If the response provided by @CarlesColl answered your question, please mark it as the Accepted Solution for the benefit of others who may have the same question.
Regards.
--Sharon