I am trying to pass the parameter dynamically to load the data from database for certain period or for specific project id. I use Project store's load method for that following are screenshot for the same.
load issue.PNG (14.99 KiB) Viewed 3484 times
so there are 2 questions:
1) Here the I am not passing anything in paramname 'q' still it pass some data to the api. so in which scenario I could use this paramname?
2) I want to pass "id" as a dynamic parameter mention in "params" parameter. so would it be possible?
I am following this documentation to generate my scenario
I've tried this solution but seems it did not work or I used wrongly.
Here what I did.
1) I have passed parameter dynamically when define "Panel"
2) After that assigned value to the variable
3) passed the assign value to ganttconfig so I could pass it in query from front-end to back-end
I don't see you set a valid value to your actionId variable in your last screenshot, only initial null. I don't see you used ganttConfig.actionId that you set above.
Try to use the next code in your beforeSend method:
params.id = 'test';
If it'll be passed to the server, when all is ok with the Gantt and you need to debug your application.
I understand your problem, but unfortunately we do support only our source code and not user apps.
Try to debug your application, check if your variable is exists at the moment of set params. Check scopes you used to define your variable. Very possible your variable is available in gantt.actionId as far as I can see in your code, but I cannot be sure 100%.