New Order, template not attached

Discussions related to order tracking development with the ProForm module.

Moderator: Phil Barton

Post Reply
danvanf
Posts: 54
Joined: Fri Nov 07, 2008 10:45 am
Location: Dayton, Ohio
Contact:

New Order, template not attached

Post by danvanf »

I am creating a new order via the API, when I do, the Default template for the Profile, that the authenticated user is a member of, doesn't apply to the order.

If I create the order via the standard user interface, logged in as this same user, the template is attached.

The correct unique Order Numbering Manager is being used in both cases, so I can see that it's being created under the correct profile.

I tried to setup an OrderSpec, based on OrderCreationSpec, and the templates item is readonly

So in VB.Net, how do I get the Default Template, called DVF-Estimator to attach when I do a
Dim ot As OrderTracking = sps.GetService(Of OrderTracking)()
Dim order as IOrder = ot.CreateOrder()

Thanks,
Dan Van Fleet

Of course if you need more information to figure out what I'm actually talking about, let me know what you need.
I blog at http://DanVanFleet.com on SoftPro and other things
danvanf
Posts: 54
Joined: Fri Nov 07, 2008 10:45 am
Location: Dayton, Ohio
Contact:

Re: New Order, template not attached

Post by danvanf »

Oh gosh nevermind....

I just needed to hit period, then add, to get the right level.

spec.templates.add("DVF-Estimator") works fine.
I blog at http://DanVanFleet.com on SoftPro and other things
Post Reply