Tks for the answer.
"act := MemoExecDQL(any ExecDQLTableYouUse with DQLNr=510 DQL,codigo.value,quantidade.value,encomenda_cliente,"","") .
This is just pure Dataease OML/DQL and there is no magic. you lookup the DQL with a standard ANY with a WIth . The one above is just an example you obviously have to use the correct table name and field name where you have stored your DQL's.
If you where to us the method you are trying to use you should not use fields in the subform but fields in the main form. You only use them to quickly download the correct DQL and execute it so you only need one DQLNr and One DQL(Memo) on a form to use this feature."
I tried to use the statement as shown but the DQL was not executed.
ExecDQLTableYouUse = t_execucaoDQL
In the main form - v_ENCOMENDAS_DOS_CLIENTES - I've two fields DQL + DQLNr among others
In the sub form named t_encomendas_cliente - I've two fields DQL1 + DQLNr1 and of course codigo, quantidade and encomenda_cliente fields, among others.
act := MemoExecDQL(any t_execucaoDQL with DQL_Nr = 510 DQL, codigo.value, quantidade.value, encomenda_cliente.value ,"","").
I get an error because DQL field belongs to main form ( obviously )
Then I tried the sentence v_ENCOMENDAS_DOS_CLIENTES_LOG.Record1.DQL but without sucess.
What's wrong ?