--
You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare Community" group.
To post to this group, send email to Ensemble-in...@googlegroups.com
To unsubscribe from this group, send email to Ensemble-in-Healt...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/Ensemble-in-Healthcare?hl=en
---
You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare" group.
To unsubscribe from this group and stop receiving emails from it, send an email to Ensemble-in-Healt...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Kind regards,
Ricardo Santos
Managing Director
rsa...@memesoft.co.uk
|
I thought there might be :) I've been digging around Ens.Config.Production which seems to have a few likely methods like scanmethod and findcall, and so does EnsPortal.Utils - i just can't find the right method
--
Here is an example:
ClassMethod OnGetConnections(Output pArray As %String,
pItem As Ens.Config.Item)
{
Do pItem.PopulateModifiedSettings()
Set (tValue,tIndex)="" For {
Set tSetting =
pItem.ModifiedSettings.GetNext(.tIndex)
Quit:tIndex=""
If tSetting.Name="DemogTargetConfig" Set tValue=tSetting.Value Quit
}
For i=1:1:$L(tValue,",")
{ Set tOne=$ZStrip($P(tValue,",",i),"<>W")
Continue:""=tOne Set pArray(tOne)="" }
}
-Ben
Hi Daniel,
Assuming you are on Ensemble 2007.1 or greater , there is a shortcut you can use. Just give your 'DemogTargetConfig' property a datatype of Ens.DataType.ConfigName . If you do this, then the line will be drawn automatically, without needing to override the OnGetConnections method.
Additionally, starting from Ensemble 2012.1, the GUI will automatically offer a drop-down selection list for settings of datatype Ens.DataType.ConfigName, populated by the potential-target config items in the production. If you want a multi-selection list, please see http://docs.intersystems.com/ens20141/csp/docbook/DocBook.UI.Page.cls?KEY=EGDV_prog#EGDV_prog_settings_options which discusses how to control the type of UI control used for a setting.
regards,
Ariela
From: Ensemble-in...@googlegroups.com [mailto:Ensemble-in...@googlegroups.com]
On Behalf Of DanielK
Sent: Monday, June 23, 2014 10:05 AM
To: Ensemble-in...@googlegroups.com
Subject: Re: [InterSystems-EnsHlth] Issue with production diagram and properties used as the destination for SendRequestAsync() in Business process
Cheers guys, i've got it working now. I just needed to remember to change 'DemogTargetConfig' to the value of my property holding the destinations.
Thanks all
--