This forum has been archived. All content is frozen. Please use KDE Discuss instead.

view table in a form

Tags: None
(comma "," separated)
dino
Registered Member
Posts
13
Karma
0

view table in a form

Sat Jul 28, 2012 9:20 pm
excuse me for my bad english... :'(
I'm working around a database with kexi.
it is for a school and so I have 2 tables: - class and -students
I've builded a query and now I want to see in a form the class
and in a "subform" all the students in a table.
is it possible?

thank you!

Dino


User avatar
jstaniek
Moderator
Posts
1027
Karma
2
OS

Re: view table in a form  Topic is solved

Thu Aug 09, 2012 6:59 pm
Subforms are not supported in Kexi 2.4 and earlier. The only way for working with relationships is at the moment via combo boxes (within forms or tables).

We know how much expected is this feature, so it's on our priority list.


Best regards,
Jarosław Staniek
• Qt Certified Specialist
KEXI - Open Source Visual DB Apps Builder
• Request a feature or fix for KEXI here
May I help you? Please mention your app's version and OS when asking for help
gregfordyce
Registered Member
Posts
4
Karma
0

Re: view table in a form

Wed Sep 11, 2013 8:26 am
Are subforms supported in 2.7 and if not can anyone suggest a work around?
User avatar
jstaniek
Moderator
Posts
1027
Karma
2
OS

Re: view table in a form

Wed Sep 11, 2013 10:03 am
gregfordyce wrote:Are subforms supported in 2.7 and if not can anyone suggest a work around?

They are not supported in 2.7. Possible imperfect workaround would be to design a parametrized query that takes search criteria.

Unfortunately:
- The result of the query will be non-editable
- You have to enter the exact full parameter. However if you're a little bit more advanced user and go to the SQL view and replace 'column = [Enter value]' condition in a query like:

Code: Select all
SELECT * FROM mytable WHERE column = [Enter value]


with 'LIKE [Enter value]' condition:

Code: Select all
SELECT * FROM mytable WHERE column LIKE [Enter value]


then user might be able to search substrings. To do so he should start and finish the substring with % character, eg. this will return any records containing 'jack' substring in given column:

Image

The search is case-sensitive.

Hope this hint full of workarounds somehow helps you.


Best regards,
Jarosław Staniek
• Qt Certified Specialist
KEXI - Open Source Visual DB Apps Builder
• Request a feature or fix for KEXI here
May I help you? Please mention your app's version and OS when asking for help


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]