WebSite X5Help Center

 
Spring Produkties
Spring Produkties
User

Show database data selected on base of id of logged in user / object user orders  en

Author: Spring Produkties
Visited 873, Followers 1, Shared 0  

on our website we work with automatic registration of users

once the user has logged in, we can visualize his orders through the object 'User Orders'

but on that same page we use the 'User Orders' object on

we would like to show other data from an other database, in which we select the fiel based on the active logged in user 

-> how can we do that ? (how can we retrieve e.g. de ID of the active logged in user, to make the right selection (e.g. filtered on that ID) of other data in an other database ? 

thanks in advance for putting us on the right track.

Posted on the
9 ANSWERS - 4 USEFUL
Axel  
Axel  
User
Best User of the month FR

Hello,

If I don't make a mistake, you cannot have more than one database online by e-Commerce project.

Enjoy!

Axel

Read more
Posted on the from Axel  
John S.
John S.
User

Hello

You could take a look at REPORTICO. https://www.reportico.org/site2/index.php

With this tool you can make reports involving more tables and databases. http://www.reportico.org/documentation/6.0.0/doku.php?id=working_with_multiple_datasources

The output can be in html. It is possible to use a userID from outside ( from another system )

http://www.reportico.org/documentation/6.0.0/doku.php?id=the_query_details_menu&s[]=external

REPORTICO is a very powerful tool to create output from MySQL databases - and it is free.

The possibility to let the user be able to make selections at "runtime" is very useful. The selections can be intervals ( date or number  ) , groups and other possibilities.

The html-output can be integrated in your X5 using iframes.

Read more
Posted on the from John S.
Spring Produkties
Spring Produkties
User
Author

  • Thx Axel. Thx for your remark. But I would like to correct myself: the additional data could also be stored in the same database, but in an other table. 

Read more
Posted on the from Spring Produkties
Spring Produkties
Spring Produkties
User
Author

Hello John 

Thanks for the hint, we will check it.

But on that html page, how can we catch the ID of the active user (as we will need that ID in order to filter the right fields in that additional table?

Best regards

Wim

Read more
Posted on the from Spring Produkties
Axel  
Axel  
User
Best User of the month FR

@Spring

You said "the additional data could also be stored in the same database, but in an other table. "... But you have no option into the software to write other data "external" into the same DB even into other table.

Read more
Posted on the from Axel  
Spring Produkties
Spring Produkties
User
Author

@ Axel, in our case then forturnately in X5 we only have to read and visualize the data from the second table / database (as that ione is fed directly in MySQL by an other tool. So we do not have to write data from X5 to the table / database

Read more
Posted on the from Spring Produkties
Spring Produkties
Spring Produkties
User
Author

@ John    thanks for the hints, it might indeed be a possible sollution. By the way : in case we would nee some help, are you doing free lance work for such things ? Or can you advise some one ? Offline we can discuss scope and conditions.

Read more
Posted on the from Spring Produkties
John S.
John S.
User

I don't work for money - I do it for funwink

I could maybe assist you - you can contact me here : http://calendarforum.dk/contact.html

The forum on REPORTICO is useful - and the author of the REPORTICO is very helpful.

Read more
Posted on the from John S.