First what i need is to insert new record from customer card based on specified criteria
as globale dimension code 1(branch name) because my database have more branches so that
i write this code on insert record trigger of form customer card
cust1.SETRANGE("Global Dimension 1 Code",UserSetup."Global Dimension 1 Code");
cust1.SETRANGE("No.",'Jo-TC-000001','Jo-TC-999999');last number current is Jo-TC-002700
filterlocation:=cust1.GETFILTERS;
IF cust1.FIND('+') THEN
"Global Dimension 1 Code":=filterlocation ;
cust1.INSERT(TRUE);
how i solve this problem,
but it give me this error "overflow under conversion text to text
value no jo-tc-000001...jo-tc-999999 global dimension code 1 is jeddah
Now how i allow insert when i make filterer to data
What i need from this code above how to prevent filter to location when i make insert to new customer can any one correct the code to me .
my serial no incremental by 1 and in no series from 'Jo-TC-000001','Jo-TC-999999' and current customer is Jo-TC-002700 but when i add customer it put in table but hide from form
please please help me
thanks