go to post Peter Steiwer · Mar 17, 2021 This InterSystems IRIS connector will look at the Tables and BI Cubes that are defined on the system. I believe you can use the ODBC connector if you want to write your own SQL. Another option could be to define a view inside of IRIS and use the view with this connector
go to post Peter Steiwer · Mar 15, 2021 You need to make sure "found" is being updated when the recursive call exits. This can either be done by reference (passing in .found) or simply as a return value (set found instead of do). It is always going through the full loop and never exiting early because once the value is found, it is never passed back up as being found. This means that the loop just continues on. Here are two examples of these solutions if $isObject(value) { do ..JSONIterator(value,newPath,.SearchKey,.SearchVal,.found) } if $isObject(value) { set found= ..JSONIterator(value,newPath,.SearchKey,.SearchVal,found) }
go to post Peter Steiwer · Jan 19, 2021 You might also need to add:Set mgr.IQN=SchemaName_"."_$Translate(TableName,".",$c(2))
go to post Peter Steiwer · Jun 22, 2020 Hi Reid, There is no current way to change the Axis Scale in a standard DeepSee chart. However, if you are using a third party charting library you are able to implement this. I added this capability to my Third Party Chart Library project. For example you can turn your chart from: into: By just modifying one setting in the UI.
go to post Peter Steiwer · Mar 23, 2020 If you are using %INSTALLER, you can use GRANT to assign a role: <CSPApplication Url="/api/pivotsubscriptionsunsubscribe" Directory="${CSPDIR}" DispatchClass="PivotSubscriptions.UI.Unsubscribe" Grant="PivotSubscriptionsUnsubscribe" AuthenticationMethods="64" /> I have tested and confirmed that this does add the Application Role.
go to post Peter Steiwer · Mar 13, 2020 Based on the documentation, it seems like this may be expected since $GET is expecting a variable, not a value returned from a method call. The main purpose is to protect against undefined references which a method call should never return since an empty string is different than undefined. Since the documentation mentions it accepts multidimensional object properties, it seems like it is assuming this is what the passed in reference is. Documentation on expected values here.
go to post Peter Steiwer · Mar 13, 2020 Hi Michel, I am not exactly sure which type of stream you are using, but different types appear to override the Read methods. For example:%Stream.FileCharacter does not implement a Read method, but it extends %Stream.FileBinary. In %Stream.FileBinary, the Read method is defined as: Method Read(ByRef len As %Integer = 32000, ByRef sc As %Status) As %RawString
go to post Peter Steiwer · Mar 11, 2020 Also, CSPDIR should be a good default value and you probably don't need a dummy directory: https://docs.intersystems.com/irislatest/csp/docbook/Doc.View.cls?KEY=GC...
go to post Peter Steiwer · Mar 11, 2020 You can use GetOneStatusText: USER>w $system.Status.GetErrorText(x)ERROR #5002: ObjectScript error: <UNDEFINED> *yyUSER>w $system.Status.GetOneStatusText(x)ObjectScript error: <UNDEFINED> *yy
go to post Peter Steiwer · Mar 10, 2020 Hi David, I see you used the "VSCode" tag. The couple of times I have done this in VSCode, I typically just import the XML classes into my system and then once they are loaded, I use the VSCode ObjectScript Explorer and export my classes from there into my project. I've only done it once or twice, so I don't know if there is a better way of doing it. If you are interested, these are some methods for doing it manually as well that could be scripted to do all your files: USER>do $system.OBJ.Load("C:\Users\psteiwer\Desktop\Class.xml") Load started on 03/10/2020 17:40:03Loading file C:\Users\psteiwer\Desktop\Class.xml as xmlImported class: PivotSubscriptions.UtilsLoad finished successfully. USER>do $system.OBJ.ExportUDL("PivotSubscriptions.Utils.CLS","C:\Users\psteiwer\Desktop\Class.cls")