Doubt on listing

if i map a data on http request like bh.local.result then how i list that in pages

Hi @navaneethck_10,

If I understand your question correctly.
You want to display data mapped from an http request, mapped to bh.local.result right ??

On the UI pages you can only access variable assigned to page. not bh.
So you can either assign bh.local.result to page.local.result or map it right straight to page.local.result so you can access it on the UI pages

1 Like

Hello @navaneethck_10 ,You can use page variables for that. I’ll attach the page variable document here.

while i mapping result ,only three options are showing in http request,bh. bh.input bh.local ,there is no page option .what will i do?

Hello @navaneethck_10 ,
Next, add a Page Variable node and map bh.local.result to a page variable. You can then use this variable (e.g., page.myResult) in your pages to display the list.

1 Like

@navaneethck_10 ,

It seems like you are on the api/backend application.
Since it is an api application only bh. will show, only in the UI application on the flows, page will show.

1 Like

i wanna know how i will add a page variable?

Hi @navaneethck_10 ,

you cannot map page variable in a Http request node. First map the result in http request node to bh.result variable and then connect a page variable node next to it and do the following.

now you can use page.page_result in your page to render this result.

OR

after your HTTP request node just connect a Script node and type this code:

page.page_result = bh.result;

now your result will be mapped to this page variable.

2 Likes