我尝试了一步一步地从培训视频,但这个错误提示每当我按F5。
Specifying Country ...
error spc0052: Attribute CityId must be present on the screen or assigned by a rule. (Transaction 'Country', Details)
error spc0104: Grids are mandatory for all levels but the first one. (Transaction 'Country', Details)
warning spc0043: CityId is not instantiated. (Transaction 'Country', Details)
Processing inferred calls...
Failed: Specification
Failed: Run Developer Menu发布于 2022-04-14 13:03:54
似乎您在事务结构及其形式(屏幕布局)上遇到了问题。
关于SPC0052错误
属性CityId似乎是事务密钥的一部分。我假设您的结构类似于:
CountryId*
CountryName
(CityId*
CityName)每个键属性(本例中的CountryId和CityId )都必须出现在屏幕上或在事务规则中分配。否则,它将如何有价值?(请记住,键属性不能是“null”)
更多信息:https://wiki.genexus.com/commwiki/servlet/wiki?6432,Specification+Codes+from+spc0050+to+spc0099
关于SPC0104错误
您似乎为第一级(countryId)定义了网格,这是不允许的。对于上面的示例结构,第一级的表单应为“普通”,第二级为“网格”。
更多信息:https://wiki.genexus.com/commwiki/servlet/wiki?6433,Specification+Codes+from+spc0100+to+spc0149
如何修复它们?这取决于您定义的结构和形式。也许最简单的方法是应用默认表单(位于事务表单,选项编辑/应用默认(Web布局))。
https://stackoverflow.com/questions/71867150
复制相似问题