Hi Team,

 

Could anyone please help me achieving the things below?

 

I have added two custom attributes in the client module.

 

One of lookup type and the other for text. As soon as the user selects the value in the Title Dropdown, the Description text field should be auto-populated with the corresponding value of description being fetched from a data source of Title.

 

The source lookup is as follows:

 

attributes: {

 "UsrTitle": {
         dataValueType: Terrasoft.DataValueType.LOOKUP,
         type: Terrasoft.ViewModelColumnType.VIRTUAL_COLUMN,
                  isSimpleLookup: true,

                   referenceSchemaName: "UsrTitle",

                   isRequired: true,
       },

          "UsrDescription": {
         dataValueType: Terrasoft.DataValueType.MAXSIZE_TEXT,
         type: Terrasoft.ViewModelColumnType.VIRTUAL_COLUMN, 
         value: ""
       }

}

 

    diff: [
                
                {
                    "operation": "insert",
                    "name": "MyMenu",
                    "propertyName": "items",
                    "values": {
                        "generateId": false,
                        "itemType": Terrasoft.ViewItemType.CONTAINER,
                        "items": []
                    }
                },
      
              {
         "operation": "insert",
         "parentName": "MyMenu", // The container where the input box will be added
         "propertyName": "items",
         "name": "UsrTitle",
         "values": {
           "bindTo": "UsrTitle", 
           "labelConfig": {
             "caption": "Title"
           },
         },
           "bindTo": "UsrTitle",
                    
                "enabled": true,
                    
                "contentType": 3
       },
                  
            {
         "operation": "insert",
         "parentName": "MyMenu", 
         "propertyName": "items",
         "name": "UsrDescription",
         "values": {
           "bindTo": "UsrDescription", 
           "labelConfig": {
             "caption": "Description"
           },
            "contentType": 0,
        "layout": {
            "column": 4,
            "row": 5,
            "colSpan": 20,
            "rowSpan": 4
        },
           "controlConfig": {
             "placeholder": "Enter your text here"
           },
           "classes": {
             "wrapClassName": ["custom-input-box-class"]
           }
         }
       },
         {
       "operation": "insert",
       "parentName": "MyMenu",
       "propertyName": "items",
       "name": "MainContactButton",
      
       "values": {
      
           "itemType": Terrasoft.ViewItemType.BUTTON,
         
           "caption":"Create Ticket",
           
           "enabled": true
       }
   },
 ]

 

 

Please note that this is a custom client module which does not belong to a section, hence not able to achieve this using the OOTB business rules. Kindly help!

 

Thanks,

Sarika

Like 0

Like

2 comments
Best reply

First of all, you'll need to have a change event for when the lookup attribute it selected, add something like this to the lookuip attribute: 

"UsrTitle": {
    dataValueType: Terrasoft.DataValueType.LOOKUP,
    type: Terrasoft.ViewModelColumnType.VIRTUAL_COLUMN,
    isSimpleLookup: true,
    referenceSchemaName: "UsrTitle",
    isRequired: true,
    onChange: "getTitleDescription"
}

Then, add the getTitleDescription method to the methods. When a value is selected this will get called and you can go retrieve the description via an EntitySchemaQuery to set in the other attribute:

getTitleDescription: function() {
    var title = this.get("UsrTitle");
    // now do an esq to get the description using title.value and then set in the description attribute
}

You could try adding the Description to the lookup attribute's lookupListConfig to avoid the esq, but I am not sure if that works for a virtual lookup attribute. However, doing an esq there would work fine.

Ryan

First of all, you'll need to have a change event for when the lookup attribute it selected, add something like this to the lookuip attribute: 

"UsrTitle": {
    dataValueType: Terrasoft.DataValueType.LOOKUP,
    type: Terrasoft.ViewModelColumnType.VIRTUAL_COLUMN,
    isSimpleLookup: true,
    referenceSchemaName: "UsrTitle",
    isRequired: true,
    onChange: "getTitleDescription"
}

Then, add the getTitleDescription method to the methods. When a value is selected this will get called and you can go retrieve the description via an EntitySchemaQuery to set in the other attribute:

getTitleDescription: function() {
    var title = this.get("UsrTitle");
    // now do an esq to get the description using title.value and then set in the description attribute
}

You could try adding the Description to the lookup attribute's lookupListConfig to avoid the esq, but I am not sure if that works for a virtual lookup attribute. However, doing an esq there would work fine.

Ryan

Ryan Farley,

 

Thanks. it worked.

Show all comments

is there a way to rename the "Save"  button on a record page ?

regards, 

Like 1

Like

4 comments
Best reply

I assume you're referring to the caption? You can change the caption for the button by opening the edit page schema (for example, AccountPageV2) and find the localizable string (on the left side) "SaveButtonCaption" then give it a new value.

Ryan

I assume you're referring to the caption? You can change the caption for the button by opening the edit page schema (for example, AccountPageV2) and find the localizable string (on the left side) "SaveButtonCaption" then give it a new value.

Ryan

Ryan Farley,

Thanks Ryan, that worked when creating a new record. When I click New to add a new record the save button became Submit, but when editing the existing record the button appeared to be "Save" again. How to make it Submit on adding and editing a record.

Thanks in advance

You also need to change the "SaveRecordButtonCaption" string in the associated section (such as AccountSectionV2)

Ryan Farley,

Worked ! Many thanks Ryan. 

Show all comments

I'm having a scenario where I need to add two custom columns in attachment detail and need to edit that.So I have overridden the LinkPageV2 and added those two columns in diff.Now the fields are displaying in the required section attachment detail.However other section showing error in console stating that the columns are not found in that sectionFile Object

