Topic
  • 4 replies
  • Latest Post - ‏2016-07-05T15:01:24Z by ccoll
ccoll
ccoll
24 Posts

Pinned topic Refresh DotEdit panel

‏2014-12-30T17:04:06Z | custom dotedit panel

I have a button on a custom panel that adds document nodes to the runtime XML, and I would like to have these changes reflected immediately in DotEdit.  Has anyone found a way to do this?  My changes appear if I put the batch on Hold and re-open it, but our requirement is to have it update immediately without closing the batch.

 

  • ccoll
    ccoll
    24 Posts
    ACCEPTED ANSWER

    Re: Refresh DotEdit panel

    ‏2016-07-05T15:01:24Z  

    Have you found a solution to this?

    I was able to continually use the .Parent function to get the BatchForm control, and once I had that I could call the .loadBatch function to cause the refresh.  It isn't a supported feature, but it worked for our purposes.

  • John Michael Handrop
    438 Posts

    Re: Refresh DotEdit panel

    ‏2015-01-12T15:01:03Z  

    http://www-01.ibm.com/support/docview.wss?uid=swg21674446

    You need to change the focus to get it to update in real time:

    • dcedInvoice_Date.CtlText = "05/22/2014" ;
      dcedInvoice_Date.MakeDirty();
      dcedInvoice_Date.Focus();
      return bRetn;

     

  • ccoll
    ccoll
    24 Posts

    Re: Refresh DotEdit panel

    ‏2015-01-12T16:15:13Z  

    http://www-01.ibm.com/support/docview.wss?uid=swg21674446

    You need to change the focus to get it to update in real time:

    • dcedInvoice_Date.CtlText = "05/22/2014" ;
      dcedInvoice_Date.MakeDirty();
      dcedInvoice_Date.Focus();
      return bRetn;

     

    Sorry, I should have been more specific.  I've added Document nodes to the XML, but the batch tree doesn't reflect this change without closing and re-opening the batch.  Have you found a way to add/remove documents in DotEdit and have it reflect immediately?

  • John Michael Handrop
    438 Posts

    Re: Refresh DotEdit panel

    ‏2016-07-05T14:08:11Z  
    • ccoll
    • ‏2015-01-12T16:15:13Z

    Sorry, I should have been more specific.  I've added Document nodes to the XML, but the batch tree doesn't reflect this change without closing and re-opening the batch.  Have you found a way to add/remove documents in DotEdit and have it reflect immediately?

    Have you found a solution to this?

  • ccoll
    ccoll
    24 Posts

    Re: Refresh DotEdit panel

    ‏2016-07-05T15:01:24Z  

    Have you found a solution to this?

    I was able to continually use the .Parent function to get the BatchForm control, and once I had that I could call the .loadBatch function to cause the refresh.  It isn't a supported feature, but it worked for our purposes.