I have a Kalibrace2 button on the InventTable form.

If I click on this button, a new form should open with filled fields Cislo Polozky(ItemID) and Nazev Polozky (ItemName). But only Cislo Polozky(ItemId) field looks like filled.

Here is my project tree

Here is the content of the InitValue method. But this.CisloPolozky has an empty value.

Could anybody help how to reach my goal to have a filled fields CisloPolozky(ItemId) and NazevPolozky(Itemname) in my form Kalibrace?
Is it better to use methods or make relationship between Kalibrace and InventTable?
The relationship InventTalbe.ItemId=Kalibrace.CisloPolozky and InventTable.ItemName=Kalibrace.NazevPolozky is working but I think that it is not the correct way.
Thanks in advance.
VladimÃr