Dynamics User Group
Since 1995 - The Microsoft Dynamics Online User Community

Default Field

rated by 0 users
This post has 6 Replies | 3 Followers

Top 500 Contributor
Posts 31
Points 525
siya10 Posted: 08-26-2008 13:30

Hi there People

I'm using Form: 256 (Payment journal) and Report (Suggest vendor payment) i want to default Bal. Account Type field on to equal to Bank Account and be non editable. i have this code on the Onvalidate trigger

"Bal. Account Type" := "Bal. Account Type"::"Bank Account";          

This is not working very working,please help

 

  • | Post Points: 35
Top 50 Contributor
Male
Posts 338
Points 6,645

Hi Siya,

I believe what you want to do, can be done through setup..
No need for development.

Simply go to the setup of Journal Templates, and define the Bal. Account Type to be Bank Account in all those Journal Templates you need it.
(I think you also have to go to the Batches and change the ones already existing)

 

Regards, Alexander Pallesen Freelance Navision Developer "Life is a terminal disease that You just have to learn to live with"
  • | Post Points: 20
Top 10 Contributor
Male
Posts 5,414
Points 67,853
DynamicsNAVMVP
Moderator
SystemAdministrator
Why are you doing this. This is a very bad move. Just use standard functionality. You need to be aware that the table is used for lots of other things in NAV.
David Singleton - MVP Dynamics NAV Dynamics NAV Consultant since 1991 Available for Navision Go-Live assistance
Dynamics Book
  • | Post Points: 20
Top 500 Contributor
Posts 31
Points 525

This is what the customer want "payment journal line form be modified to prevent the user changing the balancing account type to anything other than Bank." this is a quote from the EDD

  • | Post Points: 20
Top 10 Contributor
Male
Posts 5,414
Points 67,853
DynamicsNAVMVP
Moderator
SystemAdministrator

siya10:

This is what the customer want "payment journal line form be modified to prevent the user changing the balancing account type to anything other than Bank." this is a quote from the EDD

 

And if there was a request in the EDD that says you must put your head in a fire, would you also do that? Angry

 

Just because it is written in the EDD does not mean its right. You need to go back to the Client, and discuss their needs. You don't simply write code verbatim as the customer asks, you sit and test out designs, test scenarious,a dn look at the global effect that a change has on business as well as the integrity of the system,. THEN you design a solution.

 

Oh and another Angry is needed.

David Singleton - MVP Dynamics NAV Dynamics NAV Consultant since 1991 Available for Navision Go-Live assistance
Dynamics Book
  • | Post Points: 5
Top 75 Contributor
Male
Posts 235
Points 7,150
DynamicsNAVMVP

this is the way I would do it.  If you're unsure where this is.

go into the payment journal - you can create different Batch names & there you can set defaults for each particular batch.

Harry Ruiz  - Dynamics NAV MVP
www.CosmeticSolutions.biz
www.DreamTheater.net

  • | Post Points: 20
Top 500 Contributor
Posts 31
Points 525

Thank you very much David for the Advice, i'm just a developer that is doing what the consultant says and the analyst.

For you Savantage and Alexander thanks guys i think this is the better solution to do it i'll use it. Thanks again guys i appriciatedYes

  • | Post Points: 5
Page 1 of 1 (7 items) | RSS


Copyright Dynamics User Group, 1995-2008, all rights reserved. The Dynamics User Group is not affiliated with Microsoft Corporation.