I'd like to add a new record with javascript
i used this code
XDocument.View.ExecuteAction("xCollection::insert", "new_rec");
it's ok but i have to show just the new record and hide the other ones.
the action "New record" that infopath uses with the command button
can do it.
the problem it's this: when i clic on the button to add new record (the action) the view switch on the default one...I dont'want this! (??) so I want to add new record by code and Force the switchView to the current.
Some help?