-->

Changing the height/width when calling another gra

2019-01-29 06:59发布

问题:

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.

回答1:

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!



标签: acumatica