Hi all,
I have a amazing problem, i put by addon in one edittext one data, for example 123. In one PC appears 123000000.Only in ONE. This happens in conversion to double, i must replace "," ,"." to put in edittext (quantity type). But the thing is that do well in all pc-s but not in one. I think in DIAPI, i reinstall this but nothing.I reinstall sap client and nothing.
public static void poner_total_kilos_en_formusuario(SAPbouiCOM.Form oFormUsuario, double total_kg, string itemid_donde_poner)
{
SAPbouiCOM.Item oItem;
SAPbouiCOM.EditText oEditText;
oItem = oFormUsuario.Items.Item(itemid_donde_poner);
oEditText = (SAPbouiCOM.EditText)oItem.Specific;
try
{
oEditText.Value = total_kg.ToString().Replace(",", ".");//because is quantity type.
}
catch
{
ConsSAP.SBO_Application.MessageBox("El campo " + itemid_donde_poner + " o no esta visible o no es editable y no es posible escribir en el.", 1, "Aceptar", "", "");
}
oFormUsuario.Update();
}
Thank you all again.
Regards.