Ticket Q443184
Visible to All Users

Can I embed an XAF View in an IFRAME element placed in another web page?

created 12 years ago

Hello there, DX folks.

I'm trying to integrate another web page with a XAF application.

Here, on the support center, there are some keys of how to embed another
 page as a custom view item into a XAF aplication, but I also need integration in the other direction, I mean embeding the view contents (listview, detailview or dashboardview) from the XAF application in an iframe on the other web page. The view must be clean of navigation, header and footer, only the view contents are needed, optionally the action bar could be of some use.

I tried unsuccesfully to copy the defaultvertical.aspx and rip unneeded controls. Is this a recommended method? Is there an alternative?

Thanks in advance.

Regards.

Santiago.

Show previous comments (24)
Dennis Garavsky (DevExpress) 7 years ago

    @Pietro: We have not planned this for any specific release. Have you tried Santiago Moscoso's solution if this is important for your business?  We would be interested to hear your feedback on it (mainly the implementation and maintenance costs). Probably, if we do not get this into the standard delivery, we can improve our APIs for a greater extensibility and simplicity.

    PA PA
    Pietro Allegretti 7 years ago

      Hi Dennis, you are right, I didn't analyze Santiago solution in deep detail.

      The solution is before 12.2 (I think) and we have no great knowledge on XafWeb templates. Have you got a version of that example updated to 17.2?

      We are on an early stage in XafWeb migration of our solution and we are producing only simple POC of some specific modules, no specific development is started yet.

      Dennis Garavsky (DevExpress) 7 years ago

        @Pietro: We do not have a more recent sample for this. Hopefully, the author sees this discussion and post and updated version.
        If not, I suggest you start by researching the essential solution parts as noted by the author:
            MyHttpHandler.cs
            MyHttpRequestManager.cs
            WebApplication.cs (see the CreateHttpRequestManager and CreateFrameTemplateFactory methods).
        I recommend adding those files into your solution instead of trying to convert the old one to v17.2. To be able to create the Frameless.aspx page, you will need to study the following concepts:
            Task-Based Help > How to: Customize an ASP.NET Template
            Concepts > UI Construction > Templates > Template Customization
        This task is advanced, so in addition to general ASP.NET WebForms knowledge, I recommend you review the source code of all involved base XAF classes and interfaces at …\DevExpress.ExpressApp.Web.

        Answers approved by DevExpress Support

        created 7 years ago (modified 4 years ago)

        You can embed XAF ASP.NET Web Forms applications into an IFRAME in v18.2+. This new feature helps integrate CRUD and other common XAF functionality within non-XAF Web portals. These scenarios require additional configuration for the SameSite policy: XAF Web cannot login from IFrame due to SameSite issue in LogIn cookie.

        It is also possible to reuse XAF/XPO business objects and modules like security in non-XAF .NET apps without reusing XAF's UI (good examples for XPO and EF Core ORM). For more information, see How to reuse XAF Views and other standard module functionality in non-XAF apps, forms or controls.

        See also:

          Comments (2)

            So i am looking for a way to show a view from a xaf web application in another xaf web application.
            I saw this post, but its not clear for me what modifications were done.

            So how can show xaf web ui inside a iframe ?!

            Dennis Garavsky (DevExpress) 6 years ago

              @Andrei Iorga: I've created a separate ticket on your behalf (T675478: How can show xaf web ui inside a iframe). It has been placed in our processing queue and will be answered shortly.

              Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

              Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.