                 fields[item.name] = item.value
         
         params = 
-            table:'${table_name}'
-            pkey:'${pkey}'
+            table: $scope.table
+            pkey: $scope.pkey
             columns:fields
-            #hardcode
             context: context
 
 

    #
    
    #$scope.defaultValue[1] = 3;
    #
    #    submit, save, refresh...
    #
    $scope.submit = ->
        #$validator.validate($scope, "zform").success(->
        #zmodel
        
        fields = {}
        

###
angular.module("fbpoc.${class_name}FormCtrl", []).controller "${class_name}FormCtrl", [
  "$scope"
  "$routeParams"
  "$log"
  "$builder"
  "$validator"
  "sessionService"
  "dataService"
  ($scope, $routeParams, $log, $builder, $validator, sessionService, dataService) ->
  
    $scope.table = "${table_name}"
    
    $scope.system = {
        modifiedon:null
