Hi Team, 

 

In this scenario I want to display a message (Information about the field) for the field(please see the below screenshot) having hidden title on page (because tooltip doesn't work in case if title is hidden).

 

 

Can we show Information message for these kind of fields like in below screenshot

 

please help in achieving this functionality.

 

Thanks for your time.

Like 0

Like

1 comments

Hi Akshit,

 

Have you tried implementing the logic similar to the one described in this Academy article? What was the result?

 

Best regards,

Oscar

Show all comments

Hi Team,

 

I want to apply color on the record page fields (without any conditions) and I have found this article https://customerfx.com/article/adding-custom-css-style-sheets-in-bpmonline/ but I am not good with CSS, so can anyone please tell me 

If I want to apply a color on any field then In the below code : 

#OpportunityPageV2AmountFloatEdit-el should be replace with what in my scenario ?

 

And also How to make a text bold in text field, like in the below screenshot how to make "Benefits" (which is a default value in text field) bold ?

 

 

Thanks for your time.

Like 0

Like

1 comments
Best reply

Hi Akshit,

 

Righ-click on the field and choose the "Inspect" option:

Once done you will see the page HTML:

In your case you need to choose the element name (marked with the arrow as an example of the https://customerfx.com/article/adding-custom-css-style-sheets-in-bpmonline/ article).

 

As for your second question - use the font-weight attribute. As a result you should get something like this:

#OpportunityPageV2AmountFloatEdit-el{
	background-color: red;
	font-weight: bold
}

and the result is:

Best regards,

Oscar

Hi Akshit,

 

Righ-click on the field and choose the "Inspect" option:

Once done you will see the page HTML:

In your case you need to choose the element name (marked with the arrow as an example of the https://customerfx.com/article/adding-custom-css-style-sheets-in-bpmonline/ article).

 

As for your second question - use the font-weight attribute. As a result you should get something like this:

#OpportunityPageV2AmountFloatEdit-el{
	background-color: red;
	font-weight: bold
}

and the result is:

Best regards,

Oscar

Show all comments

This is code from the Develop your first application tutorial in the developer documentation.

 

An 'Action' menu item is set up in the client module of the section edit page:

/* Add the action to the action menu. */
getActions: function() {
    var actionMenuItems = this.callParent(arguments);
    actionMenuItems.addItem(this.getButtonMenuItem({
	    "Caption": {bindTo: "Resources.Strings.AddTrainingsActionCaption"},
	    /* Define the handler method for the action. */
	    "Click": {bindTo: "getBusinessProcessAddTrainings"},
	    "Enabled": true
    }));
    return actionMenuItems;
},

The menu option however only shows when the browser cache has been refreshed.  It happens every time an edit page is opened for a record (not just the first time an edit page is opened).  There initially is a blank space where the menu item should be, after a refresh the menu item shows.  There are some errors in the console:

When the page is loaded...

all-combined.js:41 The Id column is not declared in the ViewModel of the menu item

When the initial blank menu item is clicked:

Uncaught TypeError: Cannot read properties of undefined (reading 'apply')
    at i.callModelMethod (all-combined.js:41)
    at i.<anonymous> (all-combined.js:41)
    at i.fire (all-combined.js:6)
    at i.continueFireEvent (all-combined.js:6)
    at i.fireEventArgs (all-combined.js:6)
    at i.fireEvent (all-combined.js:6)
    at i.onClick (all-combined.js:41)
    at HTMLLIElement.eval (eval at cacheableFunctionFactory (all-combined.js:6), <anonymous>:6:13)
    at HTMLLIElement.k (all-combined.js:6)
    at t.value (polyfills-es5.js?hash=96751a9859cf44a7a1eb788f80c32556:1)
user: XXXX XXXX /268b5da7-2ede-4b32-8bbe-9af04721ebba
 file: https://110816-crm-bundle.creatio.com/core/83382b3fa36e6adf19d56492fa6ed49d/ng-core/src/polyfills-es5.js?hash=96751a9859cf44a7a1eb788f80c32556
 line: 1
 column: 16702
 message: Uncaught TypeError: Cannot read properties of undefined (reading 'apply') 
 date: Fri Dec 24 2021 14:10:31 GMT+0000 (Greenwich Mean Time)
 stack: TypeError: Cannot read properties of undefined (reading 'apply')
    at i.callModelMethod

 

Like 0

Like

1 comments

Hello Gareth, 

 

Thank you for your comments, we have tried to re-create the issue from our side and noticed that few more correction should be applied to the instruction even in previous steps of the article.

 

We are currently working on correcting the mentioned article, once done it will be available again and no issues should occur while following the instruction.

 

Thank you for understanding and helping us to make our application better.

 

Best regards,

Anastasiia

Show all comments

Hi support

I've a compilation error during the installation of a package on production environment.

The same package was fine on test cloud environment.

The error is

"2021-12-22 22:09:31,627 Autogenerated\Src\AccountSchema.Custom.cs(266,41) errore CS0115: 'AccountSchema.CreateSifUnindustriaReferenceContactColumn()': no suitable method found to override"

 

In the package I've renamed the custom column "SifUnindustriaReferenceContact" on the Account table.

How can I solve these issue ?

 

Like 0

Like

2 comments

Hello Stefano,



In order to fix the issue, you should back the column's original name.



We don't recommend renaming columns in objects (Code columns) with the Usr prefix, for example, UsrTestColumn. 

But you can change the title.

 

Best regards,

Bogdan

Hi Bogdan,

I solved the issue, using "Generate all schemas" and after that I compiled all

Show all comments

Going through the 'Developer documentation > Getting started > Develop your first application' tutorial, I've got to 'Step 3. Add page validation', where I'm asked to edit the source code of the 'UsrGroupSections1Page' client module.  The problem is this schema does not exist, it hasn't been created in any previous steps.

 

Does anyone know if it is in fact possible to complete this tutorial and build the application?

Like 0

Like

2 comments

For reference and for anyone else who travels along this road, at this point in the tutorial the 'Classes' table has been for some reason renamed 'Group sections'.  To make the code work requires the parameter 'rootSchemaName' of the 'EntitySchemaQuery' to be changed:

var esqPeriodicity = this.Ext.create("Terrasoft.EntitySchemaQuery", {
    rootSchemaName: "UsrClass"
});

The column setup of the 'Group training' detail also needs to be amended from 'Group section' to 'Class'.

Dear Gareth,

 

Thank you for your question!

 

The schema which is mentioned on Step 3 is generated by the wizard on Step 1. The name can differ a little as it's generated automatically. We are sorry it's not mentioned in the article and will add this information shortly.

 

Kind regards,

Anastasiia

Show all comments

Hello community,

I'm working on an assembly package and I'm dealing with some problems due to some customizations, in fact I tried to modify the replacing object of the Account, in particular the 'AccountInserting' event.

After this operations I noticed that the source code of the object remains empty and that the changes don't work, while doing the same operations in a "simple" package the source code is filled in and the changes work.

 

Do you have any idea why this is happening and how to fix this issue?

Let me know.

 

Thanks,

Luca

Like 0

Like

4 comments
Best reply

Hello Luca,

 

As stated in the Academy article here

  • It is not possible to implement object business logic via event sub-processes in the Object Designer. Use EntityEventListener to work with the event model. The EntityEventListener event set does not entirely match the event model in Creatio IDE. Learn more about the Entity event layer: Objects business logic.

And enabling the event on the object is needed for the sub-process in the object designer only. Please use the EntityEventListener instead.

 

Best regards,

Oscar

Hello Luca,

 

As stated in the Academy article here

  • It is not possible to implement object business logic via event sub-processes in the Object Designer. Use EntityEventListener to work with the event model. The EntityEventListener event set does not entirely match the event model in Creatio IDE. Learn more about the Entity event layer: Objects business logic.

And enabling the event on the object is needed for the sub-process in the object designer only. Please use the EntityEventListener instead.

 

Best regards,

Oscar

Hi Oscar,

I actually enabled the event on the object just to use it (as you said) in the sub-process in the object designer, but the customizations that I made there didn't work in an assembly package,  instead worked in a simple one.

Let me know if I have made myself clear or if you need other explanations.



Thank you.

Best regards,



Luca

Luca Tavasanis,

 

Hi,

 

As you said, you've enabled the event on the object to use in the sub-process in this object and did it in the assembly package. As stated on the Academy - it's impossible to use sub-processes on the object in the assembly package (and as a result the source code for the object won't be updated in case you are designing this sub-process in the assembly package). Can you please clarify what exactly is expected here?

 

Best regards,

Oscar

Hi Oscar,

sorry but I didn't understand that you were talking about the assembly package, my fault.

I will try the solution that you suggested with the EntityEventListener.

 

Thank you for your help!

Best regards,

 

Luca

Show all comments

Hello Community!

I am developing a functionality such as, a data grid within a detail, is populated when I Click a button. In the same time when I click the button I want to reload the grid data. Which is the proper syntax for the callback function in Creatio, because i havent seen many examples in the Community.

 
			onGenerateButtonClick: function(callback,scope)
			{
				var currentRecordId = this.get("MasterRecordId");
				var args = {
                    sysProcessName: "FZProcess_dc5a9de",
                    parameters: {
                        RecordId: currentRecordId,
						Amount: FZAmount,
						Interes: FZInteres,
						StartPaymentDate: FZStartPaymentDate,
						Tenor: FZTenor		
                    } 		
                }                
				this.reloadGridData();
                ProcessModuleUtilities.executeProcess(args);  
 
			}

I want to use this.reloadGridData(); inside a callback, after the   ProcessModuleUtilities.executeProcess(args) is finished , which is the proper way to do this ? 

Like 0

Like

6 comments
Best reply

Petrika,

In your case the button appears to be a part of the page schema, not a part of the detail schema. For you to refresh the detail you'd need to use:

this.updateDetail({ detail: "NameOfDetail" });

You can find the "NameOfDetail" value to use by looking at the details section of the page code for your detail (it's not the name of the detail schema, but the name or Id it gave it when it added it to the page). The reloadGridData function only works from within the detail schema code itself. 

Hello Petrika,

Calling this.reloadGridData() is the proper function to use to refresh the detail grid from within the detail schema itself. However, you do need to call after the process completes. 

I have an article here that shows how to use a callback when executing a process: https://customerfx.com/article/programmatically-starting-a-process-from…

If you put the call to reloadGridData inside the callback then it will refresh  when the process has completed.

Ryan

Ryan Farley,

Hello Ryan,

Firstly thanks for the quick reply, your posts are very useful, each time i have a developing problem in creatio.

In this case i saw the post before. I have try it. When I use the callback like the article the page only reloads and never stops, thats why i thought of another callback syntax.

Ryan Farley,

To be more specific

I have created this button Generate on the Main Page(parent). When this button is clicked , it calls a bussines Process, which on the other hand executes a Stored Procedure(populates dhe datagrid of the details).

onGeneratePrecalButtonClick: function()
			{
var currentRecordId = this.get("Id");
		var args = {                                                                  
		sysProcessName: "FZProcess_dc5a9de",
			parameters: {
				RecordId: currentRecordId,
				Amount: this.$FZAmount,
				Interes: this.$FZInteres,
				StartPaymentDate: this.$FZStartPaymentDate,
				Tenor: this.$FZTenor		
					}
				};
              ProcessModuleUtilities.executeProcess(args);  
}

When the Business Process finishes, i want to reload the grid data of the Details, so that I dont have to press the green Button below

How can this be done ?

 

Petrika,

 

Hello,

 

There are two possible ways:

 

1) Call this method after the executeProcess method call:

this.updateDetail({
 
                        detail: "DetailNameHere"
 
                    });

2) At the end of your business process execution you need to send some message using MsgChannelUtilities class and PostMessageToAll method, create a replacing ClientMessageBridge, add your message there, add the message to the page where the detail is located, subscribe to the message and specify a handler for the received message (a simple example is here). Once the message is received the handler should call the same updateDetail method as above.

 

Best regards.

Oscar

Petrika,

In your case the button appears to be a part of the page schema, not a part of the detail schema. For you to refresh the detail you'd need to use:

this.updateDetail({ detail: "NameOfDetail" });

You can find the "NameOfDetail" value to use by looking at the details section of the page code for your detail (it's not the name of the detail schema, but the name or Id it gave it when it added it to the page). The reloadGridData function only works from within the detail schema code itself. 

Thanks very much Oscar and Ryan ! Your help was great.

Show all comments

Hello all,

 

I am trying to display the relationship information within the newer connected to diagram as a list such as how the older detail used to be able to be used.

Is there a way to display the information as a list so that it can be easily viewed in a list and exported out to excel?

 

I have tried to create a list report based off the underlying object for the diagram but I have been unable to find the correct object to use.

Like 0

Like

1 comments

Hello Kevin,

 

Thank you for your question!

 

Unfortunately, the list view and export are not available in the new UI for "Connected to" diagram. We've already registered this idea in our R&D team backlog for consideration and implementation in future application releases. As an option, it's possible to disable the new UI for "Connected to" diagram and get back to the old one. However, the data inserted in the new UI will be lost while getting back to an old UI, same if you decide later to change the UI to the new one, changes applied in the old one - will not be saved. If you want this to be done, please reach out to us at support@creatio.com and we will disable UseRelationshipDesigner feature for you.

 

Kind regards,

Anastasiia

Show all comments

Hi community

I'm using the new relationship feature to connect accounts 

In the account's "connected to" tab, I setuped which is the parent account of current account.

I'm looking for a method for extract all accounts which have a parent account assigned, using advanced filter.

Missing the view to configure the filter on new tables?

 

Like 0

Like

4 comments

Hello, 

Thank you for your question. 

In order to get the wanted filter please choose the correct column called "Parent account". 

Please refer to the screenshot below: 

 

 

Thank you, 

Artem. 

Artem,

Hi Artem,

the parent account field does not work correctly with the new "Relation connection" table used for describe the account hierarchy,

Hello Stefano,

 

Sadly, filtering will not work in this case.

 

It is due to the fact that the "connected to" diagram was created to be universal, it does not have any proper connections to the other objects in the system. Thus, it can't be used for filtering records in objects.

 

Theoretically, you can create a view table in your system where needed columns from separate objects can be added and use it in the section's filter but we don't have any examples of such implementations.

 

We have already created a request for our R&D team to create such functionality.

 

Thank you,

Artem.

Hi,

I solved the problem.

I've created a view table, here my postgres script view

 

DROP VIEW
 
IF EXISTS "UsrAccountParentView";
    CREATE
        OR REPLACE VIEW "UsrAccountParentView" AS
 
SELECT uuid_generate_v4() AS "Id"
    , reA."RecordId" AS "UsrAccountParentId"
    , reB."RecordId" AS "UsrAccountChildId"
    , rc."RelationTypeId" as "UsrRelationTypeId"
    , '410006e1-ca4e-4502-a9ec-e54d922d2c00'::uuid AS "CreatedById"
    , timezone('utc', now()) AS "CreatedOn"
    , '410006e1-ca4e-4502-a9ec-e54d922d2c00'::uuid AS "ModifiedById"
    , timezone('utc', now()) AS "ModifiedOn"
FROM "RelationshipEntity" reA
JOIN "RelationshipConnection" rc
    ON reA."Id" = rc."RelationshipEntityAId"
        AND reA."SchemaUId" = '25d7c1ab-1de0-4501-b402-02e0e5a72d6e'
JOIN "RelationshipEntity" reB
    ON reB."Id" = rc."RelationshipEntityBId"
        AND reB."SchemaUId" = '25d7c1ab-1de0-4501-b402-02e0e5a72d6e'

 

Show all comments

Is there any way I can access a button instance directly, e.g., in the 'click' method of a client module in order to set the colour of the button using the setStyle method of the button object?

Like 0

Like

1 comments

Not sure if it's possible since setStyle only receives some value as an argument and is being executed when the button is initialized.

 

In your case I would recommend to add this code to the click handler:

var buttonElementToModify = document.getElementById("ContactPageV2ChangeContainerStateButtonButton-textEl");
				buttonElementToModify.style.backgroundColor = "Green";

and replace ContactPageV2ChangeContainerStateButtonButton-textEl with an actual id of the element in DOM:

As a result when the button is clicked its color will be changed to green.

 

Best regards,

Oscar

Show all comments