On mousemove event

Hi

Out of my thought .

I have a dialog box and just behind one text field.My requritment is when i select any item in dialog box its correspinding message is display on that textbox.

I have written a code on event “ON CHANGE” . It is working fine.But my user want when he select any item that message displayed like…“mouse move event” means …he select and message displayed…Right now it changes the text, if I leave the field.

MY CODE IS>>>>

Dim session As New NotesSession

Dim ws As New NotesUIWorkspace 



Dim  uidoc As NotesuiDocument

Dim doc As NotesDocument



Set uidoc = ws.CurrentDocument 

Set doc=uidoc.Document 



If doc .Stage_1(0)="1" Then

	Call uidoc.FieldSetText _  

	("stage1","Received inquiry – not worked on it yet")

Elseif doc .Stage_1(0)="2" Then

	Call uidoc.FieldSetText _  

	("stage1","Working with CAS or configuration to determine price")

Elseif doc.Stage_1(0)="3" Then

	Call uidoc.FieldSetText _

	("stage1","sent to CAS to determine price")

Elseif doc.Stage_1(0)="4" Then

	Call uidoc.FieldSetText _  

	("stage1","  Back  from CAS ,final pricing has to be done ")

Elseif doc .Stage_1(0)="5" Then

	Call uidoc.FieldSetText _  

	("stage1","   Quote send to customer ")

Elseif doc.Stage_1(0)="6" Then

	

	Call uidoc.FieldSetText _  

	("stage1"," Order Recived")

	'Msgbox"  Please Enter the  order in Order Table  "

Elseif doc .Stage_1(0)="7" Then

	

	Call  uidoc.FieldSetText _

	("stage1","Obvious")

	'Msgbox" Please Enter the reasons in the comment field "

	Call uidoc.GotoField ( "comment" )

End If

I donot have any Javascript idea.

Any Idea…

Thanks

Rajeev

Subject: On mousemove event

HI rajeev,

First of all if u wana show only this small tooltip on onchnage event of your combo then donot go for such big code (just talking about length), you have already client side javascript features.

only need to use client side javascript of the combo onchange event and write code like ,

write this code on ur combo onchange event of client->javascript

SelectedVal=document.forms[0].urfield.options[document.forms[0].urfield.selectedIndex].text;

document.forms[0].hint.value=SelectedVal

where hint is ur text field , which is computed for display .

make sure u enable combo’s third tab property \

Run exiting/onchange events after value has change.

hope it will do ur task more easy .

cheers yaar,

Rishi.

Subject: RE: On mousemove event

Hi Rishi,Thanks for your quick response.Now its working fine.

Rajeev

Subject: On mousemove event

Check the “Run Exiting/onChange events on value change” box on the combobox field. Then you can handle the event with Lotusscript or JavaScript.

Or just hide a button on your form, have it to the work of filling in your text field, and call click() on it from your onChange event. You might not need the “Run Exiting” box in that case, I forget.

Use uidoc.document.getfirstItem(“TheComboxBox”).text to figure out what item the user just selected. You might have to refresh first to get the correct value, I forget.