go to post George James · Feb 3, 2022 Sadly, this solution doesn't quite work for negative unpaired integers. For example "1,-1,-2"
go to post George James · Feb 2, 2022 Or s y=$lfs(o) f i=1:1 ret:'$lf(y,i)+'$lf(y,-i)=1 i ...but this still only returns the absolute value, so not a valid solution either.
go to post George James · Feb 2, 2022 I think the problem as stated implies that there will always be at least one unpaired number: "... except for one integer that is either only negative or only positive"
go to post George James · Feb 2, 2022 Of course, this solution does not implement the rule "The only-positive or only-negative integer may appear more than once" :(
go to post George James · Jan 26, 2022 Hi Con Actually, xsl-fo has it's own way of styling so what I suggested, which would work for html, probably isn't applicable for xsl-fo. George
go to post George James · Jan 26, 2022 Hi Sreevani In ObjectScript you can include a double-quote character inside a quoted string by doubling it up. set teststr ="<book id=""bk105""><author type=""old"">Corets, Eva</author><title>The Sundered Grail</title><genre>Fantasy</genre></book>" Since in this example, your string clearly contains html you might find that using single-quotes inside your string would be cleaner and easier to read, making it more maintainable: set teststr ="<book id='bk105'><author type='old'>Corets, Eva</author><title>The Sundered Grail</title><genre>Fantasy</genre></book>" George
go to post George James · Jan 26, 2022 Hi Con I think your problem might be that background-image and background-repeat are CSS properties, not HTML attributes. Color works because it is an HTML attribute (although you should use the CSS style property for this as well these days). Try: <xsl:if test="$Value = 400"> <xsl:attribute name='style'>background-image: url("images/trash-icon.png"); background-repeat: no-repeat;</xsl:attribute> <xsl:attribute name='color'>#ffffff</xsl:attribute></xsl:if> If that works then you might want to consider using a class attribute to reference a stylesheet rather than including a style attribute directly, but that's another matter. George
go to post George James · Nov 26, 2021 The Video is now available at https://www.youtube.com/watch?v=OjdXmtd6E_M You use the VS Code REST Client extension to make the requests and to debug you simple click on the Debug with Serenji code lens.
go to post George James · Sep 4, 2021 The basic VS Code extension for ObjectScript doesn't manage deletions at all. You have to manually delete them on the server. You can however use the Serenji extension which does manage deletions properly. You can read more about it here: https://georgejames.com/serenji or just install it from the VS Code marketplace.
go to post George James · Aug 25, 2021 Arvind You might want to take a look at Detanji https://www.georgejames.com/deltanji for source control in place of TFVC. It is more seamless with IRIS and integrates closely with VS Code and the IRIS Management Portal.
go to post George James · Aug 25, 2021 Deltanji https://www.georgejames.com/deltanji can take care of this for you. With Deltanji you can change the DTL either in the Management Portal or in VS Code, or both. And you'll get a lot of other benefits if you upgrade your git repository to Deltanji.
go to post George James · Jun 23, 2021 Hi Alexey It sounds like writing a simple VS Code Extension would be the right solution for this requirement. We would be able to help you with this if you don't have the appropriate skills. George
go to post George James · Jun 17, 2021 Muhammad The VS Code ecosystem for Objectscript is evolving fast. And because it is community driven there is plenty of choice of extensions. If you are likely to be working with more than one IRIS server then you should check out the InterSystems Server Manager extension. And for code editing you have a choice of the basic vscode-objectscript or Serenji. Then for debugging there is some support in the vscode-objectscript extension or you can purchase the premium debugger option for Serenji. But as Nigel says, check out the VS Code market place, there are quite a number of interesting and useful extensions to choose from depending on your needs. George
go to post George James · Jun 15, 2021 Evgenli When a label begins with % it is often a sign that it is something that has been generated as part of the class compilation process. In this case %Construct is the generated constructor code for the class. More specifically, if any property in your class definition has an initial value specification then the %Construct code will be generated in your .int routine and will initialise the values of these properties. By default, the .int code for the class %DeepSee.ResultSet.cls will not be present on your system, but you can create it by recompiling this class with the k flag which indicates that .int code should be kept. Do Compile^%apiOBJ("%DeepSee.ResultSet","k") Once you have re-compiled this class then you should be able to inspect the .int code and locate the line that is responsible for your <PROTECT> error.
go to post George James · Jun 7, 2021 Have you looked at PDFbox? https://pdfbox.apache.org/ Alternatively, if the pdfs are of your own making then the best solution would be to merge the xml content before you use fop to create the pdf document.
go to post George James · May 26, 2021 Adel Do you need something more than simply attaching a debugger to the process and stepping through the code? With the Serenji debugger you have precise control over stepping into or over blocks of code and you can mask out library code that you already know about (or don't want to know about).
go to post George James · May 21, 2021 Hi Mike Nice example of recursion. However, you might want to try testing your solution with some non-sanitized input. For example: set maliciousInput="""_$xecute(""h"")_""" set in(maliciousInput)="" set in(maliciousInput,1)="" set out=..Flatten(in)
go to post George James · Apr 21, 2021 Do you have a multi-rooted Workspace? Currently gj :: locate only works on the first top-level folder in a workspace (multi-folder capability coming soon). What is the first top-level folder in your workspace? Is it a folder on your local file system or a remote connection to an IRIS server using isfs or isfs-readonly? If it's a local folder, have you exported all of your source files?