Expand my Community achievements bar.

SOLVED

how to simulate form-update which is used by messageBox

Avatar

Level 3

Hello,

I use a scripting object for my function to add/remove rows to my dynamic table.

If I do NOT use the messageBox everytime I call the function, I get some problems with my table index. T

It would be too difficult to describe every aspect of my coding, so let us cut a long story short.

The messageBox does some kind of an update to the form. How could I simulate this update without using messageBox?

xfa.form.recalculate(1); doesn't help at all

function addORremoveRow (myCheckBoxAsObject){

       xfa.host.messageBox("without me no update!");

       ..... if checkBox "outside the table" = clicked      -> add row

       ..... if checkBox "outside the table" = unclicked  -> remove row

}

1 Accepted Solution

Avatar

Correct answer by
Level 10

I'm not able to tell you what's wrong with your form, therefore I would need more information.

So I'm guessing your need to add something like xfa.layout.relayout(); to your script.

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

I'm not able to tell you what's wrong with your form, therefore I would need more information.

So I'm guessing your need to add something like xfa.layout.relayout(); to your script.