2 containers with 2 grids

Hi,

how can i link these two grids together in a 2 container application? Click the first grid and filter the second grid.
I’ve trying to use links but no luck there. The second grid works fine when a manual input is done on the field on which to filter ( both numbers ).
So problably i need to do something withe the events?

I’m indeed a newbe so please help me.

Regards
Erwin

Import samples project and look at samples_grid_orders and samples_grid_order_details. Both are showed linked on the container app samples_container_param

Edited: http://www.scriptcase.net/scriptcase-ejemplos/tutoriais/features/samples_container_param.php

Hi,

thank you , i’m near but not completly. I followed your lead but now i’m getting an error in the first application ( the left and leading application ) :

Parse error: syntax error, unexpected ‘’ (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in C:\Program Files (x86)\NetMake\v71\wwwroot\scriptcase\app\LISL2\grid_categorie\grid_categorie_grid.class.php on line 1410

This is the code i input:

{orders}="<a href=“javascript:void%200”
onclick=“parent.document.getElementByID(‘id-iframe-widget4’).contentWindow.document.location.href=’…/grid_orders/grid_orders.php’+’?ord=”.{categorieid}."’;">
<img src=’…/_lib/img/details.png’ border=‘0’ Title=‘Details’/></a>;

Could you see what is wrong?

Regards
Erwin

Right now I’m not in front of a Pc,but if your.problem is in your first app,not second,maybe the problem is on your filter. Step 21 of my previous link

Hi, thank you.

in this version i do not have the event onInit, i have OnScriptInit. Is this the same?

[QUOTE=etsoft;23833]Hi, thank you.

in this version i do not have the event onInit, i have OnScriptInit. Is this the same?[/QUOTE]

Yes, there are two events: onapplicationinit and onscriptinit.

Ok,

it is almost working now, a can click the first grid, but the second grid does not change.
What could be tha 'last’problem?

Hard to tell, but I think that you don’t have the right IFrame name, or you are not passing the correct parameters to the application in the IFrame. Just a few possibilities.

Damn, all seems to be in like the manual still no luck

Can you share the applicartions?

Sure, how can i do this?
The mysql database is on a local nas drive.

Sure i can, how can i do this?
The MySql database is on a local nas.

[QUOTE=etsoft;23895]Sure i can, how can i do this?
The MySql database is on a local nas.[/QUOTE]

Export database as SQL and export your applications from Scriptcase. If there are sensible data, send me v?a pr?vate message if you want.

Remember JS is case sensitive, change in your onRecord event on categories grid, getElementByID for getElementById

Thanks, it is working now.
Great product Scriptcase.