Sales Header(Option field)

subhadynamicssubhadynamics Member Posts: 109
edited 2009-03-05 in Navision e-Commerce
Hi All,

I have a Customized field Sales Type in sales header. The field is option and the values are Local, Export. Also the same field is the Sales Line ,but not a part of a primary key.

I need to insert the field (sales Type ) from sales header to the sales Line..The field is not part of a key so i cannot set the properties of subform.

So i caan insert the Sales type field in the Sales Line using the Code. where i need to write the code??in which trigger??? i have tried out ..but not get the result..

Please help me out!!!!!

Thanks in advance
subha

Comments

  • satraja2004satraja2004 Member Posts: 45
    Hi,

    Try coding on FORM-OnActivateForm trigger...
    Thanks & Regards

    Raja.B
  • SavatageSavatage Member Posts: 7,142
    personally i would try to insert the code on the sales line table.

    oninsert or onvalidate of the "no" field using a simple get.
    somthing like

    salesheader.get("document type","document no");
    salesline."sales type" := salesheader."sales type";

    coding on the form I would try to avoid if at all possible.
  • subhadynamicssubhadynamics Member Posts: 109
    Thanks for the immediate reply and it is working fine.
Sign In or Register to comment.