Open datastore: access REST server enable methods?

So, let’s say

  • In Database AA I have a method that has the REST server attribute enabled.
  • and in Database BB, I uses “Open datastore” to connect to database AA.

How do I access/call my remote method?

Example:
$remoteDS:=Open datastore($MyConnectTo;$MyLocalID_t)
$it:=$remoteDS.SomeTable.MyMethod(“SomeParameter”) ?
or
$it:=$remoteDS.SomeTable.all()[0].MyMethod(“SomeParameter”) ?

Hi Tony,

You can’t do that with 4D code related to the datastore object obtained with Open datastore.

But you can with the REST Server (https://developer.4d.com/docs/en/REST/{dataClass}.html#dataclassmethod)