瀏覽代碼

* Use the Action form a control as a Link in a THTMLDatasetFormGridProducer

git-svn-id: trunk@8106 -
joost 18 年之前
父節點
當前提交
4c5d8a9c79
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      packages/fcl-web/src/fpdatasetform.pp

+ 2 - 0
packages/fcl-web/src/fpdatasetform.pp

@@ -1006,6 +1006,8 @@ procedure THTMLDatasetFormGridProducer.ControlToTableDef (aControldef : TFormFie
       CellType := ctLabel;
       IsLabel := false;
       Value := aControlDef.FField.asstring;
+      if aControldef.Action <> '' then
+        Link := Format(aControldef.Action,[value]);
       if not FSeparateLabel and not FIncludeHeader then
         begin
         Caption := aControldef.LabelCaption;