Thoughts on dynamically finding the source to plug...
# suitescript
r
Thoughts on dynamically finding the source to plug into Form.addField? I was able to get id and label from an xml document (EFT bundle) to dynamically display fields. I figure I can get field type from Record.getField().type. I'm not sure how to find the source. Am I supposed to getSelectOptions()?
c
its the record type of the select
im not 100% on what you're doing but you seem to be on the right path
r
Basically the EFT bundle dynamically shows fields based on a Payment File Format field, which is an xml string. Only it only has id and label. So I need to somehow get the record type of the select field using the record module.
c
On the Payment File Template, you should just be able to add the fields using XML you don't have to parse anything.
I've done this a ton
r
I'm creating a suitelet to update bank payment details. This would sit on top of the EFT bundle, but I need to display the fields based on the template. Make sense? Are you just talking about using the EFT bundle as is? Cuz I don't see how I can use xml with Form.addField...
It's an extension to the vendor center
c
Why a suitelet to update bank payment details when you can update the records directly?
r
So vendors can update their own info. With approval, eventually.