9. Juli 2008 10:54
RecordReference.OPEN("Primary Table No.", FALSE, "Nav Company");
IF RecordReference.GET("Primary Table Record ID") THEN
...
9. Juli 2008 11:06
9. Juli 2008 12:30
RecRef.OPEN(287, FALSE, 'Mandant 1');
IF RecRef.FIND('-') THEN
BEGIN
CodeunitParamsTemp."Primary Table No." := 287;
CodeunitParamsTemp."Primary Table Record ID" := RecRef.RECORDID;
CodeunitParamsTemp."Nav Company" := 'Mandant 1';
RecordReference.OPEN(CodeunitParamsTemp."Primary Table No.", FALSE, CodeunitParamsTemp."Nav Company");
IF RecordReference.GET(CodeunitParamsTemp."Primary Table Record ID") THEN BEGIN
END ELSE
ERROR('RecRef "%1" nit da!', CodeunitParamsTemp."Primary Table Record ID");
END;
9. Juli 2008 13:16
RecRef.OPEN(287, FALSE, COMPANYNAME);
IF RecRef.FIND('-') THEN BEGIN
TabNo := 287;
RecID := RecRef.RECORDID;
Comp := 'Mandant 2';
RecordReference.OPEN(TabNo, FALSE, Comp);
RecRef2 := RecID.GETRECORD;
RecordReference.SETPOSITION(RecRef2.GETPOSITION());
IF RecordReference.FIND('-') THEN BEGIN
END ELSE
ERROR('RecRef "%1" nit da!', RecRef.GETPOSITION());
END;
9. Juli 2008 13:38