Thursday, March 5, 2009

Tired of writing the field name in PeopleCode

Tired of writing something like:

If AveryLongRecordName.AveryLongFieldName.Value = 0 Then
....
End-if; ?????

try this trick:

If ^.value = 0 then
.....
End-if;

The ^ gets the recordname.fieldname and inserts its automatically on save

saves you time and helps you avoid mistakes

Avoid double qoutation common mistake

When Developing an Application Engine and deploying a Do Select Statement for example, make sure you don't say

Select column1 from Record1 where column2 = "value"

this is incorrect

The right way is

Select column1 from Record1 where column2 = 'value'