AL icon indicating copy to clipboard operation
AL copied to clipboard

Standard Table Field Keys in Table Extension

Open AmolSalvi opened this issue 9 years ago • 5 comments

Hi,

Creating extension for table and trying to add key by using standard field but AL is not allowing /compiling

'"Posting Date"' in application object 'ItemLedgeEntryExtension' does not exist'

For field which is added in extension is allows to create.

AmolSalvi avatar Aug 03 '17 10:08 AmolSalvi

Yes. We currently only allow adding keys with fields from the tableextension itself. We are investigating if we can remove that restriction in a future update.

esbenk avatar Aug 03 '17 10:08 esbenk

Thank you so much and hope restriction will be removed in near future.

AmolSalvi avatar Aug 03 '17 10:08 AmolSalvi

Do you have an update on this? It's something that I believe that most ISVs will need (we certainly do).

jcooper01 avatar Aug 23 '17 21:08 jcooper01

tableextension 10935 tableextension10935 extends "G/L Account" { // version NAVW111.0

fields { field(10900;"IRS Number";Code[10]) { CaptionML=ENU='IRS Number', ISL='Númer á rekstrarframtali'; TableRelation="IRS Number"; } } keys { key(IRS; "IRS Number", "No.") {} } }

Error is:

message: 'Reference '"No."' in application object 'tableextension10935' does not exist' at: '16,28'

gunnargestsson avatar Aug 31 '17 11:08 gunnargestsson

we have around 50+ errors in our app while converting to extension 2.0. any update or alternative?

pmohanakrishna avatar Aug 31 '17 17:08 pmohanakrishna