How to send a param to another page
Last updated
Last updated
The values are send in the URL with "&"; Example: www.igrp.cv/w?m=value&p_ip=2
All the submits actions like, submit modal, submit, submit ajax, sends the values in POST in body
In a table, you can define a param in the UI settings (see fig.) checking the is Key checkbox.
After checking the is Key, now when you press a context button it will concatenate this param to the URL (GET) or added to the body (POST)
Specific param - this.addQueryString("p_id", 12);
Load all params to send - this.loadQueryString();
Button -
or view.btn_gravar.addParameter("id", 20).addParameter("name", "yma");view.btn_button.setLink("save&p_id="+id);
Than must have redirect
or forward
with (,this.queryString())
String id = Core.getParam("p_id");
Integer id = Core.getParamInt("p_id");
redirect
is always a GET