go to post Yuval Golan · Apr 24, 2018 At the Caché side it was generated as %Date using the link table wizard, through the SMP it worked with to_date when it was %Date and worked also after i changed it to %String.Through terminal couldn't make it work no mater what i tried, not when it is %Date and using $h without to_date nor when it is %String and translating the date to yyyy-mm-dd with or without to_date (at prepare or at execute).I also tried using ##class(Package.SomeClassName).%New() and %Save() and it also return ORA-01861 error ($h when %Date and yyyy-mm-dd when %String).Also %String with %New/Save with "to_string ('"_FormattedDate_"','yyyy-mm-dd')" as the field value returned ORA-01858 error.Don't know the table/field definition/format at the oracle db - hope to get this info soon.
go to post Yuval Golan · Apr 23, 2018 Still not working in the code, at the SMP it worked in every mode Display/Logical/ODBC. isn't the mode affect only on select statements? At the code i set the property back to %Date, and the sql statement and execute without the to_date, at the execute just converted to $h as you mentioned and i'm getting error [Oracle][ODBC][Ora]ORA-01861: literal does not match format string.
go to post Yuval Golan · Apr 22, 2018 According to your code you know the different subscripts and want to continue on the same clientId and you only care for the first 4 subscripts, so try this (running only on the given clientid so no need to check it, and running only on the first 4 subscripts so no need to check if we are beyond the (or on the same) 4th subscript), haven't tested it!!: ; Get log for given 'clientid' ; 'maxlog' records max, starting from given 'date','dek','idx'GetXLog(clientid,date,dek,idx,maxlog) public{ set:maxlog="" maxlog=400 set counter=0 ; ^cxlog("EFRW1000",20161219,2,1,"date")=20161219 ; ;setting the subscripts for their previous subscripts so the next iteration will get to the values you asked for ;if you want to continue after idx and not to repeat idx then comment the next line set idx=$order(^cxlog(clientid,date,dek,idx),-1) set dek=$order(^cxlog(clientid,date,dek),-1) set date=$order(^cxlog(clientid,date),-1) for { quit:counter=maxlog set date=$order(^cxlog(clientid,date)) quit:date="" for { quit:counter=maxlog set dek=$order(^cxlog(clientid,date,dek)) quit:dek="" for { quit:counter=maxlog set idx=$order(^cxlog(clientid,date,dek,idx)) quit:idx="" write idx,! set counter=counter+1 } } } w !}
go to post Yuval Golan · Jan 17, 2018 I meant from the cache client "cube" I can't get to the System Management Portal of the cache server (the cache server isn't running the IIS server and the IIS is accessible only through https).Another clarification: at the moment if I want to get to the SMP (System Management Portal) of this server than I chose the SMP in the cube (right click on the cache cube -> Remote Server Access -> Management Portal -> clicking on the server name I want to connect to) and after the internet browser is opened with the wrong url (http) I change it to https and its working.
go to post Yuval Golan · Jan 17, 2018 If you meant that you want to get the day (name/value) from the date then try $zdate(datevalue,dayformat) where datevalue is in $h format and dayformat is 10 for number of day in week, 11 for short day name, 12 for full day name.check out the docs about $zdate , $zdateh, $systm.sql.datepart for more info about working with dates.
go to post Yuval Golan · Jan 15, 2018 - 'Should we be using percent globals or %SYS/CACHESYS globals to store the global we want accessible between namespaces? 'I will stay with a no answer (look at @Amir Samary comment).- 'Can I explicitly address a global in another namespace/database?'Well -----> Yes you can.check this out:http://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=GGBL_structure#GGBL_str_extrefs
go to post Yuval Golan · Jun 26, 2017 Hi @Nikita SavchenkoThanks for a full install info.I'm using Cache for Windows (x86-64) 2013.1.1 (Build 501_1_13062) Sun Aug 11 2013 23:20:33 EDTStep 1 and 2 are going fine, i'm able to downlad ver 2 beta8, and i'm able to import and compile it on the %SYS namespace.At step 3 i'm getting the login page and after i authenticate i get the Cache WEB Terminal in the title but with an empty body.At step 3 i used IE 11, using the debugger it throw the next error from terminal.js:"{if("undefined"==typeof JSON)throw new Error("Browser does not support html5 local storage. Please, update your browser")}"So i tried step 3 on chrome and now it's better but i get the following error (It's displayed in the body):"WebSocket connection error (ws://servername/%25WebTerminal.Engine.cls). Trying to connect again in 10 seconds...WebSocket connection closed. Code 1006, reson: ." which came from terminal.jsAnd now finally step 3 is working - using chrome and using the port 57772 (instead of 80) i'm getting the prompt to %SYS namespace. Thank you very much.
go to post Yuval Golan · Jun 26, 2017 So, returning to this...What should i do in order to install WebTerminal-2.0.0-beta.7/beta.8 on a Cache 2013.1 server?At what namespace should i import the xml?Should i manualy set a web application? if so - what should i define?
go to post Yuval Golan · Jun 25, 2017 The documentation say that ver 3 and 4 will run on Cache 2014.1+And i need to run it on Cache 2013.1.So, Will v4 work on Cache 2013.1?
go to post Yuval Golan · Jun 25, 2017 Hi thereI just saw the web terminal running on ensemble 2016 , and i'm trying to install it on Cache 2013.1 server.What should i do in order to install WebTerminal-2.0.0-beta.7/beta.8 on a Cache 2013.1 server?At what namespace should i import the xml?Should i manualy set a web application? if so - what should i define? Thanks, Yuval
go to post Yuval Golan · Sep 25, 2016 Write !!,"******************************"Write !,"Method: Levels With For Structure"Write !,"******************************"Set Sub1=""Do FLevel1Do ZOrderDo EndLevelsQuitFLevel1 For { Set Sub1=$O(^Trans(Sub1)) Quit:Sub1="" Write !,"Sub1: ",Sub1 Set Sub2="" Do FLevel2 } QuitFLevel2 For { Set Sub2=$O(^Trans(Sub1,Sub2)) Quit:Sub2="" Write !," ==> Sub2: ",Sub2 Set Sub3="" Do FLevel3 } QuitFLevel3 For { Set Sub3=$O(^Trans(Sub1,Sub2,Sub3)) Quit:Sub3="" Write !," ====> Sub3: ",Sub3 Set Data=(^Trans(Sub1,Sub2,Sub3)) Write !," ======>"," Data: ",Data,! } QuitZOrder Write !!,"******************************" Write !,"Method: ZOrder" Write !,"******************************" Set Global="^Trans" For set Global=$Zo(@Global) Quit:Global="" Do . Set Indent="" . For Sub=1:1:$QL(Global) Do . . Write !,Indent,"Sub",Sub,": ",$QS(Global,Sub) . . Set:Indent="" Indent=">" . . Set Indent="=="_Indent . Set Indent="=="_Indent . Write !,Indent," Data: ",@Global,! QuitEndLevels
go to post Yuval Golan · Sep 25, 2016 1. Notice what Eduard wrote: set st = obj.Image.LinkToFile(img) 2. Your class is:Class Quadramed.Chennai Extends %Persistentand in your imageFile method you have:s obj = ##class(Sam.binary).%New()maybe this is your problem?
go to post Yuval Golan · Sep 15, 2016 Method() is at the object level (the instance of the class) and ClassMethod() is at the class level .Lets say that we have a Car class then:Method PrintCar() { //print the car number}ClassMethod PrintAllCars() { //for each car call it's PrintCar()}