When embedding the URL accessing Wagby's search screen, such as in the mail, you can also specify search conditions as parameters at the same time.
Wagby's search screen has the following naming convention.
The notation of "Model ID" part follows Camel notation.This is capitalized at the beginning.Also, if an underscore "_" is included in the model ID, it is removed and the next letter is capitalized.For example, if the model ID is customer_order, it is CustomerOrder.
When opening the search screen of model customer, it becomes the following URL.
After sending the above URL in the mail sentence, the recipient can open the screen directly by clicking the link.(To be precise, the logon screen opens first.After authentication, the screen specified above opens directly instead of the menu screen.)
Items for which search conditions are enabled in the model definition can be specified with URL parameters.
The notation with "model ID _ cp" and the suffix "_ cp" here means that the search condition has been stored.
Also, $ 002f means "/" character.This is a delimiter between the model ID and the item ID.
If you specify the value 1000 for the search condition customerid whose model ID is customer, the following notation is used.
If you want to pass Japanese (including non-English characters) to the parameter, pass the UTF-8 encoded character. For example, if customername searches for "Yamada", it looks like this:
The notation encoded in UTF - 8 can be created using various services published on the Internet.Search engine "url encoding" should be searched.
You can confirm the parameter name with the automatically generated JSP file, copy and paste it.
There is a file called "condition +" model ID "+ Cp.jsp" in wagbyapp/webapps/project name/model ID/folder.If you open it with a text editor, you will find the following code.
<tags:input_text name="customer_cp$002fcustomername" ... />
This name = "..." part becomes the parameter name.
For numeric or date type items, you can specify start and end.They are as follows.
Item ID with suffix "1jshparam" will be started.The one given "2jshparam" will be terminated.
For model reference items, pass the ID part instead of the content part.The naming convention for parameter names is as follows.
This is handled internally as the notation "model ID_cp/item ID /@id".
For example, when searching for a customer whose category (ID part) is "1", the parameters are as follows.
Multiple parameters are delimited by "&".In this case, it is searched internally as "AND" (AND condition).