A Form has dataSource A and a split pane. The split forms right form is attached with a relation (A_to_B). After hiding the form (displaying an other form), I receive the following error:
ERROR org.sablo.websocket.WebsocketEndpoint - Error: illegal value 'FoundSet[Table:B,Size: 13,CachedRecords: 13,SELECTED INDEX: 0]' to set on the foundset property with foundsetSelector/datasource: , foundset is either pinned to form's foundset or to a related foundset myFoundset java.lang.RuntimeException: illegal value 'FoundSet[Table:B,Size: 13,CachedRecords: 13,SELECTED INDEX: 0]' to set on the foundset property with foundsetSelector/datasource: , foundset is either pinned to form's foundset or to a related foundset myFoundset.
The error is fixed already (https://support.servoy.com/browse/SVY-17244) in NGGrids (I guess you have a grid in the form that is hidding) - and it will be in the next release, 2022.6.2. The error doesn’t influence the code execution, it’s a cleanup code that does not work well - so beside seeing that error, your code should work just fine.