Goodbye CLAUSL blog
23 October 09 11:37 PM | clausl | 0 Comments   

To make it more simple for you guys to find and discover blogs post from the NAV team members we are combining our blogs into the NAV Team Blog, so I will no longer be posting on the CLAUSL blog. All post from this blog have already been migrated to the NAV Team Blog.

If you still want to follow blogs especially from me please follow this link: http://blogs.msdn.com/nav/archive/tags/Clausl/default.aspx

Thanks to all for giving me more than 40.000 reads on this blog.

See you all at the NAV Team Blog.

Thanks,

Claus Lundstrøm, Program Manager, Microsoft Dynamics NAV

Style Sheet Tool 2.0 now available
01 July 09 10:29 PM | clausl | 0 Comments   

A new version of the Style Sheet Tool for Microsoft Dynamics NAV is now available. This will also support Microsoft Dynamics NAV 2009 and our upcoming SP1 release.

Please find it here:

CustomerSource: https://mbs.microsoft.com/customersource/downloads/servicepacks/NAVStyleSheetTool

PartnerSource: https://mbs.microsoft.com/partnersource/deployment/resources/supplements/NAVStyleSheetTool

Thanks to Robert Miller for making this happen

/Claus

How to make Sub Groups in a Page
03 February 09 10:41 PM | clausl | 0 Comments   

In the new RoleTailored client in Microsoft Dynamics NAV 2009 you do not have the possibility to place a field exactly where you want on a page. You can control in which order they should be shown, but where the field will be placed, is up to the RoleTailored client. This is quite different compared to the Classic where we could define Xpos and Ypos for each control.

Using Sub groups in the Page Designer you can control how fields are grouped. This way you can fix fields to the left side of a FastTab and to the right side of the FastTab. Let see an example of this.

Here is how the "General" FastTab on the Customer Card looks out of the box with no customizations:

image

But adding 2 Sub Groups you can have the General FastTab look this:

image

How did I do this? Well let's have look at Page 21 in Page Designer where I have added these 2 groups marked with blue:

image

While the "General" and "Group 1" seem very similar in Type and Subtype, the important part to notice here is INDENTATION. My "Group 1" is indented under the "General" FastTab group. And when indented under a FastTab group this will be displayed as group and not as a FastTab.
Then of course I have indented the fields "No., Name, Address, Address 2, Post Code and City" below "Group 1" to have these fields captured in this group. For "Group 2" I done the same.

Actually we go one indention level deeper. Try to add a Sub Group in either "Group 1" and "Group 2" and indent some of the fields into to this new sub Group.

Using Sub Groups gives a bit more control on where fields are placed in the page on the RoleTailored client.

Thanks,

Claus Lundstrøm, Program Manager, Microsoft Dynamics NAV

Microsoft Dynamics NAV Reporting Blog now online
27 January 09 02:20 PM | clausl | 0 Comments   

I just want to promote our blog about reporting in Microsoft Dynamics NAV, in case you have not already spotted this one.

So if you are interested in Reporting in Microsoft Dynamics NAV this is the blog to follow. Also this is your directly link to the product team, so if you have suggestion on what we should blog about, or features you would like to see in the future, please comment on one of the blog posts or use the E-Mail/Contact Form to contact us.

Please find the Microsoft Dynamics NAV reporting blog here:
http://blogs.msdn.com/nav-reporting

Thanks,

Claus Lundstrøm, Program Manager, Microsoft Dynamics NAV

Using SQL Server 2008 Express
13 January 09 01:35 PM | clausl | 0 Comments   

Small tip, if you want to use SQL Server Express 2008 instead of SQL Server Express 2005 which is included in the Microsoft Dynamics NAV 2009 RTM installation, here is what to do:

The Demo installation of NAV 2009 RTM is looking for a instance called MSSQLSERVER, so if this is not detected during install, SQL Server Express 2005 will be installed, and Demo Database will be attached to SQL 2005 even though you might have had SQL 2008 Express installed.

So to avoid this set the Instance to MSSQLSERVER on the SQL Server 2008 Express. This way SQL Server 2008 Express will be used and SQL Server 2005 will not be installed.

Note: SQL Server 2008 requires the following:

.NET Framework 3.5 SP1
Windows Installer 4.5
Windows PowerShell 1.0 (Included in Windows Vista SP1 and Windows Server 2008)

Thanks,

Claus Lundstrøm, Program Manager, Microsoft Dynamics NAV

