Forum Discussion

tejaswini's avatar
tejaswini
Creator I
8 years ago

Method

Item inf_sales_order = this.newItem("inf_sales_order", "get"); inf_sales_order.setProperty("inf_multiple_shipment", "1"); inf_sales_order.setProperty("inf_shipping_method", "UPS"); return inf_sales_order.apply(); This is simple server method attached with inf_sales_order itemType.Where I should attach this method and what event should I use for the same?

2 Replies

  • eli_donahue's avatar
    eli_donahue
    Community Manager
    Hi tejaswini, What's the use case you're implementing? For example, are you trying to set properties when a new sales order is created by a user? Or creating a new sales order when a server event occurs on another itemtype? Eli
    Eli Donahue Aras Labs Software Engineer
  • Hi I am trying to set properties when a new sales order is created by a user.Which event should I use for the same and also Can I attach this method to form? Tejaswini