dpeterman

Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Author
    Replies
  • in reply to: Hidden fields not posted during editGridRow #89915
    dpeterman
    Participant

    Tony,

    The lines listed above were for the delgridrow, does 3.6 fix the edit issue as well? I'm assuming it's something similar?

    Doug

    in reply to: Hidden fields not posted during editGridRow #89874
    dpeterman
    Participant

    Ok, I found a solution but don't fully understand why the original code doesn't work.

    I changed out line 1187 in grid.formedit.js

    in reply to: Hidden fields not posted during editGridRow #89873
    dpeterman
    Participant

    cd_id is an autocomplete field in mysql and I did validate it before running the test. In the example the cd_code=1 has a cd_id=27 not 28

    Also, the weird part to me is when I had the clickedSubmit turned on I was filling the exParam with the correct data but it wasn't being posted.

    in reply to: Hidden fields not posted during editGridRow #89871
    dpeterman
    Participant

    Still doesn't work with the clickedSubmit function disabled. In fact, I didn't add the clickedSubmit until I had the problem.

    Just to be clear. The delGridRow and editGridRow functions both won't update the hidden fields after the first submit.

    So, delGridRow works the first time but never again until a page refresh.

    The editGridRow works if you don't scroll off the current record.

    Doug

    in reply to: Hidden fields not posted during editGridRow #89861
    dpeterman
    Participant

    Mark,

    Thanks that worked! The hidden fields are on the form. Unfortunately, the data posted to the server is incorrect. The posted data for the hidden fields is the first record displayed in the form. As you scroll those data elements aren't being updated. I'm still in the same situation as I am with the delete function. The hidden elements can only be set once.

    Firebug – net tab

    Post header for first record

    cd_code 2
    cd_description
    cd_id 28
    cd_table L1
    id 5
    oper edit

    (cd_table and cd_id are hidden)

    I scroll back to the previous record and hit submit and get

    cd_code 1
    cd_description
    cd_id 28
    cd_table L1
    id 4
    oper edit

    The code, description and your id are all correct but the 2 hidden fields reflect what was in the first record, specifically cd_id which is the primary key.

    Doug

    in reply to: Hidden fields not posted during editGridRow #89855
    dpeterman
    Participant

    Tony,

    I pulled the code with firebug so it's not formatted very well. But, you'll see 4 fields with the 1st and 4th field marked as hidden. They do not sho up on the edit form.

    I have an additional bug (sorry to list it here but it may be related). The first record I delete recieves the “exParams” that I add. The second time I delete without refreshing the screen the first data is sent, even though the exParams have been updated with the correct values.

    I've been to Sophia a few times, nice place. Can't speak the language but enjoy the Shopska salads.

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

Stay connected with us in your favorite flavor!