https://frp.sage.fr/wiki1000/index.php?title=GetWhere_(TSDataRemoteObject)&feed=atom&action=history
GetWhere (TSDataRemoteObject) - Historique des versions
2024-03-29T08:07:40Z
Historique pour cette page sur le wiki
MediaWiki 1.18.6
https://frp.sage.fr/wiki1000/index.php?title=GetWhere_(TSDataRemoteObject)&diff=6744&oldid=prev
Syfre le 15 mars 2013 à 08:09
2013-03-15T08:09:50Z
<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Version précédente</td>
<td colspan='2' style="background-color: white; color:black;">Version du 15 mars 2013 à 08:09</td>
</tr><tr><td colspan="2" class="diff-lineno">Ligne 49 :</td>
<td colspan="2" class="diff-lineno">Ligne 49 :</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>{{Footer|Classe entité de service distant (stereotype)}}</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>{{Footer|Classe entité de service distant (stereotype)}}</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">[[Category:Stéréotype entité de service distant]]</ins></div></td></tr>
</table>
Syfre
https://frp.sage.fr/wiki1000/index.php?title=GetWhere_(TSDataRemoteObject)&diff=5115&oldid=prev
Syfre : Page créée avec « <source lang='delphi'>class function GetWhere(const iWhere,iOrderBy:string; Args:Array of variant):TSDataRemoteObject;</source> Cette fonction retrouve une ressource SData p… »
2011-05-10T15:41:19Z
<p>Page créée avec « <source lang='delphi'>class function GetWhere(const iWhere,iOrderBy:string; Args:Array of variant):TSDataRemoteObject;</source> Cette fonction retrouve une ressource SData p… »</p>
<p><b>Nouvelle page</b></p><div><source lang='delphi'>class function GetWhere(const iWhere,iOrderBy:string; Args:Array of variant):TSDataRemoteObject;</source><br />
<br />
Cette fonction retrouve une ressource SData par une recherche.<br />
<br />
{{tip|Cette méthode utilise un [[Fournisseur de Service (sdata)|fournisseur de service]] enregistré dans l'Administration}}<br />
<br />
{|class="wikitable"<br />
|-<br />
|iWhere<br />
|La clause Where de recherche.<br />
|-<br />
|iOrderBy<br />
|La clause de tri de recherche.<br />
|-<br />
|iArgs<br />
|Les arguments de la clause Where.<br />
|}<br />
<br />
Exemple :<br />
<br />
<source lang="delphi"><br />
var inst:RE_Expense; aReason:string;<br />
begin<br />
aReason := Format('expense du %s',[FormatDatetime('c',Now)]);<br />
<br />
inst := RE_Expense.Create;<br />
inst.reason := aReason;<br />
inst.dateExpense := Now;<br />
inst.quantity := 1;<br />
inst.status.AsVariant := RE_NDF_STATUS_DRAFT;<br />
inst.Post;<br />
<br />
showMessage(Format('oid:%s id:%s key:%s etag:%s',[inst.OID,inst.SDataID,inst.SDataKey,inst.SDataEtag]));<br />
<br />
inst := RE_Expense.GetWhere('reason=%1','dateExpense',[aReason]) as RE_expense;<br />
if Assigned(inst) then<br />
begin<br />
if inst.reason = aReason<br />
then showMessage('create ok')<br />
else showMessage('create failed')<br />
end<br />
else showMessage('not found after create');<br />
end;<br />
</source><br />
<br />
Voir aussi<br />
<br />
*[[Classe entité de service distant (stereotype)|Classe entité de service distant]]<br />
<br />
{{Footer|Classe entité de service distant (stereotype)}}</div>
Syfre