Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Problem with jsonFilter.propsToKeep and OperationBindings.outputs in 8.0

    Hi there,

    I am stuck in my evaluation of 8.0 because our functionality that utilizes jsonFilter.propsToKeep works fine in 6.5.1 but is now broken in 8.0.

    Here is how it works in 6.5.1:

    Code:
    FundAssetDTO (apply jsonFilter and propsToKeep to the top level object)
        fundAssetID
        currentShares
        AssetDTO (apply jsonFilter but no propsToKeep to this child object)
    In 6.5.1, we are able to filter the top level FundAssetDTO using propsToKeep and that causes no filtering on the AssetDTO child object. However, in 8.0, it now filters AssetDTO.

    First option would be for you to change this behavior or allow us to control it via some flag? I discussed this with Charles a few months ago and he said you were going to revert back to the non-recursive behavior like 6.5.1. But, now that I'm evaluating 8.0, it is still filtering down to the child objects.

    So, in an attempt to get this to work, I tried applying propsToKeep to the AssetDTO. However, it is not honoring those propsToKeep and is still filtering to only allow properties defined in the propsToKeep on the top level FundAssetDTO.

    My final attempt was to try the new operationBindings.outputs property that is available in 8.0 at Charles' suggestion. So, I defined my DS like this and I'm still not able to deliver the fields defined in the "outputs" below to the client:

    Code:
    <!--
    <%@ taglib uri="/WEB-INF/spring.tld" prefix="spring"  %>
    -->
    
    <DataSource xmlns:spring="urn:jsptld:/WEB-INF/spring.tld" ID="Asset"  dataURL="smartclient.form">
    <operationBindings>
    <operationBinding operationType="fetch" >
    
    	<outputs>lsTimeLastTrade,currencyCode</outputs>
    
    </operationBinding>
    </operationBindings>
    <fields>
    
    </fields>
    </DataSource>
    Suggestions on how to do this with 8.0? I'm sort of stuck with my only option being to jam the top level propsToKeep with every single field I want to deliver to the client for all of my objects and I'm not very enthused about that option.
Working...
X