web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Table Display Method Extension

(0) ShareShare
ReportReport
Posted on by 608
Hi Community,

I'm trying to extend the display method from the table "TrvExpTrans" and receiving an error during the build.
 
 

Error message 
 

Display methods can take only optional arguments, other than the first argument which can be a table


Display method
 

public display boolean isEditable(boolean _checkUserAccess = true, boolean _splitLineTypeCheck = true)

{

    if (_splitLineTypeCheck && this.SplitLineType == TrvExpSplitLineType::SplitHeader)

    {

        return false;

    }

 

    switch (this.ApprovalStatus)

    {

        case TrvAppStatus::Approved:

        case TrvAppStatus::Cancelled:

        case TrvAppStatus::Ledger:

        case TrvAppStatus::Pending:

        case TrvAppStatus::Submitted:

        case TrvAppStatus::Ready:

        case TrvAppStatus::None:

        case TrvAppStatus::Matched:

            return false;

    }

 

    return _checkUserAccess ? TrvAccessHelper::canCreateNewTransactions(this.CreatingWorker) : true;

}

COC Method


public display boolean isEditable(boolean _checkUserAccess, boolean _splitLineTypeCheck)

{
boolean ret;
ret = next isEditable(_checkUserAccess, _splitLineTypeCheck);
return ret;
}

 
 

 
Categories:
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 677 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 620

#3
Subra Profile Picture

Subra 483

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans