XML property not assignable to DatasetModel

Post Reply
carlTI5
Newbie
Posts: 2
Joined: Wed Aug 18, 2021 11:41 am

XML property not assignable to DatasetModel

Post by carlTI5 » Wed Nov 24, 2021 9:29 am

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:
QUESTION.png
Not assignable error
QUESTION.png (237.54 KiB) Viewed 174 times
Documentation states that allowed values for dataset model are as follows: XML, JDF, XMP, Opaque

mkayyyy
Member
Posts: 39
Joined: Mon Nov 21, 2016 6:31 pm
Location: UK

Re: XML property not assignable to DatasetModel

Post by mkayyyy » Wed Nov 24, 2021 9:36 am

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)

carlTI5
Newbie
Posts: 2
Joined: Wed Aug 18, 2021 11:41 am

Re: XML property not assignable to DatasetModel

Post by carlTI5 » Fri Nov 26, 2021 8:51 am

Thanks for the note on this.

Post Reply