go to post Eduard Lebedyuk · Jun 18, 2018 Thank you, Benjamin fixing 1 and 2 helped.About 3, $$$YES and $$$NO are system-supplied macros with values 1 and 0 respectively.
go to post Eduard Lebedyuk · Jun 18, 2018 The problem with HTML is creating templates. Users have LibreOffice or MS Word, so they can easily edit doc, docx, odt, rtf templates but not HTML.Also HTML does not have pages, so printing is not as simple.How did you create HTML templates?Agree with you on placeholders - % example is very simplistic.
go to post Eduard Lebedyuk · Jun 18, 2018 You can reference it as a normal property (which it essentially is).If it's a BO, BS or simple BP: set a = .."name_BO" If it's a BPL process: <trace value='process."name_BO"'/>
go to post Eduard Lebedyuk · Jun 18, 2018 You need first to convert JSON into dynamic object and then create Ens.Request from that. Well, probably a subclass of Ens.Request as it can't hold any data.
go to post Eduard Lebedyuk · Jun 18, 2018 You can access all settings of your BP by just calling them directly, in your case: set a=process."Name_BO" UPD. Let's continue this discussion in your separate question.
go to post Eduard Lebedyuk · Jun 18, 2018 So you want to know the name of a current host from inside of it?Business host has a %ConfigName property which you can access.For example in BPL process you can trace the HostName like this: <trace value="process.%ConfigName"/> And here's the result: In simple BP, BS and BO you can access current HostName with: write ..%CinfigName That said, why do you need to get the name of a current host from inside of it?
go to post Eduard Lebedyuk · Jun 18, 2018 My bad, do %SYSTEM.Process:Terminate(pid) is invalid, only this form is correct: do $SYSTEM.Process.Terminate(pid) Fixed in original comment.
go to post Eduard Lebedyuk · Jun 18, 2018 Solution from @Vitaliy.Serdtsev is simpler and can be called from any namespace do $SYSTEM.Process.Terminate() Additionally user may not have access to %SYS namespace due to security reasons.
go to post Eduard Lebedyuk · Jun 18, 2018 While working, this solution has a drawback of working only in %SYS namespace.
go to post Eduard Lebedyuk · Jun 17, 2018 You need to use set tSC=##class(EnsPortal.Utils).ItemSettings("Production.Name||Item.Name",.settings,.colNames) Where ProductionName is Production class. If ProductionName is not given, then the currently running or last run Production will be used. Item.Name is config name, not class. In your case you can call: set tSC=##class(EnsPortal.Utils).ItemSettings("My.BP.AA",.settings,.colNames) To get the settings of My.BP.AA host. I have not found the function (NameExists) in the documentation Note, that the index "Name" is defined in this class. <Index>Exists is just an automatically generated method that returns a boolean (Passed index value exists). You can read more about autogenerated methods here.
go to post Eduard Lebedyuk · Jun 17, 2018 Some examples with arduino:Weather stationRFID authentication
go to post Eduard Lebedyuk · Jun 15, 2018 Check the answer by @Dmitry Maslennikov, it seems to do precisely what you need.
go to post Eduard Lebedyuk · Jun 14, 2018 Not a solution but as a workaround you can probably check the size of the generated PDF. It should probably be the same and fairly small (as it's an empty report).
go to post Eduard Lebedyuk · Jun 14, 2018 Press F7 in Studio to compile all classes in a current project.In terminal: do $system.OBJ.CompileAll() to compile all classes.
go to post Eduard Lebedyuk · Jun 14, 2018 Everything seems fine.I'd recommend checking with HTTP Debugging proxy what request actually gets sent. Article on that.tl;dr plan:Install Charles proxy (or Fiddler).Start it.Redirect your BO traffic to the proxy port.Check what is actually sent.Alternatively if you can run the BO locally you can modify the outbound adapter to send the request with Test=1 value and check what's sent.
go to post Eduard Lebedyuk · Jun 12, 2018 My advice is not to write your own code, but to use this guide. You don't need to parse CSV manually.