As you may know, version 10.0.7 PU31 has been released in PEAP, and as usual, it comes with many functional and technical news. One new that has attracted me, as you can see in my twitter timeline 😅, is the possibility to add third-party apps directly into Finance and Applications (embed) inside iFrames.
In order to test this new control, I decided to add it to the customers form (CustTable) to be able to see the website that is filled in the contact information of the customer (as primary URL).
The steps we should follow to do it are the following:
Create an extension of the form CustTable and add a new WebsiteHost control to it.
This control has the property URL, and it has to be filled with the URL of the website we want to display.
Create an extension of the Active method of the CustTable DataSource using ChainOfCommand. Doing that, we can change the URL property of the control we have added to the form every time we change the selected record.
final class CustTableDSJAT_Extension
public int active()
FormDataSource custTableDS = this;
CustTable custTable = custTableDS.cursor();
FormRun formRun = custTableDS.formRun();
WebsiteHostControl websiteHost = formRun.control(formRun.controlId(formControlStr(CustTable, CustWebsiteHost)));
return next active();
Time to test!!! The following screenshots show us the website that we have inserted in the contact information as primary URL.
I know this is not the more productive example, but I think is a good example to show how this new control works. As Microsoft says, this is just the first step toward allowing users with certain privileges to embed apps via personalization, similar to the existing scenario for embedding PowerApps, that is, without needed to develop.
Extra point: The logo of our loved ERP has changed… again! 🤣