cancel
Showing results for 
Search instead for 
Did you mean: 

Created context in the component controller section is not visible

Former Member
0 Kudos

i am currently updating an i view and added a field on an i view. i also created a context for my new field and added it in the component controller.

now, i am trying to mapped the newly added context from the component controller section to the Used Web Dynpro Components section. but my newly added context is not available. i only saw the previously created context.

can anyone help me on what to do in order that my newly added context in the component controller will be also visible in the Used Web Dynpro Components section? I am not seeing any menu to add it manually in that section.

Thanks.

Melvin

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You will have to copy the new attribute from the Comp Controller and paste it in the interface controller.

Resync the used DC and you will be able to see it.

Regards,

Himanshu

Former Member
0 Kudos

Hi Himanshu,

Im trying to copy the context from comp controller to the interface controller of the used dc but there is no option to paste it. it is disabled and greyed out..

Former Member
0 Kudos

HI ,

Used DC is something like which we will aquire the things from that.If you want to add context attributes,

the better way is to create context elements in the Root Dc and use the same in other DC.

Try this option,i am not sure about this.

1.Open the interface controller by doble clicking from your NWDS-> WD prespective.

2.Go to properties tab and add the required comp controller by click on ADD button.

3.Copy the elements/create and add mappings from comp contoller.

Regards,

Lavanya.G

Former Member
0 Kudos

Hi Lavanya,

I've already done that but it did not work also..

When a used component is created, does all the context created in the component controller will automatically available in the newly added used component?

I tried creating a new used component but it didn't work also. I'm wondering on how was the context of the used component interface controller created when the option of adding a new context was disable.

I tried rebuilding, re-synching the project but it doesn't work at all. The new added context in the component controller was not visible in the used DC interface controller.

p330068
Active Contributor
0 Kudos

Hi

Please have a look at below document might help.

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0ae5f90-1679-2c10-4183-8c64cf932...

Open the Diagram view of the First DC and drag & drop context node from component controller to Component interface controller.

Then buld and deploy this First DC and try sync sources and sync used dc from Second DC. then newly added context node will visible.

Hope it will helps

Regards

Arun

Former Member
0 Kudos

Hi,

i have added a column in a table but after deploying it, it is not visible. i notice this calculated context attribute UiTableSize, and this is the code below;

public int getUiTableSize(IPrivateSearchToolView.IContextElement element)

{

//@@begin getUiTableSize(IPrivateSearchToolView.IContextElement)

int rv = wdContext.nodeToolSearchResults().size();

if (rv < 2)

rv = 2;

if (rv > 25)

rv = 25;

return rv;

//@@end

}

could this be the one controlling on how many columns will be shown? if not, how can i make my column be visible.. i tried comparing the properties of it to the others and its all the same.

Thanks,

Vin

Answers (1)

Answers (1)

Former Member
0 Kudos

You cannot copy a node from any component controller to interface controller of used DC directly.

First go to the Second DC which you are using in Main DC . Create the same node structure in the interface controller of this

second DC and make the IsInputElement property of the node to true. Now build this DC.

Now go to Main DC where you are using this Second DC. You will be able to see the node structure in the interface controller of used dc here.

Now do the mapping.

Regards

Ravindra