updated react servs form to fill available intrusive maintenance flows based on data instead of a form list

This commit is contained in:
Infineon\StieberD
2025-04-09 16:31:54 -07:00
parent 741a8450e3
commit 32df3e6816
3 changed files with 30 additions and 18 deletions

View File

@ -879,7 +879,29 @@ Service GetFlowChecklistIds(NicaOrderFlowIds, NicaOrderFlowType=ORDER_TYPES, Rea
end service
Service GetAvailableFlowIds(NicaOrderType=ORDER_TYPES)
If NicaOrderType NE '' then
ChecklistIds = ''
Extract_SI_Keys('NICA_CHECKLISTS', 'NICA_ORDER_FLOW_TYPE', NicaOrderType, ChecklistIds)
If ChecklistIds NE '' then
FlowIds = Xlate('NICA_CHECKLISTS', ChecklistIds, 'NICA_ORDER_FLOW_IDS', 'X')
If FlowIds NE '' then
FlowIds = SRP_Array('Clean', FlowIds, 'TrimAndMakeUnique', @VM)
FlowIds = SRP_Array('SortSimpleList', FlowIds, 'AscendingText', @VM)
Response = FlowIds
end
end
end else
ErrorMsg = 'Error in ':Service:' service. Null NicaOrderType passed in.'
Error_Services('Add', ErrorMsg)
end
end service
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Internal GoSubs
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////