Page 1 of 1

XML property not assignable to DatasetModel

Posted: Wed Nov 24, 2021 9:29 am
by carlTI5
A per the title of the topic I have a question as to why VS Code indicates to me that the property XML is not assignable to DatasetModel?

I have attached a screenshot of this error:
Not assignable error
Not assignable error
QUESTION.png (237.54 KiB) Viewed 2736 times
Documentation states that allowed values for dataset model are as follows: XML, JDF, XMP, Opaque

Re: XML property not assignable to DatasetModel

Posted: Wed Nov 24, 2021 9:36 am
by mkayyyy
The createDataset method takes in an enumeration (https://www.enfocus.com/manuals/Develop ... model.html) for the model parameter.

That line should be:

Code: Select all

await xmlChildData.createDataset(xmlDataSetName, xmlTmpPath, DatasetModel.XML)

Re: XML property not assignable to DatasetModel

Posted: Fri Nov 26, 2021 8:51 am
by carlTI5
Thanks for the note on this.