Post query question

Hello everyone,
I need your help with this problems. I have a master detail 10g form. In the detail block there is a balance field which is populated automatically based on the amount you enter in the amount field.
This works fine if I am adding a record in the detail block and i enter an amount in the amount field. The amount field has a post-item-trigger which calculates the balance field.
The problem is when I locate a master record which has multiple detail records, the balance field only populates in the first detail record. I have a when-new-form-instance trigger which populates this balance field. I need all the detail records to populate the balance field.
declare
v_app_pa number :=0;
count1 number;
begin
count1 := get_block_property('pa_trans_detail', QUERY_HITS);
For I in 1..count1
loop
SELECT nvl(SUM (fms_trans_detail.pa_auth_amt), 0)
into v_app_pa
FROM fms_trans_head, fms_trans_detail
WHERE ( (fms_trans_head.fms_trans_id = fms_trans_detail.fms_trans_id)
AND (fms_trans_head.fms_trans_type = 'PA')
:pa_trans_detail.balance := v_app_pa;
end loop;
end;
Thanks for your help in advance... I spent the whole day trying to fix this problem.
JD

Hi JD,
Forms provides built in functionality for summarized items, check the forms builder online help, search "summarized item's values" or
http://www.oracle.com/forms/10g/help/ for samples and detailed explanation.
in short you need to a control data block with a text item, open the item properties, find the Calculation section and set the properties:
"Calculation mode"= summary
"Summary function"= sum
"Summarized block"= your initial muti record block
and
"Summarized item"= your selected item
Regards,
Hugo

Similar Messages

  • Populate column in reports  like populates item in post query

    hi all
    i have a report that contains the occupation_id and factor_id and i would like to show occupation_description and factor description instead but i don't know how to do it ... i thought of placeholder column but i don't know how to procceed .. any explaination will be appreciated

    thank you very much ... you are right, but you know what i got used to Froms Forum and i have book marked because i always access it ... sure i post my question there ... by the way i have created another query but how to join them, it is been so long i didn't use the report builder, what i remember is draging and droping the factor_id from second to the first query but it doesn't work ...

  • Help! Where should I post this question, so I can get it answer?

    I'm with the greastest Apple communuty on earth, but know ones responds to my question, except once. Is it worded incorrectly or difficult to understand. I been at for 4-5 months. Any help is well appreciated.
    see below for my past adventures:
    Can you help? I have pot this problem on the discussion board times 3 with no response except this time. See below.
    down;oading podcast
    Posted: Jun 23, 2007 8:04 AM

    Reply

    Email
    Can Itune get too full whereas it will stop downloading podcast automatically or manually? I just exported my 2006 " bibleonradio" podcast to a folder on my harddrive. Immediately itune started downloading podast from that site. But for the last 4-5 months it would hit and miss with downloading and the last 2 weeks it quit altogether.I would go to the site and download the podcast to a selected itune folder as a mp3 for listening.
    Do I need to do some type of maintenance to prevent this from occurring? The site is simple reading of bible scriptures. Could itunes get confuse with 2006 podcasts, thinking I already have the podcast, even though the release date for the new podast are mark 2007?
    imacG5 , super drive   Mac OS X (10.4.7)  

    Diane Wordsmith


    Posts: 266
    From: Nashville
    Registered: Feb 20, 2007
    Re: down;oading podcast
    Posted: Jun 24, 2007 9:23 AM    in response to: Austin Smith2

    Reply

    Email
    Look at the Podcasts in your iTunes Library. Do you see a little exclamation point to the left of the listing? If so, click on that.
    iBook G4 (& an iMac running OS 9)   Mac OS X (10.3.9)   iPod Video

    Austin Smith2

    Posts: 114
    Registered: Oct 31, 2001
    Re: down;oading podcast
    Posted: Jun 25, 2007 3:35 PM    in response to: Diane Wordsmith

    Reply

    Email
    Thank you for your reply:
    I have that symbol on some of my other podacst sites, but not this one because I listen to it daily, sometimes 2-3 times a day. Could the exclamation symbol for the othe sites, which goes away if I start listening to them again affect this podcast? but these site with the exclamation also hit and miss when itunes downloads, as much as 2-3 weeks once I start it back up.
    imacG5 , super drive   Mac OS X (10.4.7)  

    Diane Wordsmith


    Posts: 266
    From: Nashville
    Registered: Feb 20, 2007
    Re: down;oading podcast
    Posted: Jun 25, 2007 3:49 PM    in response to: Austin Smith2

    Reply

    Email
    What's happened to me is that some Podcasts I subscribe to I might get lazy about listening to. Several of the Podcasts will pile up, and after a while iTunes will stop updating if you haven't listened to them. When I click on that little exclamation point in a circle, it will tell me that iTunes hasn't been updating that podcast because I haven't listened to it in a while. I think it asks if you want to continue (or maybe you have to click on subscribe again to get them started back).
    If you are listening to this particular podcast every day, that shouldn't be a problem. And not listening to the other ones shouldn't affect this one. Sorry I can't be of more help, but I'm not sure what is causing it.
    You might go to iTunes> Preferences and click on the tab for Podcasts and see what your settings are there.
    Diane Wordsmith
    iBook G4 (& an iMac running OS 9)   Mac OS X (10.3.9)   iPod Video

    Austin Smith2

    Posts: 114
    Registered: Oct 31, 2001
    Re: down;oading podcast
    Posted: Jun 25, 2007 8:07 PM    in response to: Diane Wordsmith

    Reply

    Email
    Thank you again for your reply.
    My settings in preference for podcast are::
    check for new episodes-every hour
    when new episodes are available-download all
    keep-all episodes
    does anyone else have this problem or any idea how to fix it?
    2nd post

    Converting
    Posted: Jun 13, 2007 8:49 AM

    Reply

    Email
    Trying to come up with an alternative to incomplete podcasts downloads from a website. What I'm trying to do is convert some the missing podcasts file from a website that itune don't download-reason unknown. I'm able to download a mp3 file of the podcast from the web site to my desktop, but I would like to add this to my podcast library under the same name of the podcast that I subscribed, then add to my playlist for continuous playing. Is this possible?
    Thank for any Help,
    Austin
    3rd post

    automatic podcast downloads incomplete
    Posted: Jun 9, 2007 10:54 AM

    Reply

    Email
    I was on the wrong forum. Hope someone might have an answer.
    Austin Smith2
    Posts: 102
    Registered: Oct 31, 2001
    automatic downloads incomplete
    Posted: Jun 4, 2007 7:54 AM
    Reply Email
    Some Podcasts have many episodes and when I subscribe, I get them all at once. But with some podcasts ( http://www.bibleonradio.com/ ), only a few episodes download, and I know there are many others available either because I can see them listed by going directly to the site or because they are numbered and some are clearly missing. I have tried setting my preferences both to download the latest edition of a podcast when I update or to download ALL editions. No difference either way.
    Strangely enough, if I am patience , sometimes the gaps will fill themselves in or all at once when I choose to click update. Anyone have any ideas why this might be happening? Any help would be greatly appreciated. I email the web administrator and they said they were able to go to the itune store and download all the recent episodes. Below is my email conversation.
    Thanks,
    Austin
    imacG5 , super drive Mac OS X (10.4.7) Report this post
    Austin Smith2
    Posts: 102
    Registered: Oct 31, 2001
    Re: automatic downloads incomplete
    Posted: Jun 7, 2007 4:07 PM in response to: Austin Smith2
    Reply Email
    Oops, I left off the dialog. Hope someone can Help.
    Austin
    From: Austin Smith [mailto:[email protected]]
    Sent: Monday, February 19, 2007 7:16 AM
    To: [email protected]
    Subject: podcast
    no podcast downloading after feb 17th. Can you help?
    On Feb 19, 2007, at 8:45 AM, MasterMedia wrote:
    Austin,
    If you mean podcasting of the One Year Audio Bible, then whenever the podcasting is behind you can always go out to the website and download from there. That’s usually been updated even when the podcast has not. Sorry for the inconvenience but the podcast should be brought up to date soon.
    MasterMedia
    From: Austin Smith [mailto:[email protected]]
    Sent: Tuesday, February 20, 2007 7:21 AM
    To: MasterMedia
    Subject: Re: podcast
    Thank you for your quick reply.
    I was able to get itunes to download all the updates except,
    Feb 18 New testament,
    Feb 20 New Testament,
    Feb 22 Old and New Testament.
    Is this a problem on my end?
    You wrote, "If you mean podcasting of the One Year Audio Bible, then whenever the podcasting is behind you can always go out to the website and download from there."
    If I manually download the mp3 from your website, can I put them into the postcast library?
    From: [email protected]
    Subject: RE: podcast
    Date: February 20, 2007 9:14:44 AM CST
    To: [email protected]
    Austin,
    I just went out to the iTunes store and tried to download those dates you had a problem with and I was able to download them without any problem. Maybe you should try again. And yes, you can manually download them from our website and store them into your podcast library. I’ve done that before and it works too.
    MasterMedia
    imacG5 , super drive Mac OS X (10.4.7) Report this post
    StarDeb55
    Posts: 6,134
    From: Chandler,Az.
    Registered: Jan 8, 2005
    Re: automatic downloads incomplete
    Posted: Jun 7, 2007 4:12 PM in response to: Austin Smith2
    Reply Email
    Just a suggestion, since this is a podcast issue, you might find more help in the podcast section of the Mac forum.
    iMac G5 2.0 Mac OS X (10.4.9) 60GB 5G iPod, 2G iPod shuffle, iTunes 7.2 Report this post
    Austin Smith2
    Posts: 102
    Registered: Oct 31, 2001
    Re: automatic downloads incomplete
    Posted: Jun 9, 2007 10:50 AM in response to: StarDeb55
    Reply Email
    Thanks.
    imacG5 , super drive Mac OS X (10.4.7)
    imacG5 , super drive   Mac OS X (10.4.7)  
    Report this post
    Austin Smith2

    Posts: 114
    Registered: Oct 31, 2001

    Re: seeking wisdom-please help-automatic podcast downloads incomplete-
    Posted: Jun 13, 2007 7:29 AM    in response to: Austin Smith2

    Reply

    Email
    Guys am I asking the wrong question? I have posted this question 3 times, but I don;t get a reply. Am I in the wrong section? Am I the only one experiencing this problem?
    imacG5 , super drive   Mac OS X (10.4.7)  

    Hi I found the answer from another post. So far everything is working find. I been trying to fix this since march,
    from
    Mike N. (nahyun...
    Posts: 2,814
    From: New York, NY
    Registered: Oct 1, 2003
    Re: itune application and itune folder
    Posted: Jun 27, 2007 7:16 AM in response to: Austin Smith2
    Solved
    Reply Email
    Deleting the application rarely solves anything on Macs. A better starting point is normally to delete the preference file for the application (in Users/~/Library/Preferences/com.apple.itunes.plist) or see if you have the same problem in another user account on the computer.
    PM MDD(1.25GHz 1.25G-RAM 320G-HD) Mac OS X (10.4.10) 20"ACD USB2Connect MacBook (2.0 White)-2GB Report this post
    Austin Smith2
    Posts: 118
    Registered: Oct 31, 2001
    Re: itune application and itune folder
    Posted: Jun 27, 2007 12:51 PM in response to: Mike N. (nahyun...
    Reply Email
    Mike, deleting the preferences did the trick, but I don't know why. Itunes downloaded 5 days of podcast! Hurray!! Thank you!!!!!!!!!

  • First off, i think it's sad that i have to use my non apple device to post this question... Why has my iPad become absolutely useless after updating to iOS 8.1? I am unable to use my mini because it crashes, slow performance, major battery drain.

    First off, i think it's sad that i have to use my non apple device to post this question... Why has my iPad become absolutely useless after updating to iOS 8.1? I am unable to use my mini because it crashes, slow performance, major battery drain.

    Restore iPad to Factory Default; do not restore from backup. It may be the cause of the problem.
    Settings>General>Reset>Erase all content and settings

  • A few post config questions on new setup

    Hi Group,
    Just a few post config questions.
    First, how can I confirm my controller is in fact associating properly with an NTP server?  On a typically cisco product, I could just do a 'show ntp associations' or a 'show ntp status'.  I cannot see a way to confirm this on the gui or command line.
    Second, on my guest network with web-auth, if one were to choose to not use https for web-auth and instead use unsecure http, would that be possible and if so where in the gui?
    Thanks.

    The third field is from a WLC running v7.4 not v7.2.  I usually would install a 3rd party certificate, but what eles you can try is issue this command on from the CLI.  It had issues working with certain code versions, but you might as well give it a try.
    config network web-auth secureweb disable
    Thanks,
    Scott
    Help out other by using the rating system and marking answered questions as "Answered"

  • Why can't I post a question from my new system?

    Hello All:
    I was just trying to post a question from my new mbp but it wouldn't allow me to do anything.  It continually gave me a message highlighted in 'red' that i was;t allowed to modify or post anything.  I've been asking questions for quite a while and have never seen this.  I also happen to have my older bmp, also logged onto the 'Apple Discussions' site, open beside me.  Can anyone explain this to me please?  BTW, my new system obviously has Yosemite on it while my older bmp has Lion.  Thanks in advance, to all those who respond.
    Regards,
    Ciaochiao

    ChitlinsCC, I'm adding your reloaders to my article on how to make using ASC easier.
    Here is my ASC work flow...
    1) I login.
    2) Block the automatic 30 minute logout.
         Unless you do something every thirty minutes you get logged out.  The forum software waits to tell you this as long as it can to keep you in suspense  ;-) . Filling out a reply is the exception to the thirty minute window.
            Start an auto reloader.
    Safari = SafariTabReloader
    Firefox = ReloadEvery: "Reload web pages automatically"
    Others = Reloaders | Cerberus - Support Center
      You need to pick a page that will reload over time without stalling out. It's ASC.  I've found my profile display the best to use. I get my Profile page after some  logins.  It's ASC.  Change rccharles to your apple id.
    https://discussions.apple.com/people/rccharles?view=discussions
    Reply technique
    Open a new browser window.  Pick some discussion.  Open a reply window.  As long as this reply window is open, you will stay logged in.  The 30 minute times is reset as needed by the ASC software.
    3) I open another window to do my normal ASC browsing.
    4) I have a FireFox bookmark to goto the discussions that I have participated in. I've modified it to add on the content stuff.
             turingtest2 recommends. Change rccharles to your apple id:  
    https://discussions.apple.com/people/rccharles/content?filterID=participated~obj ecttype~objecttype%5Bthread%5D
    5) Use turingtest2's generated links with the /content suffix as browser bookmark to the ASC discussions: 
    Site map of Communities and Categories
    https://discussions.apple.com/docs/DOC-2463
    6) Adjust the ASC web page layout.
    For FireFox
    I run with Hiroto's modification to user content.  This is the only way these forums are readable for me.  How to adjust the format and layout of ASC Web Pages:
    https://discussions.apple.com/docs/DOC-7501
    For Safari
    "ASCPowerTools is a Safari Extension designed to give more control"
    http://www.etresoft.com/ascpowertools
    7) Read and answer my old posts.  I kind of memorize the time I last posted. ( It's way bad that apple eliminated the last poster to a thread. )
    8) I use tabbed browsering.  From a list of discussions, hold down the command key then click on the link. You get two tabs this way. The original window will keep where you have been.

  • I'm not sure if I am writing this in the correct area (this is my second attempt at posting a question), but I have a comment about a recent store experience in Sandusky, OH.  I am not a current Verizon customer, but I was visiting friends and we had to g

    I'm not sure if I am writing this in the correct area (this is my second attempt at posting a question), but I have a comment about a recent store experience in Sandusky, OH.  I am not a current Verizon customer, but I was visiting friends and we had to go to the store to get something taken care of.  First off, allow me to compliment the nice, new store.  Boy, its changed over the past few years ago when I was in last. My comment is mostly directed to one specific employee.  When we entered the store, we were "welcomed" by a sloppy dressed gentlemen (his clothes were probably two sizes two small), which really struck me as unusual because every other employee in the store was dressed really "casual" with nice sporty clothing and red shoes.  Either way, after being entered into the computer, the gentlemen told me to wander around or have a seat in the back and someone would be with us soon.  As soon as we walked away from the door, the gentlemen handed his "duty" off to another employee who took over welcoming people coming in.  For whatever reason, I felt glued to him as he stood out to me.  After leaving the door, he immediately went to the back of the room, hunched over a cabinet, where he stood for the next 30+ minutes playing on his phone, frowning and not speaking to anyone around him.  Again, I found this unusual because everyone else was overly friendly and smiling.  I finally decided to walk by and see what he was doing.  It appeared that he was texting someone.  He paid no attention to me whatsoever as I walked by, just continued to frown and text on his phone.  I did take not of his name tag for future reference.  His name was Justin.  I am assuming he's the manager of the location as he was just standing around while everyone else worked.  I do understand that managers aren't necessarily doing the "dirty work" of the employees, but he could have at least found some better fitting clothing (I find it hard to believe Verizon doesn't supply it), been a little friendly, pretended to be busy, and not been texting the entire time we were there.  Again, the store was great, the other employees were very helpful, but the manager seemed to be doing is own little thing and it didn't put off a good image for the rest of the store.  Just wanted to share my comments.

    lisab101,
    We appreciate you reaching out to us. We greatly appreciate the feedback that you have provided us. Please know that we will lift this up to management and the issues will be addressed.
    Thank you,
    RobinD_VZW
    Follow us on twitter @VZWSupport

  • Not able to post any question

    I am trying to post a question related to PM module but i am not able to post it.
    Can anyone help me in this regard.

    but i am not able to post it.
    this will raise so many questions
    a)  are you able to login ?
    b)  if so, are you able to see "Post New Thread"  ?
    If your answer is "YES" for both the above, then there should not be a problem in posting your question.
    thanks
    G. Lakshmipathi

  • Master-Detail Form - implementing some thing like Post-Query trigger

    Hi all,
    I am struggling to implement an eqivalent of a post-query trigger in Oracle Forms. Please bear with me as I am trying to explain in detail what the problem is.
    Here is my situation.
    I have three tables EMP, DEPT and LOCATION. I created a Master/Table pages on EMP and DEPT.
    Basic relationships.
    Each LOCATION has one or more DEPTs; Each DEPT is at one and only one LOCATION.
    Each DEPT has one ore more EMPs; Each EMP is assigned to only and only DEPT.
    Not getting too complicated, here are the table layouts:
    LOCATION:
    ID number(10,0) not null,
    NAME varchar2(20) not null
    DEPT
    ID number(10,0) not null,
    NAME varchar2(20) not null,
    LOC_ID number (10,0) not null foreign key from LOCATION
    EMP
    ID number(10,0) not null,
    NAME varchar2(20) not null,
    DEPT_ID number (10,0) not null foreign key from DEPT
    Assume I have all the constraints, BIU triggers, sequences defined properly.
    I am using the APEX page wizard to create a Master/Detail Form on DEPT and EMP. The first page is the Master Report on DEPT. I want to display the Location Name on this page also. Because the Master Report allows
    you to change the query, I was able to add the Location Name as part of the
    query. This was very simple.
    Select a.name "Department_Name",
    b.name "Location"
    from dept a, location b
    where a.loc_id = b.id
    Moving on, In the Master Detail Form, I would like to get the Location Name as part of the first Region (Dept Region).
    In this region, I would like to include the Location Name also. So my first region on the Master Detail form includes:
    Dept Id: ________
    Dept Name: _______
    Location Name: __________
    As Region are automatically populated using using a Fetch Row from EMP table (Automated Row Fetch) on an After Header process point, I don't have a way of including the Location as part of query. So I created a Region level Item called Location Name, made it Display only.
    In the old SQL*Forms, or Oracle Forms days, I used to use a Post-Query trigger, or Post-Change trigger to fire on the Loc_Id column to populate the Location Name. Simple fetch like:
    Select name
    into :P80_location_name
    from location
    where loc_id = :P80_loc_id
    However, I am struggling to implement some thing simple like this in APEX. Tried creating a processes, computatations etc, but nothing is working.
    I have seen some previous responses to fetching values from a foreign table
    using a button or AJAX script, but this should be very basic. What am I
    missing here?
    Appreciate any insights.
    Thanks.
    John

    Hi John,
    I'm not too familiar with the post-query triggers in Oracle Forms, but the use of a List of Values (LOV) on your LOCATION table might do the trick for you. If you create a dynamic LOV based on your LOCATIONS table, it can then be referenced by the LOC_ID item on the Master-Detail page, to display the Location Name. You could try doing the following:
    1. Create a new dynamic LOV, LOCATIONS, using a query similar to the following:
    select Name d, ID r
    from LOCATION
    order by 1
    2. Edit the "Create" button on the Master report page, and in the "Optional URL Redirect" section set "Request" to CREATE. Click Apply Changes, to save the setting.
    3. Edit the LOC_ID item on your Master-Detail page, and set the following:
    * in the "Name" region change the "Display As" setting to Select List
    * in the "Label" region change the Label to Location Name.
    * in the "List of Values" region set the "Named LOV" to LOCATIONS
    * in the "Read Only" section, set the condition to Request != Expression 1, and set Expression 1 to CREATE.
    Click Apply Changes to save the settings.
    When you run the pages now, the Location Name field will appear as Read-Only when editing a selected Master row. The item will appear as a Select List when the user clicks "Create" on the Master page, to create a new Master row.
    I hope this helps.
    Regards,
    Hilary

  • Lost my contacts in ios8 update and now I can't post my question here

    I posted my question here and it got deleted and they told me to go post it on the Developer forum cause it contains info about the new version of OSX coming out next month, but I'm not a developer and the developer forum sends me here if it's a question about using a product. And I have a question about using my iPhone 5s. Please don't delete this question again.
    I updated my iphone 5s (64 gig) and ipad 2 (16 gig) to ios 8 last week and I stupidly said yes to iCloud Drive before I read all the warning signs not to. My photos are still there cause I didn't have them in icloud, but my contacts are gone on my phone. I updated my Mac Mini to (the new version of OSX after Mavericks and I'm hoping if I don't say the name of it this post won't get deleted) and I still see all my contacts on my computer, I'm just not sure how to get them back on my phone. Should I restore my phone in itunes to a previous backup from last month? Figured I'd check here before I went with that.
    Please don't delete this post cause I can't post it in the developer forum. This is a question for the support forum. I am an end user.

    An error message came up on the computer and said it couldn't complete the installation.
    When I plug the ipod into the computer nothing happens.  It sill shows the apple icon on the touch and a bar.  It doesn't show in itunes at all.

  • SAP Version to be added in the subject line while posting a question.

    Hi,
    We all have been posting and answering thousands of questions on the SDN. Many times I have seen moderators asking the person who posted a question to use a correct and informative subject line.
    With respect to that, I would like to suggest the moderators to add a rule in the rules of engagement asking the users to provide the SAP Version in the subject line while posting questions.
    This way the person answering the question can appropriately provide information based on that version only and would save the time and effort of everyone.
    Example subject line can be :
    ECC 6.0 Function module xyz is not returning correct results.
    I would like to know the opinion of other users too on what they think about this suggestion.
    Best regards,
    Advait

    In theory - a very good idea.
    In practice - hard to enforce.
    On second thoght, it could be a required parameter. It might have the added benefit of dissuading questions from people who can't figure out which version they have
    Rob
    Edited by: Rob Burbank on Jan 16, 2009 3:56 PM

  • I posted a question 22 minutes ago and it says answered but i got no answer to my question of why my trial version of photoshop elements 7.0 says invalid serial number when i put in the correct serial number in it says the same number in my account and oc

    i posted a question 22 min ago and says answered but i got no answer i downloaded a trial version of photoshop elements 7.0 but when i put my serial number from my account saying oct 8 2014 it comes back invalid serial number where are the experts avaiable 24/7 and where do i get my answer chat said mention case number 0213950594 so why is my 1st post marked answered and where is my answe or where do i get it

    HI thomascannonjr,
    Please tell us if you are installing on Windows or Mac.
    Do you have any other Adobe Product installed on the system?
    Did you download Photoshop elements from this link:
    Download Photoshop Elements products | 9, 8, 7
    Regards,
    Sandeep

  • Cursor in post-query

    Hello,
    in a post-query trigger i'm populating a non-database text item (with Items displayed=7) with the code
    DECLARE
      CURSOR crElev IS
        SELECT name ||' '|| surname
          FROM elevi
         WHERE ID=:vw_angajati_note.id_elev order by nume;
    BEGIN
      OPEN crElev;
      FETCh crElev INTO :vw_angajati_note.elev;
      CLOSE crElev;
    END;but when executing the query, the non-database item doesn't contain the names ordered.. and i don't know why
    is it possible to order in a cursor?
    Thanks in advance

    where id=:vw_angajati_note.id_elev --here are 7 records, and i fetch each of them in :vw_angajati_note.elev (i fetch the name ||' ' || surname).
    yes, i wanna the records being sorted and displayed alphabetically
    p.s. the database item is id_elev (so there are just numbers) and the non-database item is elev, where i fetch the names

  • Oracle forms- Number formatting in post query

    I have a column called num_value in a table.
    When the user retrieves the data in post query I need the following formatting
    For WBC if the value entered is 3 I want to show in the forms as 3.0 etc....
    So I have a decode statement
    Cursor C5 is select task_desc,decode(substr(task_desc,1,3),'WBC',to_char(num_value,'fm99.0'),
    'RBC',to_char(num_value,'fm99.90'),
    'HGB',to_char(num_value,'fm99.0'),
    'HCT',to_char(num_value,'fm999.0'),
    'PLT',num_value,num_value) as value,alpha_value
    from qc_task_poch_results A,QC_TASKS B
    where a.task_id = b.task_id
    and a.procedure_id = 1127
    and drive_id = 'DRV5528593'
    Begin
    Open C5;
    Fetch C5 into :qc_task_results_poch.num_value
         ,:qc_task_results_poch.alpha_value;
    Close C5;
    End;
    But I amm not getting the formatting.
    The column in the form is non database .
    When I run in toad, I get the right formatting.
    TASK_DESC|VALUE|ALPHA_VALUE
    WBC count|3.0|
    RBC count|2.33|
    HGB count|6.0|
    HCT Count|17.0|
    PLT count|56|
    Any help is appreciated

    You are formatting your data in your select statement not in Forms. Consequently, any format mask you may have on the Item where the data will be display will reformat your data to match the Item's format mask.
    Do you have the format mask property defined on the Item? What is the data type of the item?
    Craig...

  • LEFT OUTER JOIN, Problem in POST-QUERY TRIGGER

    Hi,
    Please guide for the following
    I wrote below query in POST-QUERY Trigger of a TABULAR DATA BLOCK, having only one text item, called INVENTORY_ITEM
    select c.cat||' '||s.subcat||' '||l1.lvl1 ITEM INTO :DATABLOCK.INVENTORY_ITEM
    from itemcat c
    LEFT OUTER JOIN itemsubcat s on (c.catid = s.catid)
    LEFT OUTER JOIN lvl1 l1 on (s.subcatid = l1.subcatid)
    When I compile the module an error is generated
    *" Encountered the symbol 'LEFT' when expecting one of the following ,; for group having intersect minus order start union where connect ".*
    Above query is working fine in ORACLE SQL DEVELOPER .
    Any solution please.
    Regards,

    Difference

