Visual Builder

Get Involved. Join the Conversation.

Topic

    NG NG
    VBCS Charts - Custom graph data group is not refreshingAnswered
    Topic posted August 19, 2019 by NG NGBlue Ribbon: 750+ Points 
    15 Views, 4 Comments
    Title:
    VBCS Charts - Custom graph data group is not refreshing
    Summary:
    VBCS Charts - Custom graph data group is not refreshing
    Content:

    Hi,

    We have created graphData using javascript function referring https://blogs.oracle.com/vbcs/charts-in-oracle-visual-builder-data-structure-and-performance-tips-v2.

    We have search criteria, based on which we are displaying graphs.

    But the group value from previous search is not getting removed from graph layout when we provided new search.

    e.g. 1st search returned 1 value , 2nd search returned 3 values and when we again search with 1st criteria, graphData is getting populated correctly using javascript but graph is still displaying other 2 groups resulted from previous search but with no values.

    Please advise how can we refresh graph groups.

    Thanks

    Best Comment

    NG NG

    Thanks Shay graphData ADP is having correct data only.

    I added Fire DataProvider action after updating my ADP data and it worked!! 

    Many Thanks for your guidance!!

    Comment

     

    • Shay Shmeltzer

      What's your reset setting in the assign variable step?

      Should be resetting it to Empty:

       

    • NG NG

      Thanks but this is still not working. If my previous graph layout has 3 groups and new one has 1 group. Refreshed graphed still shows 3 groups - 1 new one and 2 from old one.

      I tried component method refresh function also after setting the ADP variables to blank array - still no success.

      Please advise how we can recreate the graph.

    • NG NG

      Thanks Shay graphData ADP is having correct data only.

      I added Fire DataProvider action after updating my ADP data and it worked!! 

      Many Thanks for your guidance!!