NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: ccordes on August 29, 2010, 01:53:34 PM
-
I have a simple invoice with an item code lookup to an inventory table. I use single longs as primary autoinc keys for everything.
When I put the field on the form with the lookup button, and check the display description instead of value, the value never gets saved in the invoice record.
I even added it to the More Assignments list, but no joy.
I don't like to have the id on the form because it looks like the quantity. and people don't want to order 237 of anything.
I have created a css class called NoShow and have set that as the input class.
a little odd having the lookup button followed by the value, but at least the number doesn't show.
-
Hi Chris,
you might want to check out this thread.
cheers
Bruce
-
I must be worse off than I thought - um... what thread?
-
Hi Chris,
I'm the bright one in my family... really....
http://www.nettalkcentral.com/index.php?option=com_smf&Itemid=36&topic=1375.0 (http://www.nettalkcentral.com/index.php?option=com_smf&Itemid=36&topic=1375.0)
cheers
Bruce
-
I think I did that, but I will open it today and study it.
Thanx
-
For those that are watching this thread - it was the key on the description field!
In order for the description to be used in place of the id, it needs to be a key not sure if it needs to be unique
-
Hi Chris,
No it doesn't have to be unique. However...
One of the features of lookup fields is that you can type in the _description_ and it'll use the description key to lookup the code for you. So although the description key doesn't need to be unique, in most cases you probably want your descriptions to be unique anyway.
Cheers
Bruce
-
Here is a follow up on the display description.
Everything worked out well once the key was in place, but now that it is in production there is a problem - we need allow for multiple records to have the same description. The product is the same but comes from different manufacturers or distributors. The data entry folks see product X but do not get to see where it comes from (this addresses an industry issue involving kick-backs etc) so I can't fiddle the description with a supplier number.
Here is what happens - supplier 1 is out of stock, the data entry person picks the in stock item from supplier 2 and completes the order - when the order gets processed though, it has the item id of the record for supplier 1 :( guess where the order goes? or should I say the back order... hmmm
The fix -
Unchecked the display description,
spanned the prompt,entry and comment
set the comment to choose(ord:invid=0,'Select product from list',p_web.gsv('inv:description'))
set comment comment css to 'Bold'