Visual Builder

Get Involved. Join the Conversation.

Topic

    Shail Dave
    Search Refresh & Multiple Delete Issue with Array
    Topic posted June 2, 2019 by Shail Dave, tagged Action Flows, Composite Component, Custom Code, JET, Layout, Process, Services, Web 
    74 Views, 3 Comments
    Title:
    Search Refresh & Multiple Delete Issue with Array
    Summary:
    I am unable to refresh the search array results on search button re-click & Multiple delete on array is not working
    Content:

    Hi Everyone,

    I have made an editable page out of an Array for Create, Update & Delete operation. I am able to perform the update and create in the search array. But the main problem is to delete and search operation.

    Steps I have performed:

    1.  Get the data from REST and insert into my Array

    2. Display the Array results on my editable search screen

    Problems:

    1. When I search for the first time I get the correct result, but when I search again the results are appending to my Array [Problem 1]

    2. When I do multiple delete on the table I get all the selected records but after the first Fire Data Provider event, the for loop behaves oddly. If I select 4 rows it deletes only 3 rows, similarly when I delete 2 it deletes 1 (somehow the for loop is messed up after Fire Data Provider Event) [Problem]

    Request you to reach out with any approaches based on your experience or knowledge to solve this type of scenario.

    Thanks in advance.

    Version:
    19.1.3
    Image:
    Code Snippet:
    Video:
    Action.mp4 (385KB)

    Comment