go to post Pravin Barton · Sep 6, 2018 Never mind, I answered my own question. I should be using the token endpoint instead of the authorize endpoint.
go to post Pravin Barton · Apr 2, 2018 TLS version 1.2 is not supported on Caché for Windows versions previous to 2015.2. This is because they use older versions of the openssl library which do not have support for TLSv1.1 and 1.2. I found this previous post informative: https://community.intersystems.com/post/tls-v12-support-cach%C3%A9
go to post Pravin Barton · Nov 13, 2017 Hi Victor,You can use the class queries of %Library.SQLCatalog to find catalog details for tables.The SQLTables query gives you a list of tables:select * from %Library.SQLCatalog_SQLTables()And the SQLFields query will give you a list of fields for a given table:select * from %Library.SQLCatalog_SQLFields('sample table name')You can run these queries in the command line using dynamic sql, for example:set sql = ##class(%SQL.Statement).%New()write sql.%PrepareClassQuery("%Library.SQLCatalog","SQLTables")set rs = sql.%Execute()do rs.%Display()
go to post Pravin Barton · Nov 13, 2017 Hi Bob,I've found the Terminal plugin useful for running server side code and viewing the output while I'm developing. You can dock it to the bottom of the Atelier window so it works like the Output window in Studio. The difference is that with Terminal you have to explicitly connect to the sever with SSH or Telnet. There's some relevant documentation here: https://docs.intersystems.com/atelier/latest/topic/com.intersys.eclipse....
go to post Pravin Barton · May 12, 2017 Hi Bob,For this to work you also need to define the data controller element in the page contents. For example, you could add the following element to the XData:<dataController id="spriteController" modelClass="User.SpriteDataModel" modelId="1"/> If you have a data model class defined called "User.SpriteDataModel".I recommend taking a look at the "ZENMVC.MVCForm" class in the SAMPLES namespace if you'd like an example of defining a data controller and data model.
go to post Pravin Barton · May 8, 2017 Hi Ruslan,You can use the rowCount property of the table to find the index of the last row. But keep in mind that it's a string rather than integer, since any number greater than the maximum rows will be "100+" for example. Try using the following javascript: var table = zen("your_tablepane_id")var rowcount = parseInt(table.rowCount)if (!isNaN(rowcount)) tablepane.selectRow(rowcount)
go to post Pravin Barton · May 8, 2017 Hi Bob,I've done databindings on other SVG components like charts and meters. Unfortunately, sprites don't extend the %ZEN.Component.dataView class and don't have any built-in way to function as view components in Zen MVC. You'll have to set the values programmatically using the getDataByName() and setDataByName() functions of the data controller (documentation).
go to post Pravin Barton · May 3, 2017 It turns out the issue is that the default HTML editor can't open files from the server. I had to manually set the Atelier HTML Editor as the default for html files in Preferences > General > Editors > File Associations. This might be because I first installed Eclipse JavaScript and then installed Atelier as a plugin.
go to post Pravin Barton · Apr 7, 2017 Hi Ashok,It looks like the %session variable isn't accessible in a zen background method. I'd suggest passing the %session.SessionId as an argument into the background method. You can store the JSON data in a global or a persistent class keyed by the session id, and access it from there. Then you can override the OnEndSession() method of the application's event class to delete the data when the session is over: http://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=...