Below is a screen shot of a compound screen that populates the fields on the screen from data retrieved from a view.
This very simple page has been built using the .NET API.
It has used the method FindRecord().
Syntax is
FindRecord('Entity,vViewName',ArgString);
This is a good way of quickly displaying information from the view. But it can not be used for updating and inserting.
C# Code
public class MyCustomPage : Web { public override void BuildContents() { //Add your content here! GetTabs(); string CompanyID = GetContextInfo("company", "comp_companyid"); Record myRecord = FindRecord("company,vEntityCompany", "comp_companyid =" + CompanyID);//parameters as string values EntryGroup CompanyScreen = new EntryGroup("companyboxlong"); CompanyScreen.NewLine = true; //true|false CompanyScreen.Title = Metadata.GetTranslation("tabnames", "company"); EntryGroup PersonScreen = new EntryGroup("personboxshort"); PersonScreen.NewLine = true; //true|false PersonScreen.Title = Metadata.GetTranslation("tabnames", "contact"); AddContent(CompanyScreen.GetHtmlInViewMode(myRecord)); AddContent(" "); AddContent(PersonScreen.GetHtmlInViewMode(myRecord)); } }