Grid- and Fixed layout - examples

jensthomsenjensthomsen Member Posts: 173
edited 2013-02-08 in NAV Three Tier
I'm looking for examples of using the new possibilites of grids and fixed layout in Nav2013. I have read the online help, but don't think that it gives any good examples in code.

Specifically, I have a form in Nav2009 with 3 columns, each consisting of fields with caption. Each column has a header that spans the caption and the fields. Like this:

Caption1_Field1 Caption3_Field3 Caption5_Field5
Caption2_Field2 Caption4 _Field4 Caption6_Field6

Comments

  • postsauravpostsaurav Member Posts: 708
    Hi,

    i hope this can help you -

    http://saurav-nav.blogspot.in/2013/02/grid-layout-in-nav-2013.html

    The fixed layout have been introduced in 2009, but whats new is the grid layout in 2013.

    Let me know if any issues.

    Thanks & Regards,
    Saurav Dhyani

    Do you Know this About NAV?


    Connect - Twitter | Facebook | Google + | YouTube

    Follow - Blog | Facebook Page | Google + Page
  • jensthomsenjensthomsen Member Posts: 173
    Hmmmm. I've tryied a simple gridlayout with one field in the first row (Field1) and 2 fields in the second (Field2 and Field3). The layout is set to Row. Now I want to span Field1 over Field2 and Field and therefore set the ColumnSpan property to 2 on field1. But when I run the page, Field1 doesn't Span???

    Here is the code:

    OBJECT Page 70000 Maskinstatistik
    {
    OBJECT-PROPERTIES
    {
    Date=08-02-13;
    Time=08:24:48;
    Modified=Yes;
    Version List=;
    }
    PROPERTIES
    {
    }
    CONTROLS
    {
    { 1160180000;;Container;
    Name=jgt;
    ContainerType=ContentArea }

    { 1160180001;1;Group ;
    GroupType=Group }

    { 1160180002;2;Group ;
    GroupType=GridLayout;
    Layout=Rows }

    { 1160180003;3;Group ;
    GroupType=Group }

    { 1160180004;4;Field ;
    Name=Brandstof;
    CaptionML=DAN=<Brandstof>;
    SourceExpr='';
    ColumnSpan=2 }

    { 1160180008;3;Group ;
    GroupType=Group }

    { 1160180006;4;Field ;
    Name=vaegtafgift1;
    SourceExpr='222' }

    { 1160180005;4;Field ;
    Name=cola;
    SourceExpr='333' }

    }
    CODE
    {

    BEGIN
    END.
    }
    }
Sign In or Register to comment.