1. Beatrix Willius
  2. Valentina Server
  3. Mittwoch, Februar 19 2020, 02:42 PM
  4.  Abonnieren via E-Mail
So far my VServer version has been quite primitive. I'm currently implementing a user and group management. Of course, not all users should see all data.

For a long, long time I've done duplicate checking when adding data with a VSet:

dim theCheckset as VSet
theCheckset = InternalMessageIDField.FindValueAsArraySet(CheckMessageID)
if theCheckset = nil then
theResult = False
else
dim i as Integer = theCheckset.Count
if i = 0 then
theResult = False
else
theResult = true
end if
end if

I can't see this working in a multiuser environment. My database has mailboxes and emails. The duplicate check is for the emails. I wanted to add a user field to the mailboxes. But even if I add a user field to the emails, too, I can't see a way to make the VSet work. The combination of user and emails would need to be unique.

Did I miss anything or do I need to use SQL now? Is it good at all to use VSet for VServer?
Kommentar
There are no comments made yet.
Beatrix Willius Akzeptierte Antwort
Just being lazy, of course. I'll replace the code with SQL.
Kommentar
There are no comments made yet.
Ruslan Zasukhin Akzeptierte Antwort
Sorry, it is not clear to me, what not works for you with VSet?
Kommentar
There are no comments made yet.
Ruslan Zasukhin Akzeptierte Antwort
Hi Beatrix,

let me first of all point that if you going to work with __remote__ vserver (I mean users of your app), then SQL is always the preferable way
Kommentar
There are no comments made yet.
  • Seite :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Categories

Announcements & News
  1. 0 subcategories
Valentina Studio
  1. 2 subcategories
Valentina Server
  1. 4 subcategories
Valentina Database ADK
  1. 0 subcategories
Valentina Reports ADK
  1. 0 subcategories
Other Discussions
  1. 2 subcategories
BETA Testing
  1. 0 subcategories
Education & Research
  1. 0 subcategories