I have the following use-case:
I am using a DynamicForm to display a single-record detail view of a GridView record. Most fields use the StaticTextItem to display data; however, a few fields are associated with child data I cannot display on the form due to lack of space.
Since the child data is relevant, I’ve rendered these fields as ButtonItems with title set to “[field title]: [field value]”, such that when the user clicks the ButtonItem, a dialog directly below the ButtonItem will show the child data. However, I am not sure how to determine the bottom edge of the ButtonItem, since getBottom() does not appear to work on FormItems.
I understand that you guys may want to suggest another way to achieve this, but if at all possible I need to make it work exactly like I’ve described, because unfortunately I have a mandate from on high that it absolutely must work exactly like that. They want a button, and a dialog, and the dialog must display directly below the button, period.
Any ideas?