Field Parameters

When adding a field to a table, is it possible to set parameters to the field. For example, i want two number fields that can only be between 1 and 10. Is it possible to do this?

Thanks

James

Use the MinValue and MaxValue properties.

apologies but i am new to this, in the dev environment, i have added the field to the table, set the type as integer.

Where do I add the min and max value property

Open the properties window:

  • View > Properties or
  • Shift+F4

That’s great thank you. Also, do you know how to set the field to a drop down?

Of course, but there is a lot more to learn and you cannot expect me to tell you every detail. Have a look at the TableRelation property.

Yes, but if you’re new to NAV development then the best you could do is to try some of the many how to’s on MSDN, like Luc linked to. There are many good examples on how to develop in NAV. Then start by following the examples.If you want to learn about working with tables and properties and so, then study this. But you should really start on a bit higher level, if you really want to learn NAV development.
If you “just” need to add a few fields and so, then start by that link. Then I’m sure by you know exactly what Luc wrote. [;)] And it’s somehow my new motto (read my sig).