go to post Peter Steiwer · Mar 10, 2020 One thing to note: the final ELSEIF is not going to be true ever since the third parameter of $LISTGET is the default value if the requested list value is undefined. Since i will never be = "", this will never quit. As Marc mentioned, it may just be easiest to build a new list out of segments that aren't [ or ]
go to post Peter Steiwer · Mar 10, 2020 After further testing, it looks like this isn't working as I originally thought. It looks like our only option at this point is to use Security.Applications
go to post Peter Steiwer · Mar 10, 2020 Hi David, I see you used the "VSCode" tag. The couple of times I have done this in VSCode, I typically just import the XML classes into my system and then once they are loaded, I use the VSCode ObjectScript Explorer and export my classes from there into my project. I've only done it once or twice, so I don't know if there is a better way of doing it. If you are interested, these are some methods for doing it manually as well that could be scripted to do all your files: USER>do $system.OBJ.Load("C:\Users\psteiwer\Desktop\Class.xml") Load started on 03/10/2020 17:40:03Loading file C:\Users\psteiwer\Desktop\Class.xml as xmlImported class: PivotSubscriptions.UtilsLoad finished successfully. USER>do $system.OBJ.ExportUDL("PivotSubscriptions.Utils.CLS","C:\Users\psteiwer\Desktop\Class.cls")
go to post Peter Steiwer · Mar 10, 2020 I tested this in a 2020.2 IRIS development build. (Also my code example will be included in PivotSubscriptions v1.6 )
go to post Peter Steiwer · Mar 10, 2020 A sample would be helpful, but have you tried using a WHILE loop instead? Without a sample, it is hard to give any more suggestions
go to post Peter Steiwer · Mar 10, 2020 I tried this out and it works as expected: <CSPApplication Url="/api/pivotsubscriptionsunsubscribe" Directory="${CSPDIR}" DispatchClass="PivotSubscriptions.UI.Unsubscribe" AuthenticationMethods="64" />
go to post Peter Steiwer · Mar 9, 2020 The code for CSPApplication appears to accept DispatchClass (even though documentation does not say it). I have not yet tested it. But in PivotSubscriptions I create my WebApp the way that Eduard says, but I was planning on changing it to use %Installer this week or next.
go to post Peter Steiwer · Mar 4, 2020 Is putting all this in the main directory of the repository necessary? I believe the two git files (.gitignore and .gitattributes) need to be there. But perhaps all files related to docker can be put in a "Docker" directory to avoid adding so many files to the main directory. My main fear is people seeing all these files and not knowing where to start.
go to post Peter Steiwer · Feb 29, 2020 If you can access it on the machine it is installed on, it is probably the case that there is just a firewall preventing access from other machines. In a more advanced configuration, you will also need to consider settings on the web server
go to post Peter Steiwer · Feb 28, 2020 Hi Ali, Here is a sample of using %ListOfObjects: SAMPLES>set list=##class(%ListOfObjects).%New() SAMPLES>set t1=##class(HoleFoods.Transaction).%OpenId(1) SAMPLES>d list.Insert(t1) SAMPLES>w list.Count()1SAMPLES>set t2=##class(HoleFoods.Transaction).%OpenId(2) SAMPLES>d list.Insert(t2) SAMPLES>w list.Count()2SAMPLES>w list.GetAt(1)2@HoleFoods.TransactionSAMPLES>w list.GetAt(1).%Id()1SAMPLES>w list.GetAt(2).%Id()2SAMPLES>w list.GetAt(2).AmountOfSale6.95
go to post Peter Steiwer · Feb 26, 2020 I typically leave it for some amount of time. I sometimes go through my repos and delete the stale forks. Even though it does have the broken links back to the deleted repo, the PR merge will show the commit history in the new repo, which I think is the important part
go to post Peter Steiwer · Jan 30, 2020 <dataListBox sql="select id from deepsee_study.doctor" onclick="alert('onclick');" onchange="alert('onchange');" ondblclick="alert('ondblclick');"></dataListBox> I tested this in the SAMPLES namespace on Cache for Windows (x86-64) 2018.1.2 (Build 309_5U) Wed Jun 12 2019 20:02:36 EDT. When clicking an item, I see the onchange alert. After double clicking the item I previously selected, I see the ondblclick alert.
go to post Peter Steiwer · Jan 30, 2020 System Management Portal -> System Administration -> Configuration -> National Language Settings -> Locale Definitions Please note that your browser will often localize content based on your browser settings, so the Management Portal may not look different after doing this, but if you open terminal you should see your newly selected Locale and if you do things like compile classes in Studio, you should see your output messages in the new Locale also
go to post Peter Steiwer · Jan 29, 2020 It looks like the component's built in clickItem method does not call out to the contents of onclick. However, the component's dblClickItem method calls out to ondblclick.
go to post Peter Steiwer · Jan 23, 2020 Hi Scott, The CSP folders will be located on your system where you have installed HealthShare. This means you can just move your images to this directory and then your apps should be able to reference them. The documentation for the <image> tag has a few hints: "If provided, src is the URI of an image to display. If src is the relative pathname of a file, it is understood to be relative to the Caché installation directory. Typically this path identifies the images subdirectory for your Zen application, for example:<image id="myFrame" src="/csp/myApp/images/myPic.png" />"
go to post Peter Steiwer · Jan 23, 2020 Are you still able to type? Is it just Ctrl+C -> Ctrl+V that doesn't work? Can you right click and use Copy and Paste? When you use Copy, can you Paste to something that isn't Studio?
go to post Peter Steiwer · Jan 23, 2020 Also for your test, the same with my note for Eduard - the output is hardcoded, so the first output line is for i=1, the second is for i=2, the third for i=3, the last for i=4
go to post Peter Steiwer · Jan 23, 2020 Hi @Vitaliy.Serdtsev , Try with larger numbers. With the smaller numbers, there will be slight variations which can flip the order. With 1e9: Time for If: 28.111261 secondsTime for ElseIf #1: 38.782421 secondsTime for ElseIf #2: 49.21395 secondsTime for Else: 48.58113 seconds