Link a grid application to another grid application by clicking an image / recor

Hallo,

I have two Grid Applications which I want want to link with each other.
The first application shows only few data, namely an image, the corresponding name, and some size values (and perhaps invisible a record id to be passed as a parameter). This application is embedded into a Joomla website either by wrapping or by the use of an iFrame.
The second grid holds far more data and shall be used as some detailed view.

Now I would like to do the following:
The user should be allowed to click the image order the name which is shown besides the image.
By the click, the second grid application should be called and the record id shall be passed as a parameter to the second application.
By that parameter, the second application shall know which record to display.

Could you please give me some advice?
Is it possible to open the second grid in a seperate website?

Thanks for your help!

Re: Link a grid application to another grid application by clicking an image / recor

Have it open a like to the grid using get/post


$ticket_link = $site_root . 'form_email_request/form_email_request.php?id=' . $var_ticket;

REgards,
Scott.

Re: Link a grid application to another grid application by clicking an image / recor

Hello,

Did you see this example ?

Link: http://www.scriptcase.net/systems/v5/exemplos_en_us/grid27/grid27.php

This may help you or its close to what you want.

Re: Link a grid application to another grid application by clicking an image / recor

Scott,

thanks for your reply.
Where shall I enter this?
I know how to create links, but I can only choose applications as a target.
Where do I enter this PHP code?

Re: Link a grid application to another grid application by clicking an image / recor

Create a new button and select PHP.

You can then use sc_redir or something like:
echo “<script>parent.location=’…/app/url.php?id=’</script>”;

Regards,
Scott.

Re: Link a grid application to another grid application by clicking an image / recor

Scott,

can I bind this to an image, to make the linked application be called, once the image is clicked? (instead of opening the image in full size upon being clicked)

Again,
thanks for your help!

Regards,
Sascha.

Re: Link a grid application to another grid application by clicking an image / recor

Just solved the issue!
Anyway, many thanks for your help!

Sascha.

Re: Link a grid application to another grid application by clicking an image / recor

please share your solution!

Re: Link a grid application to another grid application by clicking an image / recor

Okay, what i did is:

    [li]I created a new link of type "field link"[/li] [li]as field i chose the image field[/li] [li]determine the target application[/li] [li]set the parameter; in my case: var_record_id = table.id[/li]

That’s it.

But just one further question, which is of great importance for me.
Maybe someone is able to give me some help:

The link I created is a direct link between two applications.
My ScriptCase applications are all embedded into a Joomla site.
I would like the link not to call the ScriptCase Application directly, but to open the corresponding Joomla page, which embeds this ScriptCase Application and pass the parameter using HTTP_GET in the URL, like:


<a href="calledApplication.php?record_id=<var_record_id>link text</a>

The called application shall read the record id from the $_GET[record_id].

How can this be accomplished?

Re: Link a grid application to another grid application by clicking an image / recor

Integration of SC in Joomla is still poor. I myself use JScriptcase to put SC applications in Joomla menu items and create single singon in both tools. Works fine.

I don’t think however that there’s a feature to pass parameters the way you want. Try contacting the developer of JScriptcase: info@ilerian.com. They are still improving the tool and have been very helpful to me, even in my trial period.