The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
|
|
Custom Lookup
Posted: 10 Apr 07 12:38 PM
|
In v7.0 I'm modifying the FunctionLookupClick(Sender) sub routine on the Contact Detail view and I'm trying to add a link to a custom lookup that I have created. I'm using "objBasic.DoInvoke "Function", "Lookup:" & strLookup " to access the look up but it keeps telling me "Unknown Function: -1". How do I access a custom Lookup?
Thank you! |
|
|
|
Re: Custom Lookup
Posted: 10 Apr 07 5:35 PM
|
| Nevermind. I had to create the lookup properly at the contact level and then I just called it like this "Contact:ING Contact Agents.Agent Number" |
|
|
|
Re: Custom Lookup
Posted: 11 Apr 07 5:18 PM
|
fiogf49gjkf0d I know you figured it out, but for a good example look at the Account Detail view. I believe it has custom function returns using LookupClick and FunctionLookupClick. They seem similar, but FunctionLookupClick passes off the non-standard lookups to the LookupClick routine. I even modified the Contact Detail screen to mimic the behavior since it seems better than lumping them all together.
Also, I believe you only need Contact:Blah, not the .Whatever. Or at least that's how I've done it. I have a SubType lookup I created and I call it through Contact:Subtype, not Contact:Subtype.Blah. That could be a v7 thing though but I'd hope not as it means more code updates. |
|
|
|
Re: Custom Lookup
Posted: 12 Apr 07 10:56 AM
|
fiogf49gjkf0d Jeremy, The table name I am linking to is named "ING_Contact_Agents" but the problem was that the "_" isn't used in the lookup display name for some reason.
Thanks for your help! |
|
|
|