Check the AddOption and DeleteOption methods available for the picklist
control. These may help you acheive what you want.
Hope this helps!
Sam
_______________
Inogic
Innovative Logic
Innovative solutions for your SME ERP/CRM products
E-mail: c...@inogic.com
Web: www.inogic.com
--------------------------
"eric simonneau" <ericsi...@discussions.microsoft.com> wrote in message
news:DFFAF7C0-1029-4D14...@microsoft.com...
> Service Activity entity:
> I am trying to restrict the picklist values available in a custom
> attribute
> according to the serviceid that is selected. I can't seem to be able to
> get
> the available values.
>
> Using on OnChange event, the serviceid (lookup field) attribute needs to
> restrict the values in my picklist.
>
> Ex. When the user selects "Remote support" from the serviceid, I want
> values in my picklist concerning travel fees to not be available. That
> way
> we avoid confusion for our billing department.
>
> Help please!
> --
> Eric Simonneau
> Hotel Logistics specialist
Have u tried this sample from the sdk
var lookupItem = new Array;
// This will get the lookup for the attribute primarycontactid on the
Account form.
lookupItem = crmForm.all.primarycontactid.DataValue;
// If there is data in the field, show it in a series of alerts.
if (lookupItem[0] != null)
{
// The text value of the lookup.
alert(lookupItem[0].name);
// The GUID of the lookup.
alert(lookupItem[0].id);
}
Replace primarycontactid with the serviceid.
Hope this helps!
Sam
_______________
Inogic
Innovative Logic
Innovative solutions for your SME ERP/CRM products
E-mail: c...@inogic.com
Web: www.inogic.com
--------------------------
"eric simonneau" <ericsi...@discussions.microsoft.com> wrote in message
news:674E8931-2142-4CB7...@microsoft.com...
>I want to use those options but need to find the serviceid. My picklist
>will
> be modified according to the serviceid. I can't seem to be able to pickup
> the value of serviceid.
>
> --
> Eric Simonneau
> Hotel Logistics specialist
>
>
Exactly what I was looking for!!
--
Eric Simonneau
Hotel Logistics specialist