Hello,
On table 263 - Intrastat Jnl. Line, I added a field in the TableExt :
Hello,
On table 263 - Intrastat Jnl. Line, I added a field in the TableExt :
I created a new field in the TableExt of Table 311 with the code of the standard field in it, plus my conditional TableRelation instead of the standard "TableRelation = Item". I also created a new field in the pageExt of Intrastat Journal to displays this new table field. And now it works !
Here is the code of my new tableExt field and pageExt field :
TableExt "Intrastat Jnl. Line" :
The former field (still doesn't work) :
The new field (it works) :
I think the problem comes from the property "TableRelation = Item" in the standard Table field "Item No.". In MS doc, it seems to say that the original TableRelation property cannot be changed. https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/properties/devenv-tablerelation-property
Looks good to me. What if you create the same Item No. like e.g. extItemNo. with the same code in the standard and extend this? Just to double check if this is related to standard field or custom table extension field extended a second time through your extension.
Last check. What is the build no. you are testing with?
Reflex from NAV 2018. I'v changed the field Option to Enum (I created an Enum).
The result is the same :/
Why you have added an Option and not an Enum?
Check this out
I would have used an Enum instead of the option. Give it a spin
YUN ZHU
628
Super User 2025 Season 1
Mansi Soni
495
Sagar Dangar, MCP
395