RE: lern crmscripts
CTRL + Space should work, but it might vary depending on your OS and browser I guess (Mac = Command + Space).
To get the data from your current entity, you'll need to search in the database, the fastest way would be through SearchEngine:
String contactName;
SearchEngine se;
se.bypassNetServer(true);
se.addField("contact.name");
se.addCriteria("contact.contact_id", "Equals", ed.getInputValue("ContactEntity.id"));
if(se.select() > 0)
contactName = se.getField(0);
Then you are able to fetch data fields before they're being saved to the database. If you want the address fields, you should probably use the NS class, here's a snippet:
NSContactAgent ContactAgent;
NSContactEntity ContactEntity;
NSAddress CompanyAddress;
ContactEntity = ContactAgent.GetContactEntity(companyId);
CompanyAddress = ContactAgent.GetAddress(companyId);
Map mAddress;
for(Integer i = 0; i < CompanyAddressField.length(); i++)
{
for (Integer j = 0; j < CompanyAddressField[i].length(); j++)
{
String addressType = CompanyAddressField[i][j].GetAddressType();
String addressName = CompanyAddressField[i][j].GetName();
// Do Stuff
}
}