Sales Header: text + "No."

dyn45dyn45 Member Posts: 67
edited 2008-01-28 in Navision Attain
hi guys,

I am working something with Form 42 Sales Order and I have there one problem that I can not solve.

On this form on Sales Header we have field "External Document No.". I would like, when I type in that field for ex. 'T' and press Enter, to see there T+"No."

Example:
Sales Header No. is 12345. I type in the "External Document No." T, press Enter and automatically see there T12345.

I've tried few solutions but can't find the right one. There is only T in that field.

Any solutions from you?
thanx

Answers

  • kinekine Member Posts: 12,562
    Have you tried to add the code into OnValidate of the fields (on table or on the form if connected just to the one form)?

    Something like:
    OnValidate()
    
      If "External Document No." = 'T' then
        "External Document No." := "External Document No." + "No.";
    
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • dyn45dyn45 Member Posts: 67
    tried....
    something like that.... it is a simple mistake that i did not look at!
    i did that but in the other way, obviously the wrong one

    thank you kine
Sign In or Register to comment.