When creating a detail view that requires custom layout (DetailViewer will not suffice), is it proper to use a DynamicForm and have all the form items just be of type statictext? It seems overkill since the data will never edit or save, it’s just for display purposes. Is there a better way to do this?
Hi Pallen,
That’s a reasonable approach that we have in fact recommended in the past. One way to automate this usage slightly is to define a subclass of DynamicForm where getEditorType() always returns “StaticText” for anything other than spacers, blurbs and the like.
Hi,
I needed to create a DetailViewer with 2 columns (4 if you consider labels as separate columns).
I figured the DetailViewer would have the same multi-column capabilities as the DynamicForm.
But from what I see, I should use the DynamicForm instead, and set it to StaticText.
Is that still true for upcoming version 7?
Thanks,
Mike
Yes, for 4 columns that’s the best approach. When a DetailViewer shows additional columns it’s for side-by-side viewing of records.