Einzelnen Beitrag anzeigen

Dogenik

Registriert seit: 11. Apr 2013
4 Beiträge
 
#11

AW: WSDL Dynamische Arrays als Property und Setlength ???

  Alt 12. Apr 2013, 10:02
Habe nun eine Lösung gefunden und will Sie auch öffentlich machen falls noch wer so ein Problem hat:
Für Document einen eigenen Constructor eingeführt in der ich die Länge des Array of Docs setze:
Delphi-Quellcode:
constructor Document.Create(iLaenge : Integer);
begin
  inherited Create;
  SetLength(Fdocs,iLaenge);
end;
und dann so weiter:
Delphi-Quellcode:
var
  eInfoDoc : EditInfo;
  arDoc : DocVersion;

    arDoc := DocVersion.Create;

    eInfoDoc := ix.checkoutDoc(clInfo, InttoStr(EInfoDocSord.Id), '', ixKonst.EDIT_INFO.mbSordDocAtt,ixKonst.LOCK.NO);
    eInfoDoc.document := Document.Create(1);
    arDoc.ext := 'pdf';
    arDoc.pathId := eInfoDocsord.path;
    arDoc.encryptionSet := eInfoDocsord.details.encryptionSet;
    eInfoDoc.document.docs[0] := arDoc;
    eInfoDoc.document := ix.checkinDocBegin(clInfo, eInfoDoc.document); // liefert URL -> eInfoDoc.document.docs[0].URl
Keine Ahnung ob das schöner oder besser geht. So funktioniert es auf jeden Fall.
  Mit Zitat antworten Zitat