-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Subforms #63
Comments
And here are the methods to read subform names and formulas: |
thanks, |
I think you can always have a look at the test-code to see how to use the new methods: https://github.com/klehmann/domino-jna/blob/master/domino-jna/src/test/java/com/mindoo/domino/jna/test/TestDesignFormAccess.java |
Here is a snippet: NotesDatabase db = new NotesDatabase("", "mydatabase.nsf", "");
NotesForm form = db.getForm("MyFormWithSubform");
//read the design richtext
IRichTextNavigator rtNav = form.getNote().getRichtextNavigator("$Body");
//returns pairs of dbreplicaid/subformname that are contained in the form
//(replica id "0000000000000000" for the same db as the form)
List<Pair<String,String>> namedSubforms = RichTextUtils.collectNamedSubforms(rtNav);
//returns a list of subform formulas
List<String> subformFormulas = RichTextUtils.collectSubformFormulas(rtNav)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there a way to get subforms related to a specific form?
In standard notes. jar I can get any subform by name using Database.getForm but
I didn't find any linkage between form and related subforms
The text was updated successfully, but these errors were encountered: