Skip to Content
0
Dec 15, 2022 at 09:01 AM

IBar Control issue BAS Syntax check

1596 Views Last edit Dec 15, 2022 at 09:43 AM 2 rev

Hello,

the syntax checker of the new BAS (vs.code) screams because of this issue:

<s:DetailPage xmlns:sap.m.semantic="sap.m.semantic" id="btnAbort"> 
<s:subHeader>
<Bar id="headerBar">
<!--<contentLeft> <Input id="WERKS" type="Text" placeholder="{i18n>WERKS}" value="{WERKS}" editable="false"/> </contentLeft>-->
<contentMiddle> <Label text="{i18n>title}" id="lblHeader"/> </contentMiddle>
<!--<contentRight>
<Button tooltip="{i18n>btn_scrap}" press="onScrap" icon="sap-icon://trash" class="ZsapMBtnIcon"/>
<Input id="LGORT" type="Text" placeholder="{i18n>LGORT}" value="{LGORT}" editable="false"/> </contentRight>-->
</Bar>
</s:subHeader>

The "Bar" class is under the "subHeader" aggregation and must match the "IBar" type.UI5 Langu

It sets the whole file "red" and to an error - which is not necessary because the coding is working as expected.

Do you have an idea how I can get rid of this issue?

Thanks!

Regards!

Andreas