Hi Dmitry,
i create for a test three lists. One parent list "PCR" and two source lists "Kosten" und "Beratung". Then i create a new and a edit form.
In the new and edit form i added only these two entries in the javscript editor:
fd.populateFieldsInGrid($('.related-items'), {
Costs: '{CurrentItem}',
});
fd.populateFieldsInGrid($('.related-guide'), {
Guidance: '{CurrentItem}',
});
New Form: In the data source editor are the lists selected and under view "all elements".
Edit Form: In the data source editor are the lists selected and under view "Related-View". Filter by form field is "ID" and list field "Costs".
In the source list, for example "Kosten" i added in the JavaScript editor
if (window != window.top && window.top.fd) {
// the form is opened in a dialog from the parent form
var parentId = window.top.GetUrlKeyValue('ID');
if (parentId) {
// the form is opened from the Edit form
fd.field('Costs').value(parentId);
} else {
// the form is opened from the New form
$('#_fd_parent_temp > input').val(window.top.fd._tempParentId());
}
$('.parent-field').hide();
}
In the CSS Editor i added
fd.populateFieldsInGrid($('.parent-field'), {
Costs: '{CurrentItem}',
});
And the HTML entry is
<div id="_fd_parent_temp">
<asp:HiddenField runat="server" ID="_fd_parent_tempField" __designer:bind="{ddwrt:DataBind('i','_fd_parent_tempField','Value','Load','ID',ddwrt:EscapeDelims(string(@ID)),'@_fd_parent_temp')}" />
</div>
Thats all. There is no column ID but I can create a new entry in the list and can add entries in the edit form without problems. But in the production form it is not possible to add entries in the edit form. I'll go crazy
Best wishes
Tom