ange52
01-29-2007, 07:49 PM
Hello all,
I'm working on a very simple little app right now, and I'm having a hard time getting things to work out. I have a feeling that I'm trying to keep things so simple that I'm in the gray area between regular javascript, and the features LZX offers with datapaths, datapointers, etc. I feel more comfortable doing such a little thing with some plain old javascript, but the pieces aren't quite fitting together.
So my current problem goes something like this:
-I have the user type a number into a text field
-I store that number as a variable with javascript (let's call it myNum)
-Once the user moves on to the next state, I want to make a total myNum number of edittext fields on the view (to be clear: if myNum == 5, there would be 5 edittext fields showing up)
I've managed to use datapaths to let LZX magically create the proper number of checkboxes for me already, however this situation doesn't seem fit for a datapath. All I want to do is use a simple for loop with javascript to create as many edittext fields as I need and attach them to a view.
Any help to point me in the right direction would be greatly appreciated. Thanks!
Ange52
I'm working on a very simple little app right now, and I'm having a hard time getting things to work out. I have a feeling that I'm trying to keep things so simple that I'm in the gray area between regular javascript, and the features LZX offers with datapaths, datapointers, etc. I feel more comfortable doing such a little thing with some plain old javascript, but the pieces aren't quite fitting together.
So my current problem goes something like this:
-I have the user type a number into a text field
-I store that number as a variable with javascript (let's call it myNum)
-Once the user moves on to the next state, I want to make a total myNum number of edittext fields on the view (to be clear: if myNum == 5, there would be 5 edittext fields showing up)
I've managed to use datapaths to let LZX magically create the proper number of checkboxes for me already, however this situation doesn't seem fit for a datapath. All I want to do is use a simple for loop with javascript to create as many edittext fields as I need and attach them to a view.
Any help to point me in the right direction would be greatly appreciated. Thanks!
Ange52