Home Page field in the Customer Card is still accepting 80 characters in BC24

Ganesh2002
Member Posts: 14
We are upgrading BC On-Prem from 22 to BC24. I see the following code. When I go to the customer card, it allows me to enter only 80 characters instead of 255. I have downloaded the symbols. Please advise.
#if not CLEAN24
field(103; "Home Page"; Text[80])
{
Caption = 'Home Page';
ExtendedDatatype = URL;
ObsoleteReason = 'Field length will be increased to 255.';
ObsoleteState = Pending;
ObsoleteTag = '24.0';
}
#else
#pragma warning disable AS0086
field(103; "Home Page"; Text[255])
{
Caption = 'Home Page';
ExtendedDatatype = URL;
}
#pragma warning restore AS0086
#endif


App.json
{
"id": "a835b52b-238d-4a08-8f21-46811d0ecbc3",
"name": "TEST",
"publisher": Test",
"version": "1.0.0.340",
"brief": "This contains the custom code of WCI",
"description": "",
"privacyStatement": "",
"EULA": "",
"help": "",
"url": "",
"logo": "",
"dependencies": [
{
"id" : "437dbf0e-84ff-417a-965d-ed2bb9650972",
"publisher": "Microsoft",
"name" : "Base Application",
"version": "24.9.29403.0"
},
{
"id" : "f3552374-a1f2-4356-848e-196002525837",
"publisher": "Microsoft",
"name" : "Business Foundation",
"version": "24.9.29403.0"
},
],
"screenshots": [],
"platform": "24.0.0.0",
"application": "24.9.29403.0",
"idRanges": [
{
"from": 50000,
"to": 51999
}
],
"resourceExposurePolicy": {
"allowDebugging": true,
"allowDownloadingSource": true,
"includeSourceInSymbolFile": true
},
"runtime": "13.0",
"features": [
"NoImplicitWith"
],
"target" : "Cloud"
}
#if not CLEAN24
field(103; "Home Page"; Text[80])
{
Caption = 'Home Page';
ExtendedDatatype = URL;
ObsoleteReason = 'Field length will be increased to 255.';
ObsoleteState = Pending;
ObsoleteTag = '24.0';
}
#else
#pragma warning disable AS0086
field(103; "Home Page"; Text[255])
{
Caption = 'Home Page';
ExtendedDatatype = URL;
}
#pragma warning restore AS0086
#endif


App.json
{
"id": "a835b52b-238d-4a08-8f21-46811d0ecbc3",
"name": "TEST",
"publisher": Test",
"version": "1.0.0.340",
"brief": "This contains the custom code of WCI",
"description": "",
"privacyStatement": "",
"EULA": "",
"help": "",
"url": "",
"logo": "",
"dependencies": [
{
"id" : "437dbf0e-84ff-417a-965d-ed2bb9650972",
"publisher": "Microsoft",
"name" : "Base Application",
"version": "24.9.29403.0"
},
{
"id" : "f3552374-a1f2-4356-848e-196002525837",
"publisher": "Microsoft",
"name" : "Business Foundation",
"version": "24.9.29403.0"
},
],
"screenshots": [],
"platform": "24.0.0.0",
"application": "24.9.29403.0",
"idRanges": [
{
"from": 50000,
"to": 51999
}
],
"resourceExposurePolicy": {
"allowDebugging": true,
"allowDownloadingSource": true,
"includeSourceInSymbolFile": true
},
"runtime": "13.0",
"features": [
"NoImplicitWith"
],
"target" : "Cloud"
}
0
Answers
-
Hello Ganesh, how do you do? Have you been able to sove this problem, yet? I'am not sure about a solution. But I would set Drilldown of both fields with a OnDrilldown trigger. That way you can set a breakpoint and use debugging to determine which field actually is used. Let me know if it works!0
-
Hi Ganesh,
In the code #if not CLEAN24 you will only enter only 80 characters .. If the BC is not cleaned you will get this result.
1. please ensure that the app.json will have "preprocessorSymbols": ["CLEAN24"] if not found Define the preprocessor symbol in app.json.
2. Re-Build your AL Code by ctrl+shift+B.
3. Publish your code by ctrl+F5.
Bonus Tip:
if it not works
Change the field directly to Text[255].0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions