use event Obj to get current object?

T

Tag

Hey, my problem is this, im using a repeating field, and what i want to
do is, when i click a check box in one of the sections, it goes to an
onafterevent handler(already built) but in there i want to be able to
select the the individual box that sent me to the eventhandler, so say
checkbox[x] however does the eventObj hold this data? so could i
somehow say

var selectedNode = eventObj

???

cause i want to be able to modify this later with say

selectedNode.text = "1";

??
 
T

Tag

this is my code as of right now, however it causes a runtime error
saying too many calls to the onEvent for a single update in the data
has exceeded the limit :

{
if (eventObj.NewValue == "1")
{
var nodeSelTextContact =
XDocument.DOM.selectNodes("//my:Contacts/my:Contact");
var selectedNode = eventObj.Site;

for(var i = 0; i < nodeSelTextContact.length; i++)
{
nodeSelTextContact.selectSingleNode("my:primaryContact").text =
"2";
}

selectedNode.text = "1";
}

}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top