Question

Is it possible to add mandatory fields in the Freedom UI reques

Help me please.
Is it possible to add mandatory fields in the Freedom UI request as it was in the old interface:
getGridDataESQ: function() {
    const esq = this.callParent(arguments);
    esq.addColumn("FieldName");
    return esq;
},

Like 1

Like

4 comments
Best reply

Демчук,

You can add other columns to the list's datasource by merging them into the viewModelConfigDiff. See https://customerfx.com/article/including-additional-column-values-in-a-page-datasource-load-on-a-creatio-page/

Ryan

Can you please clarify the business task? Maybe you can retrieve the columns you need using sdk.Model? Like

const orderModel = await sdk.Model.create("Order");
					const orders = await orderModel.load({
						attributes: ["Name", "CreatedOn"],
						parameters: [{
							type: sdk.ModelParameterType.PrimaryColumnValue,
							value: "e502b780-d063-41d3-a03e-c2ad20bb213e"
						}]
					});
					//use retrieved orders further

or what is the task?

Oleg Drobina,

I need, regardless of the user's settings of the displayed columns in the list of Activities, to get additional necessary fields for calculations.

Thank you

Демчук,

You can add other columns to the list's datasource by merging them into the viewModelConfigDiff. See https://customerfx.com/article/including-additional-column-values-in-a-page-datasource-load-on-a-creatio-page/

Ryan

Ryan Farley,

Thank you

Show all comments