Verify replication of profile documents please

Please don’t just say “this works”, let me explain what is really the situation at my place.

Notes 6 and Domino 6.

I have a local replica. I have 2 buttons in this application, one that set some profile document values, another one that checks values. I change the value of a profile document. I check this value again, to see if it is set, and yes it is set. I then replicate these changes to the server. I then, check the value in the profile document, and NO, it is not changed to the value I set in the local replica.

The set’ing and get’ing are plain @formulas, like:

Setting:

tmp := @Text(@DocumentUniqueID);

tmpnr := @Prompt([OkCancelEdit] ; “Change value” ; “New value?”; “100” ) ;

@SetProfileField(“frmProfile”; “Counter”; @Text(tmpNr); tmp)

Getting:

tmp := @Text(@DocumentUniqueID);

tmpnr := @GetProfileField(“frmProfile” ; “Counter” ; tmp);

@Prompt([Ok] ; “” ; tmpNr)

As I said, setting the value and checking it, shows that the value is set properly. Replicating it, and the values on the server are not changed.

Should profile documents replicate or not?

Regards,

Rune Carlsen

Founder Dominoozne

http://www.dominozone.net

Subject: Verify replication of profile documents please

I heard that they shouldn’t replicate, a long time past.

Then I was told they do.

Either way, I stopped using them two years ago, so I can’t definitely recall. Although there’s more work looking up to “normal” documents, at least you know where you are with them. I even had profile documents appear in end-user views in one application in 4.51… screwy, definitely screwy (no, they hadn’t been tweaked with Lotusscript or anything).

That didn’t really help eh?

Subject: RE: Verify replication of profile documents please

Hehe, scary indeed. We’ll it works now, just a little bit fishy on local/client caching…

Rune

Subject: RE: Verify replication of profile documents please

Actually, that cache-ing would explain the behaviour I noted in my old system. However, I’ve never seen profile documents just “appear” in a view before or since… and it happened in a number of instances of the database I’d coded (not replicas, just same design).

I must have freaky fingers ; - )

Oh yes, a nice April Fools at dominozone.net BTW Rune!

Subject: RE: Verify replication of profile documents please

Curiously, I’m seeing some similar behavior. Some of my users are creating local replicas in which the Database Profile replicates down, but sometimes the Database Profile doesn’t, which screws up the application.

As of today, I’m abandoning Database Profiles – perhaps I’ll leave user profiles (if their use is fairly trivial).

Subject: Answer to my own question

Yes they do replicate. It’s just a matter of caching inside the Notes client. Restarting the client solved it, and shows the new values. Sorry for posting this “working as designed” problem :wink:

Regards,

Rune Carlsen

Founder Dominozone

http://www.dominozone.net