go to post Eduard Lebedyuk · Apr 27, 2020 You should do that on a client (JS) side and send device info as a part of your POST request. UserAgent can be retrieved from: %request.UserAgent and you can try to map that to device.
go to post Eduard Lebedyuk · Apr 26, 2020 You can try this to create XLSX files from SQL queries (in the same project there's also XLS exporter). Another option would be to export CSV and use LibreOffice to convert it to XLSX (among other formats). Here's how.
go to post Eduard Lebedyuk · Apr 26, 2020 I advice against importing the entire library. The best approach is to write your own simple java library and import that. Here's my wrapper for Apache POI. Also you can use Dynamic Gateway for Java. Does not require class generation at all.
go to post Eduard Lebedyuk · Apr 26, 2020 First of all, I'd really like to recommend you to upgrade to InterSystems IRIS. You can still set query timeout as a part of JDBC connection string if it is available in external DBMS implementations.
go to post Eduard Lebedyuk · Apr 26, 2020 Call it? First argument is the statement index and the second is how long to wait in seconds. I would recommend setting this parameter as a part of JDBC connection string if applicable - it is available in some DBMS implementations.
go to post Eduard Lebedyuk · Apr 24, 2020 No, one user only. You can iterate over users and add favorites for each.
go to post Eduard Lebedyuk · Apr 24, 2020 Would be a great language to add. Are you interested in calling Rust code from InterSystems IRIS or interfacing with InterSystems IRS from Rust? Currently you can use Callin/Callout functionality for C/C++ and calll that from Rust. A while ago I was trying Rust and successfully transpiled C callout library into Rust callout library and compiled it as Rust shared lib and it works (callable from InterSystems IRIS). For this community project to take off two issues need to be solved: Doing something with a lot of generated boilerplate <- Easy part, can probably just dump it into external file as is Generating appropriate ZFEntry table. <-Probably possible but I have not researched the issue so far
go to post Eduard Lebedyuk · Apr 24, 2020 Easiest way to do that is to add a favorite: set sc = ##class(%SYS.Portal.Users).%AddFavorite("Community","https://community.intersystems.com") And your portal now looks like this:
go to post Eduard Lebedyuk · Apr 24, 2020 Every time you interact with the page your session is extended for session timeout. If there's no interaction from user after session timeout the session dies and cookie becomes invalid. You can adjust session timeout parameter in web application settings.
go to post Eduard Lebedyuk · Apr 23, 2020 VisitTime (any property really) should be stored before property parameter change. Can you try to recreate the data?
go to post Eduard Lebedyuk · Apr 23, 2020 You should set it as your property parameter: Class MyClass { Property CreatedOn As %TimeStamp(XMLTIMEZONE = "IGNORE"); } In runtime the behavior for your property CreatedOn would be IGNORE.
go to post Eduard Lebedyuk · Apr 22, 2020 Offtopic but generic JDBC provider for SQLAlchemy has been discussed for years in Python community but nothing has been done.
go to post Eduard Lebedyuk · Apr 22, 2020 Both suggested approaches offer a tight in-process way of InterSystems IRIS - Python integration. I will show some live examples of bidirectional InterSystems IRIS - Python integration in Best Practices for in-platform AI/ML Webinar.
go to post Eduard Lebedyuk · Apr 21, 2020 You can use PythonGateway or IRIS Native for Python to do that. PythonGateway can retrieve dataframe (any object really) as a JSON. Here's a corresponding discussion on the SQL side of things.
go to post Eduard Lebedyuk · Apr 20, 2020 Use Dynamic Gateway for Java. Does not require classes generation at all.
go to post Eduard Lebedyuk · Apr 16, 2020 Well, %Collection classes are the implementation of these constructs: Property X As List Of Type Relationships You can call their methods but do not explicitly create objects of these classes.
go to post Eduard Lebedyuk · Apr 15, 2020 There is actually. %GetSerial method builds a $lb from %ListOfDataTypes and %SetSerial does the reverse. Both of these methods are private though. You can subclass %ListOfDataTypes and publish them.