on 11-10-2008 10:09 AM
Hi,
I have 2 context node Person and People in a view context and context node People in component controller's context ,now i want to create new People element in the implementation of view
so when i had written code below in eventhandler method in view implementation:
IPeopleElement newPerson = wdContext.nodePeople().createPeopleElement();
it gives me an error :
Cannot convert from IPrivateview.IElement to IPublicTabComp.IPeopleElement
Any help will be appreciated.
Thanks,
Rashmi.
Hi,
i hope you mapped the component controller context "People "to view .
then to create a element do like this,
IPrivate<View Nmae>View.IPeopleNode pnode= wdContext.nodePeople().createPeopleElement();
Regards,
ramesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
From the import statement delete import related with IPublicTabComp.IPeopleElement.
and then do a CtrlShiftO or an organize import
Select the right one.
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Use
Comoponet/View Name.Element
IpublicPople.IPeopleElement newPerson = wdContext.nodePeople().createPeopleElement();
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.