Quantcast
Channel: All Developer posts
Viewing all articles
Browse latest Browse all 48706

Re: How to define dataViewMappings for multiple tables?

$
0
0



 

Yep, my original custom view works and produces one dataView.  Original code is shown below:

 

"dataRoles": [
   {
      "displayName": "Foo",
      "name": "foo",
      "kind": 2
   },
   {
      "displayName": "Bar",
      "name": "bar",
      "kind": 2
   }
],

 

"dataViewMappings": [
   {
      "conditions": [
           { "foo": { "max": 1 }, "bar": { "max": 1 } }
      ],
      "table": {
          "rows": {
             "select": [
                 { "for": { "in": "foo" } },
                 { "for": { "in": "bar" } }
             ],
             "dataReductionAlgorithm": { "top": { "count": 16000 } }
         },
         "rowCount": { "preferred": { "min": 2, "max": 16000 }, "supported": { "min": 1, "max": 20000 } }
      }
   }
]


Viewing all articles
Browse latest Browse all 48706

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>