Pass View to method in Acumatica

Viewed 57

I ran into such a problem today that I cannot pass the View to the method.

I doing all this in order to get rid of the numerous dubbing code.

For example, I will show how I see it and if there is such the ability to pass to the method, then how to implement it the ability to pass to the method

error when passing to the method

how can I fix this problem?

1 Answers

Try this and see if it gets you anywhere.

public class Test
{
    private SelectFrom<Account>.View testView;

   

    public void Test()
    {
        Method1(testView.View);
        Method2(testView);
    }

    public void Method1(PXView test)
    {

        
    }

    private void Method2(FbqlSelect<SelectFromBase<Account,TypeArrayOf<IFbqlJoin>.Empty>, Account>.View view)
    {
        var current = view.Current;
    }
}
Related