Options

Create Sales Order Out side Navision

jimclarkusjimclarkus Member Posts: 25
edited 2010-03-25 in NAV Three Tier
Hello friends
i need some Help regarding Sales Order.
I have to develop E-Comm. portal and i want to Create New Sales Order Lines.
Now the problem is we are following the sample code written by FreddyK and Using ServiceHelper.
But i did not find any way how to get sales_order_lines with same web service SalesOrder.
Currently we create salesordersubform web service and accessing such web service separately but this is not proper way as i know(Reason i have all lines and methods available in SalesOrder web service and regarding methods to access lines why i should call again salesordersubform).
Any one can suggest me proper solution.

I got that i need to write some child class service helper and need to handle array type (Boolean, string, key, option , datetime, int , decimal) are handled in parent class.

Comments

  • Options
    anshpat2826anshpat2826 Member Posts: 44
    ok i got your problem you want to make inherited class which can handle sale_order_line..
    currently you can see
    private MethodInfo readMultipleMethod;
    private MethodInfo readMethod;
    private MethodInfo createMethod;
    private MethodInfo updateMethod;
    private MethodInfo deleteMethod;
    private MethodInfo isUpdatedMethod;

    // Type information for the returned object
    private System.Type objectType;

    // Type of the Fields enum from the service (Customer_Fields, Vendor_Fields, ...)
    private System.Type fieldsType;

    // Type information for the Filter Class (i.e. Customer_Filter, Vendor_Filter, ...)
    private System.Type filterType;

    // PropertyInfo for the Field Property in the Filter Class
    private PropertyInfo filterFieldProperty;

    // PropertyInfo for the Criteria Property in the Filter Class
    private PropertyInfo filterCriteriaProperty;



    this allow you to handle fields via service helper.
    If you want to access method like update_line, and other service for line via Only salesOrder web service you need to inherit servicehelper into another class add more functionality and use.
    I had already done this
    Himanshu Patel
    Navision Consultant(Technical and Functional)
    Phone No: 09979876474
    Email : anshpat2826@gmail.com
  • Options
    krikikriki Member, Moderator Posts: 9,096
    [Topic moved from 'NAV/Navision' forum to 'NAV 2009' forum]
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Sign In or Register to comment.