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

Short names #20

Closed
waldo1001 opened this issue Dec 17, 2020 · 1 comment
Closed

Short names #20

waldo1001 opened this issue Dec 17, 2020 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@waldo1001
Copy link

When I would use short names for documents like this:
image
it gives me compile errors:
image
Full mdal:

solution "Name" {
    Prefix = "PRE";

    master "Container" {
        ShortName = "Cont.";
        
        fields {
            template("Name"; Name)            
            template("Dimension"; Dimensions)
        }
        cardPage {
            group("General") {
                field("Name")
            }
        }
        listPage {
            field("Name")
        }


    }

    document "Shipment" {
        ShortName = "Ship";
        
        header "Shipment Header" {
            ShortName = "Ship Header";
            StatusCaptions = ["Open", "Released"];
            fields {
                include("ContainerNo"; "Container"."No.")
            }
        }
        
        line "Shipment Line" {
            ShortName = "Ship Line";
            
            fields {                
                field("Quantity"; Decimal)
            }
            listPartPage {
                field("Quantity")
            }
        }
    }
    
    ledgerEntry "Container Ledger Entry" {
        ShortName = "Cont. Ledger Entry";
        
        fields {
            include("ContainerNo"; "Container"."No.")            
            field("Quantity"; Decimal)
        }
        listPage {
            field("Quantity")
        }
    }
    
    
}

@joneug joneug added the bug Something isn't working label Dec 27, 2020
@joneug joneug added this to the v0.4.1 milestone Dec 27, 2020
@joneug joneug closed this as completed in 2245ab0 Dec 27, 2020
@joneug
Copy link
Member

joneug commented Dec 27, 2020

Pushed a fix for this issue. It will be made available in the next release of mdAL (and its corresponding VS Code extension).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants