Skip to Content
avatar image
Former Member

CDS View isssue (Publishing associations in a view is not supported in XS Classic)

Hi ,

during creation of view I got bellow message Publishing associations in a view is not supported in XS Classic please see the dummy code .

namespace demo.first;

@Schema: 'DEMO'

context test {

@Catalog.tableType : #COLUMN

entity A {

a : Integer;

b : String(32);

};

@Catalog.tableType : #COLUMN

entity X

{ x : Integer;

y : Association to test.A{b} not null;

};

View XView as select from X

{

x as vx,

y as vy

};

};

When I try to activate the file showing me

(Publishing associations in a view is not supported in XS Classic)

Please help me to resolve this issue .

Thanks,

Sumit

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Feb 20, 2017 at 12:31 PM

    As the message says, you try to publish the association (y) define in entity X via your view. This is not supported. You have to publish elements of the association in the view. For instance if you publish x and y, you have to define it:

      View XView as select from X {
        x as vx,
        y.a as vy_a,
        y.b as vy_b
      };
    

    Regards,
    Florian

    Add comment
    10|10000 characters needed characters exceeded