Actions on embedded view

HelloI have an embeeded view on a form. In this view i have an action button with code:

Name:=@Name([CN];authors);

Data_od:=@Text(Od);

Data_do:=@Text(Do);

FIELD Status:=1;

FIELD Zatwierdzil:=@UserName;

FIELD Data_zatw:=@Today;

@MailSend(Name;“”;“”;“Urlop został zatwierdzony”;“”;"Osoba: “:“Imie”:” “:“Nazwisko”:” Termin: “:Data_od:” - ":Data_do);

@True

It didn’t work. An error message is: “No SendTo field in a document”

What can i do to change values of fields in document from embedded view?

Tnaks for any help

Aleksander Spila

Subject: Actions on embedded view

Hi

You must to create a Hide computed text field named SendTo with SendTo as Formula value. Before @MailSend command, you must to assign recipients’ name to SendTo field (be careful, if are many recipients, Send To must be Multivalue).

I hope it help you. Regards.