Hi everyone,
I’m trying to display a lightbox with multiple time periods (each time period should correspond to a single event that should be than stored in the db) but i really don’t know how to manage this stuff.
I added 2 DHXLightboxTime to my lightobx:
DHXLightboxTime time1 = new DHXLightboxTime(“time1”, “Time Period 1”);
planner.lightbox.add(time1);
DHXLightboxTime time2 = new DHXLightboxTime("“Time Period 2”);
planner.lightbox.add(time2);
but i get only the last DHXLightboxTime I add, displayed twice (see picture).
When I click save only the second event is saved and I don’t know how to retrieve the different events and store them separately.
Please help me if you can… Thanks in advice
Unfortunately it will not work
Time section is mapped to the start_date, end_date fields, and if you are adding multiple sections - all of them still use the same fields ( effectively overwriting values ). Only one time section can be used per lightbox.
If necessary - you can create a custom html section, with any necessary inputs and use values from such section as you wish.