How to drill down to an entity from the STP @PRIMAVERA module

2

I am implementing a drilldown for the PRIMAVERA ERP 9 STP process table, but it is giving error.

My code.

Public Sub ExecutaEventoDrillDown_Processos(ByVal IdProcesso As String)
Dim objParametros As StdBEValoresStr
Dim objCampoDrillDown As StdBESqlCampoDrillDown

objCampoDrillDown = New StdBESqlCampoDrillDown

With objCampoDrillDown
    .Tipo = EnumTipoDrillDownListas.tddlEventoAplicacao
    .ModuloNotificado = "STP"
    .Evento = "evtDD_STP_Processos"
End With

objParametros = New StdBEValoresStr

With objParametros
    .InsereNovo("ID", IdProcesso)
End With

PSO.DrillDownLista(objCampoDrillDown, objParametros)

objCampoDrillDown = Nothing
objParametros = Nothing
End Sub 
    
asked by anonymous 20.02.2018 / 17:56

1 answer

2

Hello.

The problem is with the key you are passing to the module. Where is:

With objParametros
    .InsereNovo("ID", IdProcesso)
End With

should be:

With objParametros
   .InsereNovo "PROCESSO", "PRC/000/2018/1"
End With
    
20.02.2018 / 18:01