Code Monkey home page Code Monkey logo

Comments (4)

Arthurvdv avatar Arthurvdv commented on July 18, 2024

You're looking into the right direction; It's the namespace of the Enum that's causing this issue. In this case the Enum is in another namespace then the table itself.

Table object

namespace Microsoft.Bank.CODA;
using Microsoft.Finance.GeneralLedger.Journal;

table 2000041 "CODA Statement Line"
{
    field(40; "Account Type"; enum "Gen. Journal Account Type")
    {

Enum object

namespace Microsoft.Finance.GeneralLedger.Journal;

enum 81 "Gen. Journal Account Type"
{

@tinestaric : May I ask you for your help one more time on this?

image

We're grabbing the namespace of the object itself, the table in this case, and are assuming that the Enum has the same namespace. In this example this is not the case, where CODA is part of the Belgium localisation.

At this moment I have no idea if we can retrieve the Enum object itself and retrieve the namespace value somehow?

from businesscentral.lintercop.

Arthurvdv avatar Arthurvdv commented on July 18, 2024

I think I've found a way to grab the correct namespace of the Enum that's referred on the field.

Could you verify if this is resolved in the (pre)release version of v0.30.11 of the LinterCop?

from businesscentral.lintercop.

Arthurvdv avatar Arthurvdv commented on July 18, 2024

Today the v0.30.11 version of the LinterCop is out of pre-release and is now the latest version.

@fvet is your issue resolved with this release?

from businesscentral.lintercop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.