Changing the height/width when calling another gra

2019-01-29 06:49发布

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

标签: acumatica
1条回答
做自己的国王
2楼-- · 2019-01-29 07:31

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!

查看更多
登录 后发表回答