Advertisement

02.25.2008 at 09:34PM PST, ID: 23192616
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

Salesforce - Can you filter Custom LOOK-UP fields based on the Account Type?

Hi there,

Please see the attached file which has the exact requirements. In order to explain my problem it is important to see the attached file, which has screen shots and the images?

Thanks
Attachments:
 
Requirement Details
 
Start your free trial to view this solution
Question Stats
Zone: Database
Question Asked By: sumprit
Solution Provided By: Bill-Hanson
Participating Experts: 1
Solution Grade: A
Views: 18
Translate:
Loading Advertisement...
02.26.2008 at 06:32AM PST, ID: 20984557

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.26.2008 at 12:48PM PST, ID: 20988624

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.26.2008 at 01:19PM PST, ID: 20988961

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.26.2008 at 02:35PM PST, ID: 20989718

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.27.2008 at 06:13AM PST, ID: 20994052

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.27.2008 at 01:19PM PST, ID: 20998498

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.27.2008 at 01:53PM PST, ID: 20998839

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.27.2008 at 01:54PM PST, ID: 20998849

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.27.2008 at 01:55PM PST, ID: 20998860

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.27.2008 at 02:18PM PST, ID: 20999070

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.27.2008 at 02:26PM PST, ID: 20999132

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
Microsoft
  • Internet Protocols
  • Applications
  • Development
  • OS
  • Hardware
  • Windows Security
Apple
  • Operating Systems
  • Hardware
  • Programming
  • Networking
  • Software
Internet
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Spy / Ad Blockers
  • Web Browsers
  • New Net Users
  • Web Development
  • Chat / IM
  • Anti Spam
  • Web Servers
  • Anti-Virus
  • Email Clients
Gamers
  • Tips
  • Online / MMORPG
  • Puzzle
  • Emulators
  • Action / Adventure
  • Role Playing
  • Consoles
  • Game Programming
  • Strategy
  • Sports
  • Misc
  • Computer Games
Digital Living
  • Hardware
  • New Net Users
  • New Users
  • Software
  • Digital Music
  • Gaming World
  • Home Security
  • Apple
  • Networking Hardware
Virus & Spyware
  • Vulnerabilities
  • IDS
  • Encryption
  • Anti-Virus
  • Operating Systems Security
  • Software Firewalls
  • WebApplications
  • Cell Phones
  • Operating Systems
  • Internet
  • Hardware Firewalls
Hardware
  • Handhelds / PDAs
  • Displays / Monitors
  • Components
  • Networking Hardware
  • Peripherals
  • Laptops/Notebooks
  • Storage
  • Servers
  • Desktops
  • New Users
  • Misc
  • Apple
Software
  • System Utilities
  • Industry Specific
  • Network Management
  • Photos / Graphics
  • Page Layout
  • VMWare
  • Misc
  • Web Development
  • OS
  • CYGWIN
  • Voice Recognition
  • Message Queue
  • Quality Assurance
  • Security
  • Firewalls
  • MultiMedia Applications
  • Development
  • Database
  • Office / Productivity
  • Business Management
  • OS/2 Apps
  • Server Software
  • Internet / Email
ITPro
  • OS
  • Storage
  • Encryption
  • Operating Systems Security
  • Apple Hardware
  • Laptops & Notebooks
  • Servers
  • Networking Hardware
  • Peripherals
  • Devices
  • Displays / Monitors
  • WebTrends / Stats
  • Search Engines
  • Firewalls
  • WebApplications
  • IDS
  • Vulnerabilities
  • Email Clients
  • File Sharing
  • Spy / Ad Blockers
  • Web Browsers
  • Web Servers
  • Networking
  • Anti-Virus
  • Chat / IM
  • Anti Spam
Developer
  • Web Servers
  • Web Browsers
  • Game Programming
  • Dev Tools
  • Industry Specific
  • Office / Productivity
  • Database
  • CYGWIN
  • Web Development
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Programming
  • Content Management
  • Application Servers
  • Protocols
Storage
  • Removable Backup Media
  • Storage Technology
  • Servers
  • Grid
  • Remote Access
  • Backup / Restore
  • Misc
  • Hard Drives
OS
  • Miscellaneous
  • Security
  • Development
  • Linux
  • VMWare
  • MainFrame OS
  • Unix
  • Apple
  • OS / 2
  • AS / 400
  • BeOS
  • Microsoft
  • VMS / OpenVMS
Database
  • Oracle
  • Miscellaneous
  • MySQL
  • Software
  • Sybase
  • Contact Management
  • PostgreSQL
  • Data Manipulation
  • Clarion
  • InterSystems Cache
  • Siebel
  • MUMPS
  • OLAP
  • SQLBase
  • SAS
  • GIS & GPS
  • 4GL
  • Berkeley DB
  • DB2
  • Informix
  • Interbase / Firebird
  • FoxPro
  • Reporting
  • LDAP
  • Filemaker Pro
  • MS SQL Server
  • dBase
  • MS Access
Security
  • Misc
  • Web Browsers
  • Software Firewalls
  • Operating Systems Security
  • File Sharing
  • Spy / Ad Blockers
  • Vulnerabilities
  • WebApplications
  • IDS
  • Anti-Virus
  • Encryption
  • Anti Spam
  • Email Clients
  • VPN
  • Chat / IM
Programming
  • Editors IDEs
  • Installation
  • Handhelds / PDAs
  • Multimedia Programming
  • System / Kernel
  • Algorithms
  • Game
  • Signal Processing
  • Project Management
  • Open Source
  • Database
  • Misc
  • Languages
  • Processor Platforms
  • Theory
Web Development
  • Scripting
  • Blogs
  • Web Servers
  • Software
  • Search Engines
  • Web Graphics
  • Images
  • Internet Marketing
  • Images and Photos
  • Components
  • Document Imaging
  • Web Languages/Standards
  • Illustration
  • WebApplications
  • Fonts
  • WebTrends / Stats
  • Authoring
  • Digital Camera Software
  • Miscellaneous
Networking
  • Protocols
  • Apple Networking
  • Network Management
  • Message Queue
  • Application Servers
  • Content Management
  • File Servers
  • Email Servers
  • Misc
  • Java Editors & IDEs
  • Wireless
  • Networking Hardware
  • Backup / Restore
  • System Utilities
  • ISPs & Hosting
  • Web Servers
  • Storage Technology
  • Removable Backup Media
  • Servers
  • Broadband
  • Grid
  • OS / 2
  • Novell Netware
  • Unix Networking
  • Windows Networking
  • Security
  • Telecommunications
  • Operating Systems
  • Linux Networking
Other
  • Community Advisor
  • Lounge
  • Community Support
  • New Net Users
  • Philosophy / Religion
  • Math / Science
  • Miscellaneous
  • URLs
  • Expert Lounge
  • Politics
  • Puzzles / Riddles
Community Support
  • Suggestions
  • New to EE
  • New Topics
  • Community Advisor
  • CleanUp
  • Announcements
  • General
  • Feedback
  • Input
  • EE Bugs
 
02.26.2008 at 06:32AM PST, ID: 20984557
As far as I know, you can't filter the built-in lookup window, but there's nothing stopping you from designing your own lookup window component.

You should start by taking a look at the source code for your Make object to see how Salesforce does it, then use that as a model for designing your own pop-up.  You will probably want to use a tool like Firebug for Firefox for inspecting the form's elements.

You can design the pop-up window any way you like, but it will need to target the following fields on the Make form so that Salesforce can update its database properly when the Make record is saved:

Where XXX is the name of the Account field:

XXX - Editable text field that holds the current name of the Account.
XXX_lkid - Hidden field that holds the id of the record selected in the pop-up (default = "000000000000000").
XXX_lkold - Hidden field that holds the name of the record selected in the pop-up (default = [Same as XXX]).
XXX_mod - Indicates whether the field has been modified (values = "0" or "1", default = "0").
XXX_lktp - Hidden field used by the pop-up to indicate which type of record to display in the pop-up.  This is not required unless you want to make your control more compatible with the built in control.  For example, for Account, this would be set to "001".
XXX_lspf - Hidden field.  I'm not sure what the purpose of this one is.  The default value is "0" and it never seems to change.

For example, on the Opportunity page, the Account back-end fields might look like this when the form is placed in edit mode.  There is an existing account selected with id of "0013000000C1jFt" and a name of "ACME Testing".  The lookup window will display account records ("001"), and the field has not been modified (opp4_mod = "0").

<input id="opp4_lkid" type="hidden" value="0013000000C1jFt" name="opp4_lkid"/>
<input id="opp4_lkold" type="hidden" value="ACME Testing" name="opp4_lkold"/>
<input id="opp4_lktp" type="hidden" value="001" name="opp4_lktp"/>
<input id="opp4_lspf" type="hidden" value="0" name="opp4_lspf"/>
<input id="opp4_mod" type="hidden" value="0" name="opp4_mod"/>

After selecting a new account, the fields look like this:

<input id="opp4_lkid" type="hidden" value="0013000000FVDoQ" name="opp4_lkid"/>
<input id="opp4_lkold" type="hidden" value="TEST - Company A" name="opp4_lkold"/>
<input id="opp4_lktp" type="hidden" value="001" name="opp4_lktp"/>
<input id="opp4_lspf" type="hidden" value="0" name="opp4_lspf"/>
<input id="opp4_mod" type="hidden" value="1" name="opp4_mod"/>

