Skip to content

Commit

Permalink
* AjaxForms now supports individual fields
Browse files Browse the repository at this point in the history
* UAC.res added to ExtPascalSamples folder
  • Loading branch information
wanderlan.anjos committed Apr 14, 2010
1 parent 5c09052 commit 453e0d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ExtPascal.pas
Original file line number Diff line number Diff line change
Expand Up @@ -1654,7 +1654,12 @@ function TExtObject.AjaxForms(Method : TExtProcedure; Forms : array of TExtObjec
begin
S := '';
for I := 0 to high(Forms) do begin
TExtFormBasicForm(TExtFormFormPanel(Forms[I]).GetForm).GetValues(true);
if Forms[I] is TExtFormField then begin
S := S + '"' + TExtFormField(Forms[I]).ID + '="+';
TExtFormField(Forms[I]).GetValue;
end
else
TExtFormBasicForm(TExtFormFormPanel(Forms[I]).GetForm).GetValues(true);
S := S + TExtObject(Forms[I]).ExtractJSCommand;
if I <> high(Forms) then S := S + '+"&"+';
end;
Expand Down
Binary file added ExtPascalSamples/UAC.res
Binary file not shown.

0 comments on commit 453e0d9

Please sign in to comment.