Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 23/11/2024 Black Friday 2024

    BIG SALE, 30% discount for all our extensions. Use BF24 coupon code. Hurry up the discount is valid till 3 December.

  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

Hyperlink from any record and open mysql query
(1 viewing) (1) Guest
Go to bottomPage: 123
TOPIC: Hyperlink from any record and open mysql query
#12864
Hyperlink from any record and open mysql query 13 Years, 8 Months ago Karma: 0
I have a main data table. The main data table is a summary listing of records consisting of 2 fields from the database. What I want to achieve is when a record is selected from the main data table I need the hyperlink to call a given mysql query that will list the other fields from the database in another data table. Is it possible for the hyperlink to do that?

Thanks!!
The administrator has disabled public write access.
 
#12874
Re:Hyperlink from any record and open mysql query 13 Years, 8 Months ago Karma: 760
Hello,

Yes, it is possible. For example if you want to show content categories in main table and then show all articles from selected category in sub table on new page for Joomla! 1.5, you can do the following:

1. Create two instance of "ARI Data Tables". One for main table ("Categories"), second for sub-tables ("Articles").

2. Create two articles, for example "Categories page" and "Articles page" and load "Categories" module into "Categories page" article and "Articles" module into "Articles page" with help "Content - ARI Data Tables" plugin.

3. Use the next SQL query for "Categories" module:

Code:


SELECT id, title FROM #__categories WHERE section = "com_content"



then go to "Columns settings -> Columns settings" parameters and set "ID" parameter to "title" and "Format" parameter to

<a href="index.php?option=com_content&view=article&id=ARTICLES_PAGE_ID&selCatId={$columns:id}">{$value}</a>

Where ARTICLES_PAGE_ID is ID of "Articles page" article. For example, if it equals to 45, use the next code for "Format" parameter:

<a href="index.php?option=com_content&view=article&id=45&selCatId={$columns:id}">{$value}</a>

4. Use the following SQL query in "Articles" module:

Code:


SELECT id,title FROM #__content WHERE catid = {$REQUEST:selCatId|filter:int}



In brief, "ARI Data Tables" provides ability to use request parameters in SQL query and this ability is used for described approach.

Regards,
ARI Soft
Last Edit: 2011/03/26 05:54 By admin.
The administrator has disabled public write access.
 
#12879
Re:Hyperlink from any record and open mysql query 13 Years, 8 Months ago Karma: 0
Thanks again for the quick response. You guys do an excellent job!
The administrator has disabled public write access.
 
#12909
Re:Hyperlink from any record and open mysql query 13 Years, 8 Months ago Karma: 0
Hello,

You specifically noted that this is a solution for Joomla 1.5. Will it also work with Joomla 1.6, because that is what I have running?

I have concisely followed your example and I get "No data available". Please let me know your thoughts when you have a moment.

thanks
The administrator has disabled public write access.
 
#12911
Re:Hyperlink from any record and open mysql query 13 Years, 8 Months ago Karma: 760
Hello,

Described approach works in Joomla! 1.6. We wrote that provided example works in Joomla! 1.5 because database structure for content items in Joomla! 1.5 and 1.6 are different and it requires to use different SQL queries.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#12913
Re:Hyperlink from any record and open mysql query 13 Years, 8 Months ago Karma: 0
Hi,

Please excuse my limited knowledge. I just want to confirm that the example you kindly provided will work in Joomla 1.6. Also, that example will display an outcome? Providing I have entered the coding and such as you have described.
The administrator has disabled public write access.
 
Go to topPage: 123