Avatar

Level 10

Hi,

I suspect that the references to the object are not correct or you have unnamed subforms/pages.

When referencing objects you are use a relative reference, which specifies the object with the minimum amount of information. - "clear as mud".

For example if two objects are on the same page (and in the same subform), then this would work:

this.rawValue = textfield1.rawValue; 

However if textfield1 was on a different page and in a subform, the relative reference needs mor information:

this.rawValue = page1.subform1.textfield1.rawValue; 

This example is not finished yet, so that it with a pinch of salt. If you open it in Acrobat/Reader and then hover over the script. The intention is that it will highlight each part of the reference. As yet there is no supporting text in it - it is a work in progress.

http://assure.ly/exTXaZ

There is a trick that you can use in LC Designer to automatically insert references.

  1. Select the object that you want to insert script into.
  2. Click into the script editor.
  3. Scroll to the object that you want to reference (DON'T select it).
  4. Reselect/click into the script editor.
  5. Now press and hold the Control key.
  6. As you hover the mouse over the object you want to reference, the pointer will turn into a 'V'.
  7. Still holding the Control key, click the object.
  8. LC Designer will insert as full a reference as is required.

Hope that helps,

Niall

Assure Dynamics