Showing results for 
Search instead for 
Do you mean 
Community Home Request Access Read Blogs Share Your Ideas Search Community View My Settings
Reply
Highlighted
Bronze Super Contributor
Posts: 141
Registered: ‎02-22-2010
Accepted Solution

Saleslogix Lookup..........Help Needed Urgently

Hi

 

I need to create an account lookup so that based on the account selected i need to populate the some field values in the text boxes in a form. I have added the account lookup with the following settings.

 

What Information will you be looking for?

Account

 

Which Property will recieve the result of this look up?

 

Account

 

Select How the look up control will display?

Dialog

 

Select the properties that you want to see in the grid?

AccountName

Type

Subtype

 

 

After this i want to fetch the selected account id programtically. But i am not getting which property will give me the primary key id

 

i have tried the following

 

lkupaccount.lookupresultvalue -- returing the account name but not id

lkupaccount.SeedValue -  Getting error

 

 

Please suggest and help me in this

 

THanks in advance

 

 

Jack

 

 

Bronze Super Contributor
Posts: 141
Registered: ‎02-22-2010

Re: Saleslogix Lookup..........Help Needed Urgently

If any one has ever did this, please kindly respond thanks in advance
Bronze Super Contributor
Posts: 141
Registered: ‎02-22-2010

Re: Saleslogix Lookup..........Help Needed Urgently

Hi

 

I have got solution to the above problem.

 

On lookup change event / else in page load write the following code for getting the id of the selected record. Please note that this will help when ever look up is built on a table and not bounded to any field. Depends on the look up you built the Interface element below will change(In my Case it is account so i have created interface for account)

 

Sage.Entity.Interfaces.IAccount acc = lkupaccount.LookupResultValue as Sage.Entity.Interfaces.IAccount; string acctID = acc.Id.ToString();

 

 

Thanks

Jack Smiley Happy

Nickel Contributor
Posts: 57
Registered: ‎03-18-2010

Re: Saleslogix Lookup..........Help Needed Urgently

If you set the "lookingbindingmode" to String instead of Object you will get the accountid in the propertie "lookupresultvalue"...

Libert Damien