Hi There,
I am wondering if it's possible to return/get record from drop down lookup, on a table that has multiple keys.
For example my "post code" table primary key is Code, Street Name and City.
On the customer page I have drop down on "post code" field but this will only return the code not the street or city.
What I am trying to do here is to populate the street name and city when user enter/select the post code on the text box, but to do this I need to know which field the user selected otherwise I will not be able to fetch the record.
Thank you
Carlos Yuwono
0
Comments
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Other field.... on the Customer/Contact card. The idea is to speed up the data entry process. The user will select or enter the post code and the system will automatically fill in the rest of the address fields (address line one, two, city, and province) and the only field left for the user to type in is the house number or apt unit.
Post Code : user select customer's post code from the drop down
Address 1 : Auto fill based on the selected post code
Address 2 : Auto fill based on the selected post code
City : Auto fill based on the selected post code
Province : Auto fill based on the selected post code
I thought this will be easy to solve ](*,)
where do you want to get Address fields?
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Yes from post code table.
I have the following fields on my post code table
Field No. Field Name
1 Code
2 City
3 Search City
10010 County
50000 Province Name
50001 Area Name
50002 Street Name
50003 Street Type Code
50004 Street Dir Code
50005 Street Seq Code
50006 Street From No
50007 Street From Suffix
50008 Street To No
50009 Street To Suffix
We bought the post code database and we loaded up in navision.
In table 225 - Post Code - Function ValidatePostCode
Write below code under
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Let's say you are entering your customer information. Instead of entering the street name, city and Province, you would enter the postal code first.
When you enter the post code the program lookup on the post code table and return the street name, city and province and it will automatically place those information on the appropriate text box on the customer card. What's left now is to enter the street number and unit number.
The reason I am doing this is to speed-up the data entry process.
When the postal code is unique, there is problem returning those information.
I can simply use these code on the "on validate" - post code field on the customer page
rec = Customer
The problem is when there are 2 or more streets shared the same post code, in this case I wont be able to use findfirst to fetch the record. The alternative way to do it is to show the lookup pop up windows but I am trying to avoid pop up window... I really like how the dropdown works, it's clean and sleek.
Is there away to filter the dropdown in code ? I've been searching over the internet but it seems that there is no way to filter the dropdown based on the variable value.
http://www.kauffmann.nl/blog/index.php/2011/10/17/controlling-the-drop-down-list-in-the-roletailored-client/