NAV 2009 Developer Help Available on the Download Center
04 December 08 10:31 AM | clausl | 3 Comments   

Yes we just released NAV 2009, but our Developer help has now already been updated, and can be found here:

http://go.microsoft.com/fwlink?linkid=126282

This update includes new and improved Developer, Installation, and Administration content versus what shipped with the Microsoft Dynamics NAV 2009 installation media, including

  • Nearly 80 bugs fixed. 197 topics updated or added (~15% of the total).
  • Updates to C/SIDE Reference to reflect Microsoft Dynamics NAV 2009.
  • Major improvements to content on How to Develop for NAV, particularly explanations on the differences in developing for the two clients.
  • Updates and new content for Page Designer and File Handling topics.
  • New content on security for the RoleTailored client.

Also notice that the files nav_adg.chm, nav_install.chm are merged with the cside.chm, so now all Developer Help is found in cside.chm.

We will continue to improve the Developer Help so expect an update to the Developer help in the near future. Here subjects like debugging in RoleTailored client, which I previously described on my blog, will be explained in more details.

If you have issue viewing the new file, you might one to check out the resolution found in this KB902225

/Claus Lundstrøm, Program Manager, Dynamics NAV

Building a Role Center in 1 hour
25 November 08 09:39 PM | clausl | 0 Comments   

First I want to say thanks to people who attended Michael Rosenørn and My session, about building a Role Center in 1 hour, at Convergence 2008 last week in Denmark. Our evaluation score for this session was second highest out of all sessions at Convergence, so we must have done something right :-) Thanks guys!!!

Still I a have a feeling that there are so much more I would like to share with you on how we build up the Role Center, so I have decided to share our demo script for this session.

To the readers which did not attend the session. Michael acted as the Customer and I as the Partner and Live implementer at stage.

The story: Michael (The customers) is requesting Me(The Partner) to implement a Role Center for his Election Manager user profile. The Election Manager is responsible for following up on sponsor for the upcoming election. We are imaging that there is a big election coming up even though we all know this just finished in the US.
So the Election Manager need to keep track of the sponsors in his portfolio. Which sponsor has delivered what they have promised? And which sponsor have not delivered? Election manager will need to get a fast overview of which Sponsor he need to follow up on.
Also the Election Manager needs to setup events and would like to see who is responsible for each of these events. So with this background we start building the Role Center.
Credit goes to Andy Blehm, our Developer Lead on the Client team, for coming up with this story. Thanks Andy.

