I created this topic because I am trying to find how to retrieve field values from a subform or an iFrame to update a field in the main form.

I can update fields in subforms or iframe but not the other way around ...
If you are an idea

Yes, i was wrong in my previous postThe picture isn't showing a subform but rather a form in a run object (right?)
it is a temporary field that I have in the table 'Tbl_Dossier'. I wanted to use it to filter the second Run :: iframeHow did you add Tmp_Tiers to that browse form?
Code: Select all
if(nuFormType() == 'edit') {
alert("hello! 1");
nuHide('Ref_Dossier');
alert("hello! 2");
nuFilterRun('Form_Gestion_Tiers',$("#Form_Gestion_Intervenants").contents().find("#Ref_Tiers_Intervenants").val());
alert("hello! 3");
if(nuIsNewRecord()){
$('#Ref_Dossier_Intervenants')
.val(parent.nuFORM.getCurrent().record_id)
.change();
}
}
Code: Select all
$("#Form_Gestion_Intervenants").contents().find("#Ref_Tiers_Intervenants").val()
Code: Select all
$("#Form_Gestion_Intervenants").contents().find("#Ref_Tiers_Intervenants").val()