Attempt to execute nested form evens

Hi,

i have a big problem with that…

it is, as follows:

I redirect a form event in the constructor of a user-defined class to a method of that class.

On Event PostRecalc from uidoc Call [classMethod]

On my form is a layout region with a dialogListBox, which is set to:

refresh fields on keyword change and

refresh options on document refresh

when i change the option of that dialoglistBox, a document refresh is triggered, and the postrecalc event is redirected to my class-method, that works fine.

Now, my problem is now, that in that method the backend field is gonna be changed, where the options of the dialoglistbox are based on, and therefore i have to make another refresh, to update the options of that box.

There´s the point, where a infinite loop would occur and Notes prevents that and gives the msg “attempt to execute…”.

My idea was, to remove the redirection (On Event…Remove…) before i call uidoc.refresh and switch it back on again, afterwards, but Notes seems to have problems with that (“attempt to execute…”.)

It doesn´t work.

Anyone have a idea, how it could work?

Thanks in advance.

Julian

Subject: Attempt to execute nested form evens

Julian,Below are my suggestions:

  1. Change the backend field type to “Computed For Display”, which is feeding the options to DialogList field and don’t try to refresh the document.

  2. You can use Subform to store your hidden fields. In subform’s Postrecalc event, write the code which you want to write. This way you can override the on event postrecalc…

  3. Use different Dialoglist fields and show/hide them by using RefreshHideFormulas.

I may be wrong. But give a try and let me know the solution.

Thanks

Adi