XML property not assignable to DatasetModel

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

XML property not assignable to DatasetModel

Post 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 2202 times
Documentation states that allowed values for dataset model are as follows: XML, JDF, XMP, Opaque
mkayyyy
Member
Posts: 75
Joined: Mon Nov 21, 2016 6:31 pm
Location: UK

Re: XML property not assignable to DatasetModel

Post 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)
carlTI5
Newbie
Posts: 7
Joined: Wed Aug 18, 2021 11:41 am

Re: XML property not assignable to DatasetModel

Post by carlTI5 »

Thanks for the note on this.
Post Reply