When the user saves the record, Salesforce knows what to do based on the contents of these fields.

So, at a minimum, any custom lookup control should set these fields when a record is selected in the pop-up:  XXX_lkid, XXX_lkold, and XXX_mod.

I realize that this is probably not exactly what you are looking for.  How are your JavaScript coding skills?
Accepted Solution
 
02.26.2008 at 12:48PM PST, ID: 20988624
woww! Seems like lot of work than I possibly thought.
My javascript coding skills are beginner level - but I am able to put 2 and 2 together and get things working. :-) Maybe not be smart but it works, and at the side I keep working to improve on those.

To answer your first question - The MAKE object is the custom object that I created with a new record type and the page layouts.

Hmm..You really got me thinking there, Exacytly where should start this from?


 
02.26.2008 at 01:19PM PST, ID: 20988961
First, you need to design a form that uses the Salesforce API to provide the lookup.  You'll need a text field for entering the query, a button for submitting the query, and a <div> that will hold the search results.

In your query button, you will use the api's "query" method to get a list of matching records.  Then, you will use these records to write the HTML that will be pushed into the <div>'s innerHTML property.  The html should include links that will close the pop-up and set the hidden fields in the main form.
 
02.26.2008 at 02:35PM PST, ID: 20989718
Thanks Bill. This sounds like a big project - and it is, my question is - if I start on this..would you be able to guide me through until I finish this. I understand EE does not allow to take this offline, so I post my queries here would you able to check in regurarly.

1.> To design a Form using the Salesforce API.
I am assuming this can be done using any HTML editor and then how will I determine which Salesforce API Name to be used.

I think I will stick to the first step for now and then move forward from here.

Thanks again
 
02.27.2008 at 06:13AM PST, ID: 20994052
Sure, I've never built a custom picker for SFDC, but it's just a matter of time before I need one.  We can just keep adding to this question as we work on the solution.  I develop software full-time, so I won't always be able to answer immediately, but I won't leave you hanging around forever.  If I can't respond right away, I'll let you know.

I think that getting the popup to read records and return values to the proper hidden fields will be the easy part.  Our first challenge is to get the button on the form to show our popup instead of the SFDC one.

One way we can do that is to remove the account reference field and add our own field along with a custom button.  I'm not crazy about this solution because it may affect reporting.

Another way is to include some script that will force the existing button to call our code.  I will start looking for the best way to do this in my spare time.  Do you have a deadline?
 
02.27.2008 at 01:19PM PST, ID: 20998498
Hey thanks for replying again.
No I do not have a deadline for this issue yet, they have thrown this on me to see how far can I get with this issue. Pretty much testing my abilities !

I will start on this project starting next week. Is it anyway I can contact you outside EE like I can be reached on suma_anand04 on t messenger...Not sure if the EE community will allow to do that...

Also - I have another Salesforce related question related to Validation rules. Here is the link - can you help me with this:-

http://www.experts-exchange.com/Database/Software/CRM/Salesforce.com/Q_23192139.html

This is another SF questions have not got a reply to it yet.
 
02.27.2008 at 01:53PM PST, ID: 20998839
Sorry, I don't run chat apps anymore -- too busy.  I'll see whenever you post to this thread, though.

About Validation rules -- sorry again.  I've never used them.
 
02.27.2008 at 01:54PM PST, ID: 20998849
hmm..ok thank you for your help.
 
02.27.2008 at 01:55PM PST, ID: 20998860
What about S-controls - I need advice on one S-control - do you think you can help me with that. I can post a different question for that one.
 
02.27.2008 at 02:18PM PST, ID: 20999070
Sure, I've written plenty of those.  I just leave the built-in stuff like Validation Rules and Email Templates to the admin types.
 
02.27.2008 at 02:26PM PST, ID: 20999132
Excellent!

I just posted the question under Salesforce zone.
http://www.experts-exchange.com/Database/Software/CRM/Salesforce.com/Q_23198726.html

Let me what you think , looking forward to hear from you.

Thanks
 
 
02.28.2008 at 12:53PM PST, ID: 21007919
Hey,

I was just staring to work on this when I realized that you can't run custom JavaScript when a page is in edit mode except via a custom button or link.

sControls don't even load in edit mode, so we can't use them.

The only option left is to add a custom button or link that would use our custom lookup rather than the default one.  The problem with this is that the users will have two buttons -- one right by the field (the standard one) and ours (probably at the top of the form).  How do we get the users to click the right button?  There's no way to enforce use of our control over the built-in one.

Salesforce has hinted for years that they will have form events that we can code like formPostOpen, formQuerySave, etc.  If they ever do implement these events, overriding the button should be easy.

I haven't completely given up yet, but I wanted to give you a heads up.
 
 
 
20080236-EE-VQP-29 / EE_QW_2_20070628