-
Notifications
You must be signed in to change notification settings - Fork 727
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Latest w2grid pass 'cmd' to remote data source, php, problem #1837
Comments
Looks like a bug, especially since This change has been introduced during this PR: 5f7e598#diff-8b4d4a6961edfba8a65c282e9645abb3L2376 Seems that Maybe @mrg2001 can explain the reason behind this change. |
Hi, Thanks for the answer ... |
Guys, cmd parameter is no longer being passed to the server because it is redundant. In the code mentioned by @mpf82, it looks like it is a variable in that function, not something that is passed to the server. The reason it is removed is because now you can specify different urls for different commands, for example for get data you can set a url
However, if url is the same and defined as a string, you still on the server side can figure out the function by method it sends. It will sent GET, PUT, DELETE methods as defined by dataType. See http://w2ui.com/web/docs/1.5/w2utils.settings |
In addition, you can also use postData that are additional params to be send to the server. Also you can overwrite methods for all grids and introduce your own processing, see http://w2ui.com/web/docs/1.5/utils |
Thanks, Vitali |
there is an event onRequest, you can add/modify params that will be sent there :) |
Thanks, Vitali,
2019-06-22, št, 19:51 Vitali Malinouski <notifications@github.com> rašė:
… there is an event onSubmit, you can add/modify params that will be sent
there :)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1837?email_source=notifications&email_token=AC4XN3HHQNOTPNL7DDANBG3P3ZKBPA5CNFSM4HXXR4J2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYKNHBI#issuecomment-504681349>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AC4XN3GUOOZCYCTVSOUKFJ3P3ZKBPANCNFSM4HXXR4JQ>
.
--
With best regards, Rimantas
|
@vitmalina I don't think removing We cannot even add the command to postData in the before phase, because the event trigger a) only is executed for command Please add the |
*I'm submitting a ...
[x] bug report
What is the current behavior?
Not working as expected.
What is the expected behavior?
Older source of w2grid:
As you can see, "params[ 'cmd' ]" exist.
Now in the latest w2grid :
I can't to find in which place parameter of "cmd" will be send to php file ... :(
Php :
It return an error, that not exist "cmd" ...
How to work with the latest w2ui and remote data source through php ? Or it's bug here ?
Thanks in advance ...
The text was updated successfully, but these errors were encountered: