
In a previous article I outlined how to open a page via code in a Freedom UI page. I also outlined how to open a record’s edit page via code in a Freedom UI page. However, it’s possible you have many different pages for the same entity. What if you want to open a record to edit in a specific Freedom UI page? This article will show how to specify the specific page you want to use when opening a record to edit.
In the scenario for this article, I have a simple page (actually a mini page dialog) where I can select the case status. I am going to open a case to edit in this specific page so the status is bound and the case status can be updated in this page. My page looks as follows:
Note, this is a page where Case is the data source. It’s another page bound to the case entity. When I open the case to edit for the sample in this article, I want to use this simple page.
To open a specific page, we’ll use a crt.OpenPageRequest. We’ll include the schemaName for the page we want to use, but will also include some details to initialize the page model in edit mode for a specific record. The code will look as follows:
request.$context.executeRequest({ type: "crt.OpenPageRequest", $context: request.$context, schemaName: "UsrCaseStatus_ModalPage", modelInitConfigs: [ { action: "edit", recordId: caseId } ] });
The end result is that the case will open for edit using the specific page we’ve specified in the request.
Subscribe To Our Newsletter
Join our mailing list to receive the latest Infor CRM (Saleslogix) and Creatio (bpm'online) news and product updates!
You have Successfully Subscribed!