Message Spacing when using CONFIRM

tforshaw
Member Posts: 2
I am trying to create a CONFIRM message with tab-like spacing. That is, I want to list four or five things on the right side of the CONFIRM box and have four or five things on the left side of the CONFIRM box, and I want both to appear to be in tabbed columns.
I've tried using %1 and #1, and the closest I've gotten to what I want is this:
IF NOT CONFIRM('This Employee Number exists in the Kronos Employee Table.\\'+
'Employee No................ #1###########\'+
'Kronos Employee No.........#2###########\'+
'Employee Name.............. #3##############\'+
'Social Security No......... #4###########\'+
'Active Company............. #5##################\\'+
'If this is the correct employee, answer YES below.\'+
'If this is the wrong employee, answer NO below.',FALSE,
dhbKronosEmployee."Employee No.",dhbKronosEmployee."Kronos ID",
dhbKronosEmployee."Employee Name",dhbKronosEmployee."Employee SSN",
dhbKronosEmployee."Active Company") THEN . . .
or
IF NOT CONFIRM('This Employee Number exists in the Kronos Employee Table.\\'+
' Employee No ......... #1###########\'+
'Kronos Employee No ......... #2###########\'+
' Employee Name ......... #3##############\'+
' Social Security No ......... #4###########\'+
' Active Company ......... #5##################\\'+
'If this is the correct employee, answer YES below.\'+
'If this is the wrong employee, answer NO below.',FALSE,
dhbKronosEmployee."Employee No.",dhbKronosEmployee."Kronos ID",
dhbKronosEmployee."Employee Name",dhbKronosEmployee."Employee SSN",
dhbKronosEmployee."Active Company") THEN . . .
If I make everything line in the C/AL code like a DIALOG box, it looks awful.
I know when we use display a DIALOG box, everything lines up nicely using #1, but I cannot make it work with CONFIRM or MESSAGE.
Any help is appreciated. Thanks in advance.
- TF -
I've tried using %1 and #1, and the closest I've gotten to what I want is this:
IF NOT CONFIRM('This Employee Number exists in the Kronos Employee Table.\\'+
'Employee No................ #1###########\'+
'Kronos Employee No.........#2###########\'+
'Employee Name.............. #3##############\'+
'Social Security No......... #4###########\'+
'Active Company............. #5##################\\'+
'If this is the correct employee, answer YES below.\'+
'If this is the wrong employee, answer NO below.',FALSE,
dhbKronosEmployee."Employee No.",dhbKronosEmployee."Kronos ID",
dhbKronosEmployee."Employee Name",dhbKronosEmployee."Employee SSN",
dhbKronosEmployee."Active Company") THEN . . .
or
IF NOT CONFIRM('This Employee Number exists in the Kronos Employee Table.\\'+
' Employee No ......... #1###########\'+
'Kronos Employee No ......... #2###########\'+
' Employee Name ......... #3##############\'+
' Social Security No ......... #4###########\'+
' Active Company ......... #5##################\\'+
'If this is the correct employee, answer YES below.\'+
'If this is the wrong employee, answer NO below.',FALSE,
dhbKronosEmployee."Employee No.",dhbKronosEmployee."Kronos ID",
dhbKronosEmployee."Employee Name",dhbKronosEmployee."Employee SSN",
dhbKronosEmployee."Active Company") THEN . . .
If I make everything line in the C/AL code like a DIALOG box, it looks awful.
I know when we use display a DIALOG box, everything lines up nicely using #1, but I cannot make it work with CONFIRM or MESSAGE.
Any help is appreciated. Thanks in advance.
- TF -
0
Comments
-
You need to use %1, %2 etc. to substitute the values into text and zou need to pad the values to needed length for example with FORMAT(Value,-length) - it will create string with exact size of <length>.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