on 2023 Oct 16 11:01 AM
Hello everyone,
I am trying to show a message everytime a cell from a quote table is modified. so a script has been add in the quote table
the script check if the value of a cell is less than the value from another cell. if so show a message.
cell = EventArgs.Cells[0]
col_celda = cell.ColumnName
valor_celda = cell.Row.GetColumnValue(col_celda)
col_celda_inter = str(col_celda) + "_INTER"
valor_celda_inter = cell.Row.GetColumnValue(col_celda_inter)
if float(valor_celda)< float(valor_celda_inter):
Quote.Messages.Add("El precio de la celda {0} no puede ser inferior a la celda {1}".format(col_celda,col_celda_inter))
cell.Row.SetColumnValue(col_celda, valor_celda_inter)
Quote.Save()
The problem is that the message only show up when F5 is press.
Does anyone know how to refresh the page with a python command?
Thanks in advance,
José Verdú
Request clarification before answering.
Hi Jose,
I don't think you can. I usually customize the responsive template to trigger a refresh from there.
Thanks,
Patrick
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
yes, its a quote 1.0
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
9 | |
3 | |
3 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.