19
Views
5
Comments
Form webblock event assign bug?
Question

Hi Guys!

I will try to explain my problem maybe I'm doing something wrong.

In a form we have a webblock, this webblock returns a event with a return parameter.

This parameter is assigned to a value from the form.

When saving the form with a ajax submit button the value is not set.

But when doing debug I see that the assign to the form works....

Could this be a bug?

2019-05-22 11-30-09
Marcelo Ferreira

Hi,

Can you replicate the behavior in a simple example and post it here so we can take a look?

Regards,

Marcelo

UserImage.jpg
freek

Please see the espace.

Example.oml
2019-05-22 11-30-09
Marcelo Ferreira

Hi,

I did some changes and is working now.

Regards,

Marcelo

Example.oml
UserImage.jpg
freek

Marcelo Ferreira wrote:

Hi,

I did some changes and is working now.

Regards,

Marcelo

Thank's for the update. So in this case when there is a form and 1 of the element's is working like this I think I have to do this:

  1. First assign the form to the record.
  2. Update the record.
  3. Refresh the form


The first step is needed to set the value that is already set in the form to the record else it will lose it when refreshing the form.


2019-05-22 11-30-09
Marcelo Ferreira

Hi,

Yes you are correct. When you Ajax refresh a form  or table or a textbox these elements are filled with the variable that was assign to them and you need to handle this cases that they might have been changed in the client.

Regards,

Marcelo

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.