[WebApp] WebApp Public

Step 1: Access and login to https://rta.rtworkspace.com/ssModulePublicView/admin/

Step 2: Click New View

Step 3: Choose information module you want to make public

Step 4: Click Generate then you go back to the screen in step 1 and get the webapp url public in Get Url

image

Add Param for URL

  • Click icon in tab Public View's URL

    image

Click Add new params to set params for URL

image

Supported parameters: query_params, dm_host, dm_name in object

{
     "query_params": "",
     "dm_host": ""
     "dm_name": ""
     ... 
}
  • The language section can include the param lang:vi_VN|en_US

image

Note : working params when select Object in step 2 screen

After setting up, press save and get the link in tab action

Data binding URL Parameter

  • In PublicView, the keyword ##current.args.[key]## can be inserted, then web will take the values(key) from url param and replace them

    Example:

  • With link publicview:

    https://testcrm.rtworkspace.com//webapp/default/dmView?id=anti-conterfeiting-product&token=abb90d40085cc8472783f2c2d20d9597&query_params={"post_body":"{\"size\":10000,\"query\":{\"bool\":{\"must\":[{\"term\":{\"qr_name_id.raw\":{\"value\":\"CODE20221222094240727\"}}},{\"bool\":{\"should\":[{\"term\":{\"type_group_id.keyword\":{\"value\":\"CODE20221222094240727\"}}},{\"term\":{\"type_group_id.keyword\":{\"value\":\"https://v1s.cc/amo91\"}}}]}}]}}}"}&dm_host=https://es.rta.vn&qr=v1s.cc/amo91&pst=1

  • Param Url

    {
      "id": "anti-conterfeiting-product",
      "token": "abb90d40085cc8472783f2c2d20d9597",
      "query_params": "{\"post_body\":\"{\\\"size\\\":10000,\\\"query\\\":{\\\"bool\\\":{\\\"must\\\":[{\\\"term\\\":{\\\"qr_name_id.raw\\\":{\\\"value\\\":\\\"CODE20221222094240727\\\"}}},{\\\"bool\\\":{\\\"should\\\":[{\\\"term\\\":{\\\"type_group_id.keyword\\\":{\\\"value\\\":\\\"CODE20221222094240727\\\"}}},{\\\"term\\\":{\\\"type_group_id.keyword\\\":{\\\"value\\\":\\\"https://v1s.cc/amo91\\\"}}}]}}]}}}\"}",
      "dm_host": "https://es.rta.vn",
      "qr": "v1s.cc/amo91",
      "pst": "1",
      ...
     }
    

    ##current.args.qr## => v1s.cc/amo91

Is Public works as follows