'Genexus Traning Videos

I tried the step-by-step from Training videos, but this error prompts whenever I press 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


Solution 1:[1]

It seems that you are having problems with transaction structure and its form (screen layout).

About SPC0052 error

Attribute CityId seems to be part of the transaction key. I assume you have a structure similar to:

CountryId*
CountryName
      (CityId*
       CityName)

Every key attribute (CountryId and CityId in this example) must be present on the screen or assigned in the transaction rule. Otherwise, how will it have a value? (remember that Key attributes cannot be “null”)

Further information: https://wiki.genexus.com/commwiki/servlet/wiki?6432,Specification+Codes+from+spc0050+to+spc0099

About SPC0104 error

It seems that you defined a grid for the first level (countryId) and this is not allowed. For the above sample structure, the form should be “plain” for the first level and “grid” for the second level

Further information: https://wiki.genexus.com/commwiki/servlet/wiki?6433,Specification+Codes+from+spc0100+to+spc0149

How to fix them? It depends on the structure and form that you have defined. Perhaps the easiest way is to apply default form (positioned at transaction form, option edit/Apply Default (Web Layout)

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Guscarr