1. Helge Tjelta
  2. Valentina Server
  3. Tuesday, March 08 2016, 07:28 PM
  4.  Subscribe via email
Hi, I'm working on a car reseller project. And I'm building a db with sales and trade in for cars... I was thinking of using a table for cars, i.e. a car will be bought (in to the reseller), then sold again (out from reseller), but this sale will sometimes add a another into the system as a trade in car...

Can I use object pointer to link to this other car...

When trying to do this I always get the linking the opposite way, compared to object pointers to other tables...
So, in linking recID 1 to recID 5, it get a value in the recID 5 field, and not the recID 1 field...

When doing normal object pointers to other tables, I would get a value in the object pointer field of recID 1...

Is this design og bug ?

Or me just thinking wrong :)
Comment
There are no comments made yet.
Ruslan Zasukhin Accepted Answer
Hi Helge,

ObjectPtr can point to the own table. We can name this recursive table.

I think in Examples API_way exists example how this can be done.
TargetTable should be assigned later -- main point here.

in SQL_way also can exists such example.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Server
  3. # 1
Ruslan Zasukhin Accepted Answer
how exactly you link records?
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Server
  3. # 2
Ruslan Zasukhin Accepted Answer
BTW, since you working with links, make sure you know this useful Link functions of Valentina SQL
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Server
  3. # 3
Helge Tjelta Accepted Answer
I use the studiopro for setup of db, table, fields and links...

The way I do it, I choose new field, objectpointer as type, set delete to zero, give a name, and choose target table...
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Server
  3. # 4
Ruslan Zasukhin Accepted Answer
May be you can make small video to demonstrate what looks wrong?
Link to video you can send us by email if needed.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Server
  3. # 5
  • Page :
  • 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