Making a relational database...Is it correctly linked and working?.

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

Making a relational database...Is it correctly linked and working?.

leomachado666
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Making a relational database...Is it correctly linked and working?.

Alessandro  Vernet
Administrator
Hi Leo,

I am looking at your orbeon.log, but I don't see any error, and as you're saying data gets stored in the database. What do you mean by "i don't know how to create a relational database"? Is anything not working for you? What problem are you trying to resolve?

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Making a relational database...Is it correctly linked and working?.

leomachado666
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Making a relational database...Is it correctly linked and working?.

Alessandro  Vernet
Administrator
Hi Leo,

The data is stored as XML in the relational database, in the "xml" column of "orbeon_form_data". If you need to have that in a "relational table format", you could write a trigger that extracts the data when inserted, per:

https://github.com/orbeon/orbeon-forms/wiki/Installation-~-Relational-Database-Setup#manual-relational-table-setup-with-mysql

Is this something that could work for you?

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Making a relational database...Is it correctly linked and working?.

leomachado666
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Making a relational database...Is it correctly linked and working?.

Alessandro  Vernet
Administrator
Hi Leo,

Ah, I think that we changed the root element on that example to be <form>, as it is on all forms, so the XPath expressions in the trigger should be /form/details/title and /form/details/author (instead of /book/…). Could you try with those updated expressions? And you can also look at the XML in the tool you're using, to see if the XPath expression is correct. You'll let me know if this works for you, and I can then fix the doc accordingly.

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Making a relational database...Is it correctly linked and working?.

leomachado666
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Making a relational database...Is it correctly linked and working?.

leomachado666
In reply to this post by Alessandro Vernet
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Making a relational database...Is it correctly linked and working?.

leomachado666
In reply to this post by Alessandro Vernet
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Making a relational database...Is it correctly linked and working?.

Alessandro  Vernet
Administrator
Hi Leo,

You're saying that "it looks like i can get the data language, author, title". So is the trigger working? Where are you with this?

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet