Hello – I have a need where a date calendar needs to be repeated x number of times based on a user input value that is passed in by a text box. I was thinking that a repeater is ideal for such a matter, but I am not so sure.
The user is to put in a number for a ticket.order.splits (Integer), and based on that number, I need to show a date calendar that number of times (in a Horizontal Layout).
These are separate forms. One containing the textbox for the ticket.order.splits, and a different form for the ticket.order.scheduledRedeliveryDate (Date). The Repeater uses the Data: (List<Object>), but there is initially only a single ticket.order.scheduledRedeliveryDate that would need to be repeated as many times as the number passed into the ticket.order.splits text box. (validation will handle a maximum size later).
Is the repeater best for this type of need? – Is so, could you please give an example of how something of this would function? (I have never worked with repeaters, and cannot find a single example).
Thanks in advance for any and all information.
Repeating a date calendar
Forum rules
Make sure every topic contains information about your LSPS version and if relevant also your server OS, client OS, database name and version, and application server name and version.
Make sure every topic contains information about your LSPS version and if relevant also your server OS, client OS, database name and version, and application server name and version.
- eric.graham
- Posts: 58
- Joined: Tue May 13, 2014 12:20 pm
- C. Tampitsikas
- Posts: 30
- Joined: Wed Oct 22, 2014 3:04 pm
Re: Repeating a date calendar
Hi Eric,
I am attaching with this post an example of how a repeater works.
This simple model has a text box where you provide a split number and when you click on the submit button the repeater creates the equivalent split text boxes.
You can have a look at it and tell me whether this example is solving your problem or you would like to see something more.
Charalampos
I am attaching with this post an example of how a repeater works.
This simple model has a text box where you provide a split number and when you click on the submit button the repeater creates the equivalent split text boxes.
You can have a look at it and tell me whether this example is solving your problem or you would like to see something more.
Charalampos
- Attachments
-
- repeaterExample.zip
- (2.53 KiB) Downloaded 258 times
- eric.graham
- Posts: 58
- Joined: Tue May 13, 2014 12:20 pm
Re: Repeating a date calendar
Charalampos - this example is exactly what I needed. I tweaked it a bit for my specific needs, but this is a great example of the repeater. Thanks for your time and your response!
3 posts
Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest