Are aggregate models available in mobile?

  • 2
  • Question
  • Updated 3 years ago
  • Answered
I feel like I'm missing something. Are aggregate models not available on mobile?

Thanks in advance!
Photo of Gary Bailey

Gary Bailey

  • 1,628 Points 1k badge 2x thumb
  • like I'm missing something obvious

Posted 4 years ago

  • 2
Photo of Zach McElrath

Zach McElrath, Employee

  • 49,056 Points 20k badge 2x thumb
Hi Greg, Aggregate Models are currently not available through the Mobile Composer.
Photo of Gregg Baxter

Gregg Baxter, Official Rep

  • 3,080 Points 3k badge 2x thumb
Aggregate models are not available in Mobile Composer yet.  So I was wondering what would be the best method to aggregate my data from a model using the Mobile Composer?
Photo of Adam Sellers

Adam Sellers

  • 100 Points 100 badge 2x thumb
Has this been addressed with the Banzai release? 
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
Sadly, it has not. 
Photo of Gregg Baxter

Gregg Baxter, Official Rep

  • 3,080 Points 3k badge 2x thumb
Workaround:

Build a desktop page with the aggregate model you require then view the page XML and copy the section 

<model id="HoursActAgg" limit="" query="true" createrowifnonefound="false" adapter="" type="aggregate" sobject="Hour_Track__c" doclone="">         <fields>
            <field id="Hours_Calc__c" name="sumHoursCalcc" function="SUM"/>
         </fields>
         <conditions>
            <condition type="fieldvalue" value="" enclosevalueinquotes="true" field="SOW_Item__c" state="filterableoff" inactive="true" name="SOW_Item__c"/>
         </conditions>
         <actions/>
         <groupby method="simple"/>
      </model>

and paste into the XML of your mobile page and hey presto you have an aggregate model in Mobile Page Builder!
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
I like the way you think Gregg
Photo of Gregg Baxter

Gregg Baxter, Official Rep

  • 3,080 Points 3k badge 2x thumb
Team effort. Thanks Pat & David for the push!