Jump to content


Photo

Modifying a related view of existing installation

related view customization

  • Please log in to reply
2 replies to this topic

#1 sanbrar

sanbrar

    Advanced Member

  • Members
  • PipPipPip
  • 72 posts

Posted 20 April 2012 - 06:39 PM

Modification to RelationsView has not impact, even after ?&clearCache=1.

Relations View is as follow (changes made are also shown)

   class C_sizingcalcDetailsAndRelationsView extends DetailsAndRelationsView
	{
		public function isUniqueToAPage()
		{
			return true;
		}
		public static function getDefaultMetadata()
		{
			$metadata = array(
				'global' => array(
					'leftTopView' => array(
						'viewClassName' => 'C_sizingcalcEditAndDetailsView',
					),
					'leftBottomView' => array(
						'showAsTabbed' => false,
						'columns' => array(
							array(
								'rows' => array(
									//New edition -- C_currsysheatcoolsForC_sizingcalcRelatedList
									array(
										'type' => 'C_currsysheatcoolsForC_sizingcalcRelatedList',
									),
									array(
										'type' => 'C_ductsizesForC_sizingcalcRelatedList',
									),
									array(
										'type' => 'C_floorsqfsForC_sizingcalcRelatedList',
									),
									array(
										'type' => 'C_sizingsummarycalcsForC_sizingcalcRelatedList',
									),
								)
							)
						)
					),
					'rightTopView' => array(
// - Removed to see if changes take affect.
//						'columns' => array(
//							array(
//								'rows' => array(
//									array(
//										'type' => 'OpenTasksForAccountRelatedList',
//									)
//								)
//							)
//						)
					)
				)
			);
			return $metadata;
		}
	}

The view in web hasn't changes after making the above modifications.

Thanks

#2 sanbrar

sanbrar

    Advanced Member

  • Members
  • PipPipPip
  • 72 posts

Posted 21 April 2012 - 11:53 PM

I have figured out how to add custom modules and fields without re install but for some reason I can't figure out why I have to re install when simple relate view is changed.

#3 Jason

Jason

    Administrator

  • Administrators
  • 864 posts
  • LocationChicago

Posted 23 April 2012 - 10:49 AM

What you need to do to avoid an install, is clear the portlet table and then clear cache. Then after that you can go to the page via the UI. You technically don't need to clear the entire portlet table, but only the rows that apply to this particular view. If you have more questions please let us know.

Jason Green
Zurmo Team
Need support? Upgrade now






Also tagged with one or more of these keywords: related view, customization

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users