Oracle Reports [message #547366] |
Wed, 14 March 2012 00:46 |
|
parvathi
Messages: 7 Registered: March 2012 Location: India
|
Junior Member |
|
|
Hi,
I have a table (medicine_frequency) which has the following items:
-----------------
AGE
DRUG_DESCRIPTION
FREQ
MORNING
NOON
EVENING
BEFORE_BEDTIME
OTHER
-----------------
I have to prepare a report in such a way that in a field
it has to display the vaules of morning/noon/evening(once if all three are there) like 'Take 1 tablet'
Im new to the oracle reports pls let me know how to do it!I have attached a screen shot also pls help me
Thanks in advance!
[EDITED by LF: inserted image into the message body]
-
Attachment: items.png
(Size: 4.17KB, Downloaded 2129 times)
[Updated on: Wed, 14 March 2012 01:48] by Moderator Report message to a moderator
|
|
|
|
Re: Oracle Reports [message #547375 is a reply to message #547366] |
Wed, 14 March 2012 01:39 |
|
parvathi
Messages: 7 Registered: March 2012 Location: India
|
Junior Member |
|
|
Hi,
Thanks for reply.
My table will look like
select * from medicine_frequency;
AGE DRUG_DESCRIPTION FREQ MORNING NOON EVENING BEFORE_BED OTHER
-------------------- ------------------------------ ---------- ---------- ---------- ---------- ---------- -----------
26YYYY11MM29DD Mobic 7.5 mg tablet After Meal 1 Tablet 1 tablet
26YYYY11MM29DD Cravit solutions 5 ml bottle 1 Drop 1 Drop 1 Drop 1 Drop
I have attached a screen shot of my report here .in this report below to the DRUG_DESCRIPTION dynamically a line should appear as "take 1 Tablet" or " Take 1 drop"
I tried to use forumla coulmn with the function as below
function CF_1Formula return Char is
begin
Return 'Take '||:morning||' '||:noon||' '||:evening||' '||:before_bedtime||' '||:other;
end;
but it is giving the reult as
"Take 1 tablet 1 tablet" or "take 1 drop 1 drop 1 drop"
Kindly help.
[EDITED by LF: applied [code] tags]
[Updated on: Wed, 14 March 2012 01:47] by Moderator Report message to a moderator
|
|
|
|
|
|