Options

Factbox - Number of Columns

stonystony Member Posts: 122
edited 2011-04-28 in NAV Three Tier
Hello,
Can I create a Factbox with 3 or more columns.
E.G.
Item No. | Item Description | Inventory

Thanks
Manfred

Comments

  • Options
    mohana_cse06mohana_cse06 Member Posts: 5,503
    I think as FactBox is also a Page..
    We can have 2 columns as of now..
  • Options
    Troubles_In_ParadiseTroubles_In_Paradise Member Posts: 588
    What about something like this?
    ( :oops: execuse me if page isn't nice but is a quick test)


    edit: I think you could use also fixedlayout, but depends on what you want to do with this factbox.
    ~Rik~
    It works as expected... More or Less...
  • Options
    stonystony Member Posts: 122
    Looks nice. How can I make it.
    I would like to see a list, which includes data from an array.
    Line 1: A[1] ; B[1] ; C[1];
    Line 2: A[2] ; B[2] ; C[2];
  • Options
    Troubles_In_ParadiseTroubles_In_Paradise Member Posts: 588
    stony wrote:
    Looks nice. How can I make it.
    I would like to see a list, which includes data from an array.
    Line 1: A[1] ; B[1] ; C[1];
    Line 2: A[2] ; B[2] ; C[2];
    1. create a page with type ListPart (this will be your factbox)
    2. the structure of the page is the following:
    type           subtype
    Container    ContArea
      Group       Repeater
        Field
        field
        field  
    
    what type of array are you using? text, integer? and what about dimensions?
    ~Rik~
    It works as expected... More or Less...
  • Options
    stonystony Member Posts: 122
    I use text und decimal and the dimension is 9.
  • Options
    Troubles_In_ParadiseTroubles_In_Paradise Member Posts: 588
    stony wrote:
    I use text und decimal and the dimension is 9.
    have you got 3 array A, B and C ?
    ~Rik~
    It works as expected... More or Less...
  • Options
    stonystony Member Posts: 122
    Yes,
    A and B is text ; C is decimal
    (A= Item.Description;B=Item."Description 2",C=Inventory)
  • Options
    Troubles_In_ParadiseTroubles_In_Paradise Member Posts: 588
    stony wrote:
    Yes,
    A and B is text ; C is decimal
    (A= Item.Description;B=Item."Description 2",C=Inventory)

    i create a little example that works. this is the object
    OBJECT Page 50000 arraytest
    {
      OBJECT-PROPERTIES
      {
        Date=28/04/11;
        Time=12:38:21;
        Modified=Yes;
        Version List=;
      }
      PROPERTIES
      {
        SourceTable=Table2000000026;
        SourceTableView=WHERE(Number=FILTER(<=3&>0));
        OnInit=BEGIN
                 FOR i := 1 TO 3 DO BEGIN
                   a[i] := i;
                 END;
    
                 FOR i := 1 TO 3 DO BEGIN
                   b[i] := i+1;
                 END;
    
                 FOR i := 1 TO 3 DO BEGIN
                   c[i] := i+2;
                 END;
               END;
    
        OnOpenPage=BEGIN
                     i := 0;
                   END;
    
        OnAfterGetRecord=BEGIN
                           IF i < 3 THEN
                             i += 1;
                         END;
    
      }
      CONTROLS
      {
        { 1101366000;;Container;
                    ContainerType=ContentArea }
    
        { 1101366001;1;Group  ;
                    GroupType=Repeater }
    
        { 1101366002;2;Field  ;
                    CaptionML=ENU=a;
                    SourceExpr=a[i] }
    
        { 1101366003;2;Field  ;
                    CaptionML=ENU=b;
                    SourceExpr=b[i] }
    
        { 1101366004;2;Field  ;
                    CaptionML=ENU=c;
                    SourceExpr=c[i] }
    
      }
      CODE
      {
        VAR
          a@1101366000 : ARRAY [3] OF Integer;
          b@1101366001 : ARRAY [3] OF Integer;
          c@1101366002 : ARRAY [3] OF Integer;
          i@1101366003 : Integer;
    
        BEGIN
        END.
      }
    }
    
    
    ~Rik~
    It works as expected... More or Less...
Sign In or Register to comment.