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?

$remoteDS:=Open datastore($MyConnectTo;$MyLocalID_t)
$it:=$remoteDS.SomeTable.MyMethod(“SomeParameter”) ?
$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 ({dataClass}.html#dataclassmethod)