Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: Update picklist according to serviceid

5 views
Skip to first unread message

Sam - Inogic

unread,
Aug 24, 2007, 12:38:01 AM8/24/07
to
Hi Eric,

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


Sam - Inogic

unread,
Aug 24, 2007, 11:47:53 PM8/24/07
to
Hi Eric,

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
>
>

eric simonneau

unread,
Aug 25, 2007, 3:24:01 PM8/25/07
to
Marvellous!!

Exactly what I was looking for!!

eric simonneau

unread,
Aug 24, 2007, 11:32:01 AM8/24/07
to
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

0 new messages