Developer forum

Forum » Development » Accessing Extranet custom fields

Accessing Extranet custom fields


Reply

Hey Guys,

 

I made a few Custom fields in in the ExtranetExtended module, and now i'm trying to find them via the API, but with no luck.

 

Neither ExtranetExtended.User og the AccessUserClass classes had a property to access them.

 

Where do i find them?

 

</Martin>


Replies

 
Nicolai Høeg Pedersen
Reply

From the frontend:

PageView.Current.User.Information("NameOfField")

 

 
Reply

That works when i have access to the PageView, by use this code:

string Value = PageView.Current().User.get_Information( "MyCustomValue" );

 

Thanks for the pointer.

 

I'd like to access the informationen from an OrderTemplateExtender aswell, and i don't seem to have access to the PageView from here.

 

Is that possible? do i have access to the PageView?


</Martin>

 
Reply

Sure, you just need to type the full namespace:

 

Dynamicweb.Frontend.Pageview P = Dynamicweb.Frontend.Pageview.Current();

 
Reply
Sorensen wrote:

Sure, you just need to type the full namespace:

 

Dynamicweb.Frontend.Pageview P = Dynamicweb.Frontend.Pageview.Current();


 

Great, works like a charm.

 

You must be logged in to post in the forum