AL icon indicating copy to clipboard operation
AL copied to clipboard

NAV2018 code no longer works in BC

Open mynhardt7 opened this issue 7 years ago • 11 comments

Describe the bug

The code below works in NAV 2018 CU8. When trying the code on BC CU2 it compiles, but the changes are not reflected in the UI.

Screenshots

image

image

Versions:

  • AL Langauge: 2.1.69331
  • Business Central: On-prem W1 13.2 (13.0.26413) CU2

mynhardt7 avatar Dec 20 '18 12:12 mynhardt7

@mynhardt7 what do you mean? Are you saying that the caption should be changed?

atoader avatar Dec 20 '18 13:12 atoader

@atoader The caption should be changed. The moveafter statement should also have the effect of moving the County field which it doesn't.

mynhardt7 avatar Dec 20 '18 13:12 mynhardt7

I think you have to use a pagecustomization Object instead of a pageextension.

OleTeichmann avatar Dec 20 '18 13:12 OleTeichmann

County caption is now handled via CaptionClass. For some reason this causes explicit changes through extensions to be ignored.

If you set County Name field in Country/Region table to Area, you will get desired result with no extension needed.

JuricaB avatar Dec 21 '18 01:12 JuricaB

@mynhardt7 can I close this issue?

atoader avatar Jan 07 '19 21:01 atoader

@atoader It still seems like something is not working correctly. The code to modify the Sell-to County is completely ignored. The field is not made visible.

image

mynhardt7 avatar Jan 08 '19 10:01 mynhardt7

Hi @mynhardt7, It might be because of the ApplicationArea, try modifying it to All.

thpeder avatar Mar 01 '19 10:03 thpeder

@mynhardt7 has Thomas's suggestion helped unblock you?

atoader avatar Aug 09 '19 14:08 atoader

@mynhardt7 any update on this issue? Is this still blocking you or can I close this issue?

qutreson avatar Oct 07 '19 07:10 qutreson

@qutreson Please close. I'll recheck now that BC15 is launched and create a new issue if the issue still exists.

mynhardt7 avatar Oct 07 '19 07:10 mynhardt7

@mynhardt7 perfect, thank you. If you create a new issue, please also add a link to this issue in the description.

qutreson avatar Oct 07 '19 07:10 qutreson