Hey Guys!
Maybe i'm just to unexperienced to solve this issue but in the documentation of Manifest schema reference on https://docs.microsoft.com/en-us/powerapps/developer/component-framework/manifest-schema-reference/property#remarks it says that bound properties can be changed. To be precise it says: "an entity attribute that the component can change (bound) or read-only values (input)".
So from my understanding it should be possible and intendened to update the value of a CRM field that has a custom control on top of it.
I created a custom control for a two option set. Instead of the normal Yes/No thing it should show a star image. This star turns yellow for true and white for false.
So far I got everything working BUT my problem is, that even when I execute
this._context.parameters.<parameterName>.raw = true; the underlying field does not get changed.
I am googling my *** of for two days now but I only find solutions where the creator uses Xrm.Page.getAttribute().setValue() to archieve this but I don't want to use this because Xrm.Page will be deprecated at some point in the near future. I tried to implement the formContext in my script but I dont get the executionContext in my index.ts so it seems this is also not an option.
If this is the inteneded behavior for custom controls i find it very weak because from my understanding it should be logical to easily change the value of the underlying field with simply changing the value of the bound parameter.
I could post some code if necessary, but maybe someone already understands my problem and can point me in the right direction.
Thanks in advance,
greetings from Germany