Skip to main content

wsbtn

Custom Action

{
"_id":"ObjectId",
"wsid":"string", // Worksheet ID
"name":"string", // Button name
"views":[], // Show view
"showtype":"int", // 1:Always, 2: Meet filter conditions, 9: Custom page
"filters":[], // Filter items. Refer to filter parameters in worksheet
"clicktype":"int", // 1: execute immediately, 2: double confirmation, 3: fill in
"confirmmsg":"string", // Confirmation
"surename":"string", // The OK button
"cancelname":"string", // The Cancel button
"writeobj":"int", // Object. 1: current record, 2: associated record
"writetype":"int", // Type. 1: fill in the field, 2:new associated record
"relationcontrol":"string", // Associated record ID
"addrcontrol":"string", // New associated record ID
"controls":[{
"controlid":"string", // Control ID
"type":"int", // 1: Read only, 2: Fill, 3: Required
"defsource":"[{"rcid":"Control ID in associated worksheet","cid":"Control ID","staticValue":"string"}]"
}], // The filling in control
"workflowtype":"int", // 1: Execute, 2: Not execute
"workflowid":"string", // Workflow ID
"status":"int", // Status. 1: normal, 9: deleted
"color":"string", // Color
"icon":"string", // Icon
"ctime":"datetime", // Date created
"caid":"string" // Creator account ID
}