Question Thembelani Mlalazi · Jun 13, 2019 How to send commands to the Window Command prompt directly is there a way to send commands to the CMD in windows form COS I would like to run an application within COS by sending a command to the CMD #Microsoft Windows #ObjectScript #Terminal #Caché 0 2 0 1.2K
Question Thembelani Mlalazi · Jun 10, 2019 How to generate a pdf file from an XLFO in Ensemble In my production I receive an XLFO stream and I would like to pass that to the FOP pdf rendering engine to produce pdf files .So far in my research that can be achieved through ZEN .I would like to create an operation that will take advantage of that and be able to pass my XLFO stream to the operation and create pdf files I found something similar here but for some reasons I get errors like below if any one understands what they mean please advice or someone who had to do something sim #Business Operation #Java #ZEN #Ensemble 0 2 0 639
Question Thembelani Mlalazi · Jun 3, 2019 How to extract data from a list property Say I have a property in a persistent class that stores list of colours and I would like to query that field and return a list and be able to loop that list to get individual colours how will l go about achieving this I have tried something like this but its not working as expected &sql(SELECT colour INTO :colourList FROM favouritecolours) While (SQLCODE = 0) { for i=1:1:$LENGTH($P(colourList,",")) { set fvalue=$P(colourList,",",i) write "the first"_fvalue,i, } } #Coding Guidelines #Databases #SQL #Caché 0 1 0 549
Question Thembelani Mlalazi · Apr 16, 2019 Error 5823 when purging record map batch I have an above error when purging record map batches and was wondering if anyone out there has ever experienced this and if they have please any advice Failed to purge body for header 9747192, BodyClassname='******.Batch':ERROR #5823: Cannot delete object, referenced by '*****.Record.%ParentBatch' #Beginner #Management Portal #System Administration #Ensemble 0 1 0 491
Question Thembelani Mlalazi · Apr 11, 2019 CSP how to auto refresh with COS I have a query that I would like to have refreshing at certain intervals lets say every 30 seconds with out refreshing the page content using the META TAGSrefreshes the whole page but I have a jquery function that will run at those intervals that I can use the problem is getting the jquery to call my COS function or is the way to do it with pure COS #CSP #JavaScript #ObjectScript #Frontend #Caché 0 2 0 454
Question Thembelani Mlalazi · Apr 10, 2019 Base64 Encoding Errors I am trying to base64 encode a string with non standard characters encoded in utf-8 also tried windows 1252 and I am getting error like so ERROR <Ens>ErrException: <ILLEGAL VALUE>zEncodeStream+18^ -- logged as '-' number - @' set encString = $TRANSLATE($SYSTEM.Encryption.Base64Encode(streamString),$C(10,13))' any help appreciated if anyone has faced this before #Business Operation #ObjectScript #HealthShare 1 2 0 828
Question Thembelani Mlalazi · Apr 9, 2019 Escape non standard characters to windows 1252 character set I have an xml that has non standard characters and I would like to transform it with xslt so that those characters render in the format &#nnn here is what I have so far any help appreciated xslt #Microsoft Windows #XML #Caché 0 6 0 1.7K
Question Thembelani Mlalazi · Apr 5, 2019 How to compare time I am trying to get the time difference between two time stamps one is recorded earlier to the one happening current but the problem is sql expect string while I have the other stored in a variable and if I do the following I get errors any help please &sql(SELECT {fn TIMESTAMPDIFF(SQL_TSI_HOUR,$ZDT($H,3,1,3),tx)}) please note that tx is a variable holding the time formatted the same way as the one being compared to #Beginner #CSP #Databases #Caché 0 3 0 701
Question Thembelani Mlalazi · Mar 25, 2019 How to create dynamical links in csp I have an application using examples from the lottery example in samples name space how do I create a dynamically link based on the data displayed to add a record id to the link the idea is to loop over the records displays fields and link to edit the shown data at the end of the record in a table format #CSP #Caché 0 1 0 327
Question Thembelani Mlalazi · Mar 13, 2019 what is the Bullet point char value in COS what is the bullet point char value in COS the equivalent of • #ObjectScript #Caché 0 2 0 304
Question Thembelani Mlalazi · Mar 12, 2019 String to date I am trying to convert a string to date but can not get it to work I have function that I would like to take in a date string and covert it to date object here is the ezample so far can not get it to work any help appreciated set p="12/03/2019" w $System.SQL.TODATE(p,"YYYY-MM-DD") <ILLEGAL VALUE>todate+32^%qarfunc if I try this still get the wrong value returned set p="12/03/2019" w $ZDATE(p,3) 1841-01-12 #Databases #SQL #Caché 0 6 0 3.3K
Question Thembelani Mlalazi · Feb 21, 2019 Iris or Cache Database and studio For a solo developer developing web applications what will be the best technology to use IRIS or Studio with cache database and containers for deployment #Cloud #Containerization #Development Environment #Caché #InterSystems IRIS for Health 0 2 0 1K
Question Thembelani Mlalazi · Feb 14, 2019 HOW TO USE CONDITIONAL LOGIC IN SQL Is there a way or can it be done to use conditional logic in sql like so Query Q1(formal as %String) As %SQLQuery [ Final ] { SELECT patientnumber,ID, CASE WHEN ID = 50 THEN "The is 50" WHEN ID = 30 THEN "This is 30" ELSE "The quantity is under 30" END FROM Audit.Table WHERE ID = :formal AND EndDate is null} } #Databases #SQL #Caché 0 2 0 382
Question Thembelani Mlalazi · Feb 8, 2019 How to get the length of A Segment In HL7 I am trying to get the values of a PID:3 segment to an array but I will need to know the length of the segment to process .set o = ##class(EnsLib.HL7.Message).%OpenId(458)w o.GetValueAt("PID:3")w o.GetValueAt("PID:3").SegCount This throws an error any help appreciated #HL7 #Caché #Ensemble 1 4 0 1K
Question Thembelani Mlalazi · Jan 22, 2019 SQL select to a list I need to select my result into a list and be able to loop through the list when query finished any help appreciated here is where I am ##sql(SELECT %ID INTO :IDArray() FROM MergeHyland.TypeTwoDimesionCollection WHERE GUID = :Key AND EndDate IS NULL) for I=1;1:$LISTLENGTH(IDArray) { w $Data(IDArray),i } #Object Data Model #SQL #Caché 0 2 0 1.5K
Question Thembelani Mlalazi · Jan 22, 2019 Embedded SQL How to return a lIst of data I have this query That I am trying to use in my class when testing on the terminal I expect to get the results printed on the terminal but I am only getting zero printed please can anyone out there advice on what I am doing wrong #Databases #SQL #Caché 1 1 0 430
Question Thembelani Mlalazi · Jan 15, 2019 Why <UNDEFINED> on SQL I have an sql statement that I would like to execute but I get the error "zSearchChanges+5^MergeHyland.TypeTwoUtil.1 *KeyID" and here is my sq l "&sql(SELECT Key INTO :KeyID FROM MergeHyland.TypeTwoDimesionalTable WHERE Key = :Key)" any ideas why #Databases #SQL #Caché 0 2 0 262
Question Thembelani Mlalazi · Dec 11, 2018 How to mimic selenium in cache object Script Is it possible to mimic what selenium does like navigating to a site and logging in and filling out a form then logout in COS.I am trying to do that in COS using %Net.HttpRequest class or should I be using a different class the idea is to be able to call a web app login into it and fill out form and log out #Beginner #Object Data Model #ObjectScript #Testing #Caché 0 7 0 590
Question Thembelani Mlalazi · Dec 3, 2018 Rest return 500 error I have an application which is distributed across maybe 5 servers since it has over a thousand users at a time we had an upgrade to the application last week and I had an integration build that uses the REST service ( ##class(%Net.HttpResponse) but since the upgrade the integration has not be able to communicate with the application tried testing my URL through Postman and all seems ok but if I test direct I get a 500 error anything that I need to check on please or any advice on how to check what's going on. #Object Data Model #REST API #Caché 0 2 0 566
Question Thembelani Mlalazi · Sep 24, 2018 How to use com.intersys.gateway.Service I am trying to work with Java Selenium through Cache my java programme works fine but I would like to pass parameters to the jar file form my Ensemble production. #Beginner #Java #Object Data Model #Caché 0 2 0 571