QnectBPM guides Download PDF

Add-on guides · for Process Administrators and Process Designers

Qnect BPM Screen designer

Lay out Sage CRM screens by drag and drop, and make the forms processes show.

On this page

The Screen designer add-on adds the Screens tab to Qnect BPM. It has two parts:

  • CRM screens: change the layout of real Sage CRM screens by dragging fields, instead of using CRM's own screen customisation. Process Administrators only.
  • Process forms: make the forms that Ask user steps show to people while a process runs. Process Designers and Administrators.

Without its key you can design screens and forms and see them, but Save to CRM is off, and processes that ask for a form don't start.

Designing a CRM screen

On Screens → CRM screens:

The Screens tab with the opportunity summary screen
OpportunityDetailBox open on the Screens tab.
  1. Choose a screen in Screen. Screens are grouped by entity, with the number of fields in brackets.

  2. The screen appears as rows of field cards, roughly as CRM lays them out.

  3. Change it:

    • Move a field: drag its card within its row or to another row. Drop it on the strip between rows, or on Drop here for a new row, to start a new row.
    • Add a field: drag it in from the Fields list, or click Add to put it on a new row at the end. Search fields finds one.
    • Remove a field: drag its card back onto the Fields list, select it and click Remove from screen, or press Delete.
  4. Select a field to set its Columns wide and Rows high, Required on this screen, and its Create script, OnChange script and Validate script, as in CRM's own customisation. The arrow buttons move it without dragging.

    A field's settings
    Select a field to set its size, whether it's required and its scripts.
  5. Leave Refresh CRM screens after saving ticked and click Save to CRM. Qnect BPM saves the layout and then runs CRM's Refresh custom objects, so users see the change on their next page. The message says whether the refresh worked.

In the Fields list, a ✓ marks fields already on the screen and an * marks required fields. Discard changes goes back to the layout as it was when you opened it.

Saving several screens. Untick Refresh CRM screens after saving, save each screen, then refresh CRM once yourself: Administration → System → Metadata, tick Refresh custom objects, Execute Refresh. Your choice is remembered in this browser. A refresh can make CRM pause briefly for users, and needs System Administrator rights in CRM.

Someone else changed the screen. If the screen changed in CRM after you opened it, saving is refused so their change isn't lost. Reload the screen and make your change again.

Save history and undo

  • Undo last save puts back the layout from before your last save.
  • Save history lists each save from Qnect BPM, newest first (up to 50), with who saved it, when, and its fields. In Sage CRM now marks the latest.
  • Restore this version saves that layout to Sage CRM again. The last row, Before the first save, puts back the screen as it was before Qnect BPM first changed it.

A restore is a save like any other: it's refused if the screen changed since you opened it, it's recorded (so Undo last save can undo it), and it's followed by the CRM refresh when that's ticked. Save or discard your changes first.

What it changes in Sage CRM

  • Only the desktop layout of the screen you're saving. Mobile layouts are never touched.
  • Field order, new line, columns wide, rows high, required, and the three scripts.
  • A field you remove is marked deleted, as CRM's own customisation does. The field itself is never changed.
  • Every save runs in one database transaction and is recorded in Qnect BPM's audit log with the layout before and after.

Scripts entered here run in CRM exactly as if entered in CRM's customisation. Review them as you would any CRM script.

Making process forms

A process form is what an Ask user step shows when it asks for a form. On Screens → Process forms:

The Process forms designer
A discount request form with two buttons.
  1. Choose a form in Form, or click New form. To start from a CRM screen's fields, choose it in Start from a CRM screen.

  2. Drag a kind of field onto the form, or click Add for a new row:

    KindFor
    Text, Long textWords.
    Number, CurrencyAmounts, with At least and At most.
    Date, Date and timeDates.
    CheckboxYes or no.
    ChoiceOne of a fixed list (one per line: code | label).
    Pick from listTicking rows from a list an earlier step made.
    Heading, Text to readText on the form, with {{values}}, for example Forecast {{record.oppo_forecast}}.
  3. Select a field to set its Label, Name (what later steps use, as in {{form.discount}}), whether it's required, its limits, Columns wide, Rows high and what it Starts as, for example {{record.oppo_forecast}}.

  4. Set Buttons, one per line as outcome | caption, for example submit | Send for approval. Add | no checks to let a button such as Cancel send without the required fields. No buttons means one Submit button. The button pressed is {{form.outcome}}, for a decision after the step.

  5. Save form. A saved form keeps its name, so the processes that use it can find it.

Pick from list

Shows rows from a list an earlier step made, for example a Read data step that reads every match, or a web service response, and lets the user tick one or more.

SettingWhat it does
Rows fromThe list, for example {{opportunities}}.
ColumnsOne per line: label | path | format. Formats: text, number, currency, date, yesno. Only these columns go to the browser; the step gets the whole row.
KeyWhat names a row, for example oppo_opportunityid.
Only rows whereOptional, for example item.oppo_status == 'In Progress'.
Ticked to begin with whereOptional, rows ticked when the form opens.

The form never reads CRM or calls a web service itself, so connections and their secrets stay where they are.

Versions

Every save of a form is kept. Open a form and click Versions to see each version, who saved it and its fields. Restore this version saves it again as the newest version.

A process keeps the version its Ask user step picked, even when you change the form. The step then offers Update to latest. An Ask user step always holds its own copy of its form, so it runs even if the form is deleted here; the step offers Add to the Screens tab to save its copy as a form again.

Setting it up (administrators)

  1. Marketplace → Screen designer → Install, and make sure its key is on the Licence tab.
  2. Let it save CRM screens. Saving CRM screens needs one extra permission on the CRM database, and is off unless you turn it on. Run the Qnect BPM installer again and tick Let the Screen designer add-on save Sage CRM screen layouts on the SQL Server page. This gives the engine's account, and nothing else, SELECT, INSERT, UPDATE on Custom_Screens and SELECT on Custom_ScreenObjects and Custom_Edits, and sets SageCrm:ScreenDesignerDb. The Worker never gets them.

Process forms need no CRM permission: they're kept in Qnect BPM's own database.

Without step 2 the tab still shows screens, but Save to CRM is off, with a message saying why. Leave it off on systems where screens should only change through CRM's own customisation.

Good to know

  • A screen's fields are listed for any entity, including entities not exposed to the REST API, such as Account.
  • Export a screen with CRM's Component Manager if you need to move a layout from a test CRM to a live one.
  • Chart fields from the Charts on screens add-on appear in their own Charts list on this tab. See the Charts on screens guide.