I don't know why you want to use combo box for this. If you use some tmp table , you can achieve this very easily.
I am writting a code, just a job which put the fields (with their properties) in a container. If you use the tmp table you can create a lookup method and set the performlookup to that table. Here is the code. I have taken the example of table SalesTable. You can send as parameters or use global variables to put this value on the fly.
static void Job2(Args _args)
{
SysDictTable dictTable = new SysDictTable(TableNum(SalesTable));
SysDictField sysDictField;
SysDictField field;
int arraySize;
int elements;
int i, j;
container pack;
if (dictTable)
{
for (i = dictTable.fieldCnt(); i > 0; i--)
{
sysDictField = new SysDictField(dictTable.id(), dictTable.fieldCnt2Id(i));
if (sysDictField)
{
arraySize = sysDictField.arraySize();
for(j = 1; j <= arraySize; j++)
{
field = new SysDictField(dictTable.id(), dictTable.fieldCnt2Id(i), j);
if ((field.baseType() != Types::CONTAINER) &&
(field.name() != fieldStr(Common, dataAreaId)) &&
(field.name() != fieldStr(Common, sequenceNum)) &&
(field.name() != fieldStr(Common, tableId)) &&
(field.baseType() != Types::VARSTRING))
{
elements++;
pack = conIns(pack, elements, [field.extendedFieldId(), field.arrayIndex(), field.label(), field.help(j), field.baseType(), (field.flags())]);
}
}
}
}
}
for(i = 1; i <= conlen(pack); i++)
{
print conpeek(conpeek(pack,i),3);
}
pause;
}
Just return container pack, in case you are performing lookup. This way you can see the fields of all the tables.
Regards
Amit Jain
Euroinfo Systems Pvt. Ltd,
India
smeagul2303 <[EMAIL PROTECTED]> wrote:
Hi,
I have a question regarding handling of ComboBox:
By default I (or the System) chooses a Combox for displaying Enums.
Another mechanism is to use lookup forms.
But how do I fill Combobox with a list of choices which are not enums
or informations comming from a table?
In my special case I have a grid with a field where I select a table.
In the next field I want the user to select a fieldname from this table.
Therefore I want a combobox with a list of valid fieldnames.
How do I fill comboBox with a fieldlist ?
Regards
Manfred Ursprung
Yahoo! Groups SponsorADVERTISEMENT
---------------------------------
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.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
[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.

