T
Tag
My problem is, i want to create a repeating table that fills with
information from our database and be able to "select" one of these to
pull more data from the database to populate the form.
I created a webservice that returns my information, and added a "fake"
variable called checkbox with a boolean value type. What i was hoping
is that i could select one of the returned results and then by code
have the other checkboxes automaticaly set to FALSE so that i never
have more than one checkbox selected (because the customer should only
be selecting one box anyway, but i want this "check" to be in there
anyway
this is what i coded:
function
msoxd_tns_BusinessEntityReturn__Checkbox::OnAfterChange(eventObj)
{
if (eventObj.NewValue == "TRUE")
{
var nodeSelTextContact =
XDocument.DOM.selectNodes("/dfs:myFields/dfs:dataFields/tns:BusinessEntityReturnResponse/tns:BusinessEntityReturnResult/tns:BusinessEntity");
var selectedNode = eventObj.Site;
for(var i = 0; i < nodeSelTextContact.length; i++)
{
if(nodeSelTextContact.selectSingleNode("/dfs:myFields/dfs:dataFields/tns:BusinessEntityReturnResponse/tns:BusinessEntityReturnResult/tns:BusinessEntity/tns:Checkbox")
!= selectedNode)
{
nodeSelTextContact.selectSingleNode("/dfs:myFields/dfs:dataFields/tns:BusinessEntityReturnResponse/tns:BusinessEntityReturnResult/tns:BusinessEntity/tns:Checkbox").text
= "FALSE";
}
}
}
}
however this doesnt seem to be working for me, any ideas or is this
possible?
information from our database and be able to "select" one of these to
pull more data from the database to populate the form.
I created a webservice that returns my information, and added a "fake"
variable called checkbox with a boolean value type. What i was hoping
is that i could select one of the returned results and then by code
have the other checkboxes automaticaly set to FALSE so that i never
have more than one checkbox selected (because the customer should only
be selecting one box anyway, but i want this "check" to be in there
anyway
this is what i coded:
function
msoxd_tns_BusinessEntityReturn__Checkbox::OnAfterChange(eventObj)
{
if (eventObj.NewValue == "TRUE")
{
var nodeSelTextContact =
XDocument.DOM.selectNodes("/dfs:myFields/dfs:dataFields/tns:BusinessEntityReturnResponse/tns:BusinessEntityReturnResult/tns:BusinessEntity");
var selectedNode = eventObj.Site;
for(var i = 0; i < nodeSelTextContact.length; i++)
{
if(nodeSelTextContact.selectSingleNode("/dfs:myFields/dfs:dataFields/tns:BusinessEntityReturnResponse/tns:BusinessEntityReturnResult/tns:BusinessEntity/tns:Checkbox")
!= selectedNode)
{
nodeSelTextContact.selectSingleNode("/dfs:myFields/dfs:dataFields/tns:BusinessEntityReturnResponse/tns:BusinessEntityReturnResult/tns:BusinessEntity/tns:Checkbox").text
= "FALSE";
}
}
}
}
however this doesnt seem to be working for me, any ideas or is this
possible?