You can find the Demo Script here. In this zip file you will find the following files:

  1. Election - Demo Script.docx (This is the actual Demo Script, no proofreading so if there is any spelling mistake please just blame me)
  2. Election Demo Data.txt (Demo Data to import before demo)
  3. Election Objects START.fob (Prepared Objects. These are prepared to keep the demo in 1 hour, many of the prepared demo objects are explained during the demo)
  4. Election Objects START.txt (and in txt format as well if you prefer this)
  5. Election Objects END.fob (All objects included the objects build during the demo. If you just want to see what we build and don't care about the demo script, this is your file )
  6. Election Objects END.txt (and in txt format as well if you prefer this)

Regards,
Claus Lundstrøm

Debugging in NAV 2009
14 October 08 12:22 PM | clausl | 6 Comments   

UPDATE 23 February 2009!!! Today my TAP partner GAC asked if it is possible to debug with Visual Studio Express 2008. I could not find any place where we have documented this, so I thought I would share the answer with the readers on this blog. And yes you can debug NAV 2009 with Visual Studio Express 2008. So a purchase of Visual Studio 2008 Standard is not required for this task. Please note that SP1 need to be installed also on Visual Studio Express.

Thanks,
Claus Lundstrøm, Program Manager, Microsoft Dynamics NAV

---
UPDATE!!! Debugging is not available in the Marketing Beta, so if you have access to a later build you can try this out. If not you will have to wait for RTM.
Also note that SP1 for either Visual Studio 2005 or Visual Studio 2008 is required.
---

In this post I will give you a example on how to debug in NAV 2009.

1. EnableDebugging in CustomSettings.config found here: C:\Program Files\Microsoft Dynamics NAV\60\Service

image

2. Now Restart the “Microsoft Dynamics NAV Server” service

image

3. Now we have debugging enabled. Now start the RoleTailored client. This will take a bit longer to start up, because C# files are generated for each of the objects. (Pages, Codeunits, Reports etc.)

4. Now we need to find a place to debug. In this example I will make a codeunit with a simple message and add this to an action on the Customer list.

5. Create a Codeunit. Ex. 50000

6. OnRun trigger place the following code: MESSAGE ('Debug test')

image

7. Save and compile Codeunit 50000.

8. Now let us add this codeunit to a action. Design page 22 and navigate to the Actions on page 22.

9. Insert a new action below the the Customer Action group

image

10. Hit F9 and enter this code on the Debug test -  OnAction trigger: CODEUNIT.RUN(50000);

image

11. Save and compile page 22

12. OK we now have all code completed so now let us set a breakpoint in Visual Studio.

13. Navigate to “C:\ProgramData\Microsoft\Microsoft Dynamics NAV\60\Server\MicrosoftDynamicsNavServer\source\Codeunit”

14. Assuming that you have Visual Studio installed, (In my case I’m using Visual Studio 2008 with SP1) open Codeunit50000.cs

image

15. If you have UAC turned you will need to open Visual Studio with “Run as administrator”.

16. Now we need to attach the NAV service. Select “Debug / Attach to process…”

17. Attach Microsoft.Dynamics.Nav.Server.exe

image

18. Your screen should now look like this:

image

19. Now add a break point on the message “Debug test”

image

20, With this done now let us go to RoleTailored client.

21. Navigate to Customer List and see that you have a new action called “Debug test” under “Related Information”

image

22. Now select “Debug test”

23. Visual Studio will come back in focus with the breakpoint selected.

image

24. Now try to hit F5 and debugging will continue and RoleTailored client will come back in focus and show the message “Debug test”:

image

Thanks,

Claus Lundstrøm, Program Manager, Microsoft Dynamics NAV

Action and Activity Button icons in Microsoft Dynamics NAV 2009
28 September 08 11:02 PM | clausl | 5 Comments   

First, if you have not downloaded the just released Marketing Beta for Dynamics NAV 2009, this can be downloaded from here. Requires access to Partner Source.

In the Marketing Beta for Dynamics NAV 2009 you will find new walkthroughs for how to create Pages for the new RoleTailored client.

But one thing that you can not find in the “nav_adg.chm", are what icons you can use in the RoleTailored client, because this topic will be added later.

So to save you the time reverse engineering the Demo Database to create this list, if you are to create a new page, let me share these icons with you.

But first let me give you an example on a Action and an Activity Button. If you already are familiar with this, you can skip to the end of this blog, where all the icons are listed.

Example of an Action in Page Designer:

1. Open Object Designer

2. Navigate to the new Page object

3. Design page 22, Customer List

4. Navigate to the bottom of the page to access the Page Object itself

5. Right click and select “Actions”, you view should now look like this:

image

6. You are now looking at the Action Designer which is captured inside the Page Designer.

7. Scroll down to <Action58>, Bank Accounts and select properties on this action. Your view should now look like this:

image

8. The most important property here is the “RunObject”, which tells which object are activated, when this Bank Accounts action is clicked, but for this blog I’m concentrate on the “Image” property so I will not go into more detail for the “RunObject”. Notice that the Image property is undefined. So how will this action actually look in the RoleTailored client if no image is associated to this action? Let us promote this action and see.

9. Set “Promoted” to Yes

10. Set “PromotedIsBig” to Yes

11. Save and compile page 22.

12. Open RoleTailored client.

13. Navigate to the Customer List, if you have the Customer List open already, just refresh the list by clicking“Refresh” in the top right corner. You will now see your “Bank Accounts” action promoted with the default icon used. The default icon will be used when the Image property has not been set:

image

14. Now let set the “Image” property on the “Bank Accounts” action. Go back to the Action Design for Page 22 and select the properties for the “Bank Accounts” action.

15. Set the “Image” property to “BankAccountStatement”

16. Save and compile page 22.

17. Refresh Customer List in RoleTailored client and your icon for “Bank Accounts” action will now look this.

image

Now let us look at an example of an Activity Button in Page Designer:

1. Activity Buttons belongs to the RoleCenter so to create or modify an Activity Button we need to be designing a Page of PageType “Rolecenter”. So let us look at page 9006.

2. Design page 22

3. As for the Actions the Activity Buttons are also found in the Action Designer, so Navigate to the bottom of the page to access the Page Object itself.

4. Right click and select “Actions”, you view should now look like this:

image

5. Instead of modifying an existing Activity Button as we did for the Action above, let us create a new one.

6. Navigate to the ActionContainer ActivityButtons area of the Action Designer:

image  

7. Role Center 9006 has one Activity Button called “Posted Documents”. Let us create a new Activity Button call “Bank” just above “Posted Documents”. Place your cursor on “ActionGroup” “Posted Documents” and press F3.

8. A new line is created. Set “Caption” to “Bank” and “Type” to “ActionGroup”

9. Open properties and set “Image” property to “Bank”.

10. Make sure that the 2 ActionGroups “Bank” and “Posted Documents” are at the same indention level. You might need to move “Bank” to the right to align with “Posted Documents”.

11. We could stop now and see the Activity Button in RoleTailored client, but let us add an action to this new Activity Button, so we actually have something happening when you click the Activity Button “Bank” in the RoleTailored client.

12. Create new line bellow, the “Bank” “ActionGroup”, and set “Caption” to “Bank Accounts” and “Type” to “Action”. Make sure that this action is indented one level in from the ActionGroup  above.

13. Open properties for “Bank Accounts” and set “RunObject” to “P371” (Page Bank Account List)

14. Now restart RoleTailored client to see your new Activity button. Note: Refresh does not work in Activity Button area of the Role Center, so you will need to restart the RoleTailored client to see your “Bank” Activity Button. Hopefully this we be solved in a future build, so you don’t need to restart to see your changes made in Page Designer. :-). After the restart you RoleTailored client should now look like this:

