Skip to Content
author's profile photo Former Member
Former Member

Reuse values of a node?

Hi,

how can i reuse the values which was saved in my node. After i call some values from my node in the method: getData()

it is not possible to call values from this node again like from the method: getMoreData(). Should i execute my BAPI again every time???

My Model:
BAPI_GLOBAL_STRUC_FROM_R3
  OUTPUT
     Et_Doc_Links
       - Url
       - ...

	
	private IEt_Doc_LinksNode node;
	private IEt_Doc_LinksElement elements;

	public void connectToBackend(){	
		Zcm_Prv_Get_Doc_Links_Input input = new Zcm_Prv_Get_Doc_Links_Input();
		wdContext.nodeBAPI_GLOBAL_STRUC_FROM_R3().bind(input);	
		wdContext.currentBAPI_GLOBAL_STRUC_FROM_R3Element().modelObject().execute();
	}
        /**This method works fine.*/
	public void getDate(){
		IEt_Doc_LinksNode node;	
		for (int i = 0; i < node.size(); i++)   <-- nodeSize = 15
		{	
			elements = node.getEt_Doc_LinksElementAt( i );					
			System.err.println("URL: " + elements.getUrl());
			.....
		}
	}
	
        /** Hier i get an empty string back. */
	public void getMoreData(){
		for (int i = 0; i < node.size(); i++)   /**<--- same nodeSize = 15*/
		{
			elements = node.getEt_Doc_LinksElementAt( i );					
			System.err.println("URL: " + elements.getUrl()); /**<-- empty string???*/
			.....
		}
	}

regards,

Sharam

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Apr 21, 2007 at 02:09 PM

    hi,

    do you call node.invalidate() between the calls to getData() and getMoreData()?

    regards

    Add a comment
    10|10000 characters needed characters exceeded

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.