Creating Screen dynamically using Sage CRM EntryGroup object

By | July 28, 2014

Recently working on DotNet API of Sage CRM, we came across a requirement wherein we wanted to display the fields of Sage 100 in Sage CRM screen on a real time basis. The challenge here we found was that these fields were not present in the CRM database and we didn’t want to add additional screen and fields in database as we wanted to display it only for view purpose.
As we wanted to display the page in view mode just like if it has been created from Sage CRM standard methods, we have used EntryGroup object. Please refer the below code snippet for the same.
EntryGroup objScreen = new EntryGroup(“”);
Here, we are creating an object of EntryGroup for the screen which is not present in Sage CRM. Using the same object of Entry Group we can add any number of fields as shown below. This fields get created dynamically and as I said, it’s not stored in database as well.
Entry objField= new Entry (“Udf_FieldName”);
objField.Caption=”Field Caption”;
objField.ReadOnly = true;
Once done with defining all the fields in the EntryGroup object, you can display the screen using the below code snippet
ex.Title = “Demo”;
ex.GetHtmlInEditMode();
AddContent(ex.ToHtml().ToString());
Please go through below screenshot which is created by us referring above code snippet.
Image07
Also Read :
1. Checklist for installing GUMU for Sage CRM – Sage 100
2. GUMU for Sage CRM – Sage ERP X3 Integration
3. Import Sage 100 Sales order data into Sage CRM
4. GUMU Sage 100 Tips – Items are not getting hyperlinked in Sage100 Item Lookup
5. GUMU™ Sage 100 Tips – Creating additional address from Sage CRM to Sage 100