go to post Evgeny Shvarov · Oct 7 Hi Jeff! If you could share it on OEX too one day that'd be amazing!
go to post Evgeny Shvarov · Oct 6 Thanks @David Hockenbroch ! Is it like @Robert Cemper suggests with Do LOG^%ETN()?
go to post Evgeny Shvarov · Sep 30 Thanks for sharing, @Stephen Canzano! %expression - is a really impactful feature that can greatly help to tune performance while cubes building.
go to post Evgeny Shvarov · Sep 27 I agree, makes total sense. Documentation also have a feedback button on every page IIRC
go to post Evgeny Shvarov · Sep 26 Cool! Add dsw? Curious how it displays it? Also, DSW works neatly on a mobile
go to post Evgeny Shvarov · Sep 24 Thanks @David Hockenbroch ! An almost ideal pattern to run an SQL query in ObjectScript. If you could also share with error handling around? My typical pattern looks like this one below. Includes try-catch in case when I need to rollback something: try { set tStatement = ##class(%SQL.Statement).%New() set query = "ALTER Table "_table_" ADD PRIMARY KEY ("_column_")" $$$TOE(st,tStatement.%Prepare(query)) set rset=tStatement.%Execute() if rset.%SQLCODE < 0 { write "Error adding primary key: "_rset.%SQLCODE_" "_rset.%Message set ex=##class(%Exception.SQL).CreateFromSQLCODE(rset.%SQLCODE,rset.%Message) $$$ThrowStatus(ex.AsStatus()) } } catch ex { set st=ex.AsStatus() }
go to post Evgeny Shvarov · Sep 1 Oh my god! What a drama! Guys, you are maybe late for the Venice Film Festival 2025, but the Oscar 2026 nomination is yours! And moreover, Dave Davidson is healthy and sound because of Interoperability and InterSystems! Thanks @Vishal Pallerla and team!
go to post Evgeny Shvarov · Aug 27 It's not for JSON transformation directly, but a nice package by @Guillaume Rongier that lets you have messages contain data in JSON vs XML in the Interoperability pipeline.
go to post Evgeny Shvarov · Aug 23 Hi @Dmitrij Vladimirov ! This is pure ObjectScript AFAIK in an expression mode (think of it if you create a classmethod in ObjectScript in Expression mode), with options of %source to reference base class properties and %cube to reference Cube class methods.
go to post Evgeny Shvarov · Aug 21 BTW, faced the same situation today to have an option of getting full sqlname for a class, and generated a classmethod in VSCode with AI (no my personal touch): ClassMethod GetSQLTableName(pclass As %String) As %String { // returns the SQL table name for a class set tablename = ##class(%DeepSee.Utils).%GetSQLTableName(pclass) if tablename="" { set tablename=$TR($P(pclass,".",1,*-1),".","_")_"."_$p(pclass,".",*) } return tablename } And its working. Not bad for a bot.
go to post Evgeny Shvarov · Aug 20 Hi @Sam Duncan ! I think DC AI Bot answered right: if you try also add: zpm "enable -community" this will allow to install packages from a community registry
go to post Evgeny Shvarov · Aug 19 I guess DC AI bot takes only the post body into the consideration thinking the title is a summary of the post. I this case title is one question and post body is another one.
go to post Evgeny Shvarov · Aug 19 Thanks for this great contribution, @David McCaldon ! Could you please also publish at Open Exchange?
go to post Evgeny Shvarov · Aug 18 In anyways, there are folks on the community that can help even with these already undocummented stuff )
go to post Evgeny Shvarov · Aug 18 $zel, $zlp - two new ObjectScript functions in one day after more than 10 years in InterSystems... Love this community! )