Maybe you are looking for

  • ITunes Artwork Screensaver "Your iTunes Library does not contain any songs

    i have been using the iTunes Artwork Screensaver on my 1.25GHz PowerPC G4, running Leopard 10.5.2 and it has worked perfectly, showing all my album artwork. i got all the album covers from amazon.com or google. i have always kept my iTunes Library on

  • Messages can't see camera on osx mountain lion

    ... other applications do (skype does, facetime and messages don't see camera. Safari can use the camera (chats through safari with google accounts can use the camera, messages on the same acounts do not see the camera).

  • JTabbedPane setEnabled problem

    Hi, I have JTabbedPane with 3 tabs. In each tab there are few components like jSlider, jLabel, jButton, etc. The problem is that if I set that jTabbedPane disabled, it only disables the tabs (I cannot change the tab from one to another), but I can st

  • Iphone 4 software bug ios 7.1

    hello, i m using iphone 4 since a long time. Now i m facing a problem of vibration in it. When i goto settings-sounds and toggle vibrate on ring and vibrate on silent then the iphone vibrates as it should but when i recieve a msg or a call then it do

  • Exporting issues with transission

    Hello I have actaully two issues. issue one: my wife has a HD flip camera, now she asked me to edit some of the footage she shoot. When brining the clips onto the time line I get a red line and the audio is not playing back, which makes it hard to ed