How to disable the Select All button on Modal dialog box?

Like 0

Like

4 comments

Kindly Suggest

Roman Rak,

 

Thanks Roman but the links are referring to the section objects. I want to disable the Action Item(Select All) in Lookup Config - please find the screenshot added in the current post.

 

I have tried by overriding the getSelectionControlsConfig and getActionsMenuConfig from LookupPageViewGenerator schema module but it looks like the method is not getting executed.

Kindly suggest

 

 

Hello Anupama,

 

Thank you for your reply. 

If to talk about a selection card from a lookup,  the getSelectionControlsConfig method in the LookupPageViewGenerator. The BaseLookupPageV2 scheme is responsible for this page/window. For example, previously the Add button was called: SeparateModeAddRecordButton, the ActionsButton is action button, etc.. You can override and customize the visibility of these buttons as you need.

 

Here are some examples as well:

Kind regards,

Roman

Show all comments

Hi Team,

I would like to retain the values/records in the detail when i click on + sign (Add record in the detail) into the modal pop-up of multiselect lookup.

STEP 1: I'm using a multiselect lookup object and selecting couple of values on Add Record of a detail (i.e., clicking + sign)

 

STEP 2 : After selecting values from step 1, when i click + sign again, i would like to retain the values available in the detail grid to the modal popup with the checkbox selected.

 

STEP 3 : The  multiselect lookup's modal pop-up should be like this.

 

when one of the selected value in STEP 1 (ex., incoming document 1) is unchecked and a new value is selected (ex., Regulation 3) the insertion should act accordingly.

Incoming Document 1 --> Should be removed from detail (since its value is unchecked now)
Minutes 2 --> should be available in the detail (since already selected in STEP 1)
Regulation 3 --> Should be added to the detail.

Kindly guide to achieve the above!

Thanks in advance!

Regards,

Bhoobalan P.

 

 

 

Like 0

Like

1 comments

Hi Bhoobalan,

 

Basically there are two tasks that you need to solve:

 

1) Display already added records to the detail in the modal window that is opened upon adding new records to a detail

2) Check these added records in the list

 

As for the 1-st task - you will need to override the openLookupWithMultiSelect method from the LookupMultiAddMixin mixin (for example you can create your own module and copy the code of the original LookupMultiAddMixin mixin and use it in the detail schema). The part of code that checks already records is:

const filtersConfig = this.createAlreadyAddedRecordsFilter();

As for the 2-nd task you will need to dynamically change CSS for elements in the modal window and add grid-row-selected CSS to it. Unfortunately we don't have any practical examples on this particular step.

 

Best regards,

Oscar

Show all comments

Does anyone know the purpose of the overriding of the deleteRecords method in Step 3 of the following Academy article on using a modal lookup window to populate a detail? https://academy.creatio.com/documents/technic-sdk/7-15/creating-detail-selection-lookup

 

When I remove this, it doesn't seem to have any impact on deleting records from the detail, and I can't tell what it's trying to achieve by lookup at the code and the vanilla deleteRecords method.

Like 0

Like

1 comments

Dear Harvey, 

This part of the code is needed for the correct work of multi-select in the grid of the detail. I would not recommend removing it as various issues with multi-select may occur. 

 

Best regards, 

Dennis 

Show all comments

I'm trying to configure a modal lookup window by following Example 2 in this academy page https://academy.creatio.com/documents/technic-sdk/7-15/creating-detail-selection-lookup and everything works as described, but I cannot figure out how to add a default sort to the modal lookup window - are there some parameters which can be added to the config object passed to the this.openLookup method call?

 

While on that subject, are there any other potential parameters which can be added to this config object which might be useful for other tasks?

Like 0

Like

1 comments

Dear Harvey, 

There is no description for all parameters of the lookup config. The possible way is to check the existing openLookup calls. 
Sorting can be specified in sortedColumns parameter. 
You can find the example in method selectPeriod in the ForecastTab. 
Collection of columns with sorting parameters is passed to it this way: 
var config = {
    entitySchemaName: "Contact",
    multiSelect: false,
    columns: ["Name", "Account.Name"],
    sortedColumns: [{
        name: "Account.Name",
        orderPosition: 0,
        orderDirection: this.Terrasoft.core.enums.OrderDirection.ASC
    }]
};
this.openLookup(config, this.lookupCallback, this);

Kind regards, 
Roman

Show all comments

Hi, 

In need to call an api and then show the result in a lookup modal for the user to select a result record. 

I have implemented the api call in a Business Process. I have implemented a button that opens a lookup modal. The problem is that I dont know how to make the lookup modal to get the results from the business process that calls the api. 

Regards,

 

Javier Turell 

Like 1

Like

3 comments

Dear Javier,

Since you are calling an external web service from business process, you need to parse a received reply and use the retrieved data to open a modal window.

Please see this article on how to parse a response from web service:

https://academy.bpmonline.com/documents/administration/7-14/setting-par…

As you will receive a response, parse it into separate business process parameters. Use auto-generated page or pre-configured page to display results to the user.

Regrads,

Anastasia

Can I show an selectable list on a auto-generated page or pre-configured page? I tryed to do that and I didnt find the way to do it. 

I would like to use the lookup modal to show the result and select a record, Is that posible? ​​​​​​

Regards, 

Javier

Javier Turell,

You can add any suitable page items of auto-generated page and pass it values from process parameter:

https://prnt.sc/nysad4

Regards,

Anastasia

Show all comments