Hi,

try the following code

Grid.dataSource(Table4);
Field1.datasource(grid.dataSource());
Field1.dataField(fieldnum(Table4,Field1));


regs,
Hema. S



                                                                                                                            
                    gopala krishna                                                                                          
                    <[EMAIL PROTECTED]       To:     [email protected]                         
                    >                              cc:     [email protected]                               
                    Sent by:                       Subject:     [development-axapta] set the datasource dynamically         
                    [EMAIL PROTECTED]                                                                                
                    groups.com                                                                                              
                                                                                                                            
                                                                                                                            
                    04/12/2006 11:26 AM                                                                                     
                    Please respond to                                                                                       
                    development-axapta                                                                                      
                                                                                                                            
                                                                                                                            




hi,
I am trying to set the datasource dynamically.

in run method of the form i wrote the code..

      Grid.dataSource(Table4);
    Field1.dataSource(Table4);
    Field1.dataField(Fieldname2id(Tablename2id("Table4"),"Field1"));
    Field2.dataSource(Table4);
    Field2.dataField(Fieldname2id(Tablename2id("Table4"),"Field2"));
  but the form is not showing the data..
can anybody tell what is the  problem?

thanks,
Gopal


---------------------------------
Jiyo cricket on Yahoo! India cricket
Yahoo! Messenger Mobile Stay in touch with your buddies all the time.

[Non-text portions of this message have been removed]






Yahoo! Groups Links















YAHOO! GROUPS LINKS




Reply via email to