cancel
Showing results for 
Search instead for 
Did you mean: 

Input restriction to OVS values

former_member182048
Active Contributor
0 Kudos

Hi there,

I have an input field with an OVS attached.

How do i restrict input to the value selector, much the same as the other value selectors?

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

My workaround for this is the following.

create a transparent container. inside this place two inputfields. map both to the context attribute you are using. then make the leftmost field disabled and set the width of the right most field to 0px.

Let me know if you need more info.

Lee

former_member182048
Active Contributor
0 Kudos

Maybe i should rephrase this

I have an input field, this field is bound by the value from the ovs (RFC)

I want to stop users from being able to enter a manual entry into this field and for them to use the value selector only.

The only readily available event is after selection. I need to disable manual input. The reason for this is that i wish to forgo the expense of a roundtrip to the SAP system to validate user input and get description.

Former Member
0 Kudos

Jasper,

Currently you have only 2 options:

1. Read-only attribute / input field with OVS disabled

2. Read-write access for attribute, enabled OVS as well as possibility for invalid user input.

Nothing in between

If you may use SVS & combo box (as suggested above) then this is the only option.

VS

Former Member
0 Kudos

Jasper,

1. Wrap access to your original attribute with calculated attribute

2. Bind OVS to calculated attribute.

3. In getter of calculate attribute simply return original value.

4. In setter of calculate attribute validates value entered yourself and assign it if valid to original attribute, otherwise throw WDNonFatalRuntimeException.

Valery Silaev

EPAM Systems

http://www.NetWeaverTeam.com

Former Member
0 Kudos

Hi,

the local dictionary data type that you are using as the type of this input field, make it an enumeration and specify the values you want. The OVS will then display a dropdown instead of a textbox.

Regards,

Satyajit.