Is there a way to dynamically load diff based on the condition/for a particular section only?


Thanks,
Sivaranjani

Like 0

Like

2 comments

No, diff cannot be loaded based on conditions (only properties like visible or enabled can be changed using conditions, but not blocks of code).

The best approach is to add a boolean attribute on the LinkPageV2

attributes: {
	"IsForAccount": {
		dataValueType: Terrasoft.DataValueType.BOOLEAN,
		columnType: Terrasoft.ViewModelColumnType.VIRTUAL_COLUMN,
		value: false
	}
}

Then bind it to the visible property of the element in the diff

{ //...
    "visible": { "bindTo": "IsForAccount" }
}

On the page init check what the entity type is for the page and set the boolean: 

init: function() {
	this.callParent(arguments);
	this.set("IsForAccount", this.get("entitySchemaName") === "AccountFile");
}

Using this approach will work since the value will never get submitted when saved.

Ryan

Show all comments

Hi, 

 

I hope someone can help me, I am exploring the Idea of Moving our system from Classic UI to Freedom UI. I am experiencing Cyclic Chain issues after updating our Dev system when I save the Freedom UI Account Form Page.

 

I've not worked with Cyclic Dependencies previously and the help from Creatio Support didn't help me achieve a fix. 

If someone could explain step by step how to fix these dependencies (image attached) I would be very grateful.

 

Many Thanks

 

Tom

 

 

Like 0

Like

1 comments

Hi Tom,

 

What's happening here is that the Account Form page needs to access items that are located in your Custom folder, but because of the hierarchy, it's unable to do so. 



If you move the Freedom UI Account Form page to the custom folder, you can test saving the page and see if that works. If it does, the above is indeed the issue. 



Harry

Show all comments

Hi 

 

I want to make a column as a hyperlink in datagrid of the detail. I have tried the instructions as in the link : https://community.creatio.com/questions/convert-text-field-hyperlink. But it applied only to the edit page of the detail not the data grid. Is there any way to do this.

 

Regards

Rakshith

Like 0

Like

1 comments

Hello!

 

As we see, you already created a separate case for the Support team with this question, so we will provide you with the answer in a case.

 

Have a nice day!

Show all comments

Hello community,

 

I need to show a pop-up message with options Yes or No in the Classic UI of the mobile application. How can we achieve this?

 

Thanks in advance

Yasaswini

 

Like 0

Like

1 comments

Hello!



We recommend using the push notification in the business process to add notifications to the mobile app.

More details about pop-up messages can be found in the article: https://academy.creatio.com/docs/user/bpm_tools/bpm_process_examples/ne…

Probably, you find the articles useful for your business tasks:

https://community.creatio.com/questions/mobile-show-confirmation-dialog

https://community.creatio.com/questions/how-can-i-show-information-dialog-mobile

Show all comments

Hello.



I tried loading a detail in a modal, but it is not firing any detail method.

Is it not possible to implement such?



I know lookuputilities exist, but it shows a list as a expanded lookup.

We are more trying to show a detail in modal.



Let me know any updates.

Like 0

Like

1 comments

Hello!



Could you please provide more details regarding your request and step-by-step instructions to reproduce the issue?

Show all comments

Hi community, 



I have created a detail and now I wanted to convert the detail into an editable list. The option that is provided in the detail setup is disabled. Then I added the required code in the client module. The detail has been converted to editable list but when I click on the record it is throwing the following error. 

The details regarding the issue are attached below.

Could you let me know how can I convert an already existing detail to an editable one?





Thanks in advance

Goparna Nasina.

Like 0

Like

1 comments

Hello,

 

Could you please provide the code you added and specify where exactly it was added?

 

Best regards,

Yuliya

Show all comments

Hi community, 



Regarding data import, how does the system recognize and track data imports into specific objects? 

For instance, when I click on the link ("Open imported records") provided in the data import notification, I wanted to know how the system knows which object it's associated with and in which object/table is that information being stored?





Thanks in advance

Regards,

Goparna Nasina

Like 0

Like

4 comments
Best reply

It tags the records. Each record imported has a tag added of the date time of the import. When you click that link from the notification it opens the section and sets a filter for that specific tag.

Ryan

It tags the records. Each record imported has a tag added of the date time of the import. When you click that link from the notification it opens the section and sets a filter for that specific tag.

Ryan

Ryan Farley,

 

Thank you Ryan.

I wanted to send a notification when data is imported in a particular object. As you stated above "when we click on notification it opens the section", how can I get that section details or which table in database is the section id stored for that particular import?



Thanks in advance 

Goparna Nasina

Goparna Nasina,

 

The information is stored in the ObjectNameInTag table.

For example in AccontInTagTable.

Bogdan,

 

Thanks Bogdan

Show all comments

In Web instance i want every user to see it's own list of activities but not the other users's . I am currently using classic UI , how can i apply this default filter ?

Like 1

Like

3 comments

Hello,

 

You can use the default quick filter by owner available in Activities section: https://academy.creatio.com/docs/user/platform_basics/business_data/fil…

 

Best regards,

Yuliya

Yuliya Gritsenko,

hello , 

I want it to be applied for all users by default and not editable .

Thank you

developer,

 

 

Hello,

 

Your business task can be only achieved with the help of separate development process. 

You can use 'entity schema query' filters in particular. Here is the guide on this topic:

 

https://academy.creatio.com/docs/developer/front_end_development/data_o…

 

You can also use this community post with the example of such logic:

 

https://community.creatio.com/questions/default-filter-section

 

Best regards,

Yuliya

Show all comments