Exceptions and Requirement

Discussions related to custom development with Select.
neetab
Posts: 22
Joined: Wed Apr 17, 2013 3:20 pm

Re: Exceptions and Requirement

Post by neetab »

Looks like you are adding Exceptions, It should be .Add

try this and see if you still get the error.
spsCommitment.Exceptions.Add(ospsReqEx)
sanjay.mittal
Posts: 94
Joined: Mon Dec 28, 2009 3:43 pm

Re: Exceptions and Requirement

Post by sanjay.mittal »

Can you let me know, how to fix this?
sanjay.mittal
Posts: 94
Joined: Mon Dec 28, 2009 3:43 pm

Re: Exceptions and Requirement

Post by sanjay.mittal »

This is what I have.

ospsReqEx = DirectCast(spsOrder, IOrder).CreateNew("Exception")
'ospsReqEx.Text = strDesc
'ospsReqEx.Code = GetNode(xmlNode, "Code", "")

spsCommitment.Exceptions.add(ospsReqEx)
neetab
Posts: 22
Joined: Wed Apr 17, 2013 3:20 pm

Re: Exceptions and Requirement

Post by neetab »

ok, try the code below.

ospsReqEx = DirectCast(spsOrder, IOrder).CreateNew("Exception")
'ospsReqEx.Text = strDesc
'ospsReqEx.Code = GetNode(xmlNode, "Code", "")

spsCommitment.Exceptions.Add(ospsReqEx)
sanjay.mittal
Posts: 94
Joined: Mon Dec 28, 2009 3:43 pm

Re: Exceptions and Requirement

Post by sanjay.mittal »

Sorry, it is the same thing.
Post Reply