sx-configuration

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

SX Configuration

SX配置

This skill provides templates and validation rules for generating Protheus data dictionary configuration scripts: SX2 table headers, SX3 field definitions, SIX indexes, SXG field groups, SXA form folders/tabs, SX1 report parameter questions, SX5 generic tables, SXB standard F3 lookup queries, and SX7 field triggers. It covers required field values, naming conventions (3-char aliases,
Z
-prefixed custom tables,
XX_FIELD
naming), share-mode semantics (
C
/
E
/
M
), and common pitfalls such as creation order (SX2 before SX3 before SIX) and hardcoded physical table names.
Activate this skill when the user is registering a new custom table, adding custom fields, defining indexes, grouping fields for cross-table validation, organizing MVC form tabs, setting up report parameter questions, creating a generic lookup table, or configuring an F3 query or field trigger. It does not cover programmatic READ access to the dictionary at runtime (
Posicione
,
TamSx3
, FW APIs) -- see
protheus-reference/sx-dictionary.md
for that.
Reference fileRead when
reference.mdAlways -- SX2/SX3/SIX/SXG/SXA/SX1/SX5/SXB/SX7 field templates, share modes, naming rules, and common pitfalls
本技能提供用于生成Protheus数据字典配置脚本的模板与校验规则,涵盖:SX2表头、SX3字段定义、SIX索引、SXG字段组、SXA表单文件夹/标签页、SX1报表参数问题、SX5通用表、SXB标准F3查找查询以及SX7字段触发器。内容包含必填字段值、命名规范(3字符别名、
Z
前缀自定义表、
XX_FIELD
命名格式)、共享模式语义(
C
/
E
/
M
),以及常见陷阱,例如未遵循正确的创建顺序(需按SX2 → SX3 → SIX的顺序创建)和硬编码物理表名。
当用户注册新的自定义表、添加自定义字段、定义索引、为跨表校验分组字段、组织MVC表单标签页、设置报表参数问题、创建通用查找表,或配置F3查询/字段触发器时,可激活本技能。本技能不涵盖运行时对字典的编程式READ访问(
Posicione
、
TamSx3
、FW API)——相关内容请参见
protheus-reference/sx-dictionary.md
。
参考文件读取时机
reference.md始终读取——包含SX2/SX3/SIX/SXG/SXA/SX1/SX5/SXB/SX7字段模板、共享模式、命名规则及常见陷阱