Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Relationship report Help

Featured Replies

Hi,

I am having a big problem trying to figure out wich way i can make this work,

I have here a

-contacts table (contatos)

-Sales table (vendas)

-Purchases Table (compras)

-Sales Line items (Lista Vendas)

-Purchases Line items (Lista Compras)

-Produts Table (Produtos)

Now, the img attached shows the relationship, but my need is the inventory, i seem to not get the result i want and i have figured out the problem, i just dont have the answer.

1st try::

What i tried to do:

Make a quantity field inside the products table calculating the quantities from the sales list minus (-) the purchases list to get the result.

What went wrong:

Since the sales and purchases list is linked to a client ID, the product inventory only shows the calculation from each client but not from each product independently.

2nd Try::

What i tried to do:

Making an inventory table with the quantity calculation using the product id as a child on the table.

What went wrong:

I have no idea...

If anyone has any clue on what i am doing wrong,

Please help me out. I really need to get this going.

If best, add my on my msn account:

[email protected]

Thanks for the attention and all your help.

Regards

1st_try.jpg

2nd_try.jpg

Try making a new Product TO and relate it to a new Sales Line Item TO and a New Purchase Line Item TO. Use ProductID as the key in both relationships. Base your calculation on these relationships.

  • Author

well,

I dont really get the concept...

do i create a new field on products called product TO and relate it to the sales and purchases TO's, if so wich field do i use as a calculation?

maybe a sketch as on how i do it would be more direct?

Sry, for my missunderstanding.

Thank you

Edited by Guest

It is just another TO to your existing table. the other TO's are also to existing tables.

  • Author

what kind of information are the TO's going to store? and wich field do i use as my calculation?

thx!

  • Author

What kind of information are the TO's going to store? and wich field is going to be my calculation field :

sry,

Thx

TO's are pointers to tables. You can have many TO's pointing to one table. The field is the quantity of product in the inventory.

  • Author

ok, i created a TO for my products table, sales list table, and purchase table, then i related all 3 to each other, my key field remains product id now linkd to product TO, i left the to's all to show a value of 1 on creation. but still nothing happend.

am i doing this right ??

You need to redefine the calculation. Make sure that you are in the new Products TO when you define this calculation. At the top of the dialog box for defining fields is a Line of text that reads: "Evaluate this calculation from the context of:" then the name of the TO.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.