EditorValue<?> replacement for FS 5.2
Author: kavin
Publication Date: 8/30/2017 6:19
Dear All,
In our module the below code snippet is used to find the outgoing references of the section.
Set<Reference> references = Sets.newHashSet();
final FormData formData = section.getFormData();
final List<String> variableNames = formData.getForm().appendEditorNames(null);
for (final String variableName : variableNames) {
final EditorValue<?> editor = section.getData().get(variableName).getEditor();
List<Reference> editorReferences = editor.findReferences();
references.addAll(editorReferences);
}
return references;
Furthermore the references are filtered by the language
reference.getLanguage()==langauge
In FS 52 the EditorValue<?> is marked as deprecated, so we are looking the corresponding replacement.
I tried to achieve this functionality with section.getOutgoingReferences(), But It returns the ReferenceEntry[], It could not be filtered by the language.
Is there any other replacement to achieve this functionality?
Thank you!
Tags: deprecated, fs5.2
-
Author: StefanSchulz - 8/30/2017 6:47
Hi Kavin,
There is no replacement (yet?). The deprecation is rather about implementing one's own editor component than using the interface. (For implementation, ValueEngineer is the alternative.)
But maybe a good time to issue a feature discussion, so an alternative is most likely to be present by the time this changes.
Best regards,
Stefan
0
Please sign in to leave a comment.
Comments
1 comment