cancel
Showing results for 
Search instead for 
Did you mean: 

Table having input fields

Former Member
0 Kudos

I have designed a table having 3 input fields and a output field for Total.

If i enter a value in 1st & 2nd i/p fields and put a curspr on 3rd field, the total should get calculated. In short we can say as summing up the input fields in a row.

How ?

Accepted Solutions (0)

Answers (2)

Answers (2)

alejandro_bindi
Active Contributor
0 Kudos

Putting the cursor on another input generates no action, hence there's no roundtrip, hence you cannot make any calculations.

You must trigger some action -e.g. press enter, press a button, change selection - and in the event handler for that action you would read the context to take the values from the first inputfields and calculate the value that should be on the third, then update the context.

You can also use a TimedTrigger UI element to trigger a roundtrip automatically every X minutes.

There are several ways to read and write to the context - for example using methods GET_STATIC_ATTRIBUTES and SET_STATIC_ATTRIBUTES of IF_WD_CONTEXT_NODE. You can also use the wizard for that.

Former Member
0 Kudos

Hi,

Any updates ?