Variable not getting refreshed inside a!refreshVariable

I am trying this piece of code but it is just executing while loading the interface and it is never getting refreshed after that.

local!refresh: a!refreshVariable(
value: rule!NGS_queryMerGenerationData(
executeWhen: true,
pagingInfo: a!pagingInfo(startIndex: 1, batchSize: - 1)
) ,
refreshInterval: 0.5
)

Can you please help regarding this?

  Discussion posts and replies are publicly visible

Parents Reply
  • a!localVariables(
    local!fetchTotalCount: if(
    rule!NGS_isBlank(ri!fetchTotalCount),
    false,
    ri!fetchTotalCount
    ),
    local!query: if(
    or(
    isnull(ri!dataStoreEntity),
    not(or(ri!executeWhen)),
    isnull(ri!pagingInfo)
    ),
    null,
    a!queryEntity(
    entity: ri!dataStoreEntity,
    query: a!query(
    selection: if(
    rule!NGS_isBlank(ri!fieldList),
    null,
    a!querySelection(
    columns: a!forEach(
    items: ri!fieldList,
    expression: a!queryColumn(field: fv!item)
    )
    )
    ),
    aggregation: ri!queryAggregation,
    logicalExpression: ri!queryLogicalExpression,
    filter: ri!queryFilter,
    pagingInfo: ri!pagingInfo
    ),
    fetchTotalCount: local!fetchTotalCount
    )
    ),
    if(
    rule!NGS_isBlank(ri!returnType),
    local!query,
    cast(typeof(ri!returnType), local!query.data)
    )
    )

Children