I need to query a non spatial table offline that is in my mobile map package. Here is what I do online and it works
THIS is what I do online and want to do the same offline. I basically do the below to find my query layers and tables to use later on
<SPAN class="keyword token">for</SPAN> <SPAN class="punctuation token">(</SPAN><SPAN class="keyword token">var</SPAN> i <SPAN class="operator token">=</SPAN> <SPAN class="number token">0</SPAN><SPAN class="punctuation token">;</SPAN> i <SPAN class="operator token"><</SPAN> map<SPAN class="punctuation token">.</SPAN>operationalLayers<SPAN class="punctuation token">.</SPAN>count<SPAN class="punctuation token">;</SPAN> i<SPAN class="operator token">++</SPAN><SPAN class="punctuation token">)</SPAN> <SPAN class="punctuation token">{</SPAN>
<SPAN class="comment token">//DO SOMETHING ONLINE</SPAN>
<SPAN class="punctuation token">}</SPAN>
<SPAN class="keyword token">for</SPAN> <SPAN class="punctuation token">(</SPAN><SPAN class="keyword token">var</SPAN> y <SPAN class="operator token">=</SPAN> <SPAN class="number token">0</SPAN><SPAN class="punctuation token">;</SPAN> y <SPAN class="operator token"><</SPAN> map<SPAN class="punctuation token">.</SPAN>tables<SPAN class="punctuation token">.</SPAN>count<SPAN class="punctuation token">;</SPAN> y<SPAN class="operator token">++</SPAN><SPAN class="punctuation token">)</SPAN>
<SPAN class="punctuation token">{</SPAN>
<SPAN class="comment token">//DO SOMETHING WITH THE TABLE ONLINE</SPAN>
<SPAN class="punctuation token">}</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>Here is the Offline code after I just went offline and everything downloaded to my device with the mobile map package. No tables are returned when one should be returned as it does when online.
<SPAN class="comment token">//This works for the operational layers and 2 are returned as expected</SPAN>
<SPAN class="keyword token">var</SPAN> operationalLayers <SPAN class="operator token">=</SPAN> offlineMapJob<SPAN class="punctuation token">.</SPAN>result<SPAN class="punctuation token">.</SPAN>mobileMapPackage<SPAN class="punctuation token">.</SPAN>maps<SPAN class="punctuation token">[</SPAN><SPAN class="number token">0</SPAN><SPAN class="punctuation token">]</SPAN><SPAN class="punctuation token">.</SPAN>operationalLayers
<SPAN class="keyword token">for</SPAN> <SPAN class="punctuation token">(</SPAN><SPAN class="keyword token">var</SPAN> i <SPAN class="operator token">=</SPAN> <SPAN class="number token">0</SPAN><SPAN class="punctuation token">;</SPAN> i <SPAN class="operator token"><</SPAN> operationalLayers<SPAN class="punctuation token">.</SPAN>count<SPAN class="punctuation token">;</SPAN> i<SPAN class="operator token">++</SPAN><SPAN class="punctuation token">)</SPAN> <SPAN class="punctuation token">{</SPAN>
<SPAN class="comment token">//DO SOMETHING OFFLINE</SPAN>
<SPAN class="punctuation token">}</SPAN>
<SPAN class="comment token">//No tables are returned?? It should be one</SPAN>
<SPAN class="keyword token">var</SPAN> tableLayers <SPAN class="operator token">=</SPAN> offlineMapJob<SPAN class="punctuation token">.</SPAN>result<SPAN class="punctuation token">.</SPAN>mobileMapPackage<SPAN class="punctuation token">.</SPAN>maps<SPAN class="punctuation token">[</SPAN><SPAN class="number token">0</SPAN><SPAN class="punctuation token">]</SPAN><SPAN class="punctuation token">.</SPAN>tables
console<SPAN class="punctuation token">.</SPAN><SPAN class="token function">log</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="string token">"TakeOfflinePage - tableLayers.count :"</SPAN><SPAN class="punctuation token">,</SPAN> tableLayers<SPAN class="punctuation token">.</SPAN>count <SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
<SPAN class="keyword token">for</SPAN> <SPAN class="punctuation token">(</SPAN><SPAN class="keyword token">var</SPAN> y <SPAN class="operator token">=</SPAN> <SPAN class="number token">0</SPAN><SPAN class="punctuation token">;</SPAN> y <SPAN class="operator token"><</SPAN> tableLayers<SPAN class="punctuation token">.</SPAN>count<SPAN class="punctuation token">;</SPAN> y<SPAN class="operator token">++</SPAN><SPAN class="punctuation token">)</SPAN>
<SPAN class="punctuation token">{</SPAN>
<SPAN class="comment token">//DO SOMETHING WITH THE TABLE OFFLINE, Non return however</SPAN>
<SPAN class="punctuation token">}</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>I feel this might have something to do with my generate offline map parameters, but I have tried all variations including
parameters.DestinationTableRowFilter = Enums.DestinationTableRowFilterAll
I just need to know how to make the tables download along with the operational layers