hello,
i am selecting a Non stock item from a particular vendor(same non stock item is from more than one vendors) through a lookup in sales line form(Customized funtionality).when i press 'ok',i am not able to get the exact vendor item.It is not giving the exact record what i selected.The Vendor code is not refreshed,it is same even when i select some other vendor item.
Example:
Vendor Item No Vendor Code Unit Price
13838 XXXX 5.05
13838 YYYY 6.00
when i select a vendor item from XXXX,i am getting the price and vendor code of YYYY.
please help me to solve this problem ](*,)
thanks,
regards,
venkatesh
0
Comments
actually I don't know exactly what you want to do, but perhaps this will help you:
If i write the coding what you have given above,the existing functionality of sales line like GL Account,Item,Resource,Charge(Item) will be affected.
thanks in advance
There are two possibilities to integrate a Lookup-Form:
1. to use the TableRelation-Property in a field
2. to use the OnLookup CAL-Trigger of a field
And here seems to be the problem. One the one hand you have the TableRelation Property of the "No." Field in table 37. On the other hand you have integrate a CAL-code in the form. That's not a good solution...
I recommend to use the TableRelation-Property. It's quick and easy.
More complex functionality must be integrated in the OnLookup-Trigger.
I hope I could help you.