cancel
Showing results for 
Search instead for 
Did you mean: 

external context mapping issue: cannot create nodes,no mapping defined yet

Former Member
0 Kudos

Hello everybody,

I'm trying to use the external context mapping as it is explained in http://help.sap.com/saphelp_nw04/helpdata/en/d7/e551cf896c3a49bb87bb4ce38c99c8/frameset.htm

I did it in the past without any problem, but now, when i try to create a new node, i get the error "cannot create nodes,no mapping defined yet." This error appears as i try to create an element of the node (in the Internal Component), this way:

IPruebaNodoElement elto = wdContext.nodePruebaNodo().createPruebaNodoElement();

elto.setPrueba("Esto es una prueba");

wdContext.nodePruebaNodo().addElement(elto);

The mapping is correctly done in the "Embedder Component", and the attribute "isInputElement"=true in the Interface Controller of the "Internal Component".

Any idea, any clue?

Thank you very much in advance

Isidro López

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Isidro,

Before accessing context try to invoke any method (if necessary, create fake one with empty implementation) on embedded component. Sometimes this helps.

VS

Former Member
0 Kudos

Hi Valery,

I finally found the error.

Thank you anyway for your answer.

Regards,

Isidro

Former Member
0 Kudos

And what was the solution???

Former Member
0 Kudos

Frankly speaking: I just read again, but very carefully, all the steps explained at

http://help.sap.com/saphelp_nw04/helpdata/en/d7/e551cf896c3a49bb87bb4ce38c99c8/frameset.htm.

Read it carefully and try to implement that example, that could be really helpful.