I've implemented a PCF Control for an Optionset attribute: https://github.com/ORBISAG/ORBIS.PCF.ColorfulOptionset
I try to use it in a CanvasApp. I've imported the Control in my CanvasApp and I've seen that for the bounded property that I've defined in the manifest (optionsInput)
<property name="optionsInput" display-name-key="Property_Display_Key" description-key="Property_Desc_Key" of-type="OptionSet" usage="bound" required="true" />
i become two properties in the CanvasApp : optionsInput and optionsInput_Options.
I've figured out how to fill the options (by setting optionsInput_Options using Choices function).
But I don't know how to set the value for optionsInput.
So my PCF control gets all the options
context.parameters.optionsInput.attributes!.Options;
BUT the value is always empty.
context.parameters.optionsInput.raw;
This is my CanvasApp designer:
