Highlighted

Reference objects within a specific instance of a subform

Avatar

Guest

22-07-2008

Hello,



How can I refer to a specific instance of a subform using variables



As an example, say if I want to excute the statement,



if (subform1[someVar].table1.row1.texfield1.rawValue=="test")

{ ... }

else { ... }



The resulting console message is:

"section[someVar] has no properties"



Even if I try the following,

if (subform1[2].table1.row1.texfield1.rawValue=="test")



The console message becomes "section[2] has no properties"



I am certain that the property exist...



What should I do in this case?



Thanks,

Dan

Replies

Highlighted

Avatar

Guest

22-07-2008

Dan,



If you are using FormCalc as your language then you should be able to specify



subform1[2].TextField2.rawValue = "test";



however with javascript when specifying an occurrence you need to use a resolveNode expression for example



resolveNode("subform1[" + someVar + "]").TextField2.rawValue = "test";
Highlighted

Avatar

Guest

25-07-2008

Phrase Express does not work when Victors (our current project) is opened up with a Firefox Browser.

Phrase Express is a tool that will allow a pre-typed clause to be populated onto the title (or tax) typing form. When Victors is opened in IE, the tool works perfectly. If Victors is opened in Firefox (either 2.0 or 3.0), the typing form loses focus when Phrase Express is accessed, and so the clause does not know where to go. If you use a hot key from Phrase Express (such as Ctrl-Shift-O for the degree symbol), Phrase Express does not lose focus, and can be used.

We also loaded at different websites and saw that Phrase Express will lose focus in them when using a Firefox browser as well.