Subform lookup and Javascript - how pass row information
Posted: Fri May 10, 2013 10:06 pm
When passing "this" as a parameter on the on blur or on change call, it'll pass the object where the event occurred.
In my case, upon selecting an item from a lookup object in a subform, say a book, I need to compose a string for a description field to contain multiple fields from that record, for example "<book title>, <author>, (<isbn>)".
Shouldn't be too difficult to call a function from the Javascript item of the lookup and do that. But when I pass "this" to this function, I receive an undefined object.
How do I obtain the row number of a lookup object in a the lookup JavaScript action.
(I generally find the nuBuilder documentation rather terse...)
In my case, upon selecting an item from a lookup object in a subform, say a book, I need to compose a string for a description field to contain multiple fields from that record, for example "<book title>, <author>, (<isbn>)".
Shouldn't be too difficult to call a function from the Javascript item of the lookup and do that. But when I pass "this" to this function, I receive an undefined object.
How do I obtain the row number of a lookup object in a the lookup JavaScript action.
(I generally find the nuBuilder documentation rather terse...)