jQWidgets Forums

Forum Replies Created

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • in reply to: REST JSON List Parameters REST JSON List Parameters #56203

    userbob
    Participant

    I finally got this working by overriding the underlying ajax component to parse params traditionally

    
            $.ajaxSetup({
               traditional:true
            });
    

    This puts out the json on the params as I expected and as RESTEasy required

    loggedInAs=5055037200003&loggedInAs=5015715444440&loggedInAs=5016237030227

    The data call was like this where loggedInAs

    data = {'loggedInAs' : ['somevalue', 'somevalue2']}

    I hope this helps someone as I spent a couple of days on this very very minor issue 🙁

    in reply to: REST JSON List Parameters REST JSON List Parameters #56166

    userbob
    Participant

    I have tried every combination now, moving from GET to POST and trying to get a list to show up on the server

    If I use Postman then this is perfectly acceptable

    
    ["5016237030227","5016237030227"]
    

    However I cannot seem to get the following to work

    
    data = ["5016237030227", "5012648000002"]; 
    

    which results in a payload (for POST) of

    0=5016237030227&1=5012648000002

    Or

    data = {loggedInAs:["5016237030227", "5012648000002"]}

    which results in a payload of

    loggedInAs%5B%5D=5016237030227&loggedInAs%5B%5D=5012648000002

    in other words it puts the [] after each entry?

    Thanks for your assistance but this is driving me insane, I can only assume it is all due to various uses of traditional and the $.param functions

    in reply to: REST JSON List Parameters REST JSON List Parameters #56145

    userbob
    Participant

    Hi thanks for the reply so for me to receive a list on the server side would I have to do this?

    data : {
                       'receiverCode' : ['a','b'],
                       'senderCode' : ['1','2']
                }

    userbob
    Participant

    Hi Peter,

    Sure thanks,

    Richard


    userbob
    Participant

    Hi Peter,

    Thanks for the prompt response. Do you think this functionality will be added at some point? Other grids I have seen have change events which in the case of multiple selections only trigger once.

    At the moment I am looking at having to put a wait event in place to make sure I don’t get any more row selections triggering….. not ideal

    Regards,

    Richrd

    in reply to: Not automatically data binding Not automatically data binding #47673

    userbob
    Participant

    Hi Peter,

    Yes I appreciate that it was purely from a style point of view that I wanted to do this. As I wanted to do all my “prep” work up front and then set values on the source later and call data bind. If it isn’t possible though that’s fine I will just have to work around it.

    Regards,

    Richard

    in reply to: Get selected row IDs Get selected row IDs #46576

    userbob
    Participant

    Thanks for the response, I will do as you say but maybe worth adding this shortcut for a future release?

    Regards,

    Richard

    in reply to: Any chart using IE 11 Windows 7 Any chart using IE 11 Windows 7 #30818

    userbob
    Participant

    Hi,

    I appreciate that it was just a heads up, my IE was supposed to be up to date… sigh

    Regards,

    Richard

    in reply to: Password Input Password Input #30816

    userbob
    Participant

    Hi,

    That is what I thought, however can’t the show password icon be positioned relative to the edit control rather than floating above? If it was it would move when the edit box changes position?

    Not a high priority issue however and I will disable in our product for the moment.

    Regards,

    Richard

    in reply to: 3.0.3 Grid Load/Save State 3.0.3 Grid Load/Save State #30763

    userbob
    Participant

    thanks, I will wait on 3.0.4 for a fix (hopefully)

Viewing 10 posts - 1 through 10 (of 10 total)