List View Component writing to the foundset

Forum to discuss the new web client version of Servoy.

List View Component writing to the foundset

Postby d.pearce1417196993 » Wed Apr 10, 2019 5:39 pm

Hi,

I am trying to get access to the foundset on a clicked record in the new NG listview component.

I cannot find my way around the properties of the containedForm form.

In the script on the main form or the base form of the containedForm there doesnt appear to be a way to access or reference the foundset of the records in the contained form.

e.g

my main form is forms.examination
that contains a subform (a container form in the list view with the foundset examination_other, which is a related foundset. element name "list"

on the script i get an event with an element name. "list$containedForm$glbl_other_examination"

but how can i refer and change the foundset of the record that is currently clicked on in the list form i.e forms[listformname].foundset.fieldtochange

the documentation appears to suggest you can get to the elements "elements.fc1.containedForm.btn1.text = "Hallo"" but i get containedForm undefined in my debug console!

Anyone succeeded in accessing the records in the list form foundset???

Thanks

David
d.pearce1417196993
 
Posts: 17
Joined: Fri Nov 28, 2014 7:49 pm

Re: List View Component writing to the foundset

Postby sanneke » Fri Apr 12, 2019 4:28 pm

Hi David,

You can access the records directly by the foundset so just examination_other.getSelectedRecord()
Sanneke
Yield Software Development: Need help on your project?
yieldsd.com
User avatar
sanneke
 
Posts: 381
Joined: Thu Jun 15, 2006 9:20 am
Location: Amersfoort


Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 0 guests