image

So now you have seen how to set the “Image” property on an Action and an Activity Button, let us see the icons you can use.

Icons which can be used for Actions:

AccountingPeriods

clip_image002

clip_image004

ActivateDiscounts

clip_image006

clip_image008

AddAction

clip_image010

clip_image012

AddContacts

clip_image014

clip_image016

AddToHome

clip_image018

clip_image020

AdjustEntries

clip_image022

clip_image024

AdjustExchangeRates

clip_image026

clip_image028

AdjustItemCost

clip_image030

clip_image032

Alerts

clip_image034

clip_image036

Allocations

clip_image038

clip_image040

AmountByPeriod

clip_image002[1]

clip_image042

ApplyEntries

clip_image044

clip_image046

ApplyTemplate

clip_image048

clip_image050

Approvals

clip_image052

clip_image054

Approve

clip_image056

clip_image058

AutofillQtyToHandle

clip_image060

clip_image062

AutoReserve

clip_image064

clip_image066

Balance

clip_image068

clip_image070

BankAccountLedger

clip_image072

clip_image074

BankAccountRec

clip_image076

clip_image078

BankAccountStatement

clip_image080

clip_image082

BinContent

clip_image084

clip_image086

BinLedger

clip_image088

clip_image090

Bins

clip_image092

clip_image094

BlanketOrder

clip_image096

clip_image098

BOMVersions

clip_image100

clip_image102

CalculateBinReplenishment

clip_image104

clip_image106

CalculateConsumption

clip_image108

clip_image110

CalculateCost

clip_image112

clip_image114

CalculateCrossDock

clip_image116

clip_image118

CalculateDepreciation

clip_image120

clip_image122

CalculateInventory

clip_image124

clip_image126

CalculateInvoiceDiscount

clip_image128

clip_image130

CalculateLines

clip_image132

clip_image134

CalculatePlan

clip_image136

clip_image138

CalculateRegenerativePlan

clip_image140

clip_image142

CalculateRemainingUsage

clip_image144

clip_image146

CalculateSalesTax

clip_image148

clip_image150

CalculateSimulation

clip_image152

clip_image154

CalculateWIP

clip_image156

clip_image158

Calculate

clip_image160

clip_image162

CalcWorkCenterCalendar

clip_image164

clip_image166

CalendarChanged

clip_image168

clip_image170

Cancel

clip_image172

clip_image174

CapacityLedger

clip_image176

clip_image178

CarryOutActionMessage

clip_image180

clip_image182

CashReceiptJournal

clip_image184

clip_image186

ChangeDates

clip_image188

clip_image190

ChangePaymentTolerance

clip_image192

clip_image194

ChangeStatus

clip_image196

clip_image198

CheckLedger

clip_image200

clip_image202

CheckRulesSyntax

clip_image204

clip_image206

ClearFilter

clip_image208

clip_image210

ClosePeriod

clip_image212

clip_image214

CloseYear

clip_image216

clip_image218

CollapseDepositLines

clip_image220

clip_image222

Components

clip_image224

clip_image226

