06-09-2015 03:58 PM
Hi All
I need to get a unity form field values? If I use
string batch_nbr = form.AllFields.Find(BATCH_NBR_FF).AlphaNumericValue;
I get a warning:
(41,24): warning CS0618: 'Hyland.Unity.UnityForm.Field.AlphaNumericValue' is obsolete: 'Please use ValueFieldDefinition.AlphaNumericValue.'
I can not find any properties under AlphaNumericValue that return a field value.
FYI ALL THE EXAMPLES IN THE SDK USE THE OBSOLETE PROPERTIES.
Any suggestions?
Scott
06-10-2015 05:12 AM
I was wondering the same thing when using 14 references. Just ignore [obsolete] warnings and update it when it's actually deprecated. (-:
The previous form.Fields is now preferred to be form.AllFields.ValueFields and form.Repeaters is preferred to be form.AllFields.RepeaterFields.
It looks like UnityForm.Field was made into more of a generic class covering both repeater fields and single value fields. This probably makes it easier to do something like cascaded repeating sections (ie: a field in a repeating section can now a field in a repeating sub-section...).
TLDR:
Try to use form.AllFields.ValueFields.Find(BATCH_NBR_FF).AlphaNumericValue (assuming batch number isn't in a repeating section).
If you like to try and confuse people (or like parentheses (or casting]), you could get really wild with something like ((ValueField)form.AllFields.Find(BATCH_NBR_FF)).AlphaNumericValue
06-10-2015 05:12 AM
I was wondering the same thing when using 14 references. Just ignore [obsolete] warnings and update it when it's actually deprecated. (-:
The previous form.Fields is now preferred to be form.AllFields.ValueFields and form.Repeaters is preferred to be form.AllFields.RepeaterFields.
It looks like UnityForm.Field was made into more of a generic class covering both repeater fields and single value fields. This probably makes it easier to do something like cascaded repeating sections (ie: a field in a repeating section can now a field in a repeating sub-section...).
TLDR:
Try to use form.AllFields.ValueFields.Find(BATCH_NBR_FF).AlphaNumericValue (assuming batch number isn't in a repeating section).
If you like to try and confuse people (or like parentheses (or casting]), you could get really wild with something like ((ValueField)form.AllFields.Find(BATCH_NBR_FF)).AlphaNumericValue
06-10-2015 08:21 AM
06-19-2015 12:35 PM
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.