Best method for Filtered View

  • 26 September 2023
  • 4 replies

Userlevel 3
Badge +1

When in the mobile app I would like the Tasks data view in ProjectEntry to show a filtered list of tasks, but when viewed elsewhere show the full list.

I am looking for a recommendation on how to do this.

My concern is that if I modify or override the Tasks data view, then other dependent ACU code will break. Should I create a new FilteredTasks data view using a projection? Or am I missing a better option? 




Best answer by Zoltan Febert 27 September 2023, 02:54

View original

4 replies

Badge +11

I’m not aware of a way to provide an alternative experience of the same view in the mobile app vs web. I’m definitely not saying it’s not possible, but I wouldn’t know where to begin.

The only thing I can think of (which would be a lot of work, I think) would be to somehow duplicate the screen and make the modification to the duplicate screen and then customize the app to remove the original screen and replace it with the duplicated and customized screen.

The same thing could possibly be accomplished at the tab level, but I have very little experience doing this type of thing.

Hopefully someone else has a better idea.

Userlevel 6
Badge +3

PXGraph has an IsMobile property, you can check in in your dataview override.


if (Base.IsMobile)
//return filtered data
//return everything


Badge +11

PXGraph has an IsMobile property

Oh sweet 😎

Userlevel 3
Badge +1

Okay, This worked for me


        [PXFilterable(new Type[] { })]
        [PXCopyPasteHiddenFields(new Type[]
        public PXSelect<PMTask, Where<PMTask.projectID, Equal<Current<PMProject.contractID>>>> Tasks;
        public virtual IEnumerable tasks()
            PXSelectBase<PMTask> sel = new PXSelect<PMTask, Where<PMTask.projectID, Equal<Current<PMProject.contractID>>>>(Base);

            if (Base.IsMobile)
                sel.WhereAnd<Where<PMTask_Ext.usrConstructionTask, Equal<True>>>();
            return sel.Select();


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved