Hi Rick,
Set the 'AutoDecleration' property of the ComboBox to 'Yes'.
After that write this code to datasource field of field1 :
public boolean modified()
{
boolean ret;
;
if(MyTable.Field1 == '1')
{
// Clear combo box and add values
ComboBox.clear();
ComboBox.add('a');
ComboBox.add('b');
}
else
{
ComboBox.clear();
ComboBox.add('c');
ComboBox.add('d');
}
ret = super();
return ret;
}
Good luck ;)
Regards,
Anýl ÖZAY
Software Engineer / Axapta Specialist
MBSCP , MCP
Anadolu Biliþim Hizmetleri A.Þ.
Telefon
: +90 212 449 39 82
Faks
: +90 212 554 12 66
e-Posta
: [EMAIL PROTECTED]
www.bilisimanadolu.com
"rickhardy22" <[EMAIL PROTECTED]>
Sent by: [email protected]
07.10.2005 18:14
Please respond to
[email protected]
To
[email protected]
cc
Subject
[development-axapta] ComboBox in Grid - Changing drop down list
I have a grid on a form that contains a combo box. Depending on a
particular field in the record I want to change the values of the drop
down list. For example if field1=1 in the record I want to display
OPtion1, Option2, and Option3 in the drop down list. If field1=2 then
I want to display OPtion4, OPtion5, and Option6 in the drop down list
of the combo box. Does anybody know how to do this?
Thanks!
Rick
Yahoo! Groups Links
Bu e-posta ve muhtemel eklerinde verilen bilgiler kisiye ozel ve gizlidir.
Anadolu Bilisim Hizmetleri A.S. bu mesajin icerigi ve ekleri ile ilgili hicbir
hukuki sorumluluk kabul etmez. Yetkili alicilardan degilseniz, bu mesajin
herhangi bir sekilde ifsa edilmesi, kullanilmasi, kopyalanmasi, yayilmasi veya
mesajda yer alan hususlarla ilgili olarak herhangi bir islem yapilmasi
kesinlikle yasaktir. Bu durumda hemen mesajýn göndericisini bilgilendiriniz ve
mesajý sisteminizden siliniz. Elektronik mesajlar üzerinde yapilmis herhangi
bir degisiklik veya sonuclarý üzerinde Anadolu Bilisim Hizmetleri A.S.nin
sorumlulugu yoktur. Ayrica, e-posta mesajlarindaki hata ve/veya eksiklikten,
virüs icermesinden ve bilgisayar sisteminize verebilecegi herhangi bir zarardan
Sirket olarak sorumluluk kabul etmeyecegimizi de bildiririz.
This e-mail and any information included within any attached document are
private and confidential and intended solely for the addressee. Anadolu Biliþim
Hizmetleri A.Þ. does not accept any legal responsibility for the contents of
this message and any attached documents. If you are not the intended addressee,
it is forbidden to disclose, use, copy, or forward any information within the
message or engage in any activity regarding the contents of this message. In
such case please notify the sender and delete the message from your system
immediately. Anadolu Bilisim Hizmetleri A.S. also denounces any legal
responsibility for any amendments made on the electronic message and the
outcome of these amendments, as well as any error and/or defect, virus content
and any damage that may be given to your system.
[Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~-->
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/saFolB/TM
--------------------------------------------------------------------~->
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:
http://docs.yahoo.com/info/terms/