Shared Samples

GeoMedia Smart Client Workflow Manager provides tools for building and delivering highly-constrained, map-based workflows for the office or the field.
Showing results for 
Search instead for 
Do you mean 

How to add branding to your Workflow

by Technical Evangelist ‎08-17-2018 06:16 AM - edited ‎03-28-2019 04:29 AM (513 Views)

Question

How can I add custom logo or company branding to our workflows?

Answer

The recommended approach is to use custom footer (or header) for your Workflow. To do this, follow these steps:

  1. Navigate to "...\GeoMedia SmartClient\Program\Workflows\Views\Shared" and create FormFooter.cshtml.
    You can alternatively use FormHeader.cshtml to create custom header.
  2. Edit the FormFooter.cshtml file, putting this HTML code
    <div style="display:table;width:100%;">
        <div style="display:table-row;background-color:White">
            <div style="display:table-cell;padding-left: 15px">
                <h2>Workflow Footer Sample</h2>
            </div>
            <div style="display:table-cell;text-align:right;padding-right:10px;">
                <img src="~/Custom/Images/GSP.png" />
            </div>
        </div>
    </div>
    NOTE: .cshtml files are compiled by ASP.NET runtime, accepting ASP.NET-specific notations. In our case, we just use relative image path (~/...) which will be computed during compile time (more on this topic on MSDN).
  3. Download the attached GSP.png logo and place it into "...\GeoMedia SmartClient\Program\Workflows\Custom\Images" folder.
  4. Run the Workflow, you should see result similar to:
    WorkflowFooter.png

To study more on the customization approaches we recommend to visit the online documentation - Workflow Manager Developer Guide, topic Workflow Design > Views and Templates.

 

Also see attached sample FormHeader.zip with related .cshtml and image files.

Comments
by npanc
on ‎05-03-2019 12:17 AM

Is this also working with Workflows in M.App Enterprise?

by Technical Evangelist
on ‎05-06-2019 04:45 AM

Yes, but the files must be put into [MAE Installation Folder]\Workflows, it seems it's not being recognized on the tenant's level.

by npanc
on ‎05-07-2019 08:09 AM

Hi again,

it is indeed recognized at the M.AE level. Problem is that the header shows up as well in other workflows (also when the view="" element in WorkflowSettings is not present ).

 

Also there is no folder "custom\images" at that level, so I wasn't quite sure where to put the logo.

 

 

Overview
Contributors