Design / layout questions

Dear all,

1st question:
is there any way (as user or as developer) to show grid lines in e.g. sales order subform?
In Nav 2016 there is no longer a vertical line between each column as you can see in the screenshot.
There is no visible seperation between the fields of the table.

2nd question:
What I wish further is alternating row columns. Each even row should have a white background and each odd row should have a light grey background. Is this possible maybe by programming?

3rd question:
Is there any way to give the grey section header like General, Lines, Invoice, Shipment a different color?
E.g. I want to be General a blue color, Lines a light blue color and so on.

Thanks...

Answers

  • kaspermoerchkaspermoerch Member Posts: 43
    I believe the answer to all your questions is no.

    The general idea when Microsoft made the switch to the RTC is to make the look and feel of the application consistent. The benefit of this is that all parts of the application will look familiar to the user, even if it is not part of the standard.

    The downside is that developers are limited in the amount of customization that can be done to the layout.
  • Timon_MeyerTimon_Meyer Member Posts: 2
    edited 2016-07-01
    Hi kaspermoerch,

    thanks for reply. It is really nice what Microsoft thinks is good for the user. But often this doesn't match. ;-)
    Especially our users really miss the vertical separation lines on any list or subform! Imagine Excel would cancel the vertical lines of the cells - no one would agree! Why in a grid like list, subform etc. there is no vertical separation line anymore? - I was not asked to take them away.
    Of course MicroSoft can take it away in a kind of default theme - but at same time they should provide a way to get the lines back and to customize the UI.

    At least I would expect a kind of theme system in RTC where I can change e.g. colors of group header, grid colums on/of etc..
  • ivicaSDivicaSD Member Posts: 9
    I have a solution for 2nd question, which is rather simple:

    - introduce new global variable RowColor as Boolean
    - in the Dataset Designer under desired DataItem add new column, with Data Source set to RowColor and Name of your choice (I put the same: RowColor)
    - in the C/AL editor enter one line of code inside DataItem - OnAfterGetRecord() trigger:
    RowColor := NOT RowColor; // to invert the boolean with each row

    - in the report layout (I use Visual Studio) select the row with data and in the Properties find attribute BackgroundColor. Click and choose option Expression (on the bottom) and enter this line:
    =IIF(Fields!RowColor.Value, "#EFEFEF", "#FFFFFF")
    --
    Ivica
  • Wisa123Wisa123 Member Posts: 308
    @ivicaSD he is talking about pages, everybody knows you can do that in reports.

    @Timon_Meyer you could achieve your second point (partly) by using the Style Attribute on all page fields --- however this wont change your background, only the font-color itself.
    Austrian NAV/BC Dev
Sign In or Register to comment.