Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
635 views
in Technique[技术] by (71.8m points)

acumatica - Changing the height/width when calling another graph as an in-page popup using PXPopupRedirectException

We added a button via a graph extension to the sales order page. When we click this new button (based on selected detail row) we call a PXPopupRedirectException calling another graph to represent the popup panel. The problem we have is the default size is very small. We would like to have the width of the popup panel/graph be 100% of the parent page if possible.

The call in our button uses this...

throw new PXPopupRedirectException(graph, string.Empty, true);

From the screen shot below you can see how small the panel opens. What can we do by default to get the panel to auto fit the full size of the parent area as outlined in the red box? If we open the graph as a standard new tab/page then it looks fine.

Screen shot of my issue with panel size

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Here's the current default fix: You can set the size of a popup window in the code-behind of the screen using your graph:

public partial class Page_CR301000 : PX.Web.UI.PXPage
{
    protected void Page_Init(object sender, EventArgs e)
    {
        Master.PopupHeight = 700;
        Master.PopupWidth = 900;
    }
}

Unfortunately, the sizes can't be set as percentages of the parent screen width using this method.

Could you please describe your scenario and detail requirements? We might be able to give our popups a little more flexiblility. Thanks!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...