I want to check if a given form contains a certain column (e.g. userID). I tried:
DataClassInfo formClass = DataClassInfoProvider.GetDataClassInfo(bizFormInfo.FormClassID); formClass.ContainsColumn("userID");
But it always returns false. Any idea?
Try something like this directly in the Bizform: (assuming you're using the biz form)
FormInfo fi = viewBiz.FormInformation; if (fi != null) { if (fi.FieldExists("YourFieldName")) { // field exists so do something } }
Please, sign in to be able to submit a new answer.