Yuval Golan · Jun 25, 2017 go to post

Hi there

I 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

Yuval Golan · Sep 25, 2016 go to post

Write !!,"******************************"
Write !,"Method: Levels With For Structure"
Write !,"******************************"
Set Sub1=""

Do FLevel1

Do ZOrder

Do EndLevels

Quit
FLevel1
     For  {

           Set Sub1=$O(^Trans(Sub1)) Quit:Sub1=""
           Write !,"Sub1: ",Sub1
            Set Sub2="" Do FLevel2

    }

    Quit
FLevel2
     For  {

             Set Sub2=$O(^Trans(Sub1,Sub2)) Quit:Sub2=""
             Write !," ==> Sub2: ",Sub2
             Set Sub3="" Do FLevel3

     }
     Quit
FLevel3
     For  {

         Set Sub3=$O(^Trans(Sub1,Sub2,Sub3)) Quit:Sub3=""
        Write !," ====> Sub3: ",Sub3
        Set Data=(^Trans(Sub1,Sub2,Sub3))
        Write !," ======>"," Data: ",Data,!
    }

    Quit

ZOrder

    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,!

   Quit

EndLevels

Yuval Golan · Sep 25, 2016 go to post

1. Notice what Eduard wrote: 

          set st = obj.Image.LinkToFile(img)
 

2. Your class is:

Class Quadramed.Chennai Extends %Persistent

and in your imageFile method you have:

obj = ##class(Sam.binary).%New()

maybe this is your problem?

Yuval Golan · Sep 15, 2016 go to post

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()

}