Hello Community,

 

We have a requirement where we need to show only investigation edit page and hide all the others in the + button of the detail, as displayed in figure below.

 

.

 

How can we achieve this?

 

Thank you,

Like 0

Like

1 comments

Hello Mariam,

 

Here is the example with the "Contracts" detail on the contact edit page where I have setup several edit pages:

Here is the list of these edit pages on the contact page:

And my task is to remove the "Specification" option. To do that:

 

1) Create a replacing view model for the "ContractDetailV2"

2) Add the following code to the methods of this replacing view model:

getEditPages: function() {
				var editPagesCollection = this.get("EditPages");
				var editPagesItems = editPagesCollection.getItems();
				var indexToRemove = editPagesItems.map(e => e.values.Caption).indexOf("Specification");
				editPagesCollection.removeByIndex(indexToRemove);
				return editPagesCollection;
			}

3) Save the schema and refresh the page in the UI

 

As a result the "Specification" option is gone from the list:

So in this case the main objective is to override the logic of the getEditPages method according to your business needs.

Show all comments

Hello,

 

We have a script task in a BP in an on-prem environment we are trying to save. We encounter the following error message when saving the BP:

 

 

 

Using the following code in the script task:

var payload = "{ \"userId\": \"" + UserConnection.CurrentUser.ContactId + "\" }";

Terrasoft.Configuration.MsgChannelUtilities.PostMessageToAll("LeadPageV2", payload);

return true;

 

However using the same BP with the same contents in our previous environment it saves just fine, no issue with Terrasoft.Configuration. Worth noting is that the BP was exported to the second environment (where we get the error message

) using the .md-file and imported in Configuration. If that has any bearing on the situation. I checked …. Terrasoft.WebApp\Terrasoft.Configuration\bin-folder in both on prem environments and in both I find Terrasoft.Configuration.dll.

Like 0

Like

2 comments

Hello,

 

It seems that you have the following using in the process methods:

 

Terrasoft.configuration

Since I receive the same error locally when doing it:

Please change it to Terrasoft.Configuration since this is case sensetive.

Oleg Drobina,

Hello and thank you for the response. It seems to not be the issue as saving it using upper case on Configuration gives me the same error. This is regardless if I apply a Using under Methods-tab or not for Terrasoft.Configuration.

Show all comments

Hello,

 

We have made several deliveries between environments for a customer and after all of a sudden it seems, we have an error message pop up when we try to save the record of a certain custom section:  t.map is not a function It happens regardless of what is saved in the custom section record.

 

I will attach a picture showing the issue. I will also attach a pic showing the error in the console.

Like 0

Like

1 comments

Hello,

 

Please note that this issue cannot be resolved over a community post, therefore please register a case for our support team directly at support@creatio.com.

Show all comments

Hi everyone,

Can someone tell me in creatio freedom UI how to download all of my  reports that have been generated without adding it to the attachment files.

Thanks in advance.

Like 3

Like

1 comments

Hello Abhishek,



Unfortunately, the printables section in Freedom UI is not available, but our team is already working on adding the ability to generate reports. As a workaround, you can try to generate reports through the business process. We provided the following articles below. Creating a business process: https://academy.creatio.com/docs/developer/integrations_and_api/business_process_service/overview?_gl=1 I am also sending you a link to a post in our community where you can also read information that may help you: https://community.creatio.com/questions/generate-word-printable-outside…



Thank you for contacting us!

Show all comments

Currently, I'm facing an issue while attempting to initiate a login request. Unfortunately, an error is persisting throughout the process. I suspect that there might be an additional configuration step required on my end, but I'm uncertain about the specifics.



The URL I am using for the login attempt is as follows:

https://057678-sales-enterprise.creatio.com/



This URL corresponds to the sales division of my trial account.



Could you kindly provide me with guidance on any potential configuration steps I might be missing or if there are specific settings I need to adjust? Your expertise would greatly assist me in resolving this matter and continuing my progress with the platform.









I'm using the wrong url?

Like 0

Like

2 comments

Hello,



Thank you for your question!

We attached the article where you can find the instructions on how to correctly set up the request, but the error indicates a problem with login and password. Please check the correctness of the login and password.

https://academy.creatio.com/docs/developer/integrations_and_api/authent…

Hello, thanks, the problem was modifying my password in user organization configuration roles, now it works.

Show all comments

Hello, 

I'm using [Autonumber] field for managing record number data automatically like in the documentation   , Set up an [Autonumber] field | Creatio Academy 

Now, i need to reset the increment  to the 0  if the user clicks  on a button

How to reset the increment ? any idea !

Thank you 

Like 1

Like

1 comments

Hi,

There's no direct way to reset the auto number field. 

It's based on the Sequence object in the DB, you can run the script that will restart the sequence. For example, you could create a business process that will execute a script that will restart the sequence. 



Best regards,

Yuri

Show all comments

Hi Community,

 

Through a webservice we are receiving several account records. Some of these new accounts have a url with more than 250 chars, which is the limit set by Creatio for this field. As this limit is exceeded, we are receiving errors from the database.

 

Is there a way to increase the character limit for the Web Link to 500?

 

Thank you.

 

Best Regards,

Pedro Pinheiro

Like 3

Like

1 comments

Hi Community,

 

How can I do in the new Freedom Ui so that the page does not close after saving a record?

I know the method in the old classic page, but I can't find the way to do it in the new Freedom ui.

 

