What's new

Welcome to xCrud Community - Data Management and extended PHP CRUD

Join us now to get access to all our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, and so, so much more. It's also quick and totally free, so what are you waiting for?

create an action that affects to xcrud instances

philcoul

New member
Joined
Mar 10, 2022
Messages
3
Reaction score
1
Points
3
Location
Canada
Hi,
I have 3 tables: lyrics, audios and map_lyrics_audios. I need to select one lyric from the lyrics xcrud instance and one audio from audios xcrud instance and then click a button that will enable me in functions.php to associate them in map_lyrics_audios table.
So far I know how to use the kind of code below to manipulate one table after having selected a row in the one instance displayed in my page.
Xcrud.request('.xcrud-ajax',Xcrud.list_data('.xcrud-ajax',{action: 'bulk_add_presence', task:'action',selected:items, table:'reserver_presentiel'}));

However when two instances are displayed in my page, I need to know how the JS code to use in order to access both selection in my functions.php.
Thanks in advance
 
Top Bottom