Announcement

Collapse
No announcement yet.

2 containers with 2 grids

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

  • 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

  • #2
    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.
    /Giuseppe

    Professional Scriptcase Services
    Some Customers opinions

    Comment


    • #3
      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

      Comment


      • #4
        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
        /Giuseppe

        Professional Scriptcase Services
        Some Customers opinions

        Comment


        • #5
          Hi, thank you.

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

          Comment


          • #6
            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.
            Albert Drent
            aducom software netherlands
            scriptcase partner, reseller, support and (turn-key) development
            www.scriptcase.eu / www.scriptcase.nl

            Comment


            • #7
              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?

              Comment


              • #8
                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.
                Albert Drent
                aducom software netherlands
                scriptcase partner, reseller, support and (turn-key) development
                www.scriptcase.eu / www.scriptcase.nl

                Comment


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

                  Comment


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

                    Professional Scriptcase Services
                    Some Customers opinions

                    Comment


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

                      Comment


                      • #12
                        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.
                        /Giuseppe

                        Professional Scriptcase Services
                        Some Customers opinions

                        Comment


                        • #13
                          Remember JS is case sensitive, change in your onRecord event on categories grid, getElementByID for getElementById
                          /Giuseppe

                          Professional Scriptcase Services
                          Some Customers opinions

                          Comment


                          • #14
                            Thanks, it is working now.
                            Great product Scriptcase.

                            Comment

                            Working...
                            X