It looks like you're new here. Sign in or register to get started.
PAGE.run(page::"Customer Card", Customer);
if PAGE.runmodal(page::"Customer Card", Customer) = action::lookupok then validate("bill-to customer no.", Customer."No.");
Answers
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Customer.get("Bill-To Customer No.");
PAGE.run(page::"Customer Card", Customer);
it is showing this error
yes, because it tries to get customer by value from bill-to customer no. field. If you want to create new customer (but why?) try:
Customer.init;
Customer."No." := '';
Customer.insert(true);
PAGE.run(page::"Customer Card", Customer);
Instead of
try
just use COMMIT; after INSERT. But that's a dirty trick.