Thank you in advance.

Like 2

Like

4 comments

This works, but does produce some odd results on some pages - for example the Case page shows several things once the CreatedOn is populated and it appears that the data isn't reloaded after the save. So you'd probably also have to do a reload in addition to this: 

{
    request: "crt.SaveRecordRequest",
    handler: async (request, next) => {
        request.preventCardClose = true;
        return next.handle(request);
    }
}

Ryan

Thanks for sharing Ryan

Ryan Farley,

Hi Ryan,
is there a way to stay on the page of a newly created Case record, but having the page reloaded after the case number has been generated?
Currently I'm just staying at the Case page, but the case number and resolution time don't show up.

Thank you in advance

Alex Parkhomchuk,

It works to follow up the save with a refresh. Something like this:

{
    request: "crt.SaveRecordRequest",
    handler: async (request, next) => {
        // don't close page
        request.preventCardClose = true;
 
        const result = await next.handle(request);
 
        // reload if adding
        const cardState = await request.$context.CardState;
        if (cardState == "add" || cardState == "copy") {
            request.$context.executeRequest({
                type: "crt.LoadDataRequest",
                $context: request.$context,
                config: {
                    loadType: "reload",
                    useLastLoadParameters: true
                },
                dataSourceName: "PDS"
            });
        }
 
        return result;
    }
}

However, although it works, the URL still says it's in add mode (showing #Card/Cases_FormPage/add), even though it's not. A hacky alternative is to just navigate to the edit page of the case from the save. 

{
    request: "crt.SaveRecordRequest",
    handler: async (request, next) => {
        // don't close page
        request.preventCardClose = true;
 
        const result = await next.handle(request);
 
        // re-open in edit if adding
        const cardState = await request.$context.CardState;
        if (cardState == "add" || cardState == "copy") {
            const caseId = await request.$context.Id;
            request.$context.executeRequest({
                type: "crt.UpdateRecordRequest",
                entityName: "Case",
                $context: request.$context,
                recordId: caseId
            });
        }
 
        return result;
    }
}

I tried changing the page to edit mode in the save (changing action and recordId in the modelInitConfigs), but this doesn't seem to do anything in the save, likely only works in the init

Ryan

Show all comments

After setup creatio on-site deployment, able to access the login page but by default Credentials Supervisor/Supervisor is not working. Facing Authorization failed. Please check the screenshot reference. Please help on this.

Like 0

Like

1 comments

Hello,

 

Please contact our support team directly at support@creatio.com for us to be able to check the issue properly and resolve it.

Show all comments

I have gone through the academy documentation I am unable to find anything that tells me how I can consume an OAuth service like we can used in Classic UI.

 

The sample code used in Classic UI.

Terrasoft.ServiceOAuthAuthenticatorEndpointHelper.getAuthorizationGrantUrl(
		this.get("UsrOAuthApplicationId").value,
		function(success, url) {
			if (success) {
				if (url) {
					window.open(url);
				}
			} else {
				this.showInformationDialog("Login Failed");
			}
			Ext.callback(callback, scope);
		}, this);
}

 

Can anybody tell how can I use the same functionality in Freedom UI?

 

Thanks in advance.

 

Like 0

Like

6 comments

Not sure if there's a Freedom UI specific way in the sdk (but I've not seen anything that looks like it yet). However, you should still be able to call Terrasoft.ServiceOAuthAuthenticatorEndpointHelper.getAuthorizationGrantUrl from a Freedom UI page for now. 

Ryan Farley,

 

I have tried this code but it's not working in Freedom UI. Can you please guide me some way around to call OAuth Web Service in Freedom UI Page.

 

handlers: /**SCHEMA_HANDLERS*/[
	{
		request: "usr.OAuthLoginButton",
		/* Implement the custom query handler. */
		handler: async (request, next) => {
			var oAuthAppId = await request.$context.LookupAttribute_u6rb81v;
			Terrasoft.ServiceOAuthAuthenticatorEndpointHelper.getAuthorizationGrantUrl(
				oAuthAppId.value,
				function(success, url) {
					console.log(url);
					if (success) {
						if (url) {
							window.open(url);
						}
					} else {
						this.showInformationDialog("Login Failed");
					}
					Ext.callback(callback, scope);
				}, this);
			return next?.handle(request);
		}
	}
]

 

Ryan Farley,

 

Can you please guide us on this?

Hello,

You can try calling your OAuth web service using an HTTPClient, here is an example of how to use it:

{
                request: "crt.HandleViewModelInitRequest",
                handler: async (request, next) => {
                    const httpClientService = new sdk.HttpClientService();
                    const endpoint =
                        "http://data.fixer.io/api/latest?access_key=578b5bcad95455a0a0fddddf83f1f269&symbols=USD";
                    const response = await httpClientService.get(endpoint);
                    request.$context.EurToUsd = 'EUR/USD: ' + response.body.rates.USD;
                    return next?.handle(request);
                },
            },

 

Dmytro Vovchenko,

 

We can't use this approach because the client secret is encrypted. If you tried to get the secret key from the table. We are restricted to use the build in OAuth Service in Freedom UI as it was working with Classic UI.

Syed Ali Hassan Shah,

I consulted the developers and it looks like currently there is no other way to call the OAuth service. Not all services from 

Terrasoft class transferred to a new UI and ServiceOAuthAuthenticatorEndpointHelper is one of them.

Show all comments