Problem solve Get help with specific problems with your technologies, process and projects.

Limit number of times an action button can be pressed

I am having problems with an action button composing a response in a form. How do I limit the number of times an action button can be pressed, i.e., "three strikes and your out." I want to have a response form that can be raised under each parent form no more than THREE times. However, if the user presses the action button and then Esc out of the Response I don't want that to count.
The best way to do that is to increment a counter field in the parent document every first time a response is saved. You could use a formula in the response like the following one.
  tempResponse := 
@GetDocField($Ref; "Responses");
  @IF(@IsNewDoc AND @IsDocBeingSaved; 
"Responses"; tempResponse + 1 );

Do you have comments on this Ask the Expert question and response? Let us know.

Dig Deeper on Lotus Notes Domino Application Development

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.




  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...