35
Views
3
Comments
Searching a list(which is in web block) from the parent screen
Application Type
Reactive

Hi All,


I am trying to search a list say country list by country name, the list is inside a web block. I am passing the input parameter to the block from parent screen to search the list and written the necessary logic. 


The problem is when I paginate to lets say page number 2 and try to search for a country displayed in other page lets say page 1 , then it displays no records. But whereas if we do this logic in a common screen without block it works well.


Can anyone tell me how I can resolve this with block.


Thanks

Shivangi


SampleApp.oml
2023-03-24 10-43-07
Adeeb Alam

Hii shivangi,

Please share the oml and add screen shots if possible.

Thanks,

Adeeb Alam

2019-03-12 12-28-20
Shivangi Thakur

Hi @Adeeb Alam ,


Added the sample oml.


Thanks

Shivangi

2023-03-24 10-43-07
Adeeb Alam

Hii Shivangi,

On OnParameterChange you just need to change the startIndex value to 0.

Because we you are on another page the start index changes and only reflect the record which will start from that index.

I am sharing the oml please have a look and let me know if it works.

Regards,

Adeeb Alam

SampleApp (1).oml
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.