I know how to add a field to the editing area in the hmc, but I'm kind of despair with the backoffice.
Right now I'm trying to extend the OAuthClientDetailsModel
and try to edit it over the backoffice. For that I extende it over the core-items.xml
:
<typegroup name="OCC">
<itemtype code="OAuthClientDetails" autocreate="false" generate="false">
<attributes>
<attribute qualifier="brands" type="StringList" autocreate="false">
<modifiers read="true" write="true" search="true" optional="true"/>
<persistence type="property"/>
</attribute>
</attributes>
</itemtype>
</typegroup>
Until now everything is fine.
Now to the backoffice. For that I need to edit the backoffice-config.xml
.
My current code, which is not working correctly looks like this:
<context merge-by="type" parent="Item" type="OAuthClientDetails" component="editor-area">
<editorArea:editorArea name="">
<editorArea:tab name="hmc.tab.category.common" merge-mode="append">
<editorArea:section name="section.oauthclient.scope" merge-mode="append">
<editorArea:attribute qualifier="brands"/>
</editorArea:section>
</editorArea:tab>
</editorArea:editorArea>
</context>
This created a new tab and section with equal names, which I don't.
I have the following questions:
- is there a easy way to figure out the visible tab and section name?
- how can I add in the first tab, into an existing sextion another list of strings or other fields?
- is there somewhere
append
value formerge-mode
. Default ismerge
and that will do what you are trying to do. Read documentation. help.sap.com/viewer/5c9ea0c629214e42b727bf08800d8dfa/1905/en-US/… – Zedex7hmc.tab.common
. But now my field is not showing anywhere. – Mr.Tr33