Question Thembelani Mlalazi · May 10, 2018 Terminal Syntax On How to see the contents of a message I have a batch and would like to see the records in it on a terminal First will use .%OpenId(Id) then will want to get the first record something around GetAT(1) with this I get the object reference but will actual need to see the data any help #Beginner #Object Data Model #Terminal #Ensemble 0 1 0 353
Question Thembelani Mlalazi · May 10, 2018 how to read a batch line by line and write that to a file I have a batch that uses the record mapper class .I would like to have a custom operation that will write this batch to a csv file .My operation has a batch as its request and I would like to read that batch data to a csv.So far here is what I have. #Business Operation #Object Data Model #Ensemble 0 1 0 824
Question Thembelani Mlalazi · May 2, 2018 How to do a SQL Query with Pivot I have a lookup table and record batch Table I would like to do a count on the records stored in that batch by counting the number of records in that batch that have a certain key on the responseKey column. This column keys are stored in the look up table for comparison. So I would like to do a join sql pivot that will use my keys stored in the lookup as columns and count as values so far I have managed to do this but this is not efficient I would like to fire that sql once not on every count #Key Value #SQL #Caché 0 1 0 1.5K
Question Thembelani Mlalazi · Apr 26, 2018 Status = ERROR #5809: Object to Load not found, class 'class.Batch', ID '1 I am using the EnsLib.RecordMap.Operation.BatchFileOperation to write a batch to a file but for some reason this has been working fine as of yesterday I had a problem with the cache databases filling up running out of memory so had to compact my database and gain space now when I run the operation I get the above error .Of course in my batch table there is no batch record with ID 1.The message is passed with the correct header information but still get this error any suggestions why? #Beginner #Ensemble #Business Operation 0 3 0 913
Question Thembelani Mlalazi · Mar 27, 2018 how to add to the RecordMap Batch Morning guys I have a SQL operation that I use to read data and results to a record map. But seems to have trouble saving the objects to a record map as I get this message ERROR ErrException: zInsertObject+2^%Library.RelationshipObject.1 -- logged as '-' number - @'' please help here is my code let me know if I missing anything thank you in advance #ObjectScript #SQL #Ensemble 0 2 0 670
Question Thembelani Mlalazi · Mar 16, 2018 Sql result set to a %Stream I am trying to read data from MySQL Server 2012 to a stream and I keep getting an error here is my code so far ERROR #Business Operation #Databases #Object Data Model #ODBC #Ensemble 0 3 0 770
Question Thembelani Mlalazi · Mar 13, 2018 SqloutBound Adapter with Output to File Hi guys have an operation that I would like to write the results from the results set to a csv file but have been struggling to get it to work here is my code so far and also here is the error that I get when I try to test this operation using the testing on the ensemble error: #Ensemble #Business Operation 0 8 0 549
Question Thembelani Mlalazi · Mar 12, 2018 how to use SQL InBound Adapter I have a service that that I would like to use to poll the database table in MySQL server 2012 and get an id to use if the condition is met but have trouble achieving this here is what I have so far any suggestions please. Method OnProcessInput(pInput As EnsLib.SQL.Snapshot, Output pOutput As %RegisteredObject) As %Status { set pRequest=##class(SamsReq).%New() set pRequest.pID=pInput.Get("pID") < set sc=..SendRequestSync("DQTT",pRequest,.pOutput) quit sc } the error that I am getting >} #Ensemble #Business Service #ODBC 0 4 0 795
Question Thembelani Mlalazi · Jan 30, 2018 cache app with google map distance matrix api I am trying to write an application that will take some information on the database make a call to the Google API distance matrix and get the information to use with rest of the application without using the ensemble part of the development is this possible and how can I do my communication with the API from a cache class thanks in advance #API #Coding Guidelines #Object Data Model #REST API #Caché 0 7 0 1.4K
Question Thembelani Mlalazi · Jan 15, 2018 Routing rule condition based on a schema property Is it possible to reference a property on a schema in the routing rule for instance Document.SomeSchema.Property #Business Rules #XML #Ensemble 0 5 0 524
Question Thembelani Mlalazi · Jan 5, 2018 How to use %XML.Node I have read here and tried to use the supplied examples to see what they do but keep on getting error please advice: #Object Data Model #XML #Caché 0 6 0 1K
Question Thembelani Mlalazi · Jan 4, 2018 C# to Cache objects I am trying to achieve this in cache objects I am using 2014.1 here is the original code in C# and would like to convert this to cachehere is my code first c# and cache follows #.NET #Key Value #Object Data Model #XML #Caché 0 8 0 1.4K
Question Thembelani Mlalazi · Dec 20, 2017 Xml how to get the record element Start and end I am trying to read an xml document using %XML.TextReader and that's is all well and l can get my elements values but would like to determine where the next record start on the xml without referring to the document path in essence would like to use the same method to read different xml docs. I would like to know if is there a way or a function that I can use to get the start and end of a record in xml as I would to get the start and end element. #Beginner #Object Data Model #SOAP #XML #Caché 0 6 0 782
Question Thembelani Mlalazi · Dec 12, 2017 ERROR #5003: Not implemented I have a business operation which I want to run an d I keep getting the above error have tried trace and logging every stage but can not figure out why the error comes from I am expecting this service to run everytime it is called hence the implementation so could anyone help out pleaseOperation #Business Operation #Object Data Model #Ensemble 0 3 1 1.6K
Question Thembelani Mlalazi · Dec 7, 2017 Enlib.EDI.XML.Document to XSLT Stylesheet I am trying to transform an Enlib.EDI.XML.Document through aXLT I know how to trans form the xml document through a xlt stylesheet but been trying to get an Enlib.EDI.XML. Document from a procees by creating aoperation that will do the transformation of this to file if this can be done in a process all ideas welcome so far I have come to this and I keep getting an error #Business Operation #Business Process (BPL) #DTL #Object Data Model #XML #Ensemble 0 7 0 902
Question Thembelani Mlalazi · Dec 5, 2017 How to Subtract or Add dates I am trying to age based on a given date and current date here is my code: Property DOB As %Date Method GetAge() As %Integer { if (..DOB="") { set today=0 } else { set today=$ZDate($HOROLOG,2)-$ZDate(..DOB) } write "Today's==="_$ZDate($HOROLOG),! write today return today } #Object Data Model #Caché 0 4 0 2.5K
Question Thembelani Mlalazi · Nov 14, 2017 How to Manipulate XML to Formatted String I am using studio 2015 version which does not have dynamic objects and I need to read xml and convert that to a json I have managed to come close to json string but with little difficulties .I need to be able to identify the root element and specify where to put braces between objects anyone with any idea is welcome he is my code so far #JSON #XML #Caché 1 12 0 1.5K
Question Thembelani Mlalazi · Nov 9, 2017 Is There way to write to a text file direct without Stream I am using a %GlobalStream to create as % stream.Object and writing that to a file but for some reason when I run that on the terminal I get <PARAMETER>zWrite^%Library.GlobalCharacterStream.1 and no file is createdI have tried the following here is my code and still get the same result any help appreciated #Beginner #Object Data Model #Terminal #XML #Caché 0 5 0 3K
Question Thembelani Mlalazi · Nov 6, 2017 Looping through a DTL I have a DTL that reads an xml file and I want transform that to a list of objects but I have a problem looping through my xml as when I try I get the first instance on the xml not the whole XML being transformed. here is my example. Here is the output <s01:WardOccupancy> <s01:WardOccupancy> <Organisation>BYG</Organisation> </s01:WardOccupancy> </s01:WardOccupancy> </msg> from #Ensemble #DTL #XML 0 1 0 689
Question Thembelani Mlalazi · Oct 20, 2017 Record mapper xml to a xml output file I have a batch record mapper that reads a csv file and passes the message to a process that uses the EnsLib.MsgRouter.RoutingEngine and would like to pass the message to an operation that will output that as a XML file but so far been unlucky as the operation that I use , uses the EnsLib.EDI.XML.Operation.FileOperation which only works with the messages("BusinessOperation class for writing XML messages to a file. #Beginner #Business Process (BPL) #DTL #XML #Ensemble 0 2 0 1K