I guess the subject explains it all, but I want to give some background. I have multiple secondary data connections, all set up to submit via e-mail. I know I have to set my buttons up to use Rules and Custom Code because there's multiple buttons. That being said, I've tried
function CTRL75_7::OnClick(eventObj)
{
DataConnections["Main Connection"].Execute();
}
This however causes an error, so obviously it's not right. What'd I'd really like to do is find out how to automatically start a workflow with a single submit button, I feel that will work better as opposed to the makeshift workflow I have now, but even with that, I'll still need to know how to call out a data connection in the form code.