You need to sign in to do that
Don't have an account?
![Sravan Reddy 137 Sravan Reddy 137](https://dfc-org-production.my.site.com/img/userprofile/default_profile_45_v2.png)
table data is coming in a single line
Hi,
The below code is giving table data in worng format. when there are 5 rows, first 2 rows are coming correctly and then remaining 3 rows data in a single row. Other part of the code looks correct. Please help here
for(PG01_POSM_InitiativeProduct2__c posmData : newposmlist ){
messageBody +=posmData.PG01_POSM_Product2Id__r.PG01_POSM_Channel__c+'</td><td nowrap>'+posmData.PG01_POSM_Product2Id__r.PG01_POSM_Type__c+'</td><td nowrap>'+posmData.PG01_POSM_Product2Id__r.PG01_POSM_SubType__c+'</td><td nowrap>'+posmData.PG01_POSM_Product2Id__r.PG01_POSM_Size__c+'</td><td nowrap>'+posmData.PG01_POSM_Product2Id__r.PG01_POSM_Artwork__c+'</td></tr>';
}
Thanks,
Sravan
The below code is giving table data in worng format. when there are 5 rows, first 2 rows are coming correctly and then remaining 3 rows data in a single row. Other part of the code looks correct. Please help here
for(PG01_POSM_InitiativeProduct2__c posmData : newposmlist ){
messageBody +=posmData.PG01_POSM_Product2Id__r.PG01_POSM_Channel__c+'</td><td nowrap>'+posmData.PG01_POSM_Product2Id__r.PG01_POSM_Type__c+'</td><td nowrap>'+posmData.PG01_POSM_Product2Id__r.PG01_POSM_SubType__c+'</td><td nowrap>'+posmData.PG01_POSM_Product2Id__r.PG01_POSM_Size__c+'</td><td nowrap>'+posmData.PG01_POSM_Product2Id__r.PG01_POSM_Artwork__c+'</td></tr>';
}
Thanks,
Sravan
Can you please provide the ScreenShot of the Table which you getting so that will easy to understand what's the problem in it.
Meanwhile, I try to check your code.
Thanks And Regards,
Suraj Tripathi.