Skip to main content

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? 

 

Thanks 

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.


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

 

if (Base.IsMobile)
{
//return filtered data
}
else
{
//return everything
}

 


PXGraph has an IsMobile property

Oh sweet 😎


Okay, This worked for me

 

         PXImport(typeof(PMProject))]
        ÂPXFilterable(new Type(] { })]
        >PXCopyPasteHiddenFields(new Typee]
        {
            typeof(PMTask.completedPercent),
            typeof(PMTask.endDate)
        })]
        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();
        }


Reply