when I create ledger I select a salesId field and when I Posted the ledger I want to see same salesId on custtrans too,It shoulld init the sales Id to custtrans.
Should I wrote a method on custtrans’s table like initfromCustrans etc…
CustTrans.SalesId==LedgerJoournalTrans.salesId …likle this
or should I create a new relation on custtable and ledgerjournalTrans by salesId.
hi kranthi,I got ewrror message after this posting the ledger
Error executing code: The field with ID ‘0’ does not exist in table ‘CustTrans’.
I wrote this code on initCustVedMethod of class.
//-------
if(CustVendTrans.TableId==Tablenum(CustTrans))
{
CustVendTrans.SalesId = LEdgerJournaltrans.SalesId;
hi kranthi,i figured out the problem it was about custventrans map and I posted the journal but when I check the custtrans I could not see the salesId on custTrans
Data is inserted into the table and Form shows the data from the relevant table. If you have added the field correctly and there is data in the table field, it should be showing in the form.