Question

Why does this popup still

Hello,

I have added the code to OrderPageV2

attributes: {

            "Client": {"isRequired": false}

        },

 

but this doesn't work. When trying to save I still receive

Like 0

Like

1 comments

Hello,

 

The required attribute is defined in BaseOrderPageV2 of Order package.

It is necessary to create the replacing view model with Base Order page and following code

 

 define("BaseOrderPage", [], function() {
	return {
		entitySchemaName: "Order",
		attributes: {
				"Client": {
					"caption": {"bindTo": "Resources.Strings.Client"},
					"dataValueType": this.Terrasoft.DataValueType.LOOKUP,
					"multiLookupColumns": ["Contact", "Account"],
					"isRequired": false
				},
			},
		modules: /**SCHEMA_MODULES*/{}/**SCHEMA_MODULES*/,
		details: /**SCHEMA_DETAILS*/{}/**SCHEMA_DETAILS*/,
		businessRules: /**SCHEMA_BUSINESS_RULES*/{}/**SCHEMA_BUSINESS_RULES*/,
		methods: {
			validateAccountOrContactFilling: function(callback, scope){
				var result = {
						success: true
					};
				callback.call(scope || this, result);
			}
		},
		dataModels: /**SCHEMA_DATA_MODELS*/{}/**SCHEMA_DATA_MODELS*/,
		diff: /**SCHEMA_DIFF*/[]/**SCHEMA_DIFF*/
	};
});

and the result:

        

 

Regards,

Dean

Show all comments