ConfirmAndPrint

clip_image228

clip_image230

Confirm

clip_image232

clip_image234

CopyDocument

clip_image236

clip_image238

CopyFixedAssets

clip_image240

clip_image242

CopyFromTask

clip_image244

clip_image246

CopyLedgerToBudget

clip_image248

clip_image250

CopyToTask

clip_image252

clip_image254

Copy

clip_image236[1]

clip_image238[1]

CreateFinanceChargememo

clip_image256

clip_image258

CreateInteraction

clip_image260

clip_image262

CreateInventoryPickup

clip_image264

clip_image266

CreateJobSalesCreditMemo

clip_image268

clip_image270

CreateJobSalesInvoice

clip_image272

clip_image274

CreateMovement

clip_image276

clip_image278

CreatePutAway

clip_image280

clip_image282

CreateReminders

clip_image284

clip_image286

CreateWhseLoc

clip_image288

clip_image290

CreateYear

clip_image292

clip_image294

CreditMemo

clip_image296

clip_image298

CurrencyExchangeRates

clip_image300

clip_image302

CustomerLedger

clip_image304

clip_image306

DeactivateDiscounts

clip_image308

clip_image310

Delegate

clip_image312

clip_image314

DeleteExpiredComponents

clip_image316

clip_image318

DeleteQtyToHandle

clip_image320

clip_image322

Delete

clip_image324

clip_image326

DepositSlip

clip_image328

clip_image330

DepreciationBooks

clip_image332

clip_image334

Dimensions

clip_image336

clip_image338

DocInBrowser

clip_image340

clip_image342

DocumentEdit

clip_image344

clip_image346

DocumentsMaturity

clip_image348

clip_image350

Document

clip_image352

clip_image354

EditFilter

clip_image356

clip_image358

EditLines

clip_image360

clip_image362

EditList

clip_image364

clip_image366

EditReminder

clip_image368

clip_image370

Edit

clip_image372

clip_image374

ElectronicDoc

clip_image376

clip_image378

EntriesList

clip_image380

clip_image382

Excel

clip_image384

clip_image386

ExchangeRateAdjustRegister

clip_image388

clip_image390

ExchProdBOMItem

clip_image392

clip_image394

ExecuteAndPostBatch

clip_image396

clip_image398

ExecuteBatch

clip_image400

clip_image402

ExpandDepositLine

clip_image404

clip_image406

ExplodeBOM

clip_image408

clip_image410

ExplodeRouting

clip_image412

clip_image414

Export1099

clip_image416

clip_image418

ExportContact

clip_image420

clip_image422

ExportSalesPerson

clip_image424

clip_image426

ExportToDo

clip_image428

clip_image430

Export

clip_image432

clip_image434

FileContract

clip_image436

clip_image438

FilterLines

clip_image440

clip_image442

FinChargeMemo

clip_image444

clip_image446

Find

clip_image448

clip_image450

FixedAssetLedger

clip_image452

clip_image454

GeneralPostingSetup

clip_image456

clip_image458

GetActionMessages

clip_image460

clip_image462

GetBinContent

clip_image464

clip_image466

GetEntries

clip_image468

clip_image470

GetLines

clip_image472

clip_image474

GetSourceDoc

clip_image400[1]

clip_image402[1]

GetStandardJournal

clip_image476

clip_image478

GLAccountBalance

clip_image480

clip_image482

GLBalanceDimension

clip_image484

clip_image486

GLBalance

clip_image488

clip_image490

GLRegisters

clip_image492

clip_image494

History

clip_image496

clip_image498

ImplementPriceChange

clip_image500

clip_image502

ImplementRegAbsence

clip_image504

clip_image506

ImportExport

clip_image508

clip_image510

Import

clip_image512

clip_image514

IndentChartofAccounts

clip_image516

clip_image518

InsertStartingFee

clip_image520

clip_image522

InsertTravelFee

clip_image524

clip_image526

InsuranceLedger

clip_image528

clip_image530

Invoice

clip_image532

clip_image534

IssueFinanceCharge

clip_image536

clip_image538

ItemAvailabilitybyPeriod

clip_image540

clip_image542

ItemAvailbyLoc

clip_image544

clip_image546

ItemLedger

clip_image548

clip_image550

ItemReservation

clip_image552

clip_image554

ItemTracing

clip_image556

clip_image558

ItemTrackingLedger

clip_image560

clip_image562

ItemTrackingLines

clip_image564

