Thanks Akash,
Here is the code is used;
public boolean modified()
{
ProjTable _projTable;
boolean ret;
;
ret = super();
if(svcCallTable.CallStatusId ==
'Complete' || svccalltable.CallStatusId == 'Cancelled')
{
ttsbegin;
select forupdate _projTable
where _projTable.ProjId ==
svcCallTable.ProjId;
_projTable.Status =
ProjStatus::Completed;
_projTable.update();
ttscommit;
}
return ret;
}
Andrew Vranjes
IT Support
Officer
Metric
Australia Pty Ltd
From: akash malohatra
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, 26 October 2004
1:53 PM
To:
[EMAIL PROTECTED]
Subject: Re:
[Axapta-Knowledge-Village] help modifying X++
Hi,
I think you need to write this --->
if(svcCallTable.CallStatusId ==
ProjStatus::Completed
|| svcCallTable.CallStatusId ==
ProjStatus::cancelled
)
i think u need to use OR instead of AND ....... if
u
want to use AND , then use "&&"
hope this helps...
regards
Akash
--- Andrew Vranjes <[EMAIL PROTECTED]>
wrote:
> Hello,
>
> I want to modify this x++ in our system
[below]. I
> want to change this line
> from;
>
>
if(svcCallTable.CallStatusId == 'Completed')
>
>
> to include 'completed' and 'cancelled' values
>
> do I use the && operator?
>
> Can someone change this line for me please?
>
> Thanks
>
>
> public boolean modified()
> {
>
ProjTable _projTable;
> boolean ret;
> ;
>
> ret = super();
>
> if(svcCallTable.CallStatusId
== 'Completed')
> <-- this
> line !
> {
>
ttsbegin;
>
select forupdate _projTable
>
where _projTable.ProjId ==
> svcCallTable.ProjId;
>
>
_projTable.Status =
> ProjStatus::Completed;
>
_projTable.update();
>
ttscommit;
> }
>
> return ret;
>
>
> }
>
>
>
>
> Andrew Vranjes
> IT Support Officer
> Metric Australia Pty Ltd
>
>
___________________________________________________________ALL-NEW
Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com
Sharing the
knowledge on Axapta.
Sharing the knowledge on Axapta.
Yahoo! Groups Sponsor |
ADVERTISEMENT
| |
|
Yahoo! Groups Links