Click here to Skip to main content
15,887,267 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am creating a pills reminder app but having issue with creation of logic regardings the sections, I have an entity name "Pills" with following attributes:-
1- name
2- description
3- duration
4- timeMorning
5- timeAfternoon
6- timeEvening
7- timeNight
8- image

I want to populate my table with sections "Morning", "Afternoon", "Evening" and "Night" in such a way that every section have the related scheduled pills.
Note:- One Single pill can be in multiple sections at once as I have option to choose all four time schedules for a single pill entry.
Plus I want the sections in following order:-
1- Morning
2- Afternoon
3- Evening
4- Night

Any help will be appreciated please.

What I have tried:

Currently I am able to populate data into sections with using one single attribute "time" instead of all four separate time attributes but the problem is that in that case I can schedule a pill for only one single time, i.e Morning, Evening. Secondly the sections are not in proper order ie. Morning, Afternoon, Evening and Night
Posted
Updated 16-Sep-16 19:51pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900