lotus notes - +1 to a field when an image is click in Domino Designer - Formula -


i have image in domino designer on form, want + 1 field elsewhere on same form when image clicked. possible?

to add action without creating button, right click image , select 'add action default'. if want part of image clickable, select 'add action rectangle' (or circle or polygon) , draw clickable region.

if need work without being in edit mode, need use lotusscript instead of formula. (there old-fashioned option of having button run agent, that's not idea; cause lots of distracting ui flashes).

sub click(source button)      dim ws new notesuiworkspace     dim uidoc notesuidocument     set uidoc = ws.currentdocument     dim doc notesdocument      set doc = uidoc.document     value = doc.getitemvalue("counterfield")     call doc.replaceitemvalue("counterfield",value(0)+1)     call doc.save(true,false,false)     call uidoc.refresh  end sub 

note above applies notes client applications only. lotusscript hotspot won't work in browser.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -