cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Quote.Messages.Add

pepeverdu
Explorer
0 Kudos
423

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ú

Accepted Solutions (0)

Answers (2)

Answers (2)

patrick_latour3
Explorer
0 Kudos

Hi Jose,

I don't think you can. I usually customize the responsive template to trigger a refresh from there.

Thanks,

Patrick

pepeverdu
Explorer
0 Kudos

yes, its a quote 1.0