Advertisement
Guest User

Untitled

a guest
Feb 9th, 2016
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. long classNameId = ClassNameLocalServiceUtil.getClassNameId(Sites.class.getName());
  2. ThemeDisplay themeDisplay =(ThemeDisplay)renderRequest.getAttribute(WebKeys.THEME_DISPLAY);
  3. String columnName = "Org. Tag Line";// key
  4. String tableName = "CUSTOM_FIELDS";
  5. long siteId = themeDisplay.getSiteGroupId();// userId=classPK
  6. ExpandoValue expandoObiect=ExpandoValueLocalServiceUtil.getValue(themeDisplay.getCompanyId(), classNameId, tableName, columnName, userId);
  7. ExpandoValue expandoObiect=ExpandoValueLocalServiceUtil.getValue(companyId, className, tableName, columnName, classPK)
  8. String value=expandoObiect.getData();
  9. renderRequest.setAttribute("tagLine", value);
  10. System.out.println("Field value==>"+value);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement