variables into div

Forum to discuss the new web client version of Servoy.

variables into div

Postby martijn » Thu Aug 24, 2017 12:25 pm

We have a responsive form
for a view of map of google-maps with multiple markers we need to setup the map in a div instead of de webcomponent.

The markers will be setup with variables

is there a way to push form variables or field-values into a div?
martijn
 
Posts: 18
Joined: Mon Jun 27, 2016 10:06 am

Re: variables into div

Postby paronne » Thu Aug 24, 2017 12:48 pm

Hi Martijn,

the google-maps webcomponent is in fact a div itself. The idea of a web-component is to wrap client-side behavior on a component that can be easily reuesed by drag&drop into your forms and can be easily bound to dataproviders (form variable and table fields).
Layout elements, such as div, row and column of the 12grid Layout are meant to provide a layout structure to your form, where you can drop in components; they are purely layout element and are not meant to be bound to form-variables or field-values. Data binding is done via web-components.

What are you exactly trying to achieve ?

Regards,
Paolo
paronne
 
Posts: 203
Joined: Fri Nov 02, 2012 3:21 pm

Re: variables into div

Postby martijn » Thu Aug 24, 2017 1:11 pm

Hi Paolo,

We want a map with a marker on two locations and a polyglone between them

Regards,

Martijn
martijn
 
Posts: 18
Joined: Mon Jun 27, 2016 10:06 am

Re: variables into div

Postby paronne » Thu Aug 24, 2017 3:55 pm

Hi Martijn,

As said before webcomponents encapsulate the client-side behavior; the google map component shipped out of the box allow to bind data to one single Marker.
for the specific requirment the google map component should be customized so that multiple markers can be shown on the map.
To learn more about Servoy Web Components see our wiki page: https://wiki.servoy.com/display/DOCS/WebComponents

Best regards,
Paolo
paronne
 
Posts: 203
Joined: Fri Nov 02, 2012 3:21 pm


Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 32 guests