Closed rhackeyexplore closed 6 years ago
For body fields, you should be able to just add Text to your field name and it will get/set using getText()/setText()
For sublist/subrecord there is no built in magic, so you use the nsrecord
property on your record instance. e.g. mycustomer.nsrecord.XXX()
If you have a use case for doing get/set Text on sublists mention it here and we can chalk it up as a feature request. I suspect we could do it for sublist fields in a similar manner to how we do for body fields.
Subrecords are another beast. We'd have to think about how/if/when to support them.
Here's an example of declaring you want the subsidiary field on the customer record as text:
class Customer extends CustomerBase {
@FieldType.freeformtext
subsidiaryText:string
}
If we need this for sublist and/or subrecords let's add them as separate 'enhancement' issues?
Do we have any examples of setting body, sublist and subrecord fields' by text values using NFT for SS2?