cliv

Forum Replies Created

Viewing 12 replies - 1 through 12 (of 12 total)
  • Author
    Replies
  • in reply to: Master Detail – jqGridArray? #124346
    cliv
    Participant

    yes…your example with array in code work me too …. but when i try to load array data from server only in detail.php – grid detail not showing  rows ….

    very strange!

    in reply to: Master Detail – jqGridArray? #124343
    cliv
    Participant

    i try what you say but … NOT WORK

    1. I set Ziua to be primary key:

    2. and eliminated space from Ziua value from json.
    Now json is:
    [{"Ziua":"10.09.2015_14:00:00","readouttime":"2015-09-10 14:00:00.000","Pres_ACM":"2.826","Pres_INC":"0","Temp_ACM_P4":"64","Temp_EXT":"18.56","Temp_INC":"30.62","Temp_Tur_TF":"66.93"},{"Ziua":"10.09.2015_13:00:00","readouttime":"2015-09-10 13:00:00.000","Pres_ACM":"2.818","Pres_INC":"0","Temp_ACM_P4":"64.43","Temp_EXT":"18.06","Temp_INC":"30.68","Temp_Tur_TF":"66.87"},{"Ziua":"10.09.2015_12:00:00","readouttime":"2015-09-10 12:00:00.000","Pres_ACM":"0","Pres_INC":"0","Temp_ACM_P4":"42.62","Temp_EXT":"17.81","Temp_INC":"30.5","Temp_Tur_TF":"54.06"},{"Ziua":"10.09.2015_11:00:00","readouttime":"2015-09-10 11:00:00.000","Pres_ACM":"0","Pres_INC":"0","Temp_ACM_P4":"47.06","Temp_EXT":"17.06","Temp_INC":"30.81","Temp_Tur_TF":"57.87"},{"Ziua":"10.09.2015_10:00:00","readouttime":"2015-09-10 10:00:00.000","Pres_ACM":"2.808","Pres_INC":"0","Temp_ACM_P4":"59.62","Temp_EXT":"16.87","Temp_INC":"31","Temp_Tur_TF":"63.87"},{"Ziua":"10.09.2015_09:00:00","readouttime":"2015-09-10 09:00:00.000","Pres_ACM":"2.801","Pres_INC":"0","Temp_ACM_P4":"55.37","Temp_EXT":"16.62","Temp_INC":"31","Temp_Tur_TF":"65.06"},{"Ziua":"10.09.2015_08:00:00","readouttime":"2015-09-10 08:00:00.000","Pres_ACM":"2.781","Pres_INC":"0","Temp_ACM_P4":"54.43","Temp_EXT":"17.56","Temp_INC":"31.18","Temp_Tur_TF":"65.93"},{"Ziua":"10.09.2015_07:00:00","readouttime":"2015-09-10 07:00:00.000","Pres_ACM":"2.774","Pres_INC":"0","Temp_ACM_P4":"55.37","Temp_EXT":"17.93","Temp_INC":"31.31","Temp_Tur_TF":"66.43"},{"Ziua":"10.09.2015_06:00:00","readouttime":"2015-09-10 06:00:00.000","Pres_ACM":"2.849","Pres_INC":"0","Temp_ACM_P4":"60.18","Temp_EXT":"18.56","Temp_INC":"31.37","Temp_Tur_TF":"64.31"},{"Ziua":"10.09.2015_05:00:00","readouttime":"2015-09-10 05:00:00.000","Pres_ACM":"2.868","Pres_INC":"0","Temp_ACM_P4":"64.68","Temp_EXT":"19.31","Temp_INC":"31.5","Temp_Tur_TF":"66.87"},{"Ziua":"10.09.2015_04:00:00","readouttime":"2015-09-10 04:00:00.000","Pres_ACM":"2.866","Pres_INC":"0","Temp_ACM_P4":"64.87","Temp_EXT":"20.12","Temp_INC":"31.5","Temp_Tur_TF":"66.87"},{"Ziua":"10.09.2015_03:00:00","readouttime":"2015-09-10 03:00:00.000","Pres_ACM":"2.862","Pres_INC":"0","Temp_ACM_P4":"65.06","Temp_EXT":"20.25","Temp_INC":"31.56","Temp_Tur_TF":"67.43"},{"Ziua":"10.09.2015_02:00:00","readouttime":"2015-09-10 02:00:00.000","Pres_ACM":"2.861","Pres_INC":"0","Temp_ACM_P4":"64.62","Temp_EXT":"20.25","Temp_INC":"31.56","Temp_Tur_TF":"66.93"},{"Ziua":"10.09.2015_01:00:00","readouttime":"2015-09-10 01:00:00.000","Pres_ACM":"2.857","Pres_INC":"0","Temp_ACM_P4":"65.06","Temp_EXT":"20.81","Temp_INC":"31.62","Temp_Tur_TF":"66.75"},{"Ziua":"10.09.2015_00:00:00","readouttime":"2015-09-10 00:00:00.000","Pres_ACM":"2.844","Pres_INC":"0","Temp_ACM_P4":"65.87","Temp_EXT":"21.31","Temp_INC":"31.62","Temp_Tur_TF":"67"}]

    • This reply was modified 10 years, 8 months ago by cliv.
    in reply to: Master Detail – jqGridArray? #124334
    cliv
    Participant

    The problem is in the response.

    Thank you…but still not work…
    Here is new json.
    [{"readouttime":"2015-09-08 09:00:00.000","Ziua":"08.09.2015 09:00:00","Pres_ACM":"2.838","Pres_INC":"0","Temp_ACM_P4":"63.75","Temp_EXT":"17.06","Temp_INC":"32.37","Temp_Tur_TF":"65.31"},{"readouttime":"2015-09-08 08:00:00.000","Ziua":"08.09.2015 08:00:00","Pres_ACM":"2.785","Pres_INC":"0","Temp_ACM_P4":"61.56","Temp_EXT":"15.5","Temp_INC":"32.5","Temp_Tur_TF":"65.87"},{"readouttime":"2015-09-08 07:00:00.000","Ziua":"08.09.2015 07:00:00","Pres_ACM":"2.793","Pres_INC":"0","Temp_ACM_P4":"62","Temp_EXT":"16.43","Temp_INC":"32.5","Temp_Tur_TF":"64.31"},{"readouttime":"2015-09-08 06:00:00.000","Ziua":"08.09.2015 06:00:00","Pres_ACM":"2.848","Pres_INC":"0","Temp_ACM_P4":"57.81","Temp_EXT":"16.12","Temp_INC":"32.75","Temp_Tur_TF":"62.93"},{"readouttime":"2015-09-08 05:00:00.000","Ziua":"08.09.2015 05:00:00","Pres_ACM":"2.853","Pres_INC":"0","Temp_ACM_P4":"61.06","Temp_EXT":"16.81","Temp_INC":"32.87","Temp_Tur_TF":"63.68"},{"readouttime":"2015-09-08 04:00:00.000","Ziua":"08.09.2015 04:00:00","Pres_ACM":"2.856","Pres_INC":"0","Temp_ACM_P4":"60.56","Temp_EXT":"17.12","Temp_INC":"33","Temp_Tur_TF":"63.5"},{"readouttime":"2015-09-08 03:00:00.000","Ziua":"08.09.2015 03:00:00","Pres_ACM":"2.86","Pres_INC":"0","Temp_ACM_P4":"60.56","Temp_EXT":"18.18","Temp_INC":"33.06","Temp_Tur_TF":"63.06"},{"readouttime":"2015-09-08 02:00:00.000","Ziua":"08.09.2015 02:00:00","Pres_ACM":"2.869","Pres_INC":"0","Temp_ACM_P4":"61.06","Temp_EXT":"18.43","Temp_INC":"33.12","Temp_Tur_TF":"63"},{"readouttime":"2015-09-08 01:00:00.000","Ziua":"08.09.2015 01:00:00","Pres_ACM":"2.864","Pres_INC":"0","Temp_ACM_P4":"60.68","Temp_EXT":"19.18","Temp_INC":"33.18","Temp_Tur_TF":"64"},{"readouttime":"2015-09-08 00:00:00.000","Ziua":"08.09.2015 00:00:00","Pres_ACM":"2.826","Pres_INC":"0","Temp_ACM_P4":"55.18","Temp_EXT":"19.43","Temp_INC":"33.31","Temp_Tur_TF":"64.68"}]

    • This reply was modified 10 years, 9 months ago by cliv.
    • This reply was modified 10 years, 9 months ago by cliv.
    in reply to: Master Detail – jqGridArray? #124322
    cliv
    Participant

    When i check arhivaDate.json file write on disk by “arhivaScadaDate.php” , everything is OK…but second grid not display rows … only number of record in footer (“View 1 – 10 of 13”).

     
    arhivaDate.json
     

    in reply to: Master Detail – jqGridArray? #124320
    cliv
    Participant

    HTML

    arhivaScadaGrid.php

    arhivaScadaDate

     

    • This reply was modified 10 years, 9 months ago by cliv.
    in reply to: Master Detail – jqGridArray? #124182
    cliv
    Participant

    I tested and second grid (detail) not showing  rows, only shows total number of rows…?

    in reply to: Stored procedure + SQL Server 2008 + jqGrid #124017
    cliv
    Participant

    Look at this example.

     

    Thank you

    • This reply was modified 10 years, 11 months ago by cliv.
    in reply to: Stored procedure + SQL Server 2008 + jqGrid #124005
    cliv
    Participant

    One possible solution is to get the dataset from stored procedure and use the array driver to pass it to the grid

     

     

    Thank you! … can you post a sample?

    • This reply was modified 10 years, 11 months ago by cliv.
    • This reply was modified 10 years, 11 months ago by cliv.
    in reply to: Master detail with two parameters #123935
    cliv
    Participant

    …but what about jqGrid and stored procedure on SQLServer…
    POST HERE

    in reply to: Master detail with two parameters #123933
    cliv
    Participant

    Thank you

    in reply to: Master detail with two parameters #123905
    cliv
    Participant

    OK! Thank you I understand how to send….but what is the code in detail.php to pass parametrs to sql query. This is correct?

    in reply to: Master detail with two parameters #123853
    cliv
    Participant

    I want to select row on master and read COL1 and COl2 on selected row and then pass this parameters to SQL query on detail (Select from TABLE where id=COL1 and cod=COL2).

    Can be done….?

Viewing 12 replies - 1 through 12 (of 12 total)

Stay connected with us in your favorite flavor!