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 [], It could not be filtered by the language.
Is there any other replacement to achieve this functionality?
Thank you!