Hi
How does one go about adding a list of customers for example to a form? I would like to show the customers’ name and account number in list to use it like a navigator for the customer table. However, I do not see a list/grid or whatever it is called as one of the controls I can drop onto a form.
Thanks,
Simon
dcipher:
Hi
How does one go about adding a list of customers for example to a form? I would like to show the customers’ name and account number in list to use it like a navigator for the customer table. However, I do not see a list/grid or whatever it is called as one of the controls I can drop onto a form.
Thanks,
Simon
To do what you want, just place a tabPanel with a form with a ‘self’ relation (from customer to customer) in it with a ‘view’ style of ‘List view’ or ‘Table view’ (check the properties view, it’s the one before the last property of a form), then you will be able to use this list which will update the current record of all the foundset based on the same table.
Have a look at this property in the doc or on the wiki
Picking up on this tip, I’ve found that if I want to show all customers in the tab panel (which I believe was the question?) then the form within the tab panel must have its relationName property set to -none-
Hi
I never thought of creating a relation to itself. I will give it a try. Does this style of list support calculated columns to show an image beside the list items?
I have the documentation for the classes but nothing about the Servoy Way or overview of how things are done in Servoy. Is there such documentation available?
Thanks,
Simon
ptalbot:
dcipher:
Hi
How does one go about adding a list of customers for example to a form? I would like to show the customers’ name and account number in list to use it like a navigator for the customer table. However, I do not see a list/grid or whatever it is called as one of the controls I can drop onto a form.
Thanks,
Simon
To do what you want, just place a tabPanel with a form with a ‘self’ relation (from customer to customer) in it with a ‘view’ style of ‘List view’ or ‘Table view’ (check the properties view, it’s the one before the last property of a form), then you will be able to use this list which will update the current record of all the foundset based on the same table.
Have a look at this property in the doc or on the wiki