Queries |
Response | |
“Filter gives me no data”
|
We checked with our sample by binding an ODataV4 Adaptor to the Grid and ForeignKey Field dataSource and we did not face any issue while filtering the ForeignKey column.
Find the code example and sample:
Sample:
Try the attached sample and still if you face the same issue confirm the following details.
1. Did you face any exception while filtering?
2. Share the screenshot of a response window of a console page during the POST request of a filtering.
3. Essential Studio Version details.
4. Code example of an controller.
5. If possible, reproduce the issue in the attached sample.
| |
“if there is a way to change the condition of theForeignKey filter to contains instead of startswith” |
Currently we do not have support to change the filter operator for the ForeignKey column. So, we consider this as an improvement and a support incident has been created under your account to track the status of this requirement. Please log on to our support website to check for further updates.
|
<system.web>
<authentication mode="None" />
------------------------------
<httpRuntime targetFramework="4.5" maxUrlLength="2097151" maxQueryStringLength="2097151" />
-----------------------------------
<httpHandlers />
</system.web>
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<security>
<requestFiltering>
<requestLimits maxUrl="2097151" maxQueryString="2097151" />
</requestFiltering>
</security>
-----------------------------------------------------------------------
Controller.cs
public IQueryable<aProdotto> Get(ODataQueryOptions options)
{
ODataValidationSettings c = new ODataValidationSettings();
c.MaxNodeCount = 500;
options.Validate(c);
return db.aProdottoes;
}
} |