I had taken Opportunity Form(s&m->relationships->opportunites->all opportunites) i want to make some mandatory fields in Contact information tab there which is an another form
can i call that contact form datasource in opportunity form closing event handler datasource like mentioned below: pls suggest
[FormEventHandler(formStr(smmOpportunityTable), FormEventType::Closing)]
public static void smmOpportunityTable_OnClosing(xFormRun sender, FormEventArgs e)
{
FormRun element = sender;
FormRun formrun;
LogisticsElectronicAddress logisticsElectronicAddress;
FormDataSource smmOpportunityTable_ds = sender.dataSource(formDataSourceStr(smmOpportunityTable, smmOpportunityTable));
FormDataSource logisticsElectronicsAddress_ds = sender.dataSource(formDataSourceStr(LogisticsContactinfoGrid, LogisticsElectronicAddress));
smmOpportunityTable smmOpportunityTable = smmOpportunityTable_ds.cursor();