Show TOC Start of Content Area

Procedure documentation Enabling AutoComplete for InputFields  Locate the document in its SAP Library structure

Use

The AutoComplete function allows the user to see proposals during input of data into an input field. The proposals result from the history of the data the user has inserted.

The user will get the same proposals for each InputField that is bound to a context attribute with the same Semantic ID. The Semantic ID is built up of a namespace and an ID The two parts are separated by a colon. Its optional to enter a namespace, but to clearly define a proposal list for an attribute you should do so.

Structure of a Semantic ID

ID part

allowed characters

Namespace

A to Z

 

a to z

 

digits from 0 to 9

 

hyphen -

ID

A to Z

 

a to z

 

digits from 0 to 9

 

hyphen -

 

period .

Examples for a Semantic ID

      CRM:Customername

      Name-Space42:com.asap3.first-name

Prerequisites

The AutoComplete function of the browser the WD application runs in, has to be enabled.

      Microsoft Internet Explorer: Tools -> Internet Options -> Content -> check Forms

      Mozilla Firefox: Tools –> Options ->Privacy -> check Remember what I enter in forms and the search bar.

Procedure

...

       1.      Set the history property of the relevant InputField to true.

Note

If you don’t see this property, you have to select Show Advanced Properties This graphic is explained in the accompanying text in the upper right corner of the Properties window.

       2.      Bind the value property of the InputField to a context attribute.

       3.      To set the relevant tag for this attribute, enter the following code:

wdContext.node<node name>().getNodeInfo().
getAttribute(
IPrivate<controller name>.I<node name>Element.
<ATTRIBUTE NAME>).setTag(
"NameTag");

 

End of Content Area