Hi,
we are creating a planning-application where our customers can plan available generators on a certain date and for a period based on a Calendar visualisation. We have one List with the inventory of all the generators ("Generatoren") and one List with the periods that generators are booked ("Generators Data"). We have a Join between the two Lists, based on the unique Generator ID. Join works so that is Ok.
But now we want the Dropdown Element in de Form of "Generatoren Data" to be occupied only with the generators (from "Generatoren") that are not booked for a specific period, starting with the date that is clicked in the Calendar (Date Element "startdatum"). There is also a Date Element "einddatum" (which stands for "enddate") and marks the end of the period. This date is entered manually by the customer. So only the generators from "Generatoren" where "startdatum" > "einddatum" (in "Generatoren Data") should be visible in the Dropdown Element.
As far as we know, this should be done with a 'databasejoin' to the Element "generator_omschrijving" (which means "generator-description" in English) in the List "Generatoren" where "generator_gid" is the value that is being written to the List "Generatoren Data") and an additional WHERE clause that filters the generators that are available in that particular period.
I hope this is clear, because these thing (as simple as they are) are quite complex to explain in text.
Regards,
Arjan Myer
we are creating a planning-application where our customers can plan available generators on a certain date and for a period based on a Calendar visualisation. We have one List with the inventory of all the generators ("Generatoren") and one List with the periods that generators are booked ("Generators Data"). We have a Join between the two Lists, based on the unique Generator ID. Join works so that is Ok.
But now we want the Dropdown Element in de Form of "Generatoren Data" to be occupied only with the generators (from "Generatoren") that are not booked for a specific period, starting with the date that is clicked in the Calendar (Date Element "startdatum"). There is also a Date Element "einddatum" (which stands for "enddate") and marks the end of the period. This date is entered manually by the customer. So only the generators from "Generatoren" where "startdatum" > "einddatum" (in "Generatoren Data") should be visible in the Dropdown Element.
As far as we know, this should be done with a 'databasejoin' to the Element "generator_omschrijving" (which means "generator-description" in English) in the List "Generatoren" where "generator_gid" is the value that is being written to the List "Generatoren Data") and an additional WHERE clause that filters the generators that are available in that particular period.
I hope this is clear, because these thing (as simple as they are) are quite complex to explain in text.
Regards,
Arjan Myer