Wednesday, July 14, 2010

Make Page View Only

GetPage(Page.MY_PAGE1).DisplayOnly = True;

Verify / match role or permission list.

IsUserInRole(rolename1 [, rolename2]. . .)
IsUserInPermissionList(PermissionList1)
It could be used with NOT function
if not(IsUserInRole("ADMIN")then
Hide(Field);
end-if

PeopleCode (String to number)

Thiscode help to cmpare string to number
Value(LTrim(&SAL_RANGE_MAX_RATE))> 100