Options

A report that gives list of Number of records in each table for each company

Aditya546Aditya546 Member Posts: 6
I'm using nav 2016. But i'm getting the run time error: ' you do not have the following permissions on the TableData service password:Read'


i wrote this code in the report. contributed by #TallyHo.

Object - OnAfterGetRecord()

TheRecRef.OPEN(Object.ID);
NumberOfRecords:= TheRecRef.COUNT;
TheRecRef.CLOSE;

Answers

  • Options
    TallyHoTallyHo Member Posts: 383
    edited 2019-04-12
    Try this
    TheRecRef.OPEN(Object.ID);
    if TheRecRef.READPERMISSION then
    NumberOfRecords:= TheRecRef.COUNT
    else
    clear(NumberOfRecords);
    TheRecRef.CLOSE;

  • Options
    Aditya546Aditya546 Member Posts: 6
    Table connection for table type CRM must be registered using RegisterTableConnection or cmdlet New-NavTableConnection before it can be used
  • Options
    krikikriki Member, Moderator Posts: 9,096
    [Topic moved from 'Navision Financials' forum to 'NAV Three Tier' forum]

    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Sign In or Register to comment.