BobyIsProgress
Member
Hi Guys,
It has been while since my last question.
So my work of the day is this:
I have a browser who is directly connected to a table like a Customer table.
I let my user change a value on this table and I wanna applied the modification like this:
But I also want to improve my process in a more reliable way and efficiency.
So I was thinking to find the row with the recid like this:
What is the best solution? Or is there a better way to do it ?
Thanks in advance.
Best Regards
It has been while since my last question.
So my work of the day is this:
I have a browser who is directly connected to a table like a Customer table.
I let my user change a value on this table and I wanna applied the modification like this:
Code:
DEFINE BUFFER bCustomer FOR CUSTOMER.
FIND FIRST bCustomer WHERE bCustomer.uticod = CUSTOMER.uticod NO-LOCK NO-ERROR.
IF NOT AVAILABLE bCustomer THEN
RETURN.
FIND CURRENT bCustomer NO-ERROR.
bCustomer.value = new-value
RELEASE bCustomer.
But I also want to improve my process in a more reliable way and efficiency.
So I was thinking to find the row with the recid like this:
Code:
DEFINE BUFFER bCustomer FOR CUSTOMER.
FIND FIRST bCustomer WHERE RECID(Customer) = RECID(CUSTOMER) NO-LOCK NO-ERROR.
IF NOT AVAILABLE bCustomer THEN
RETURN.
FIND CURRENT bCustomer NO-ERROR.
bCustomer.value = new-value
RELEASE bCustomer.
What is the best solution? Or is there a better way to do it ?
Thanks in advance.
Best Regards