Question
Hi,
the direktSearch does not display the phone number in the phone list anymore. The users are listed correctly. I found that the phone number field is empty in the directSearch.js file after update of the PersonalInfo topic. The file is updated when the topic is saved.
Everything else is working fine. I guess, that the phone numbers update ability has disappeared during a twiki update, but I'm not sure. There are no error messages in the logs.
Is there an idea what's wrong?
Environment
--
JensHofmann - 08 Oct 2008
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
There is a different directory in the download to copy to the Main web:
_PersonalInfoAddOn04x02. Be careful though if you have made any changes to your setup before copying the files over.
--
ArthurClemens - 09 Oct 2008
I copied the files of this directory to the TWiki-directory. When I create a new user
TestUser, his META-sections look like this:
<nop>%META:FIELD{name="Picture" attributes="H" title="Picture" value="picture.jpg"}%
<nop>%META:FIELD{name="WorkStatus" attributes="" title="<nop>WorkStatus" value="Current"}%
<nop>%META:FIELD{name="WorkEmail" attributes="" title="<nop>WorkEmail" value="gh@dfgt"}%
<nop>%META:FIELD{name="WorkPhone" attributes="" title="<nop>WorkPhone" value="1234567890"}%
<nop>%META:FIELD{name="WorkPhoneMobile" attributes="" title="<nop>WorkPhoneMobile" value="0987654321"}%
<nop>%META:FIELD{name="WorkLocation" attributes="" title="<nop>WorkLocation" value="Home"}%
<nop>%META:FILEATTACHMENT{name="picture.jpg" attachment="picture.jpg" attr="h" comment="My picture" date="1223587697" path="picture.jpg" size="6441" stream="picture.jpg" tmpFilename="/var/tmp/CGItemp18783" user="TestUser" version="1"}%
<nop>%META:PREFERENCE{name="VIEW_TEMPLATE" title="VIEW_TEMPLATE" type="Local" value="PersonalInfoUserView"}%
The line in the direktSearch.js after an update of
PersonalInfo does not show any of the values from the META-tags above:
var userData = new Array({name:"John Doe",phone:"",topic:"Main/PersonalInfoDemoUser",pictureName:""}, {name:"Test User",phone:"",topic:"Main/TestUser",pictureName:""});
As I said, all other function work without any issue.
--
JensHofmann - 09 Oct 2008
- Does the
js really get written/updated?
- Is the output from the examples on
PersonalInfoHome allright?
--
ArthurClemens - 10 Oct 2008
Yes, the
js -file is updated correctly. I deleted it and it was created again. The output of the examples shows only the user names, but no data behind. The scripts in
PersonalInfoModules seems to read the
$formfield(FirstName) and the
$formfield(LastName) corretly, but not the
$formfield(WorkPhone) and others.
--
JensHofmann - 10 Oct 2008
"I copied the files of this directory to the TWiki-directory". I think you really should copy them to the Main directory, that is where the users are.
--
ArthurClemens - 10 Oct 2008
Sorry, my mistake. I copied it to the Main directory in fact.
--
JensHofmann - 10 Oct 2008
Do you really have
<nop> before each
%META:FIELD ? Because you shouldn't.
--
ArthurClemens - 10 Oct 2008
No, not in my Twiki. I discovered, that these entries otherwise disappear on this support topic, probably to the hidden
%META section.
--
JensHofmann - 11 Oct 2008
Frankly I don't have a clue. I just reproduced your steps and all is working as expected.
--
ArthurClemens - 11 Oct 2008
I have not given up and found the problem. It is the SEARCH, that does read the
formfield value, when the
%META.FIELD has the
attribute set to
"H", as shown in the customization example of
PersonalInfoHome. Im my setting I applied these settings to
Main.UserForm and used this as the form template in the personal topics. When I remove the
"H" - attributes in the
Main.UserForm, everything works well again.
--
JensHofmann - 20 Oct 2008