Retrieve this.rawValue = this.parent.index + 1; for use elsewhere | Community
Skip to main content
Level 2
November 23, 2011
Question

Retrieve this.rawValue = this.parent.index + 1; for use elsewhere

  • November 23, 2011
  • 14 replies
  • 12733 views

I have yet another dumb question.  I have a subform with a field displaying the instance number for that form.  It is in layout:ready

this.rawValue = this.parent.index + 1;

How do I retrieve the value of that field for use elsewhere on the form?  I have tried getting the value as itemno.rawValue but it does not give me the rawValue.

Thanks,
Eagle

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

14 replies

Eagle0107Author
Level 2
November 25, 2011

Sorry, my brain is fried right now...  Corrected URL: 

http://www.xua-llc.com/dropdownformr1.pdf

Niall_O_Donovan
Level 10
November 25, 2011

Here is the form back to you: https://acrobat.com/#d=g25N7cxER7im4QC0Ndp6sA.

The i<=nCount was the problem. I just changed it to i<nCount.

Good luck,

Niall

Eagle0107Author
Level 2
November 25, 2011

Niall,

Thanks for all the help here.  Drop down 1 works but Drop down 2 stll doews not give me the controls.control.itemNo associated with the selection in Drop Down 1.  I think if these worked the way I wanted them to I could figure out how to get the associated text to display.

Thanks,

Eagle

Niall_O_Donovan
Level 10
November 25, 2011

Work with me! Have a look at the solution and previous examples. It is possible, but you do need to use the tools like the JavaScript Console (Control+J) to work through scipting errors. Niall