How to concatinate Customer And vendor data

DynamicUserDynamicUser Member Posts: 177
Hi friends
Can anybody tell me how to concatinate Customer and vendor table into one form.

Comments

  • krikikriki Member, Moderator Posts: 9,118
    You can try with a subform, that is the easiest way.

    Another is that you put the fields of the vendor in the customer card, but you have to maintain them yourself by writing code in some trigger : "Form - OnAfterGetCurrRecord()", "Form - OnInsertRecord", "Form - OnModifyRecord()", "Form - OnDeleteRecord()".
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • DynamicUserDynamicUser Member Posts: 177
    Requirement is for the list form.I hv to do it right now.How can i do?
  • krikikriki Member, Moderator Posts: 9,118
    This is for the customer-list form and putting some vendor-fields on it.
    you can also use the vendor-list form and put some customer fields on it.
    In this case, everywhere I use Vendor, you need to use Customer and vice versa.
    OnAfterGetRecord-trigger:
    recVendor.GET('some vendor');
    

    The fields you add on the list, you need to write recVendor."Some Field".

    Remark:you cannot filter on those fields.
    In you need to filter on the fields, you need to put them in the customer table as flowfield that points the the vendor-table.
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Sign In or Register to comment.