Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
prmNames bug when set to null ?
03/04/2013
10:51
Avatar
aNt1X
Member
Members
Forum Posts: 3
Member Since:
03/04/2013
sp_UserOfflineSmall Offline

Hi,

folllowing the documentatinon at /jqgridwiki/doku.php?id=wiki:options;..038;hellip;..ki:options

i'm setting prmNames to the following:

prmNames: { id: '_id', oper: null }

now, with fiddler, i see that in my raw request i have:

{ … "null":"edit","_id":"052eb5f5-bc9b-e211-a143-3a4d1aec23f3″ … }

you can see that "_id" has been applied correctly, but i was expecting that setting "oper" to null it would omit the parameter; instead, it is setting the string "null" instead of the "oper" string …

but, according to the documentation, "When some parameter is set to null, it will be not sent to the server. For example if we set 

prmNames: {nd:null}

 the 

nd

 parameter will not be sent to the server."

Please note that this append to the "_id" parameter; i would like to set it to null, because i already have my "Id" parameter inside my fields, and i would like to omit the default one.

And also, could these parameters be different from action to action ?

Thank you for your work!

Best regards

03/04/2013
11:58
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

Some parameters can not be omited. Since they are very basic for us we cannot ommit them.

You always can set some name which you will never use.

The parameter that are checked for nuls are:

search, nd , rows , page, sort , order ,rowTotal , totalrows

Regards

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

03/04/2013
12:50
Avatar
aNt1X
Member
Members
Forum Posts: 3
Member Since:
03/04/2013
sp_UserOfflineSmall Offline

Ok, now i understand.

I would suggest you to update the documentation and specify what parameters can be set to null.

Thank you!

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
36 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information