类似: "set obj = ##class(myClass).%OpenId(id)" 把一个id 赋予对象的实例,有没有办法可以通过提供类名和id 作为参数来实现功能/类方法来返回同样的结果,例如 用ObjectScript 中的getObjectInstanceByNameId(className As %String, id As %Integer)?谢谢!
Ensemble Delete Individual Rules and Ensemble classes programmatically Hi Team,
I have a requirement to delete the Ensemble interfaces , as per User request. I would like to write a routine for that and once I execute, it should remove the interface components through code. Could you please provide code samples for the following actions ?
I want to install Management Portal Engine for Windows to create Cache InterSystems DB
I want to create a Sample Database for Cache InterSystems and want to access it via Cache Entity Framework Provider. But, I cannot find a particular engine of Management Portal to create a database.
set rs=##class(%ResultSet).%New("%SYS.ProcessQuery:VariableByPid") set tsc=rs.Execute(ProcessID,"%request") while rs.%Next() { w "Name:"_$g(rs.Data("Name")),! w "Value:"_$g(rs.Data("Value")),! } do rs.Close()
ClassMethod TestArr()
{
s arrRow = [1,2,3,4,5,6,7]
s size = arrRow.%Size() - 1
for i = 0 : 1 : size {
s ii = (size / size) * i // 有size运算, 就报错
w arrRow.%Get(ii), !
}
q ""
}