Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   XML (https://www.delphipraxis.net/46-xml/)
-   -   WSDL Dynamische Arrays als Property und Setlength ??? (https://www.delphipraxis.net/173399-wsdl-dynamische-arrays-als-property-und-setlength.html)

Dogenik 12. Apr 2013 10:02

AW: WSDL Dynamische Arrays als Property und Setlength ???
 
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.


Alle Zeitangaben in WEZ +1. Es ist jetzt 19:36 Uhr.
Seite 2 von 2     12   

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz