cancel
Showing results for 
Search instead for 
Did you mean: 

SmartField currency masked like password field

Former Member
0 Kudos

Hello,

i'm currently implementing the SAPUI5 Developer Guide SmartControls Template Step 2 SmartField with Value Help. I have a abap gateway system that is providing the odata service & which delivers metadata.

So far everything is working fine except for the currency output. It's masked like a password field.

The type of the currency Field is set to password and i don't know how this comes where it would be set?

What i would like to get:

What i have:

Entity Type Product

<EntityType Name="Product" sap:content-version="1"> 
<Key> 
<PropertyRef Name="ProductId"/> 
</Key> 
<Property Name="ProductId" Type="Edm.String" Nullable="false"/> 
<Property Name="Price" Type="Edm.String" sap:label="Price" sap:unit="CurrencyCode" sap:updatable="true"/> 
<Property Name="CurrencyCode" Type="Edm.String" MaxLength="3" sap:label="Currency" sap:masked="false" sap:updatable="true" sap:semantics="currency-code"/> 
</EntityType> 

Entity Type Currency:

<EntityType Name="Currency" sap:content-version="1"> 
<Key> 
<PropertyRef Name="CURR"/> 
</Key> 
<Property Name="CURR" Type="Edm.String" Nullable="false" MaxLength="4" sap:display-format="UpperCase" sap:filterable="false" sap:label="Currency Code" sap:text="DESCR"/> 
<Property Name="DESCR" Type="Edm.String" MaxLength="25" sap:label="Description"/> 
</EntityType>

EntitySet Definition Products & Currency

<EntitySet Name="Products" EntityType="xxx.Product" sap:content-version="1"/> 
<EntitySet Name="Currency" EntityType="xxx.Currency" sap:content-version="1"/> 

Controller and View is 100% identical to the Tutorial Link: https://sapui5.hana.ondemand.com/#docs/guide/ed8fda66cd3b406cbd22f6019188ce82.html

Thanks for your help & kind regards

Michael

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member487507
Discoverer
0 Kudos

Hello,

I have the same issue, have you been able to resolve ?

Best regards

Samy