This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Task: add the ability for several requests to delegate the approval

The ability to select applications in the VI_ITShop_Approvals module has been added, the Selected field has been added to the PWOToDecide collection and mapped with the PersonWantsOrg collection.
A button has been added and the delegation feature needs to be added to it, the VI_Action_InsteadOfApprover component is used.
However, there is no understanding how to make it clear that there are several rows selected, an error: There is no cursor defined on the collection PWOToDecide.

Tried through Call Action-> For each Row, where selected = true. But, unfortunately, in this implementation, for each selected request, a pop-up with its own reasons for delegating is proposed. And we need a functional that would allow for all selected requests to assign one employee for delegation and indicate one common cause.

Thanks for help

  • At the moment, I copied all the code from the VI_Action_InsteadOfApprover component into the VI_ITShop_Approvals module and made the possibility of mass delegation. However, I encountered the following problem. In the original, the delegation works on one record and after selecting the recipient of the application and the reason the code was run:
    // invalidate tablestore -> reload data
    DataContext.Action_Current.Row.Table.TableStore.Invalidate ();
    Which, as I understand it, cleared the PWOToDecide collection from the modified bids.
    In my case, this code does not even compile:
    VI_ITShop_Approvals.cs(2791,13): 'VI.WebRuntime.CCC_TNPORTAL.VI_ITShop_Approvals' does not contain a definition for 'Action_Current' and no extension method 'Action_Current' accepting a first argument of type 'VI.WebRuntime.CCC_TNPORTAL.VI_ITShop_Approvals' could be found (are you missing a using directive or an assembly reference?) (CS1061) VI_ITShop_ApprovalsCCC_TNPORTAL CSharp

    If this line of code is deleted, then everything works out, but the collection is not cleared and old requests displating, sometimes without the filled-in fields of AccProduct or empty DetailsPane. It looks like this:

    After reloading the page, everything that was delegated from the page is deleted successfully, can someone explain how this cleanup code works and suggest a solution in my case? thanks in advance