I have a custom button on Contact Section. This button allows the user to set up the Owner to multiple Contacts when selected.
The problem appears when I "Select all" the button turns gray and cannot be pressed. If I choose "Select multiple" and check the same records (contacts) then the button works.
In this example there are a lot of records, but I've tried the same thing with only 20 contacts that are all loaded in the page (scrolled until the last one) and it does the same.
I've found an informative article according to your request for a comfortable understanding of the needed steps: 1) Please, find the added function with the same functionality as "getSectionActions" from the article (paragraph 4). 2) Add new property to the object: "IsEnabledForSelectedAll": true
As a result, the code will look like:
getSectionActions: function(){
var actionMenuItems =this.callParent(arguments);
actionMenuItems.addItem(this.getButtonMenuItem({"Caption":{bindTo:"Resources.Strings.MultiplyChangeAction"},
"Click":{bindTo:"showLoanInfo"},
"Enabled":{bindTo:"isCustomActionEnabled"},
"IsEnabledForSelectedAll":true}));return actionMenuItems;}
Hi Team, I have implemented a multi-select lookup field using the guidelines from this article: https://customerfx.com/article/invoking-a-multi-select-lookup-dialog-on-a-creatio-freedom-ui-page/ Now, I have a requirement to filter the multi-select lookup based on another lookup field. I tried adding a filter for the entity schema name, but it is not being reflected. Is there a way to filter the multi-select lookup?
I created a multi select lookup page for a detail in freedomUI using "crt.OpenLookupPageRequest" functionality. I wanted to either remove already selected records in the popup window or show them as checked if they are added into the detail.
Question on OpenLookupPageRequest. In an edit scenario, could you pass the already selected options so that they appear already selected in the lookup list?
In the near future I will be releasing a Freedom UI replacement for my marketplace addon linked previously by Anastasiia (Multi-select text field setup for Creatio)
Yes, however, for now you have to handle the adding of the records in code. The article I shared shows how to invoke the lookup in multi-select mode. It uses the results to flatten out to text, however, you could just use the results and do an insert for each into the list/detail. See here for how to do the insert:
This is a Piot Table, connecting contact and labels objects.
We are expecting that, all label information for all contacts will be saved in this Object "UsrContactLabels", after adding labels and saving the contact page, when we refresh the page it does not save it in object and after refreshing this field is empty.
We added multiselect element on Contact Page:
MultiSelect values are Labels from Lookup (sceen below):
Hi Yevhen, I made new Server and added Multiple Choice as it was in documentation. I have same problem with saving data. There are not any error in console , after chosing multiple Choiche values "Labels" and saving Contact page, but after reloading the page the data is not saved and Labels are deleted so its empty .
When I use the former method, I get the same issue. I can select data in the field, but Creatio will not save it. When I use the method from the instruction, everything works as expected.
Could you please test the method from the instruction? Is using a different method required in your case?
I have a multiselect lookup and a requirement where already selected records must be checked. I have used config.selectedValues to mark already selected records.
Unfortunately, the application takes a lot of time (from 6 to 15 seconds) before the already selected records are marked on the UI. Hence the users are selecting records again and creating duplicates. There are other validation issues around this as well.
Is there a way to stop user from selecting further records till all existing records are marked checked? Please have a look at the video.
The use case in short, is to ensure that the checked records are marked and only then the user is allowed to choose further records.
Unfortunately, I didn't know a way to disable the checkbox on the lookup window and don't even know if that option is possible, however, in your case you can try a different approach.
You can add a filter to an openLookup config that won't shop any records and disable it when you are using your config.selectedValues option.
They should help you out in your business task. If it is not quite what was needed, kindly specify with more detail what exactly you are trying to implement.
I have a multiselect detail and I have added code to mark already selected records when the lookup window is opened again. For example if A, B are already added to the multiselect, when user wants to add C,D, E, the records A & B will already be checked.
There are multiple validations done before we add a record. Unchecking of already added records will cause complication.
We see preventing uncheck of values as a solution. Is there a way to prevent uncheck of records?
Following is the code I have used, to mark the records already selected as marked. I need to prevent these marked records as unmarked. Basically, we cannot uncheck an already checked record
esq.getEntityCollection(function(result){
var existsDocumentsCollection =[];if(result.success){
result.collection.each(function(item){
existsDocumentsCollection.push(item.get(”AccountId”));});}
config.selectedValues= existsDocumentsCollection;
Hello, is it correct that currently every time you open and close a lookup window there are no selected records and your code doesn't work? Or it's working but only after validation and you need to make it that the needed values are already selected before that moment?
I have an editable detail to which we need to add records through multi select lookup. I want to copy the values into the detail from multi select lookup instead of referencing it, so that any change in the detail is not reflected in the lookup.
The multi-select lookup will be not checked by itself. Its purpose is to get multiple values from somewhere and create the record in the detail. Please find more information about this functionality by the link below: