I use a variable edit control for the email addresses in my RMAIL email form.
This variable in most cases is automatically filled and the user does not need
to change the address.
However my sales people would like to be able to change the address or add one
in cases where an address is not automatic.
I know I can have a button off to the side but I would rather them be able to
start typing in the field to bring up other email addresses.
Right now I use code that allows them to start typing but it then brings up a
popup because I am using that option.
This below code works but it is not really working the way I want it to work.
GETPROPERTY Comp_to TEXTVALUE 'vto'
SET VAR vQuotes = (CVAL('QUOTES'))
SET VAR vMany = (CVAL('MANY'))
SET VAR vSearchString TEXT = NULL
SET VAR vWhereClause TEXT = NULL
SET VAR vSearchString = (.vQuotes+.vMany+.vto+.vMany+.vQuotes)
-- Define Where Clause
SET VAR vWhereClause = ('EmailTo CONTAINS'&.vSearchString)
CHOOSE vwhereclause FROM #VALUES FOR DISTINCT Emailto +
FROM Emailinformation ORDER BY Emailto +
CAPTION 'TO' LINES 20 FORMATTED
IF vto = '[esc]' THEN
PROPERTY FROM SET_FOCUS 'TRUE'
RETURN
ENDIF
SET VAR vTo = .vWhereClause
This works as a LIKE clause instead of a CONTAINS clause as I wish.
Any suggestions?
James Belisle
Making Information Systems People Friendly Since 1990
[cid:[email protected]]
--
For group guidelines, visit
http://www.rbase.com/support/usersgroup_guidelines.php
---
You received this message because you are subscribed to the Google Groups
"RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/rbase-l/DM6PR02MB4539032F1618D2F0697FCC2FA0E70%40DM6PR02MB4539.namprd02.prod.outlook.com.
For more options, visit https://groups.google.com/d/optout.