Hello,
I am reading a legacy database which has quite a few fields which are dates or times, and are stored variously as decimal or maybe an integer, or even character, 7, or maybe 8 digits. There will also be time fields similarly. I have written a Java class and method to process a dsResponse and reformat as a proper date. I have added a serverObject section to my ds.xml file. This all works fine.
However, I don't want to write a class for each field, what I want to do it pass in the name of the date field to the class on the serverObject ui.xml so I can use the same Java class and it will know which field to pull out of the dsResponse. I have tried various ways of doing this and read through the quick start guide as well and the Javadocs, but to no avail.
Can this be done, if so how? Perhaps there is a better way.
Thanks, Mark.
I am reading a legacy database which has quite a few fields which are dates or times, and are stored variously as decimal or maybe an integer, or even character, 7, or maybe 8 digits. There will also be time fields similarly. I have written a Java class and method to process a dsResponse and reformat as a proper date. I have added a serverObject section to my ds.xml file. This all works fine.
However, I don't want to write a class for each field, what I want to do it pass in the name of the date field to the class on the serverObject ui.xml so I can use the same Java class and it will know which field to pull out of the dsResponse. I have tried various ways of doing this and read through the quick start guide as well and the Javadocs, but to no avail.
Can this be done, if so how? Perhaps there is a better way.
Thanks, Mark.
Comment