Home Applications snipforge

snipforge

InterSystems does not provide technical support for this project. Please contact its developer for the technical assistance.
0
0 reviews
0
Awards
95
Views
0
IPM installs
0
0
Details
Releases (1)
Reviews
Issues
Visual Studio Code - Extension SnipForge

What's new in this version

Initial Release

SnipForge

alt text

This extension provide some snippets of the code Intersystems IRIS for you.

Use Ctrl + Space in your classes (objectscript) for view help codes.

Generate test

  • When selecting a Method, a “Forge Test” option is available in the right-click menu.
start-test
  • In the class where you want to apply the method for testing, right-click and select “Paste Forge Test”.
start-test

XData

  • XData Map for message mapping.
  • XData Url for message mapping.

Route

  • Create a new route map for XData.
  • Create a new route URL for XData.

ListOfDataTypes

Create a new instance of %Library.ListOfDataTypes.

DynamicArray

Create a new instance of %Library.DynamicArray.

DynamicObject

Create a new instance of %Library.DynamicObject.

SQL Statement

Prepare and execute a SQL statement.

While

  • Iterate through SQL result set.
  • Iterate through an array using an iterator.

SQL

Define SQL table structure.

Throw

Throw an error with a specific status code and message.

TryCatch

Handle exceptions in a try-catch block.

System

Get error text from status code.

Class

  • Save an instance.
  • Check if an instance exist.
  • Open an instance by index.
  • Open an instance by ID.
  • Create a new instance.

Parse

  • Parse string from JSON to array.
  • Parse string from JSON to object.

Header

GET request header.

Param

GET request parameter.

$$$ERROR

Create error with arguments.

$$$FormatMessage

Get localized message with args.

$$$FormatTextHTML

Replace and escape HTML.

$$$FormatTextJS

Replace and escape JavaScript.

$$$GETERRORCODE

Get error code.

$$$GETERRORMESSAGE

Get part of error message.

$$$ISERR

True if status is error.

$$$ISOK

True if status is OK.

$$$LOWER

Convert to lowercase.

$$$OK

Success status.

$$$Text

Localized runtime message.

$$$TextHTML

Localized HTML-escaped message.

$$$TextJS

Localized JS-escaped message.

$$$ThrowOnError

Throw if error.

$$$THROWONERROR

Throw if expression errors.

$$$ThrowSQLCODE

Throw SQL exception.

$$$ThrowSQLIfError

Throw if SQL error.

$$$ThrowStatus

Throw given status.

$$$UPPER

Convert to uppercase.

Version
1.1.027 Jul, 2025
Ideas portal
Category
Developer Environment
Works with
InterSystems IRIS
First published
27 Jul, 2025
Last edited
27 Jul, 2025
Last checked by moderator
29 Nov, 2025Works