Hi Dojo,
For debugging purposes I want to generate the (raw)view of a DOM Instance like it is done in the Client Test Tool. Does the DOM framework contains such a method or do I need to write it myself?
Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 28th November 2023
Hi Jens, for debugging purposes you could serialize the object to a JSON string and log that.
Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 28th November 2023
Hi Jens,
There is unfortunately no built-in method that will generate a string representation of a DOM instance. You will have to loop over the Sections & FieldValues and build it using a StringBuilder.
Thomas Ghysbrecht [SLC] [DevOps Enabler] Answered question 27th November 2023
This is probably the easiest way. You can just use the ‘ToJson()’ method on the DomInstance.