Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
628 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 Reply

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!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...