Skip to main content
Question

Map not displaying side-by-side with grid in custom Region tab (Acumatica 2025 R2)

  • February 2, 2026
  • 6 replies
  • 41 views

abhimanyuprajapati52
Freshman I

Hello,

I am working on a customization in Acumatica 2025 R2 and trying to display a Google Map side-by-side with a PXGrid in a custom screen.

Scenario-

Custom screen: JobMaint

Tab: "Regions"

Left side: PXGrid (JobRegion)

Right side: Map (should show selected region address)

Goal: When selecting a row in the grid, the map should update and display the address.

What I Have Done-

Created an unbound DAC field MapHtml in JobRegion.

In RowSelected<JobRegion> event, I generate an iframe:

protected virtual void _(Events.RowSelected<JobRegion> e)
{
    if (e.Row == null)
        return;

    string address =
        $"{e.Row.AddressLine1}, {e.Row.City}, {e.Row.PostalCode}, {e.Row.CountryID}";

    if (string.IsNullOrWhiteSpace(address))
        return;

    string encoded = Uri.EscapeDataString(address);

    string map =
        $"<iframe src='https://maps.google.com/maps?q={encoded}&output=embed' " +
        $"style='width:100%;height:100%;border:0'></iframe>";

    e.Cache.SetValueExt<JobRegion.mapHtml>(e.Row, map);
}


On the ASPX page, I used:

<px:PXFormView
    runat="server"
    ID="frmRegionMap"
    DataSourceID="ds"
    DataMember="Regions">

    <Template>
        <px:PXHtmlView
            runat="server"
            ID="mapView"
            DataField="MapHtml"
            Width="100%"
            Height="400px" />
    </Template>

</px:PXFormView>


Grid has:

SyncPosition="True"
SyncCurrent="True"

Problem-

The map is NOT displaying at all.

No iframe visible.

No JavaScript error.

Console only shows localization warning (404 locale en-US).

Grid selection works.

RowSelected fires (verified in debugger).

Even when hardcoding iframe in ASPX, it does not display.

Questions-

Is PXHtmlView still supported for rendering iframe HTML in 2025 R2?

Is there a security restriction preventing iframe rendering?

Is there a recommended approach in 2025 R2 to show external map content?

Should we use Azure Maps instead of Google Maps?

Is there any CSP or X-Frame-Options restriction blocking embedded maps?

Any guidance or best practice for showing a dynamic map next to a grid in 2025 R2 would be greatly appreciated.

Thank you.

6 replies

Forum|alt.badge.img

  

Hi ​@abhimanyuprajapati52,

Have you tried handling this purely in code, for example by redirecting from the graph constructor like below?

    public PXSetup<SimpleSetup> Records;

public SimpleRecordsMaint() {

if(Records.Current != null) {

throw new PXRedirectToUrlException(Records.Current.Url, PXBaseRedirectException.WindowMode.Same, "Redirect:" + Records.Current.Url);

}
}
}

abhimanyuprajapati52
Freshman I

@VaheGhazaryan 

Thank you for the suggestion.
My requirement is to display the map side-by-side with the PXGrid inside the same screen rather than redirecting the entire page.
I am trying to achieve this via iframe embedding within the tab.


Forum|alt.badge.img

@abhimanyuprajapati52,

I found an answer to a similar question on another platform where this was solved using a redirect-based approach. Please take a look at it — it might help in your case.

https://stackoverflow.com/questions/74674751/how-to-open-a-url-in-iframe-in-accumatica


abhimanyuprajapati52
Freshman I

@VaheGhazaryan,

Thank you for sharing the redirect-based solution.
However, my goal is to render the map alongside the PXGrid inside the same screen rather than replacing the entire main frame.
I am looking for a supported way to embed a dynamic map URL within the tab layout.


Forum|alt.badge.img

@abhimanyuprajapati52,

Could you please show or describe how exactly you would like this to look in the end?
I’d like to better understand your expectation so I can try to help you in the best possible way.


abhimanyuprajapati52
Freshman I

Hi @VaheGhazaryan,

Thank you for your response.

What I’m trying to achieve is the following layout inside the Regions tab of my custom Job screen:

  • On the left side, I have a PXGrid listing job regions (AddressLine1, City, Country, PostalCode).

  • On the right side, I would like to display a map.

  • When a user selects a row in the grid, the map should update dynamically to show the selected address.

The important part is that the map should be displayed side-by-side with the grid within the same tab — not as a redirect or full screen replacement.

 

I initially tried rendering the map using an iframe and dynamic HTML, but I’m facing issues with it not displaying properly.

Could you please suggest the recommended approach for achieving this in Acumatica 2025 R2?