Skip to main content
Solved

How to get the first old value of field ?

  • January 20, 2023
  • 1 reply
  • 147 views

Hi,

I want to get the old value of the field when selecting the order to modify,

For example :

I have 60 in the field, I modified the field 3 times I put 45, 50 and 30, I just want to keep the first value 60 in another field

when I enter with the purpose of modifying an input field multiple times to change, I want to keep the first value.

I tried with "SOOrder_RowUpdated" but in each modification the field value takes the previous value.

 

Best answer by MoulaliShaik79

Hi @snoopez206,

To achieve this, you need to do a couple of things:

Step 1: Make sure the other field is empty before updating the required field.

Step 2: Write FieldUpdated Event Handler to the required field and update the other field with the first value (another field = e.OldValue)

Step 3: Before updating the other field, you need to check whether the other field is empty or not.

            If the other field is empty, then only you need to update it with the first value. Else don’t update it.

 

I hope it may help you!

 

Moulali Shaik.

 

View original
Did this topic help you find an answer to your question?

1 reply

Forum|alt.badge.img+1
  • Semi-Pro II
  • 61 replies
  • Answer
  • January 20, 2023

Hi @snoopez206,

To achieve this, you need to do a couple of things:

Step 1: Make sure the other field is empty before updating the required field.

Step 2: Write FieldUpdated Event Handler to the required field and update the other field with the first value (another field = e.OldValue)

Step 3: Before updating the other field, you need to check whether the other field is empty or not.

            If the other field is empty, then only you need to update it with the first value. Else don’t update it.

 

I hope it may help you!

 

Moulali Shaik.

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings