Solved TD-24026: SalJSON: keyword 'this' not working using SalJSONSerializeUDV

Report bugs and possible workarounds.
Dave Rabelink
Founder/Site Admin
Founder/Site Admin
Netherlands
Posts: 1112
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

TD-24026: SalJSON: keyword 'this' not working using SalJSONSerializeUDV

Post by Dave Rabelink » 07 May 2018, 07:39

The this keyword can be used in a class to deserialize JSON string to udv.

But it can not be used when serializing udv to JSON string.

To create classes which are able to convert its data between udv and JSON strings the this keyword must be working for both SalJSON functions.

See testcase.

JSON_This_Issue.zip

3 buttons:
1) ToJSON -> this
This fails. It tries to create a JSON string from the udv data.
2) ToJSON -> workaround.
It will first make a copy of the udv into a local variable. This local variable is then passed to the SalJSON function which works.
3) FromJSON -> this
This works ok. The this keyword can be used.


This issue has been registered as Ticket 3752520
TD defect number:

TD-24026: SalJSONSerializeUDV() fails in returning false when using the 'this' keyword for the sObjectName parameter of the function
You do not have the required permissions to view the files attached to this post.
Regards,
Dave Rabelink

Image
Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel

Dave Rabelink
Founder/Site Admin
Founder/Site Admin
Netherlands
Posts: 1112
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

Re: TD-24026: SalJSON: keyword 'this' not working using SalJSONSerializeUDV

Post by Dave Rabelink » 15 Nov 2018, 18:56

Fixed in TD 7.1.1
Regards,
Dave Rabelink

Image
Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel

Return to “Bug Reports”

Who is online

Users browsing this forum: [Ccbot] and 1 guest