I'got an issue. There's two applets with the same BC, now, I'm going to get a value by this BucComp().GetFieldValue("xxxx") in the Brower Script from applet A, however, the field xxxx is not exposed on the applet A but exposed on applet B. I got the value is null via this method.
According to the bookshelf, the method GetFieldValue , there's a NOTE 'NOTE: In Browser Script, GetFieldValue can be used only for the fields exposed in the applet and for system fields. '
Is there any idea to resolve this issue?
For GetFieldValue in Browser Script you have two options for fields that are not exposed:
1. Make the field as Force Active. The main drawback here is that you now have a field getting queried everytime when the BC is instantiated affecting performance.
2. Expose the field on the Applet but make the HTML Type as Hidden. In this way the field is instantiated but is not visible on the UI.