1. Helge Tjelta
  2. Valentina Server
  3. Dienstag, März 08 2016, 07:28 PM
  4.  Abonnieren via E-Mail
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 :)
Kommentar
There are no comments made yet.
Ruslan Zasukhin Akzeptierte Antwort
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.
Kommentar
There are no comments made yet.
Ruslan Zasukhin Akzeptierte Antwort
how exactly you link records?
Kommentar
There are no comments made yet.
Ruslan Zasukhin Akzeptierte Antwort
BTW, since you working with links, make sure you know this useful Link functions of Valentina SQL
Kommentar
There are no comments made yet.
Helge Tjelta Akzeptierte Antwort
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...
Kommentar
There are no comments made yet.
Ruslan Zasukhin Akzeptierte Antwort
May be you can make small video to demonstrate what looks wrong?
Link to video you can send us by email if needed.
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