Ihor Venher
Ihor Venher

Reputation: 13

Acumatica open window in new tab

I am trying to open window in new browser tab in Acumatica. It worked few versions ago, but now if i am trying to open window in new tab it don't. I am using following code:

    public PXAction<ARInvoice> ViewRevBatch;
    [PXButton]
    protected virtual void viewRevBatch()
    {
        if (ConnectedBatches.Current != null)
        {
            Batch batch = ConnectedBatches.Current;
            JournalEntry journalentrygraph = PXGraph.CreateInstance<JournalEntry>();
            journalentrygraph.BatchModule.Current = batch;
            throw new PXRedirectRequiredException(journalentrygraph, true, "Journal Entry");
        }
    }

Upvotes: 0

Views: 912

Answers (1)

Ihor Venher
Ihor Venher

Reputation: 13

throw new PXRedirectRequiredException(journalentrygraph, false, "Journal Entry") { Mode = PXBaseRedirectException.WindowMode.New };

Upvotes: 0

Related Questions