0
votes

I have a Dojo Text Area control binding to a field from a form, the field is a Dialog list which uses a simple @DBColumn formula:

 _view := "vwAuthor";

@Unique ( @DbColumn( "" : "NoCache" ; @DbName ; _view ; 1 ) )

I have saved one doc. with the Dojo text area control = Name1, but when I create another new doc. is there any chance to have that "auto-refresh" from Clasic Lotus Notes so that When I just type N the Name1 should be displayed?

Thanks for your time!

2

2 Answers

1
votes

Create instead of the value picker for your Dojo Text Area a dialog box with an input text field with type ahead.

Feed the type ahead with the first column of your view "vwAuthor":

  <xp:inputText
     ...>
     <xp:typeAhead
        mode="full"
        minChars="1">
        <xp:this.valueList><![CDATA[#{javascript:
                @Unique(@DbColumn("", "vwAuthor", 1))
        }]]></xp:this.valueList>
     </xp:typeAhead>
  </xp:inputText>
0
votes

A text area by default does not offer any data entry assistance. Switch to a regular input box and use the type-ahead support build into XPages. Check the basic workshop, especially Exercise 7.