cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Require field

Former Member
0 Kudos

Hi all,

I am trying to bind one attribute to inputfield's state property. That might be assign dynamic at run time. What type to be assigned for the particular attribute?.

Anyone has an idea?

Thanks

Peter

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Set attribute type to type State, which is found in local dictionary-->"uielementdefinitions" library.

<b>Valuable answer=points</b>

Kind Regards,

S.Saravanan.

Former Member
0 Kudos

Hi All,

Thanks for all reply. Now my problem solved.

By

Peter.

Answers (3)

Answers (3)

Former Member
0 Kudos

hi peter,

create one context attribute with name statestatus and select the type as

com.sap.ide.webdynpro.uielementdefinitions.State

and bind that statestatus attribute to ur inputfield state property.

now in ur implemention of code....

when ever u want set the value as

()

wdContext.currentContextElement().setInputStatus( WDState.REQUIRED)

hope this clear's u

sunil

Former Member
0 Kudos

Your code does not correspond to the (strange) attribute name "statestatus".

Armin

Former Member
0 Kudos

Hi

Use this

Instead of using attribute

<element>.setState(WDState.REQUIRED);

Regards

Saravanan K

Former Member
0 Kudos

the correct type is WDState.

Regards

Sebastian

Former Member
0 Kudos

In the context at designtime, choose simple type State from package com.sap.ide.webdynpro.uielementdefinitions (as already correctly stated).

At runtime, to set the context attribute value, use type WDState.

Armin