cja
cja

Reputation: 10026

What is additionalparams for?

I have inherited some JScript written for CRM 4.

I am trying to remove the IE-specific and deprecated bits.

I have encountered this:

document.FilterLookup = function (source, target) {
    if (IsNull(source) || IsNull(target)) { return; }

    var name = IsNull(source.getValue()) ? '' : source.getValue()[0].name;

    target.additionalparams = 'search=' + name;
}

Custom Code Validation Tool complains about ".additionalparams".

I've googled a lot but can't even work out what .additionalparams is doing let alone what I could replace it with.

I hope that you do.

Upvotes: 1

Views: 1243

Answers (1)

Sunil
Sunil

Reputation: 624

additionalparams is not supported in CRM 2011. Check here for more info: http://advantageworks.blogspot.ca/2008/02/pseudo-filtered-lookup-dialog-in.html

I suggest you re-write the code using the new 2011 custom filtered lookup feature.

Check here for information on how to implement filtered lookups in CRM 2011

http://community.dynamics.com/crm/b/crmpowerobjects/archive/2013/08/05/creating-a-custom-filtered-lookup-in-crm-2011.aspx#.UieQRTZ2e24

Upvotes: 1

Related Questions