Custom ZenProxy

Downloads1
Subscribe
0
Bookmark
0
This application is not supported by InterSystems Corporation. Please be notified that you use it at your own responsibility.
Details
Releases
Reviews
Issues
Articles

What's new in this version

Add ZPM package

CustomZenProxy

Customization of ZenProxy Intersystems to be enable to send numeric attributes in String format.

Just donwload an import XML files of src folder.

#EXAMPLE:

#CODE:

ClassMethod testJson() As %Status { #Dim objectA As %ZEN.proxyObject Set objectA=##class(%ZEN.proxyObject).%New()

Set objetoB=##class(%ZEN.proxyObject).%New()
Set objetoB.phone2=961365378
Set objetoB.name="Dani"
Set objectA.objetoB=objetoB
Set objectA.phone=964121214
u 0 w "NORMAL",!

Do objectA.%ToJSON()

U 0 W "",!,!

u 0 w "WITH PARAMETER",!
Do objectA.%ToJSON(,"aelotwux")

U 0 W "",!,!

u 0 w "WITH PARAMETRO AND EXCLUDED",!
Do objectA.excludeStringformat.Insert("phone")
Do objectA.%ToJSON(,"aelotwux")

U 0 W "",!,!

u 0 w "WITH FORCED LIST",!
Do objectA.forceStringFormat.Insert("phone")
Do objectA.%ToJSON()

}

 

#RESULT:

NORMAL { "objetoB": { "name":"Dani", "phone2":961365378 }, "phone":964121214 }

WITH PARAMETER { "objetoB": { "name":"Dani", "phone2":"961365378" }, "phone":"964121214" }

WITH PARAMETRO AND EXCLUDED { "objetoB": { "name":"Dani", "phone2":"961365378" }, "phone":964121214 }

WITH FORCED LIST { "objetoB": { "name":"Dani", "phone2":961365378 }, "phone":"964121214" }

IPM installation
zpm "install custom-zen-proxy"
Rating
3 (1)
Category
Integration
Works with
InterSystems IRISInterSystems IRIS for HealthCaché
Tags
Info
Version
1.0.1
Last updated
2023-03-21
Repository
Open
License
Link