integer dataitem table?

vijaydidmca2003vijaydidmca2003 Member Posts: 27
hi to all forum members.

as i am new with navision, so that i am very confused about the "integer dataitem table".
i have seen that this table is used in a lot of reports but still i don't know how to use it.
i don't know what is the main purpose of it.

1. when should i use the integer dataitem table.
2. why should i use this table.
:?:

your reply is deeply awaited.

Comments

  • matttraxmatttrax Member Posts: 2,309
    You can use it when you want to repeat an action. Think of it as a FOR loop to be used in reports.

    Ordinarily to repeat an action you would do something like
    FOR i := 1 TO 100 DO BEGIN
      //Action to repeat
    END;
    
    In a report you'll have an Integer data item. Everything indented under this item is like the "Action to repeat" in the code above. You'll "loop" on the Number field from the integer table. You can do this either with code,
    SETRANGE(Number, 1, TimesToLoop);
    

    or you can use the DataItemTableView property to set you filters there. I like this last approach since you should already be in there to set the key so that Integer doesn't appear as a filterable table on the report.

    Hope that helps.
Sign In or Register to comment.