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

Multiple lines field in Material Attributes

Former Member
0 Likes
241

Hello guys,

In cFolders we have added a field in the material attributes by modifying the xml file:  mat_Attributes.xml. It works great. Now we would like to put several lines in this field.

- 1 ) Is it possible to create a field in xml mat_Attributes.xml with multiple lines?

- 2 ) Is it possible to have many fields but hide them dynamically?

Thanks in advance for your help.

Accepted Solutions (0)

Answers (1)

Answers (1)

ulf_petzel
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi,

do you want to create a text field or really individual lines?

I think indiviual lines of one field are possible.

See related documentation in Solution Manager, link below:

http://help.sap.com/SCENARIOS_BUS2007/helpdata/EN/9E/192DD0D4F34D9A9EBD657A4BEB4C7A/content.htm

Check the attribute "DisplayLines" of a field:

Only for strings and enumerations. The default is one. If you specify a larger value, an entry field with multiple lines can be generated for strings and a selection box instead of a dropdown list can be generated for enumerations.

Regards, Ulf.

Former Member
0 Likes

Hi Ulf,

We want to have a field with multiple lines.

I found this document too but when I put DisplayLines = "05" or DisplayLines = "5"  in my attributes it doesn't change anything in the view of my material.

See here the extract of the mat_Attributes.xml and the screenshot with the result:

  <Attribute EntryRequired="false" ID="Plant" Namespace="" >
    <Label Alias="CFX_UI/PLANT" Default=""/>
    <AllowedValues/>
  </Attribute>
 
<Attribute EntryRequired="false" ID="Class" Namespace="" DisplayLines = "05" >
    <Label Alias="CFX_UI/ZCLASS" Default=""/>
<AllowedValues/>
  </Attribute> 


<!--  &lt;Attribute Namespace="" ID="ManufacturerNumber" EntryRequired="false"&gt;
    &lt;Label Alias="CFX_UI/MANUFACT_NUM" Default=""/&gt;
    &lt;AllowedValues/&gt;
  &lt;/Attribute&gt; -->
</Attributes>