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


Recent Events
  • 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.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


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?

Best practice to link a popup window from ARIDT
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Best practice to link a popup window from ARIDT
*
#43535
Best practice to link a popup window from ARIDT 10 Years, 10 Months ago Karma: 0
Hello,
I need to show a popup window with the details of a row of a data table when I click one of its fields.

I did some tests with jcepopup, but it seems I should CONCAT quite verbose HTML to make it work, something like

Code:


SELECT 
CONCAT("<a class='jcepopup autopopup-single' title='",orderType,"' href='index.php?option=com_content&amp;view=article&amp;id=88:fornitore&amp;catid=9:uncategorised&amp;Itemid=435' target='_blank' data-mediabox='width[376];height[480];title[dettagli::fornitore]'>",nomeFornitore,
"</a><a onclick='window.open(this.href,'",tipoFornitore,"','scrollbars=no,resizable=no,location=no,menubar=no,status=no,toolbar=no,left='+(screen.availWidth/2-100)+',top='+(screen.availHeight/2-150)+',width=200,height=300');return false;' href='index.php?option=com_content&amp;view=article&amp;id=88:fornitore&amp;catid=9:uncategorised&amp;Itemid=435'><br /></a>") Nome,


...just for a single column.

So I'm wondering if there is an easier way to get this behavior.

Thanks for any suggestions

Mauro
Last Edit: 2013/08/14 05:54 By admin.
The administrator has disabled public write access.
 
#43547
Re:Best practice to link a popup window from ARIDT 10 Years, 10 Months ago Karma: 748
Hello,

You can use "Columns settings -> Format" parameter to modify values from a selected column. For example if you want to change values for "nomeFornitore" column, set "Columns settings -> ID" parameter to nomeFornitore value and set "Columns settings -> Format" parameter to the following value:

<a href="index.php?option=com_content&amp;view=article&amp;id=88:fornitore&amp;catid=9:uncategorised&amp;Itemid=435">{$value}</a>

Regards,
ARI Soft
The administrator has disabled public write access.
 
#43558
Re:Best practice to link a popup window from ARIDT 10 Years, 10 Months ago Karma: 0
Perfect, that's exactly what I was looking for: this makes my query much more readable.
BTW, the string could just be the following:

<a class="jcepopup" href="index.php?option=com_content&amp;view=article&amp;id=88:fornitore&amp;catid=9:uncategorised&amp;Itemid=435" target="_blank" data-mediabox="width[300];height[400];idFornitore[99]">{$value}</a>


Now, I understand that it's out of scope for this forum, but if anyone could tell me how to modify the string above to pass {$value} to the called article so that I can retrieve it through $_POST, I would really appreciate that.

Thanks,

Mauro
The administrator has disabled public write access.
 
#43565
Re:Best practice to link a popup window from ARIDT 10 Years, 10 Months ago Karma: 748
Request variables can be used in "Columns settings -> Format" parameter in the following way:

{$REQUEST:VAR_NAME}

Where {VAR_NAME} is a name of request variable.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#43569
Re:Best practice to link a popup window from ARIDT 10 Years, 10 Months ago Karma: 0
Thanks. Sorry didn't explain well. The ARI table is in the CALLING window, but I need to retrieve the variable through PHP in the CALLED window which does not contain an ARI table. I expected to pass the value (idFornitore[99] - see my previous example) and then retrieve it with $_POST["idFornitore"], but it doesn't work.

Thanks

Mauro
The administrator has disabled public write access.
 
#43576
Re:Best practice to link a popup window from ARIDT 10 Years, 10 Months ago Karma: 748
Add GET parameter to link which is created in "Columns settings -> Format" parameter. It should be added to link (see "href" attribute) not to "data-mediabox" attribute.

Regards,
ARI Soft
The administrator has disabled public write access.
 
Go to topPage: 1