Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Can you add metadata to RestDatasource request?

$
0
0
SmartClient V91d

I am using the restdatasource to connect with a custom backend server.

Currently this data is sent to the server on a fetch request
Code:

{
    "dataSource":"Contact",
    "operationType":"fetch",
    "startRow":0,
    "endRow":75,
    "textMatchStyle":"substring",
    "componentId":"contactsList",
    "data":{
    },
    "oldValues":null
}

I would like to add a meta data property like tableName how can you do this?

I know how to add data to the dsRequest.data section in the transform request but not the metadata section.

Also the RestDataSource has a property for tableName or beanClass, ect which would be fine to use but even when setting these props they are not sent to the server. I tried setting server type to "sql" even though I am not using SmartClient Server just to force the tableName prop to be sent, but it wasn't.

Thanks,

Dan

Viewing all articles
Browse latest Browse all 4756

Trending Articles