cannot set property of an element by api call.

Forum to discuss the new web client version of Servoy.

cannot set property of an element by api call.

Postby ashutoslenka426 » Fri Jul 14, 2017 10:07 am

Hi All ,

My api function (getElementById) is absolutely correct . But this is not setting the property :

Code: Select all
elements.XXXXXl_1.getElementById('btnNew').enabled = false;


But this is working fine :

Code: Select all
elements.XXXXXXXX_2.menuItems[0].enabled = false;


Please provide some suggestions . How can we set the property using the api call ?
AL
ashutoslenka426
 
Posts: 295
Joined: Thu Jan 26, 2012 3:38 pm

Re: cannot set property of an element by api call.

Postby ashutoslenka426 » Fri Jul 14, 2017 12:38 pm

Please give some suggestions
AL
ashutoslenka426
 
Posts: 295
Joined: Thu Jan 26, 2012 3:38 pm

Re: cannot set property of an element by api call.

Postby Andrei Costescu » Fri Jul 14, 2017 1:09 pm

Andrei Costescu
Servoy
Andrei Costescu
 
Posts: 1018
Joined: Tue Jun 26, 2007 3:14 pm

Re: cannot set property of an element by api call.

Postby ashutoslenka426 » Fri Jul 14, 2017 1:51 pm

Thanks for your reply .

In my case "enabled" is not the direct model property . menuItems is the model property . and enabled is one of the property of the menuitem . It is not working.

Please provide some suggestions.
AL
ashutoslenka426
 
Posts: 295
Joined: Thu Jan 26, 2012 3:38 pm


Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 8 guests