How to create a Monitor (Analysis Configuration) without a Profile (Data Configuration) via Macro?

How to create a Monitor (Analysis Configuration) without a Profile (Data Configuration) via Macro?

book

Article ID: KB0081494

calendar_today

Updated On:

Products Versions
Spotfire Statistica 12.7

Description

When uploading a PMML Model to Enterprise via the dialog, you can select 'None' as a data configuration. To do this when using a macro, you can create a new monitor using the command: 

Set monitor = ObjectManager.Monitors.Add("Name", swcSVBMonitor, Profile)

How can you do this without referencing a Profile?

Issue/Introduction

How to create a Monitor (Analysis Configuration) without a Profile (Data Configuration) via Macro?

Resolution

In the command Monitors.Add, use 'Empty' for the Profile:

Set monitor = ObjectManager.Monitors.Add("Name", swcSVBMonitor, Empty)