CreateDocument (TdbfDocument)

De Wiki1000
(Différences entre les versions)
m (Remplacement du texte — « category:Latest » par « Category:Version700 »)
Ligne 40 : Ligne 40 :
 
{{Footer|TdbfDocument}}
 
{{Footer|TdbfDocument}}
 
[[category:TdbfDocument]]
 
[[category:TdbfDocument]]
[[category:Latest]]
+
[[Category:Version700]]

Version du 13 janvier 2015 à 12:11

class function CreateDocument(const iName,iOidObject,iDataURL:string);

Cette fonction crée un document et le rattache à un objet.

iName Nom du document créé
iOidObject Identifiant de l'objet auquel rattaché le document
iDataURL Contenu du document au format todataURL()


Exemple :

begin
 withP transaction do
  begin
    ndf := TNoteFrais.Create;
    ndf.nDate := Now;
    ndf.referencePiece := req.ref;
    ...
 
    if req.Exists('photo') and (req.photo<>'') then
     begin
       TdbfDocument.CreateDocument('ndf-',ndf.InstanceOID,req.photo);
     end;
  end;
end;

Voir aussi:

TdbfDocumentDéveloppement DSM





Whos here now:   Members 0   Guests 0   Bots & Crawlers 1
 
Outils personnels