You need to instantiate the map variable:
map = new Map(Types::Integer, Types::boolean);
and to declare it in ClassDeclaration of the form.
edit NoYes markTrans(boolean set,
CommissionTrans
_commissionTrans,
NoYes _markTrans)
{
if (set)
{
map.insert(_commissionTrans.RecId, _markTrans);
element.lock();
if (_markTrans == NoYes::Yes)
{
BalanceAmount += _CommissionTrans.AmountMST;
}
else
{
BalanceAmount -= _CommissionTrans.AmountMST;
}
element.unLock();
this.refresh();
}
if (map.exists(_commissionTrans.RecId))
return map.lookUp(_commisstionTrans.RecId).value();
else
return NoYes::No;
}
The method is not compiled so there might be some typos etc.. :o)
//Lars
-----Original Message-----
From: akash malohatra [mailto:[EMAIL PROTECTED]
Sent: 30. juli 2004 01:34
To: [EMAIL PROTECTED]
Subject: [development-axapta] Edit method problem in grid...
Hi All,
I have problem in implimenting this Edit method. When
i am trying to click the check box. It never checks ,
still its editable...whats wrong in code....
edit NoYes markTrans(boolean set,
CommissionTrans
_commissionTrans,
NoYes _markTrans)
{
if (set)
{
element.lock();
if (_markTrans == NoYes::Yes)
{
BalanceAmount += _CommissionTrans.AmountMST;
}
else
{
BalanceAmount -= _CommissionTrans.AmountMST;
}
element.unLock();
this.refresh();
}
return _MarkTrans;
}
This method is in the Datasource of the form . and
this is a checkbox in my grid.
Thanks
Akash
___________________________________________________________ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com <http://uk.messenger.yahoo.com>
Yahoo! Groups Sponsor
ADVERTISEMENT
<http://us.ard.yahoo.com/SIG=129a7bois/M=295196.4901138.6071305.3001176/D=groups/S=1705006764:HM/EXP=1091253244/A=2128215/R=0/SIG=10se96mf6/*http://companion.yahoo.com> click here
<http://us.adserver.yahoo.com/l?M=295196.4901138.6071305.3001176/D=groups/S=:HM/A=2128215/rand=809484267>
_____
Yahoo! Groups Links
* To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/ <http://groups.yahoo.com/group/development-axapta/>
* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
* Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service <http://docs.yahoo.com/info/terms/> .
[Non-text portions of this message have been removed]
| Yahoo! Groups Sponsor | |
|
|
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

