cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to deactivate the DRAFT mode for associations of a root entity in Fiori Elements?

tobias2022
Explorer
0 Likes
380

I have a root entity in our CAP service, for which I have created a projection in the CAP service and have also activated draft mode there.

Then I created a list and object page in our Fiori Elements app. Everything works quite well so far.

Now I add an association to the entity, which is to be displayed as a table in the object page. This also works. However, this association is now also activated in draft mode. However, this should not be the case, as we are working with final transaction data here and only want to display it.

I have already played around with various annotations, but unfortunately I cannot get this association into read-only mode.

Is there a possibility that you know of? Thank you 🙂

 

service ProcessorService {
    
    @odata.draft.enabled
    entity Cards as
        projection on my.Cards {
            *
        }
}

// db schema
entity Cards : managed {
  key ID               : String; 
      transactions     : Association to many transactions
                           on transactions.card = $self;
  // ... etc
}

Accepted Solutions (0)

Answers (0)