Hide Birthday field using .merge file gives error

Hi, in the person screen I want to remove the Birthday field.

I'm trying to create a .merge file that uses mergeaction="remove", but for some reason it crashes.

<pages>
	<page id="PersonPage">
		<panels>
			<panel id="Person">
				<cards>
					<card id="PersonCard">
						<views>
							<view id="PersonMainView">
								<controlgroups>
									<controlgroup id="PersonMainViewRightGroup">
										<controls>
											<control id="lblBirthdate" mergeaction="remove"></control>
											<control id="Birthdate" mergeaction="remove"></control>
										</controls>
									</controlgroup>
								</controlgroups>
							</view>
						</views>
					</card>
				</cards>
			</panel>
		</panels>
	</page>
</pages>

When I use that mergefile it crashes Web, saying:

"The id: PersonMainViewRightGroup is present more than once in the configuration."

Why isn't this working?

RE: Hide Birthday field using .merge file gives error

HI Frode,

Without debugging it, I suspect this happens because you have two merge actions defined in a single merge file. 

Does it still fail if you try to only remove one?

Av: Tony Yates 16. mar 2018

RE: Hide Birthday field using .merge file gives error

Hi Tony, it fails even when I just have one mergeaction, like this:

<pages>
	<page id="PersonPage">
		<panels>
			<panel id="Person">
				<cards>
					<card id="PersonCard">
						<views>
							<view id="PersonMainView">
								<controlgroups>
									<controlgroup id="PersonMainViewRightGroup">
										<controls>
											<control id="Birthdate" mergeaction="remove"></control>
										</controls>
									</controlgroup>
								</controlgroups>
							</view>
						</views>
					</card>
				</cards>
			</panel>
		</panels>
	</page>
</pages>
Av: Frode Lillerud 16. mar 2018

RE: Hide Birthday field using .merge file gives error

Hi, I tried your merge file and it worked. So which version are you running?

J

Av: Jørund Myhre 20. mar 2018

RE: Hide Birthday field using .merge file gives error

Hi, I'm on 8.2 R4, with "Personize" enabled.

I've made this folder ("C:\SuperOffice8\CustomPathBirthDay\WebClient\Web"), which only contains my HidePersonBirthdayField.merge file.

In web.config I've set

<ClientConfigurationProvider>
  <add key="FilePath" value="C:\Program Files\SuperOffice\SuperOffice SM Web\SuperOffice\App_Data" />
  <add key="CustomPathBirthDay" value="C:\SuperOffice8\CustomPathBirthDay" />
  <add key="CacheConfigurations" value="false" />
</ClientConfigurationProvider>

There are no other plugins defined.

Av: Frode Lillerud 20. mar 2018

RE: Hide Birthday field using .merge file gives error

Hi Frode,

I think your a bit early here. Personize is stiil a bit from Feature Complete. I don't think you can expect too much yet, and we are unable to provide support on this topic yet.

That said: Please continue to tell us about your findings:-)

Av: Erik Eide 20. mar 2018

RE: Hide Birthday field using .merge file gives error

Ok, that explains it. The new person panel does have a different 'path' to the ControlGroup, also birthday is no longer present.

You need to make sure that the id's on the elements match the original config file.

 

J

Av: Jørund Myhre 20. mar 2018

RE: Hide Birthday field using .merge file gives error

Hi guys, yes, I realize that the feature isn't released yet, so no worries. I'm doing this in my local environment. Researching this based on a question from a customer which we are planning to upgrade to a version where Personize _might_ be released.

Jørund, do you mean that the Birthday-field has been removed by default in versions newer than 8.2 R4? (That's the version released 14 days ago).

Av: Frode Lillerud 20. mar 2018

RE: Hide Birthday field using .merge file gives error

Jørund, I also see now that the XML path I used is wrong. I used the /diagnostics.aspx page and choose 'person' in the dropdown, but I see now that is the old one.

Av: Frode Lillerud 20. mar 2018

RE: Hide Birthday field using .merge file gives error

It seems to be an issue with diagnostics.aspx and Feature-Toggles, so the Person config you see there is the old one regardless of Personize==true.

Birthday has moved to a Details tab in the Person Panel. 

 

J

Av: Jørund Myhre 21. mar 2018

RE: Hide Birthday field using .merge file gives error

Hi, do you know what the correct XML path to Birthday field is in the new person screen? I looked in /diagnostics.aspx in the latest SOD-version, but person XML listed there is still the old one.

Av: Frode Lillerud 27. apr 2018