Hello
I am having an issue with one of my scripts which was working well before.
$btn.click(async function () {
PLPN = ListControl.ListView.GetValueByColumnName("PLPN");
for(let i = 0; i < PLPN.length; i++)
{
await _this.SelSupplyChain(CONO,PLPN[i])
if(_BLCD === '1')
{
_this.controller.ShowMessage("Lancement bloqué pour la proposition " + PLPN[i] + ": Blocage Client " + _BLCD);
}
else{
if(_OBLC === '1' || _OBLC === '2' || _OBLC === '3'|| _OBLC === '4')
{
_this.controller.ShowMessage("Lancement bloqué pour la proposition " + PLPN[i] + ": Limite de crédit " + _OBLC + " dépassée");
}
else if (_OBLC === '6')
{
_this.controller.ShowMessage("Lancement bloqué pour la proposition " + PLPN[i] + ": Limite de crédit ponctuelle");
}
else if (_OBLC === '5')
{
_this.controller.ShowMessage("Lancement bloqué pour la proposition " + PLPN[i] + ": Blocage Lettre de crédit");
}
else if (_OBLC === '7' || _OBLC === '8')
{
_this.controller.ShowMessage("Lancement bloqué pour la proposition " + PLPN[i] + ": Commande bloquée manuellement ");
}
else
{
_this.controller.ListOption("11");
}
}
}
});
};
I have selected 2 PLPN with OBLC = 3. In my network I can see that the API has been run 2 times correctly for both PLPN but only the message of my first PLPN selection is being displayed unlike before when it was displaying the message for my 1st selection followed by the message for my 2nd selection.
Anyone faced this issue before.
Thank you for your help
Kind Regards