Oleksandr Kyrylov · Feb 2, 2022 go to post

Example:

I have table named fixxer.decars, i want to rename column "color" to "color2"

I tried to use the query above and met the error

Oleksandr Kyrylov · Feb 3, 2022 go to post

My IRIS version is 2020.1. 

I will be grateful if you see any significant differences between my example and yours that cause this error. My Persistent class (this class created using 'CREATE TABLE'):

// Class Fixxer.DEcars Extends %Persistent [ ClassType = persistent, DdlAllowed, Final, Owner = {yploskyi}, ProcedureBlock, SqlRowIdPrivate, SqlTableName = DEcars ]{Property UniqueIdentifier As %Library.String(MAXLEN = 30) [ SqlColumnNumber = 2 ];Property brand As %Library.String(MAXLEN = 500) [ SqlColumnNumber = 3 ];
Property maxspeed As %Library.String(MAXLEN = 500) [ SqlColumnNumber = 4 ];Property color As %Library.String(MAXLEN = 500) [ SqlColumnNumber = 5 ];Parameter USEEXTENTSET = 1;/// Bitmap Extent Index auto-generated by DDL CREATE TABLE statement. Do not edit the SqlName of this index.Index DDLBEIndex [ Extent, SqlName = "%%DDLBEIndex", Type = bitmap ];
}
Oleksandr Kyrylov · Feb 3, 2022 go to post

I  think so too. I also noticed that in IRIS 2020.1 documentation is nothing about 'ALTER COLUMN RENAME' syntax. May be there is another way to rename column name using SQL but i cant find it. Thanks for response.

Oleksandr Kyrylov · Apr 1, 2022 go to post

If I understand correct. If I remove field repetition, I will lose data from field number "3().1" that was there before. My task is to catch all fields. May be you know how can I get a list of all properies numbers or paths from message/segment?

Oleksandr Kyrylov · Apr 5, 2022 go to post

%New() does not work with Ens.DataTransformDTL but I found another approach. 

In my case %Dictionary.ClassDefinition class helped me.

Oleksandr Kyrylov · Dec 14, 2022 go to post

Do auto install using DefaultInstallerClass.xml wotk with IRIS For Health? In my expirience it does not. But after IRIS is installed I can manualy import the DefaultInstallerClass.xml and run the setup method in terminal and it works. 

That is how my install package looks:

Maybe I'm missing something.

Oleksandr Kyrylov · Dec 16, 2022 go to post

Where I have to put the Verbose property? I found it only in <Log> tag Level property value  in the documentation. But I did not specify any Log tags in my XData. If you mean pLogLevel parameter in the setup method, it is already = 3.

My setup method: 

ClassMethod setup(ByRef pVars, pLogLevel As %Integer = 3, pInstaller As %Installer.Installer, pLogger As %Installer.AbstractLogger) As %Status [ CodeMode = objectgenerator, Internal ]
{
   #; Let XGL document generate code for this method.
   Quit ##class(%Installer.Manifest).%Generate(%compiledclass,
      %code, "MyInstall")
}

Oleksandr Kyrylov · Dec 16, 2022 go to post

I tried to remove CSPApplication tag from XData and the web application that is on the screenshot was created as well. Looks like manifest creates it with namespace by dafault.

Hi Robert. The problem is that I am executing the query on the linked table, so I have to use IRIS SQL syntax and it does not support "LIMIT"