Hello,
I'm trying to get data from master into detail table. I choose folowing principle:
Server - Table specific - Add/Copy Page - Page Load
ew_SetClientVar("SqlFnd_PogObrObd", ew_Encrypt("SELECT fk_sif_obracunsko_obdobje_id FROM pogodba WHERE pogodba_id = {query_value}"));Client script - Table specific - Startup script
var pogid = $(this).fields("fk_pogodba_id").value(); - From this field I get main ID
var resObrObd = ew_Ajax(ewVar.SqlFnd_PogObrObd,pogid); - I run sql with main IDOn specific field (where I want to get a value) i run
$(this).fields("fk_sif_obracunsko_obdobje_id").value(resObrObd));
It doesn't work, any idea?
Thx