Its complicated - InfoPath Dev

InfoPath Dev

Use our Google Custom Search for best site search results.

Its complicated

Last post 10-20-2005 10:56 AM by franck. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 10-19-2005 11:53 PM

    Its complicated

    Thanks for your help in advance...
    On my form i have a master/detail control. The master is contained within a scrolling region. I have a button on the detail control which is meant to set/unset a check box on the detail control. As per code.

    function btnDelete::OnClick(eventObj)
    var deleted = XDocument.DOM.selectSingleNode("/dfs:myFields/dfs:dataFields/d:PropertyLeaseDetails/@chkDeleted");
    var resp = XDocument.UI.Confirm("Are you sure you want to deactivate this record?", 4);

    if (resp == 6 ) {

    deleted.text = true;
    XDocument.UI.Alert("Record Deactivated!");

    The problem is that it only unsets the first item that appears in the master section. Regardless if you have another record selected in the master section. Eg. if i select the last item in the master section and click on the delete button. It will delete the first item in the masters section. All the bloody time.

    ive tried and objEvent.source but didn't work. these are read only are they not?

    help pls
  • 10-20-2005 10:56 AM In reply to


    You need to look into "current()"
    Check this reference:


    Franck Dauché
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.