Hello,
I'm facing the requirenment, that I have to change the context (datasource) of the document handling button (paper-clip Icon on the top Right of every form).
As far as i understand the button is bound to the main datasource of the form. I need to change it to a "non-main-datasource" in a ListPage. Due to other reasons I could not change the "dataSource" property of the form itself.
In the ListPageInteraction class tried somithing like, but I didn't find any method changing the datasource context:
#SysSystemDefinedButtons
FormCommandButtonControl attachButton;
attachButton= this.control(this.controlId(#SystemDefinedAttachButton)) as FormCommandButtonControl;
attachButton…..
Any ideas on this?
Thanks in Advance
Sebastian