Skip to Content

How to append elements to an existing node

Hi,

I have a RFC that returns records in batch of 30 records..

That is, on very 1st call, it will return first 30 matching records out of 300 matched records..

Subsequently on 2nd call, it returns next 30 records..

What i want to achieve is, on click of "Load Next 30" button, next set of elements should be added to existing Context Node "Transaction" (without removing existing elements)

How do I do this? Pls help me if u have some clue about this...

thanks n regards,

Amey

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2008 at 12:17 PM

    Hi,

    Use a different context to display the value, i mean bind your table with a different node than the one where the model is executed.

    Append the values after each execution use

    WDCopyService

    Regards

    Ayyapparaj

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Amey Mogare

      Hi Amey,

      To copy data from master node to target node

      try

      {

      IPrivateDialogView.ITargetNode TargetNode = wdContext.nodeTarget();

      IPrivateDialogView. IMasterNode masterNode = wdContext.nodeMaster();

      int size = masterNode.size();

      for (int i = 0; i < size; i++)

      {

      IPrivateDialogView. IMasterElement masterElement = (IPrivateDialogView. IMasterElement)wdContext.nodeMaster ().getElementAt(i);

      IPrivateDialogView.ITargetNode node = wdContext.nodeTarget();

      IPrivateDialogView.ITargetElement element = node.createTargetElement();

      WDCopyService.copyCorresponding(masterElement, element);

      node.addElement(element);

      }

      }

      catch(Exception e)

      {

      e.printStackTrace();

      }

      or you can use this code also

      try{

      WDCopyService.copyElements(wdContext.nodeMaster(),wdContext.nodeTarget());

      }

      catch(Exception e)

      {

      e.printStackTrace();

      }

      displaying-data-in-table

      Regards,

      Mithu

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.