Page 1 of 1

best method for lots of input fields

Posted: Mon Dec 10, 2012 7:47 am
by cusingerBUSCw5N
I would like to create a card that has about 10 input fields. This would be too many to see on one screen, so it will have to scroll. I originally thought about using a scrolling list field and then thought about a datagrid, but then realized that I have had to native mobilecontrols for the android because android's keyboard doesn't work with Livecode...and I can't see how to do that with either the scrolling list field or the datagrid...

So, if I have to use mobilecontrols, then the only way I can think of doing it is to create all the fields, and lay them out, and create a group. Then size the group for the size of the stack and have a scrollbar.

I think I could do that, and then create my mobilecontrols to go on top of the basic fields - but I'm not sure that part would work and that it would scroll properly.. It seems like it would have the same problem that using the datagrid or scrolling list field would have.

So...am I completely off base or is this possible to do?

Thank you!

Re: best method for lots of input fields

Posted: Tue Dec 11, 2012 5:34 am
by cusingerBUSCw5N
I have started this - but as expected, have run into problems.

I created a series of fields, set up the formatting, made them a group, and then set the group height to 1/2 stackheight - and set the top of the group. Added a scroll to the group - and voila - it works!

..until you have to add mobile controls.

The mobile controls aren't part of the group. If I set the vis of the fields that the mobile controls are being substituted for to be false - then the scrollbar moves over as if they don't exist. But the real problem is that the mobile controls ignore the height of the group completely (basically because they aren't in the group...). So my solution fails on Androids.

Is it possible to create a group with mobile controls and regular fields?

Re: best method for lots of input fields

Posted: Thu Dec 20, 2012 3:21 am
by cusingerBUSCw5N
So the way I solved this was to have a scroll down field - and when someone selects an item, the details open up in a separate field - put in a place where I can put the mobile control over it (i.e. non-scrolling). I gave up the idea of having a scrolling group because of the mobile control issue - so now people have to look at each item one at a time, rather than scrolling to see everything at once. The reason the long scroll didn't work is because I wanted the ability to type and change the info - and that required the mobile controls for the Android.