Question

Have a section go straight to edit page

Hello,

We have an instance where we want to create a section, but not have any records within it. We are trying to create a utility for the customer. In theory, they'd click on this section in the side panel, and it will take them straight to a page where they can enter some data, and press a button, and we display some records for them.

Is this possible?

Thanks

Like 0

Like

2 comments

you can try pre-configured page

Hello Tyler,

In general you can rewrite init method in your object section edit page so to call this.getSectionRecord(); inside this method. Then you need to develop your own getSectionRecord method in which you should put the logic of opening the page (which system user should see which page when clicking on section button in the left panel) and as a result get Section record Id as a value of SectionId variable. Also you need to use this.openSectionRecord(); method where you should use this construction:

openSectionRecord: function() {

                var id = this.get("SectiontId");

                var url = "";

                Terrasoft.SysSettings.querySysSettingsItem("UsrSectionURL", function(UsrSectionURL) {

                    url = UsrSectionURL + id;

                }, this);

                window.location.assign(url);

            },

Also you need to create a system setting with code UsrSectionURL and fill it with the value of

https://yoursitename.creatio.com/0/Nui/ViewModule.aspx#CardModuleV2/Con…

And as a result when you are clicking on the section symbol you will be automatically redirected to some edit page based on getSectionRecord method logic.

Best regards,

Oscar

Show all comments