Question John Kumpf · Oct 16, 2019 Pack then import CSS from a local library (Angular) Hi all, This might be a stupid question, but I'm going to ask it anyway. My goal is to write a scss file, pack it as part of a local library (Something like my_library.tgz), npm install that library into a different project and then import that scss file in one of the scss files in the new project. Simply having the scss file exist in the library before I pack it didn't seem to work; the file wasn't under node modules after the npm install. Am I doing something wrong, or are there extra steps I have to take? Thanks in advance. #Angular #Angular2 #CSS #Other 0 5 0 5.6K
Discussion John Kumpf · Sep 30, 2019 Is anyone working with a continuously integrated Angular UI right now? Hi all, Over the next few months I'm going to be setting up continuous integration via Jenkins for some Angular UI's. The goal is to, on each build: 1. build the code 2. run the unit tests and get a report 3. get a code coverage report Just wanted to poll the community in case someone else has already worked with any of this before. All ideas are appreciated. Cheers, Johnny #Angular2 #Caché 1 7 0 437
Question John Kumpf · Apr 23, 2019 How do I create a custom Property Parameter? Here's my current attempt: #InterSystems IRIS 1 4 0 561
Question John Kumpf · Apr 12, 2019 How do I return JSON from a database SQL call? Referencing this post:https://community.intersystems.com/post/producing-json-sqlI'm not sure how to actually interact with the result set I get from doing something like this. I want to return something like:[{"field1":1, "field2":2}, {"field1":2, "field2":10}]I'm finding it very difficult to get it in this format, since %Print appends a newline onto the end of the {} object it prints.Here's the closest I've gotten: #JSON #REST API #SQL #Caché 1 5 3 1.3K
Discussion John Kumpf · Apr 9, 2019 How are you guys developing with Angular right now? Hi guys, I'm curious about the development processes of those of you using Angular. The starting point is that, somewhere, there lives an Angular project full of (mostly) typescript files. Eventually, those files need to be built, and the resulting built files served up to a browser. #Angular #Angular2 #CSP #Frontend #Other 3 11 2 3.9K
Article John Kumpf · Jan 14, 2019 2m read On a csp page, when you return %Boolean from a cache script into a javascript script, you're getting a string, not a boolean This is a quick note on what happens when, on your CSP page, you call a cache script which returns a %Boolean and store that value in a javascript variable.When you call a script with language="cache" and returntype="%Boolean" from a javascript script, the return value is interpreted as a string, not as a boolean.Here's an example:A cache script that returns (in theory) a "false" value: #CSP #JavaScript #Object Data Model #Caché 0 3 0 550
Question John Kumpf · Dec 6, 2018 Are there issues with $$$OK on Cache 2010? Hi guys,I'm running a method on an instance of Cache 2010, which, when compiled, has $$$OK in it's .int code. This line throws an error, telling me that "the OK macro isn't recognized". Some things I've tried;- I looked it %occStatus, and the macro definition of OK is there.- I changed $$$OK to 1 by hand in the .int code. It compiled successfully, but each time I recompile the original class, it's going to put that $$$OK back #Caché 0 4 0 503
Question John Kumpf · Dec 6, 2018 How do I call IRIS, then run a few commands from it, using a Windows Batch script? Hi guys,Mostly the title. Let's say my commands are stored in a text file "inFile". Here was my best guess:<dir to iris> console IRIS2018 <inFileFor reference, here's an example of the analogous structure that works on Cache:C:\InterSystems\Cache2018\bin\cache -s C:\InterSystems\Cache2018\mgr -U <namespace to start as> <inFile #Terminal #InterSystems IRIS #Microsoft Windows 0 1 0 994