cancel
Showing results for 
Search instead for 
Did you mean: 

disable mode

Former Member
0 Kudos

Hai ,

i faceing the problem like .

the node haveing the attributes in view context.

i apply templetes table and forms using assigning diff ui element like input field ,ddbkey etc....

but when deploying the application. i seen result as every ui element is in textview only and disable mode.

i checked data binding and everything the node having properties like cordinality - 0-n; selection - 1-n.

is there any reason for the ui elements are in textview

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Their are two ways to resolve your issue.

1) Create an element and add this to the node

2) Change the cardinality of the node from 0..n to 1..n so that atleast one element exists and the input fields are enabled.

Regards

Ayyapparaj

Answers (7)

Answers (7)

former_member189631
Active Contributor
0 Kudos

Hi,

  • Check the context is bound with value property of your UI element.

  • You can set the context value as "" in the init method.

Ram

Former Member
0 Kudos

I believe this is not a problem related to cardinality and selection

as Nikil bos said, U need to cretae Table elements to make a row enable ..

if u create table elememt once, u can see 1 row active..twice , then 2 row. like that..

try doing in that way and let me know if u face any more problem..

AM

Former Member
0 Kudos

When u bind a value attribute under a value node which has a cardinality of 0-n or 0-1 to the input field or any other ui element. u need to write the following code in the wd init method.

iprivate<<ViewName>>.I<<Node>> Element nodeEl = wdcontext.create<<Node>>Element;

wdContext.node<ValueNode>.addElement(nodeEl);

here in the above code we first create a node element and bind it to the node .

Or just making changes in the the value node cardinality 1-1 should help u out i had a similar problm earlier and just changing the cardinality solved my problm.

visit the following link to read more on cardinality .

http://help.sap.com/saphelp_nw04/helpdata/en/7a/787e40417c6d1de10000000a1550b0/frameset.htm

regards,

nikhil.

Edited by: Nikhil Tapkir on Aug 18, 2008 7:58 AM

Former Member
0 Kudos

Hi Eswar,

May be you have to check your ui elements again while applying the templates whether you have selected them properly or not.

Also the selection should be 0...n.and node cardiniality shd be 1..n

Moreover if these things are not happening ,then pls can u elaborate the problem.

Regards,

Anupama

Edited by: Anupama Bindal on Aug 18, 2008 7:54 AM

nikhil_bose
Active Contributor
0 Kudos

as you can see, the cardinality is 0..n; so there won't be any element at runtime.

you can either make the cardinality to 1..n

or use code to create and add node elements in wdDoInit()


IPrivate<CompName>.I<Node>Element element = wdContext.create<Node>Element();
wdContext.node<Node>().addElement( element);

nikhil

Former Member
0 Kudos

hi

you are getting the problem may be because of cardinality.

change the cardinality to 1..n.

if you set the cardinality 0..1,you are giving a chance to the node to contain zero elements at runtime.

if you set the cardinality to 1..n.means at runtime it must contains atleast one element.

Regards

sowmya.

Former Member
0 Kudos

Hi Eswar,

Change the Cardinality of the Node to 1:1 or 1:n.

Whenever ever you create a node you should have the node cardinality as 1: as there should be atleast 1 value existing for the node.

Regards,

Sharma.

Former Member
0 Kudos

i changed the cardinality of node as 1:n.

then first row of the table will show the ui elements .

the remaining of rows are not affected.

means first row of table has showing input filed .

then i want to enter the another value input filed.

and multi selection also disable.i given selection as 1:n.

Former Member
0 Kudos

Hi Eswar,

Have changed the cardinality of the Component Controller Context node, as you might have mapped the Component Controller and the View Controller.

If you are using a table and need to have mulitple selection, you have a property called multiple select, enable this.

If not Change it Once and check it again, I hope this will solve your Problem.