VishalMistry
25th February 2010, 07:22
Hi,
How can I find number of columns in particular table, also how can we loop through all the fields of that specific table to find name of each field.
Vishal
george7a
25th February 2010, 07:36
Hi,
You can do that by writing a select on ttadv422 (Table Fields).
use the "count" in the select statement to find out the number of fields (make sure you are in the right VRC).
- George
manish_patel
25th February 2010, 16:14
You can use rdi.table() and rdi.table.column() function to get total no of fields and field name of specific table.
VishalMistry
26th February 2010, 06:39
Thanks a lot manish.
Vishal
Hitesh Shah
7th March 2010, 08:55
rdi functions also consider combined field , indices and reference counters as fields . So in ur field counters u may need to adjust ur code to know what u want . But certainly rdi functions is nore reliable way to go where u'll get all related answers (and if u r to determine this within baan)