Expand my Community achievements bar.

Add dinamically rectangles to the form

Avatar

Level 2

Hi,

I've got LiveCycle Designer 8.0 and my problem is the following.

I want to "draw" dinamically rectangles on my form: the user inputs the number of rectangles and their coordinates, and my javascript has to create them.

I thought I could create "rectangle" nodes and append them to some other node of the form but, after a few hours on the internet, I discovered it isn't so easy, and now I'm wondering if it is possible.

Can you help me?

Thanks in advance

8 Replies

Avatar

Former Community Member

What are you hoping to achieve by adding rectangles dynamically?

Steve

Avatar

Level 2

An image made of bars that depends from user's filling

Avatar

Level 3

This may help - I downloaded from adobe somewhere...

Avatar

Level 2

Yes, it's something. But in your example there is not the creation of a new static object: the rectangles here already exist, and I can dinamically resize them. I'd like to dinamically create them somewhere in the pdf.

However now I know that I'm going to use the

xfa.layout.relayout()

method.

Thanks a lot

Avatar

Former Community Member

As far as I know, you cannot instantiate new XML form objects on-the-fly.

Avatar

Level 2

So is there nothing similar to what you can do within a simple html page with dom and javascript?

Avatar

Level 6

No, there is nothing similar. You can't create new objects on the fly. Only what you can do is hide/unhide something.

BR,

Paul Butenko