Community
Participate
Working Groups
I have a use case where I need to add a decorator to the diagram page to distinguish what types of editor it is. I'm using the same editor to support two types of models which are slightly different. Our UI expert came up with a design which adds a non-selectable text field to the top left corner of the page to specify the type of model this editor is for. At the minimum, we could extend the diagram page definition to support page-level text decorators. This could be extended to support image based diagram page decorator later.
This would best handled by supporting headers in diagram pages. A header already can display text, an image and actions. I eventually want to see identical headers to ones used on form pages. If that's technically difficult to achieve in the short term, a temporary rendering of some sort can be used. The existing sdef facilities for defining headers should be used regardless. See IEditorPageDef.PageHeaderText and PageHeaderImage.
Our UI expert also specified a color for the header text. Should I extend IEditorPageDef.PageHeaderText property to include a text color?
> Our UI expert also specified a color for the header text. Should I extend > IEditorPageDef.PageHeaderText property to include a text color? No. The goal is the same header as what's used on form pages. I've never seen text color there change.
Bulk deferral of diagram-related items to the 0.5 release.
Fixes together with enhancement doc have been checked in. Map sample is modified to show how to add an action to the diagram header.
Should we also add a image in the page header just like we did in the master details form header? Bug 343972
Yes, let's add that feature.
I don't see header image in the form editor. The only image on the form editor's header I see is the "show outline" action image on the right of the header. Am I missing something?
If you look at the Sapphire Gallery editor you will see there is an image shown on the form editor page. In the GalleryEditor.sdef file, click on the "main" Form Editor Page and see the property label "Page header image", so the discussion here is to add this same image capability to diagram page header.
Now support image in the diagram header similar to form editor.
Created attachment 215437 [details] Patch v1 Added page header image property editor to sdef editor
I just posted patch for consideration to add page header image to sdef editor for diagram page.
Patch submitted. Thanks for the patch!
Verify via sample.xml