Acrobat User Community Forums

You are not logged in.     Log in to your AUC account.     Don't have an account? Sign up today

#1 2007-12-06 19:00:50

nmara
Member
Registered: 2007-04-23
Posts: 15

Page function in subforms

A worker in another department has created a couple of different forms.  On both forms she added the custom "Page N of M" control to her forms.  It works great on the first form but just shows page 0 of 0 on the 2nd.

I tried looking at the code in the script editor and the only difference I can see is this.

The form that works looks like this:
---form1.#subform[1].CurrentPage[1]::ready:layout - (JavaScript, client)--------

The form that does not work looks like this:

---form1.#subform[0].CurrentPage::ready:layout  - (Javascript, client) -----

If they are essentially similar documents why does one have [0] and the other have [1] after subforms?  Are subforms created automatically or is that something a user has to define?

Thanks much,


My Product Information:
LiveCycle Designer Pro 8 / Windows

Offline

 

#2 2007-12-14 14:58:07

thomp
Member

Registered: 2007-04-23
Posts: 1027

Re: Page function in subforms

I don't think that the SOM paths have anything to do with why the custom page display isn't working.  These are just the headers that the script editor puts at the top for convenience. So you know what control and trigger the script is for. 

"Subforms" are an integral part of the whole XFA paradigm.  And yes, the ones listed in your scripting SOM path were auto-generated for a new form.  "form1" is the topmost (or document) subform, followed by "#subform", which represents an un-named page subform.  If you're going to do any scripting you need to rename these page subforms to something meaningful and simple. 

You can also create your own subforms for controling the document layout and scripting structure.

Offline

 

#3 2007-12-14 18:23:23

nmara
Member
Registered: 2007-04-23
Posts: 15

Re: Page function in subforms

Thom,

Thanks for your replies.  two questions:
1. What does SOM stand for?
2. How does one go about renaming page subforms so they are more meaningful??

Nat

Offline

 

#4 2007-12-17 17:40:55

nmara
Member
Registered: 2007-04-23
Posts: 15

Re: Page function in subforms

Thom,

I had help from someone figure this out. Clarification on my end: The cells involved on the form were inside a table, so the usual sum("ActSalary,ActERE, ActOther") did not work.  what ended up working was Sum(form1.#subform[0].Table3.Row1.ActSalary,form1.#subform[0].Table3.Row2.ActERE,form1.#subform[0].Table3.Row3.ActOther)

Why is that extra granularity necessary so I can explain to others?

Thanks for all of your assistance on this,

Nat

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson

AcrobatUsers.com  >>  User Groups • News • Events • Articles • Blogs • How To • Resources • Member Log in