clip_image566

ItemWorksheet

clip_image568

clip_image570

JobLedger

clip_image572

clip_image574

JobPrice

clip_image576

clip_image578

Journals

clip_image580

clip_image582

LedgerBudget

clip_image584

clip_image586

LineReserve

clip_image588

clip_image590

Links

clip_image592

clip_image594

LinkWithExisting

clip_image596

clip_image598

Link

clip_image600

clip_image602

ListPage

clip_image604

clip_image606

Lock

clip_image608

clip_image610

LotInfo

clip_image612

clip_image614

MachineCenterCalendar

clip_image616

clip_image618

MachineCenterLoad

clip_image620

clip_image622

MailAttachment

clip_image624

clip_image626

MaintenanceLedgerEntries

clip_image628

clip_image630

MaintenanceLedger

clip_image632

clip_image634

MaintenanceRegistrations

clip_image636

clip_image638

MakeAgreement

clip_image640

clip_image642

MakeDiskette

clip_image644

clip_image646

MakeOrder

clip_image648

clip_image650

Navigate

clip_image652

clip_image654

NewBank

clip_image656

clip_image658

NewBranch

clip_image660

clip_image662

NewDocument

clip_image664

clip_image666

NewExchangeRate

clip_image668

clip_image670

NewInvoice

clip_image672

clip_image674

NewItemNonStock

clip_image676

clip_image678

NewItem

clip_image680

clip_image682

NewResourceGroup

clip_image684

clip_image686

NewResource

clip_image688

clip_image690

NewSparkle

clip_image692

clip_image694

NewWarehouseReceipt

clip_image696

clip_image698

NewWarehouseShipment

clip_image700

clip_image702

NextSet

clip_image704

clip_image706

Note

clip_image708

clip_image710

OnlineHelp

clip_image712

clip_image714

OpenJournal

clip_image716

clip_image718

OpenWorksheet

clip_image720

clip_image722

OrderTracking

clip_image724

clip_image726

PaymentHistory

clip_image728

clip_image730

PaymentJournal

clip_image732

clip_image734

PayrollStatistics

clip_image736

clip_image738

PeriodStatus

clip_image740

clip_image742

Period

clip_image744

clip_image746

PhysicalInventoryLedger

clip_image748

clip_image750

PhysicalInventory

clip_image752

clip_image754

PostApplication

clip_image756

clip_image758

PostBatch

clip_image760

clip_image762

PostDocument

clip_image764

clip_image766

PostedReceipts

clip_image768

clip_image770

PostInventoryToGLTest

clip_image772

clip_image774

PostInventoryToGL

clip_image776

clip_image778

PostPrint

clip_image780

clip_image782

Post

clip_image784

clip_image786

Prepayment

clip_image788

clip_image790

PreviewChecks

clip_image792

clip_image794

PreviousSet

clip_image796

clip_image798

PrintChecklistReport

clip_image800

clip_image802

PrintCheck

clip_image804

clip_image806

PrintDocument

clip_image808

clip_image810

PrintForm

clip_image812

clip_image814

Print

clip_image808[1]

clip_image810[1]

ProdBOMMatrixPerVersion

clip_image816

clip_image818

Quote

clip_image820

clip_image822

ReceivablesPayables

clip_image824

clip_image826

ReceiveLoaner

clip_image828

clip_image830

Reconcile

clip_image832

clip_image834

RefreshPlanningLine

clip_image836

clip_image838

Refresh

clip_image840

clip_image842

RegisteredDocs

clip_image844

clip_image846

RegisterPick

clip_image848

clip_image850

RegisterPutAway

clip_image852

clip_image854

Reject

clip_image172[1]

clip_image174[1]

ReleaseDoc

clip_image232[1]

clip_image234[1]

Reminder

clip_image856

clip_image858

RemoveContacts

clip_image860

clip_image862

RemoveFilterLines

clip_image864

clip_image210[1]

ReopenPeriod

clip_image866

clip_image868

ReOpen

clip_image196[1]

clip_image198[1]

Replan

clip_image871

clip_image873

Report

clip_image875

clip_image877

ReservationLedger

clip_image879

clip_image881

ResourceCosts

clip_image883

clip_image885

ResourceLedger

clip_image887

clip_image889

ResourcePlanning

clip_image891

clip_image893

ResourcePrice

clip_image895

clip_image897

ReturnOrder

clip_image899

clip_image901

ReturnRelated

clip_image903

clip_image905

