Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should I use all Categories (e. g. Master, Supplemental, (Posted) Document Header, (Posted) Document Line, Setup). #14

Closed
spookymattress opened this issue Sep 16, 2020 · 2 comments · Fixed by #18
Labels
enhancement New feature or request

Comments

@spookymattress
Copy link

Is it mandatory to use all categories when creating a new solution. It seems so!

I get an error when I try this example:


solution "Seminar Management" {
    Prefix = "SEM";

    master "Seminar" {
        ShortName = "Sem.";

        fields {
            template("Description"; Description)
            field("Duration Days"; Decimal)
            field("Minimum Participants"; Integer)
            field("Maximum Participants"; Integer)
            field("Language Code"; Code[10]) {
                TableRelation = "Language";
            }
            field("Seminar Price"; Decimal)
            field("Gen. Prod. Posting Group"; Code[20]) {
                TableRelation = "Gen. Product Posting Group";
            }
            template("Dimensions"; Dimensions)
        }

        cardPage {
            group("General") {
                field("Description")
                field("Duration Days")
                field("Minimum Participants")
                field("Maximum Participants")
                field("Language Code")
            }
            group("Posting Details") {
                field("Gen. Prod. Posting Group")
                field("Seminar Price")
                field("Dimensions")
            }
        }

        listPage {
            field("Description")
            field("Duration Days")
            field("Minimum Participants")
            field("Maximum Participants")
            field("Seminar Price")
            field("Language Code")
        }
    }
}
@joneug
Copy link
Member

joneug commented Sep 16, 2020

At the moment only supplemental definitions are optional and all of the other elements are required. However, it is planned to change this behaviour.

@joneug
Copy link
Member

joneug commented Dec 16, 2020

This issue was fixed in version 0.4.0 of the mdAL VS Code Extension. Please update your installation and the example you provided should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants