Page 1 of 1

Lookup not working in NG Client

PostPosted: Fri Mar 31, 2017 4:06 pm
by rafig
Hi,
I am creating my first NG only solution, so it might be me doing something wrong, but I am having a problem with lookups.
I have placed a bootstrap tab panel on a form and have a tab with related data from a child table displayed in a list view. The list view form is a normal form (i.e. not 'responsive')
On that form I have a bunch of fields, but the first one is a combobox to display a value list from a related table. It is returning the (UU)ID and displaying a couple of values.
Some of the fields in the form are set to lookup values from that related table based on the value list item chosen.
This is not working.
When I add an 'onDataChange' method to it to display in console the ID & related items, they display correctly.
If I also add in that method 'controller.relookup();' it correctly loads the other fields with their lookup values.
I tried with both the normal Servoy combobox from the palette on the left, as well as the bootstrap one, neither work.
[As an aside, the bootstrap combobox is useable even when the controller is set to 'readonly', unlike the Servoy one which becomes readonly]
[Also, the name property of the bootstrap combobox is not available for choosing in the 'labelFor' property if I am trying to link a label to it...]

Please advise.
Thanks
Rafi

Re: Lookup not working in NG Client

PostPosted: Fri Mar 31, 2017 5:38 pm
by Andrei Costescu
I would say - for the things that used to work in web-client and smart-client and don't work in NG as described above: create cases with small sample solutions.
So if you can do what you describe above using default components on web/smart and not on ng it sounds like a bug.

You can create case(s) for bootstrap-components/labelFor in properties view/controller readonly with no effect/anything else as well.

Re: Lookup not working in NG Client

PostPosted: Fri Mar 31, 2017 5:43 pm
by rafig
ok, I will try & create a small sample & raise a case.
Thanks
Rafi

Re: Lookup not working in NG Client

PostPosted: Fri Mar 31, 2017 10:55 pm
by rafig
Andrei Costescu wrote:create cases with small sample solutions

I have now created 3 cases, all using the same sample solution (& a normal one showing lookup working) for each issue
SVY-11007
SVY-11008
SVY-11009

Samples use the 'example' database.

Hope these are all enough.

Thanks
Rafi

Re: Lookup not working in NG Client

PostPosted: Mon Apr 03, 2017 9:58 am
by Andrei Costescu
Great. Thank you! :)