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

Cannot create view when an attribute has same name as class #51

Open
edigonzales opened this issue Jun 5, 2020 · 1 comment
Open

Cannot create view when an attribute has same name as class #51

edigonzales opened this issue Jun 5, 2020 · 1 comment

Comments

@edigonzales
Copy link

Error: /Users/stefan/Downloads/oereburl/OeREBKRMvs_V1_1_Validierung_20200605.ili:24:VIEW OeREBKRMvs_V1_1_Validierung_20200605.Transferstruktur_Validierung.v_Dokument can not declare several attributes bearing the same name. There is already an attribute "Dokument".
	VIEW v_Dokument
    	PROJECTION OF OeREBKRMvs_V1_1.Vorschriften.Dokument;
    =
        ALL OF Dokument;

        !!@ name = checkDocumentURL
        !!@ ilivalid.msg = "Dokument im Attribut 'TextImWeb' wurde nicht gefunden."
        MANDATORY CONSTRAINT SO_FunctionsExt.isHttpResourceFromOerebMultilingualUri(TextImWeb);
    END v_Dokument;

@edigonzales
Copy link
Author

Use alias name for class:

	VIEW v_Dokument
    	PROJECTION OF DokumentA ~ OeREBKRMvs_V1_1.Vorschriften.Dokument;
    =
        ALL OF DokumentA;

        !!@ name = checkDocumentURL
        !!@ ilivalid.msg = "Dokument im Attribut 'TextImWeb' wurde nicht gefunden."
        MANDATORY CONSTRAINT SO_FunctionsExt.isHttpResourceFromOerebMultilingualUri(TextImWeb);
    END v_Dokument;

Siehe auch Kapitel 2.15 Referenzhandbuch.

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

No branches or pull requests

1 participant