ReverseLines

clip_image907

clip_image909

ReverseRegister

clip_image911

clip_image913

RoutingVersions

clip_image915

clip_image917

SalesLineDisc

clip_image919

clip_image921

SalesPrices

clip_image923

clip_image925

SaveasStandardJournal

clip_image927

clip_image929

Segment

clip_image931

clip_image933

SelectEntries

clip_image935

clip_image937

SelectItemSubstitution

clip_image939

clip_image941

SelectLineToApply

clip_image943

clip_image945

SendApprovalRequest

clip_image947

clip_image949

SendConfirmation

clip_image951

clip_image953

SendTo

clip_image955

clip_image957

Server

clip_image959

clip_image961

ServiceAgreement

clip_image963

clip_image965

ServiceLedger

clip_image967

clip_image969

SetupList

clip_image971

clip_image973

SetupPayment

clip_image975

clip_image977

Setup

clip_image979

clip_image981

ShortcutToDesktop

clip_image983

clip_image985

ShowInventoryPeriods

clip_image987

clip_image989

ShowMatrix

clip_image991

clip_image993

Signature

clip_image995

clip_image997

SNInfo

clip_image999

clip_image1001

SourceDocLine

clip_image1003

clip_image1005

SplitChecks

clip_image1007

clip_image1009

Splitlines

clip_image1011

clip_image1013

Start

clip_image1015

clip_image1017

Statistics

clip_image1019

clip_image1021

Status

clip_image1023

clip_image1025

SuggestCustomerBill

clip_image1027

clip_image1029

SuggestCustomerPayments

clip_image1031

clip_image1033

SuggestItemPrice

clip_image1035

clip_image1037

SuggestLines

clip_image1039

clip_image1041

SuggestReconciliationLines

clip_image1043

clip_image1045

SuggestReminderLines

clip_image1047

clip_image1049

SuggestSalesPrice

clip_image1051

clip_image1053

SuggestVendorBills

clip_image1055

clip_image1057

SuggestVendorPayments

clip_image1059

clip_image1061

SwitchCompanies

clip_image1063

clip_image1065

TaskList

clip_image1067

clip_image1069

TaskPage

clip_image1071

clip_image1073

TeamSales

clip_image1075

clip_image1077

TestReport

clip_image1079

clip_image1081

TotalValueInsuredperFA

clip_image1083

clip_image1085

TraceOppositeLine

clip_image1087

clip_image1089

Trace

clip_image1091

clip_image1093

Track

clip_image1095

clip_image1097

TransferFunds

clip_image1099

clip_image1101

TransferToGeneralJournal

clip_image1103

clip_image1105

TransmitElectronicDoc

clip_image1107

clip_image1109

Travel

clip_image1111

clip_image1113

Troubleshoot

clip_image1115

clip_image1117

UpdateUnitCost

clip_image1119

clip_image1121

UseFilters

clip_image1123

clip_image1125

ValueLedger

clip_image1127

clip_image1129

VATLedger

clip_image1131

clip_image1133

VATPostingSetup

clip_image1135

clip_image1137

VATStatement

clip_image1139

clip_image1141

VendorLedger

clip_image1143

clip_image1145

ViewComments

clip_image1147

clip_image1149

ViewPage

clip_image1151

clip_image1153

View

clip_image1155

clip_image1157

VoidCheck

clip_image1159

clip_image1161

VoidElectronicDocument

clip_image1163

clip_image1165

WageLines

clip_image1167

clip_image1169

WarrantyLedger

clip_image1171

clip_image1173

Where-Used

clip_image1175

clip_image1177

Word

clip_image1179

clip_image1181

WorkCenterAbsence

clip_image1183

clip_image1185

WorkCenterCalendar

clip_image616[1]

clip_image618[1]

WorkCenterLoad

clip_image620[1]

clip_image622[1]

Worksheet

clip_image1189

clip_image1191

Zones

clip_image1193

clip_image1195

 

Icons which can be used for Activity Buttons:

Administration

clip_image002[6]

AdministrationSalesPurchases

clip_image004[4]

Alerts

clip_image006[4]

AnalysisView

clip_image008[4]

Bank

clip_image010[4]

Calculator

clip_image012[4]

Capacities

clip_image014[4]

Confirm

clip_image016[4]

Departments

clip_image018[4]

Dimensions

clip_image020[4]

ExecuteBatch

clip_image022[4]

FiledPosted

clip_image024[4]

FixedAssets

clip_image026[4]

History

clip_image028[4]

HumanResources

clip_image030[4]

Intrastat

clip_image032[4]

Journals

clip_image034[4]

Ledger

clip_image036[4]

LotInfo

clip_image038[4]

Marketing

clip_image040[4]

Payables

clip_image042[4]

ProductDesign

clip_image044[4]

Purchasing

clip_image046[4]

Receivables

clip_image048[4]

Reconcile

clip_image050[4]

ReferenceData

clip_image052[4]

RegisteredDocs

clip_image054[4]

ResourcePlanning

clip_image056[4]

Sales

clip_image058[4]

Setup

clip_image060[4]

SNInfo

clip_image062[4]

Statistics

clip_image064[4]

Transactions

clip_image066[4]

Travel

clip_image068[4]

Worksheets

clip_image070[4]

Thanks,

Claus Lundstrøm, Program Manager, Microsoft Dynamics NAV

New Drop Down window in Microsoft NAV 2009 using Fields Groups
21 September 08 08:58 PM | clausl | 7 Comments   

I have now be asked many times how the new Drop Down window in Microsoft NAV 2009 is defined, so let me give you an example on how this works.

In this screen dump, I have just clicked the Drop Down arrow on the field ”Bill-to Customer No”, on the Customer Card, and our new Drop Down window appears displaying the columns No., Name, City, Post Code, Phone No. and Contact.

image

So how do I define that when I click “Bill-to Customer No.” it displays a Drop Down? And how are the columns defined which are displayed in the Drop Down?

Let us look at a field which actually shows a List page and change this field to show a Drop Down. This could be ex. “Post Code” also found on the Customer Card.

Let us see what happens when I click “Post Code”:

image

So in standard NAV 2009 we show a List page where the use can select from the available Code and Cities found in the demo database. I would like to change this into a Drop Down so let us go into the Object Designer and explorer why I shown a List page when clicking the Post Code field.

My first thought is to look at Page 21 in the Page Designer and look at the properties for “Post Code”:

image

But since nothing is specified on the “Lookup” property this must be on table level. In table 18 you find the following code  “PostCode.LookUpPostCode(City,"Post Code",TRUE);

image

With this on the OnLookup trigger we will show a List page and not a Drop Down, so let us delete what is on the OnLokup trigger and see how the “Post Code” fields now behaves in the RoleTailered client:

image

So now I got my Drop Down on “Post Code” but I actually want to sort the columns different and add other columns to the Drop Down. To do this I used a new thing we call “Fields Groups”.

Since when I look at the “Post Code” on the customer card we actually lookup in Post Code table 225, so to change the columns displayed we need to look at this table, so back to Object Designer and design table 225.

In design mode click “View” and notice a new field called “Field Groups”. Notice that this is blank, so the “Code” and “City”  which are displayed in Drop Down above are shown because these fields are Primary Keys specified on the Table.

image

Now let us define the columns shown in the Drop Down window of “Post Code”.

In the Name type “DropDown” and in group select the assist button and select City, Code and City Search:

image

Your Field Group should now look like this:

image 

Now compile table 225 and go back to your Customer Card. If you had one open already you will need to reopen since we have changed the underlying data.

Your Drop Down now displays like this:

image 

We have now completed created our new Drop Down window, but before I end this blog I would to like show you a bit more what you can do with this Drop Down.

I have been been in the NAV group for almost 10 years now so I’m a keyboard shortcut addict so let me show a small tip.

While standing on the “Post Code” field press “ALT+ARROW DOWN”, Drop Down will show up.

Now type “New”. The Drop Down will now be sorted on all cities starting with “New”:

image

You might have noticed that “City” is bold in the Drop Down. This signals that the Drop Down will be searched based on upon the field “City”. So in this case when we type “New” we will see the Cities which start with “New”

Now let us make “Code” the default.

Press “ARROWDOWN” to get down into to Drop Down.

Press “ARROWRIGHT” to get to the “Code” column. Notice that “Code” now becomes bold, and if you are still searching on “New” the list will become blank:

image

Now type “US“ and your Drop Down window will now be sorted on all codes which is starting with “US“:

image

Also notice that “Code” going forward will be column to sort on as this information is stored in the Personalization store.

So here you have it, my first blog ever.

Thanks,

Claus Lundstrøm, Program Manager, Microsoft Dynamics NAV

Search

This Blog

Tags

No tags have been created or used yet.

Syndication

Page view tracker