My app requires me to save a record in the following format:
Assume MEDICINE_RMS contains the following records
and so on.
I have few doubts regarding this:
1.Each record(record1,record2.etc) signifies a Medicine in my App, Medicines can be added in any session, i.e the App
can be run today exited and again after few days it could be opened and another Medicine can be added.
My doubt here is each time i add a new Medicine in different sessions will the record overwrite the previously entered
say today i add a medicine "ABC" and save it and exit the App,and tomo i open the App again add another medicine say
"XYZ" will this result in overwriting of "ABC"??
2.I need to read the ONLY the long data type values from the record and store it temporarily in an array,after
that i need to eliminate all duplicate values and then sort(ascending) the array,then write again separately into a different
RMS- TO_BE_PUSHED_RMS, each time the app invokes i need to read this RMS and delete the first entry copy the second entry into a long variable and later push this value in PushRegistry.
is this possible??
i am more worried about the first part(copying oly long values).
3.The solution to the above problem may be to use RecordEnumerator, firstly i do not know how to apply RecordFilter
ir RecordComparator secondly will using the RecordEnumeration affect the original RMS which is being enumerated,
as in will it get manipulated??
4.Please Please Please give a example of handling RMS including enumerator with filter and compartor (entire prog)
if anyone has done a assignment on it! it will be really helpful to me and other having same doubts!
Please reply guys!, i really need help on this!!