-
Notifications
You must be signed in to change notification settings - Fork 41
Unable to get global data using the XML-RPC API #580
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
As far as I can tell it is also not possible to write serial or global data with XML-RPC |
Would also like this feature |
To solve this problem, we can add a new function in remote.php that exposes the schema metadata and its entries along with the IDs |
@jorgemarti Thanks |
File AccessTable.php line 412 function getDataArray(). this function is not quite right. its subquently being called in helper.php by the getData function on line 65. this function is returning an Array of this kind: `Array )` in getDataArray function. there is this call: $data = $this->getDataFromDB(); which inturn calls [$sql, $opt] = $this->buildGetDataSQL($idColumn); that builds the query that return the empty values. I might need some help understanding the querying mechanism so that I can make a substantial PR for this. |
This PR fixes this issue: Example of how to get this data in python:
|
I have defined a series of schemas to store global data, and I'm trying to access data using the XML-RPC API using cURL.
I am able to get the schema definition with the following request:
The response is as follows:
However if I try to get the global data on that schema, I get a meaningless response:
Post data:
Response:
As you can see, no values are returned, only column names.
Probably not important, but all cURL calls are made as as follows:
Any ideas? Many thanks for your feedback.
The text was updated successfully, but these errors were encountered: