Hi,
I am creating a new table and form which automatically selects a reportID depending on type e.g. A and B.
So if user choose A, report id 1 is automatically selected and if uses chooses B, report id field is automatically populated with 2.
The question is the following:
Should I use option or code data type?
Option seems to be the better option. However Code is more customizable.
Should I use option or code?
Thanks in advance. (Hope I explained well).
0
Comments
I think Option data type will be the most preferable one.
Raja.B
Why? Because when you enter something into code field, there is no information behind for the system itself, unless you add some meaning by some setup table like "Code for Cars: CAR, Code for Bus:BUS". Without that system do not know what does it mean CAR and what does it mean BUS. Options have the meaning by design (they are numbered, with fixed values).
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
My Blog - nav.education
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
You need a code/field/variable/value that determines what report to run. This could be stored in a new table with a field for the code (which would be the primary key), maybe a description, and a field for report ID (linking to the Object table, filtered on report objects). This new table could then be linked to in another table, and you run the report defined in the new table.
Without specifying the requirement though, we can only guess at what is the best solution. Until we know the requirement it's just a stab in the dark for us. This sounds a lot like report selections by the way.
RIS Plus, LLC
MVP - Business Apps