Announcement

Collapse
No announcement yet.

2 containers with 2 grids

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • etsoft
    started a topic 2 containers with 2 grids

    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

  • etsoft
    replied
    Thanks, it is working now.
    Great product Scriptcase.

    Leave a comment:


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

    Leave a comment:


  • Giu
    replied
    Originally posted by etsoft View Post
    Sure i can, how can i do this?
    The MySql database is on a local nas.
    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.

    Leave a comment:


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

    Leave a comment:


  • Giu
    replied
    Originally posted by etsoft View Post
    Damn, all seems to be in like the manual still no luck
    Can you share the applicartions?

    Leave a comment:


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

    Leave a comment:


  • aducom
    replied
    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.

    Leave a comment:


  • etsoft
    replied
    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?

    Leave a comment:


  • aducom
    replied
    Originally posted by etsoft View Post
    Hi, thank you.

    in this version i do not have the event onInit, i have OnScriptInit. Is this the same?
    Yes, there are two events: onapplicationinit and onscriptinit.

    Leave a comment:


  • etsoft
    replied
    Hi, thank you.

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

    Leave a comment:


  • Giu
    replied
    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

    Leave a comment:


  • etsoft
    replied
    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\gri d_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

    Leave a comment:


  • Giu
    replied
    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...iner_param.php
    Last edited by Giu; 05-23-2014, 06:21 PM.

    Leave a comment:

Working...
X