Chris,

You can do this in two ways. Webparts have all this already built in, you
just have to "hook it up", so to speak.

The simplest way is to expose a public property & decorate it with two
attributes "Personalizable(true)" & "Browsable(true)" (you can replace the
"true" in the Personalizable attribute with "PersonalizationScope.Personal"
or "PersonalizationScope.Shared").

Or, you can create a custom EditorPart, which requires a bit more work, but
gives you greater control.

If you google for "EditorPart" you'll find a wealth of information &
examples to get you going. If you have trouble finding what you need, I'll
see if I can find something for you.

Hope that helps,

Yann

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Chris Grist
Sent: Monday, 9 June 2008 9:31 AM
To: [email protected]
Subject: [OzMOSS] custom web parts with sql

Hi Guys,

In the next couple of weeks i am going to be doing some BDC stuff revolving
around a simple CRM system.

The basic layout they want is a site for each different company in the CRM.

What i would like to do is display that company information in my own layout
in a custom webpart. Which should be pretty simple, so thats fine.

What i would like to add though is the option for the user to select what
company the web part focuses on.

I.e. in the modify web part options: Select Company: drop down of company
names from something like

select company.name from company;

then when they select a specific company.name from the drop down it will set
a variable equal to company.id so this can be used for other querys to get
the specific address etc of that company.

I was wondering if there was any examples of this anywhere because ive come
up blank so far. But i would imagine this happens in quite a few webparts
and would be something useful to know how to do.

Thanks again for any help.

IMPORTANT: This e-mail, including any attachments, may contain private or
confidential information. If you think you may not be the intended
recipient, or if you have received this e-mail in error, please contact the
sender immediately and delete all copies of this e-mail. If you are not the
intended recipient, you must not reproduce any part of this e-mail or
disclose its contents to any other party. This email represents the views of
the individual sender, which do not necessarily reflect those of
education.au limited except where the sender expressly states otherwise. It
is your responsibility to scan this email and any files transmitted with it
for viruses or any other defects. education.au limited will not be liable
for any loss, damage or consequence caused directly or indirectly by this
email.


-------------------------------------------------------------------
OzMOSS.com - to unsubscribe from this list, send a message back to the list
with 'unsubscribe' as the subject.
Powered by mailenable.com








------------------------------------------------------------------- OzMOSS.com 
- to unsubscribe from this list, send a message back to the list with 
'unsubscribe' as the subject.
Powered by mailenable.com


Reply via email to