Hello Ventuzians!
THE FORUMS ARE CLOSED!

Please join our discord server HERE!! << click me :D

We are shutting our Ventuz Forum, but don't worry, it will all be archived for you to search in if you have a query. From now on, please add all your comments, questions or observations into our Discord Server

Thanks for the great time - see you on discord!!
Dee, Karol, Daniel and the whoooole Product and Support team!

Accessing a list of infomation

Q and A about functionality and how to solve a special task for your application.

Moderator: Support

Post Reply
User avatar
Chris
Posts: 108
Joined: 14 Aug 2012, 09:10
Location: UK

Accessing a list of infomation

Post by Chris » 14 Aug 2012, 12:29

Hi All,

I need a little advice on the best way to go about creating the following functionality:

Using an on screen keyboard, i want to search for a name in a list of different names.
Once the name has been found i want to render it the screen as text and then be able to click the name and have it trigger an event.

Do i need to use a script to do this? or is a database the best way to achieve it? Is there any way of doing this with an excel file set up? (although i can't see any way of searching an excel file)

A few points in the right direction would be great :) So I know i'm not doing this the long way round.
I've tried a few things, mainly with strings and string searches but I get the feeling I'm making this harder than it needs to be.

Thanks in advance

Chris

Christian Krix Schmidt
Posts: 290
Joined: 18 Jan 2012, 11:36
Location: Dubai, United Arab Emirates
Contact:

Re: Accessing a list of infomation

Post by Christian Krix Schmidt » 15 Aug 2012, 09:01

Well I'm not a programmer, but here is what I would do. I would use a XML file and a script to parse the list of names from the XML file into an array. That is very fast. When you search for a name you search the array. Since you have the user input and all the data inside the script you can use a lot of search mechanisms. The good thing is that you have an unique index in the array and XML file as well so you can pass that index out again and use it together with the button to trigger name specific content - which is also stored in the XML file.

Chris

User avatar
Oliver
Posts: 67
Joined: 12 Jan 2012, 10:38

Re: Accessing a list of infomation

Post by Oliver » 15 Aug 2012, 16:43

This is roughly what i would do if I had to make a quick shot.

Its not 100% your solution but it will provide you with the knowledge you need.
A combination with Christians solution will probably work best.

Cheers!
Attachments
SearchXML.vza
Caution this is build dirty :)
(430.21 KiB) Downloaded 305 times

User avatar
Chris
Posts: 108
Joined: 14 Aug 2012, 09:10
Location: UK

Re: Accessing a list of infomation

Post by Chris » 15 Aug 2012, 17:15

Excellent. Thanks for the replies. I'll have a play with those ideas and come back to you with how it worked out.

speak soon

Chris

User avatar
Chris
Posts: 108
Joined: 14 Aug 2012, 09:10
Location: UK

Re: Accessing a list of infomation

Post by Chris » 18 Oct 2012, 09:05

Just thought i'd drop back here to say thanks for the input from you both :)

A little reshuffle of the file you made oliver and its working exactly as i want it to ;) many thanks for that!

I have to say Chris you have opened up a can of worms with the array parsing! :lol: i'm now neck deep in C#!! enjoying the possibilities though!!

I'm sure you'll be hearing from me again regarding code difficulties :D

Thanks again!

Chris

User avatar
Oliver
Posts: 67
Joined: 12 Jan 2012, 10:38

Re: Accessing a list of infomation

Post by Oliver » 18 Oct 2012, 10:03

Glad to hear :)

Code on! Cheers!

Christian Krix Schmidt
Posts: 290
Joined: 18 Jan 2012, 11:36
Location: Dubai, United Arab Emirates
Contact:

Re: Accessing a list of infomation

Post by Christian Krix Schmidt » 18 Oct 2012, 10:16

Good on you mate!
Glad we could help!

Post Reply