Mark Van
Mark Van

Reputation: 281

Modify EcoResProductCreate form

I have created a new field to insert via the EcoResProductCreate form, the problem is, the value is not saved in the EcoResProduct table. The field exists on the EcoResProduct table.

Therefore I think i have to modify the method:

saveControlValuesToProduct

I have added the line:

ecoResProduct.NewField = NewField.text();

I am receiving the error:

Variable NewField has not been declared.

Where do I declare this variable, if i compare it to other existing fields, It seems it is all the same.

What are the actions I have to take to make sure the field is being inserted?

Upvotes: 0

Views: 694

Answers (1)

Aliaksandr Maksimau
Aliaksandr Maksimau

Reputation: 2281

You should set property AutoDeclaration to Yes on your form control NewField

enter image description here

Upvotes: 2

Related Questions