I've got 2 db's: data.db, docs.db and I'd like to pull a record out of data.db into docs. There is a perfect example in the FAQ http://webmagic.hypermart.net/dbman/multi12.txt but it just doesn't seem to work. I've got the build_select_from_other_db working.
Here is what I'm trying to do. I add a record to data, then add a record to docs. In docs I select via pull-down a CompanyName that is built from data.db and save the record (this much works). When I go to modify the record in docs I'd like to: open data.db, use the CompanyName from docs find that record, get the Address (for that particular company), close data, and then finish modifying, using $address however necessary.
The above link (hack) looks like it should be exactly what I need, but the script simply returns nothing for me. I've also tried hacking the "switch_to_db" subs and have had the same results.
I'm also confused because I don't see where it would actually OPEN the other db file for reading?
I don't mind some hacking if anyone can point me in the right direction. Logic tells me it should be: open the other db, read lines, find matching line, get the line, stick it in memory, close the db, and then carry on.
I tried searching but the boolean part doesn't seem to be working at the moment, so I'm getting like 20,000+ hits.
Here is what I'm trying to do. I add a record to data, then add a record to docs. In docs I select via pull-down a CompanyName that is built from data.db and save the record (this much works). When I go to modify the record in docs I'd like to: open data.db, use the CompanyName from docs find that record, get the Address (for that particular company), close data, and then finish modifying, using $address however necessary.
The above link (hack) looks like it should be exactly what I need, but the script simply returns nothing for me. I've also tried hacking the "switch_to_db" subs and have had the same results.
I'm also confused because I don't see where it would actually OPEN the other db file for reading?
I don't mind some hacking if anyone can point me in the right direction. Logic tells me it should be: open the other db, read lines, find matching line, get the line, stick it in memory, close the db, and then carry on.
I tried searching but the boolean part doesn't seem to be working at the moment, so I'm getting like 20,000+ hits.