Options

Form 42 Sales line, how to refresh "Sell-to post Code"

giovannixyzgiovannixyz Member Posts: 13
edited 2010-07-28 in Navision Attain
Hi, I manage to copy data from one record to another by clicking it on the button.

So when I copy Post code, City doesn refresh, any idea, how to do this

Here is my code so far:

string_opomba := "Opomba na naročilo"; // original string
name := COPYSTR(string_opomba, 1, 29);
address:= COPYSTR(string_opomba, 30, 29);
post_code := COPYSTR(string_opomba, 67, 4);



"Ship-to Name" := name ;
"Ship-to Post Code" := post_code ;
"Ship-to Address" := address;

"Bill-to Name" := name ;
"Bill-to Post Code" := post_code ;
"Bill-to Address" := address;

"Sell-to Customer Name" := name ;
"Sell-to Address" := address;
"Sell-to Post Code" := post_code ;

CurrForm.UPDATE;
GlavaProd.MODIFY;

Comments

  • Options
    einsTeIn.NETeinsTeIn.NET Member Posts: 1,050
    You have to validate the post code. City fields are set by validation.
    "Money is likewise the greatest chance and the greatest scourge of mankind."
  • Options
    giovannixyzgiovannixyz Member Posts: 13
    Works, thanks.
    =D>
Sign In or Register to comment.