How I can displsy the results in a nice readable format

I have this query in a cursor
I is displaying the data like this
Major/Minor RestrictionEnglish English and Theater Envir St-English
How I can make it to display something like this
Must be enrolled in one of the following Majors:
English, English and Theater, Envir St-English
looks easy but the descripton come from the union (cllumn    stvmAjr_desc)
     SELECT
     DISTINCT
       ssrrmaj_major_ind,
        DECODE (
                   ssrrmaj_major_ind,
                   'I', g$_nls.get ('BWCKSCH1-0088',
                           'SQL',
                           'Must be enrolled in one of the following Majors:' ,'<BR />'
                   'E', g$_nls.get ('BWCKSCH1-0089',
                           'SQL',
                           'May not be enrolled in one of the following Majors:','<BR />'
                      indicator1
            FROM ssrrmaj,
        scbcrse,
       ssbsect
      WHERE     scbcrse_subj_code = ssbsect_subj_code
      AND SCBCRSE_CRSE_NUMB = ssbsect_crse_numb
       AND ssrrmaj_crn = ssbsect_CRN
      --- AND ssrrmaj_majr_code = stvmajr_code
       AND ssrrmaj_term_code = ssbsect_term_code
       AND ssrrmaj_major_ind IS NOT NULL
       and SSRRMAJ_TERM_CODE = term  
       and ssbsect_subj_code = subj
       and ssbsect_crse_numb = crse_numb      
       UNION
       SELECT
       DISTINCT
         stvmajr_code,
       stvmAjr_desc
     FROM ssrrmaj,
        scbcrse,
       ssbsect,
      stvmajr
  WHERE     scbcrse_subj_code = ssbsect_subj_code
      AND SCBCRSE_CRSE_NUMB = ssbsect_crse_numb
       AND ssrrmaj_crn = ssbsect_CRN
       AND ssrrmaj_majr_code = stvmajr_code
       AND ssrrmaj_term_code = ssbsect_term_code
       and SSRRMAJ_TERM_CODE = term 
       and ssbsect_subj_code =  subj
       and ssbsect_crse_numb =crse_numb
       ORDER BY ssrrmaj_major_ind DESC;
  the second query display the data after the union
like this
1250 Earth and Oceanographic Sci
1310 English and Theater
1300 English
1450 Envir St-English
I guess I can deal with the dis play like
this I only need the desc not the code
Earth and Oceanographic Sci
  English and Theater
  English
Envir St-English
This is how I am displaying the results, the results are correct, I just need to diaplay the data in a more friendly format
HTP.p ('<h4>Major/Minor Restriction</h4>');         
       FOR  ssrrmaj_major_REC IN  ssrrmaj_major_c (term_in,ssbsect_rec.ssbsect_subj_code,ssbsect_rec.ssbsect_crse_numb)
        LOOP
            IF  ssrrmaj_major_REC.ssrrmaj_major_ind IS NOT NULL
            THEN
            ----HTP.p ('<h4>Major/Minor Restriction</h4>');
             twbkfrmt.p_printtext (ssrrmaj_major_REC.indicator1);  HTP.p ('<BR />') ;
              ELSE
              HTP.p ('<h4>Major/Minor Restriction N/A</h4>');
              END IF;
            END LOOP ;   

Just a thought...I suggest to use XSLT for doing these type of formatting. Its more flexible to get XML for te query columns and then define the formatting at XSLT level. This way you dont have to keep changing the procedure or query. Just XSL change will do the job..

Similar Messages

  • How can show the result of a measuring that is done in a sub-program in my main panel?

    How can show the result of a measuring that is done in a sub-program in my main panel?

    In your subvi, wire the result(s) you want to ouput to the main program to an output terminal on the connector pane.
    For a tutorial on subvi's, search the help for "connector panes" anc click on tutorial.
    ~Tim

  • SSRS - How to display all the results from a query and then be able to filter the data

    Let's say I have a simple query that will return products name, ID, price
    SELECT pname,
    pID,
    price
    FROM products
    When I display the results in SSRS the user will (without entering any parameters) see something like:
    Product Name | ID | Price
    xyz                    1     $10.00
    .zzz                    10   $4,000.00
    How can I filter my results once they are displayed? For instance, Out of the results the user wants to see only the products where price is between $10 and $3000?
    -Alan

    Hi Visahk,
    Maybe I did not explain my issue very good. 
    I want the user to first see all results (without entering the price range) - then if he wants she/he can filter the results by price.
    As soon as I add 
    WHERE price BETWEEN @StartPrice AND @EndPrice
    to my SQL query, the user is prompted to enter a price range before seeing any data.
    -Alan
    Ok for that what you can do is to set allow null value property for the parameters.
    Then set NULL as default value for parameters in parameter properties tab
    and make the query as below
    WHERE price BETWEEN @StartPrice AND @EndPrice
    OR (@StartPrice IS NULL AND @EndPrice IS NULL)
    and then report will get executed without waiting for any prompt and user may change values at a later stage and rerun it
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Suggestions for how I can get the new purchases currently trapped on my iPod transferred to iTunes?

    I recently bought an iPod touch and had no trouble loading all the existing music I have in iTunes to my new iPod.  The problem is that no matter what I try I cannot transfer purchases I made on the new iPod into iTunes.  Every time I try, "Transfer Purchases" is greyed out.  As a result the seven tracks that I bought on the iPod are trapped on the device.  I can't get them into iTunes.  Does anyone have any suggestions for how I can get the seven new purchases currently trapped on my iPod transferred to iTunes?
    I've tried suggestions from multiple support forums, and nothing has worked.  Does anyone know why "Transfer Purchases" would be greyed out and how I can fix it so I can get the music purchases from the device to the computer.  Before anyone asks, this has not happened with any other Apple device I have owned, including my iPhone 4 8GB, iPod Touch 2nd Gen 32GB, iPad 1st Gen 64GB, and iPad 2 64GB.  Why is it suddenly happening now?
    My new iPod is an iPod Touch 5th generation 64GB  using iOS 7.1.2, and iTunes is version 11.
    I've never had this problem before.  It's driving me nuts.  Any help is very much appreciated.

    Does iTunes see the iPod?
    Is the computer authorized for the account that purchased the items?
    iTunes Store: Authorize or deauthorize your Mac or PC

  • HT5622 How I can spend the rest of money $0.58 on my account? I need make it zero.

    How I can spend the rest of money $0.58 on my account? I need make it zero.

    If you are looking for a free alternative to Photoshop look at
    Gimp
    http://gimp.lisanet.de/Website/Download.html
    You can't just resize an image using Preview.
    Resizing an image will change its dimensions, but not the DPI/resolution.
    Images on the Internet are usually at computer screen resolution of 72 DPI. Some images in the web might be at 150 DPI depending on the type of website it is.
    Just resizing an image will make the image worst as you are only making the available pixels in the image larger and more spread out causing an even blurrier image.
    You need an image editor that will increase the number of pixels in an image as you increase the size.
    This is called interpolation. You are adding artificial pixels to an image to boost its DPI resolution.
    These pixels are created from the surrounding existing pixels in an image.
    Done correctly, you can get a pretty sharp image from a low DPI image.
    Done incorrectly, you can make the image very ugly, blurry and look very out of focus.
    You minimize this effect by  increasing the DPI of an image in small increments. I use 50 DPI increments.
    Some users use even smaller DPI increments like 25 DPI or smaller.
    I have a certain amount of impatience, so I use a larger upscale amount. I still get pretty good results that are more than just acceptable. Some user are just more particular about how much detail and sharpness they want their final image to be. I feel increasing the resolution of an image to 300-350 DPI using 50 DPI increments is a good compromise. My own user preference.

  • How I can see the amount of sticky entries exist on CSM

    Hi everyone,
    I would like to know how I can see the amount of sticky entries exist on CSM.
    I understand I can not see the amount of sticky entries by executing one "show"
    command on Cat6k/CSM.
    So I have to calculate several output of "show ip slb sticky" to see it.
    However, I would like to get it by simple way.
    So I tried the following test by using SNMP (SNMP-GET point to several instance
    of "slbStats", of 1.3.6.1.4.1.9.9.161.1.1.1.1)
    Client ----- CSM ----- Server
    1: Reboot CSM to clear/initialize sticky table
    2: Client send ping to Server to confirm that the result of counter of "slbStats"
    remains zero (0).
    In this case, I understand CSM should not create an entry on sticky table because
    the packet pass through CSM is not either TCP or UDP.
    3: Then I tried to SNMP-GET to CSM point to several instance of "slbStats"
    The result of this SNMP-GET is as follows:
    Before sending ping
    slbStatsCreatedConnections.2 : 0
    slbStatsCreatedHCConnections.2 : 0
    slbStatsEstablishedConnections.2 : 0
    slbStatsEstablishedHCConnections.2 : 0
    slbStatsDestroyedConnections.2 : 0
    slbStatsDestroyedHCCConnections.2 : 0
    After sending ping
    slbStatsCreatedConnections.2 : 4
    slbStatsCreatedHCConnections.2 : 4
    slbStatsEstablishedConnections.2 : 1
    slbStatsEstablishedHCConnections.2 : 1
    slbStatsDestroyedConnections.2 : 3
    slbStatsDestroyedHCCConnections.2 : 3
    I wonder why all of above MIB objects are increased despite of the packets pass
    through CSM are ICMP.
    So I can not determine whether I should use this method (using SNMP) or not to
    see correct value of the amount of sticky entries
    And I would like to know alternative method to see it by SNMP or other simple way.
    Your information would be greatly appreciated

    Hi Gilles,
    Thank you very much for your pointing and suggestion and I am sorry for my delay response.
    I understand there are two kind of CLI on CSM depend on using CSM mode or RP mode.
    - show command begins with "show ip slb" when using CSM mode (ip slb mode csm)
    - show command begins with "show mode csm x" when using RP mode (ip slb mode rp)
    And "show mod csm x sticky config" command can be done on RP mode only.
    So I tried to "show ip slb sticky config" command on CSM mode, but I could not find
    "config" argument as follows,
    ct65svf1#sh ip slb sticky ?
    client sticky associated with a specific client IP address
    groups list configured sticky groups
    | Output modifiers
    ct65svf1#sh ip slb sticky
    So I think, on CSM mode, I can not calculate the amount of sticky entry by executing one
    show command.
    Is my understanding correct ?
    Best regards,

  • How I can correct the aspect ratio?

    Hi, I hope you can help me.
    I want to resize a 1920x1080 to 1440x1080 video, how I can correct the aspect ratio of HD video without the black bars appear above and below?

    The original image is stretched horizontally and I want to fix this by resizing the video output to fill the full frame (4:3) without the lines that appear above and below, Premiere is not allowing me this.
    I can do it using video converters but the results do not convince me, do not make the 4 processor cores and cause loss of frames in the video.
    So I prefer to edit and convert directly into Premiere.
    (I used google translator to write this)

  • I need to convert PDF file to Word Document, so it can be edited. But the recognizing text options do not have the language that I need. How I can convert the file in the desired of me language?

    I need to convert PDF file to Word Document, so it can be edited. But the recognizing text options do not have the language that I need. How I can convert the file in the desired of me language?

    The application Acrobat provides no language translation capability.
    If you localize the language for OS, MS Office applications, Acrobat, etc to the desired language try again.
    Alternative: transfer a copy of content into a web based translation service (Bing or Google provides a free service).
    Transfer the output into a word processing program that is localized to the appropriate language.
    Do cleanup.
    Be well...

  • How we can get the values  from one screen to another screen?

    hi guru's.
         how we can get the values  from one screen to another screen?
              we get values where cusor is placed but in my requirement i want to get to field values from one screen to another screen.
    regards.
      satheesh.

    Just think of dynpros as windows into the global memory of your program... so if you want the value of a field on dynpro 1234 to appear on dynpro 2345, then just pop the value into a global variable (i.e. one defined in your top include), and you will be able to see it in your second dynpro (assuming you make the field formats etc the same on both screens!).

  • How i can show the selection screen input field in the top of page in alv

    hi ,
              how i can show the selection screen input field in the top of page in alv  grid output.
    tell me the process

    Hi,
    excample from my program:
    FORM topof_page.
      DATA: l_it_header   TYPE TABLE OF slis_listheader WITH HEADER LINE,
            l_info        LIKE l_it_header-info.
      DATA: l_it_textpool TYPE TABLE OF textpool WITH HEADER LINE.
      DATA: l_key LIKE l_it_textpool-key.
      READ TEXTPOOL c_repid INTO l_it_textpool LANGUAGE sy-langu.
      DEFINE m_selinfo.
        if not &1 is initial.
          clear l_it_header.
          l_it_header-typ   = 'S'.
          l_key = '&1'.
          translate l_key to upper case.
          read table l_it_textpool with key key = l_key.
          if sy-subrc = 0.
            shift l_it_textpool-entry left deleting leading space.
            l_it_header-key = l_it_textpool-entry  .
          endif.
          loop at &1.
            case &1-option.
              when 'EQ'
                or 'BT'
                or 'CP'.
                write &1-low to l_it_header-info.
              when others.
                write &1-low to l_it_header-info.
                concatenate &1-option
                            l_it_header-info
                       into l_it_header-info
                       separated by space.
            endcase.
            if not &1-high is initial.
              write &1-high to l_info left-justified.
              concatenate l_it_header-info
                          l_info
                     into l_it_header-info
                     separated by space.
            endif.
            if &1-sign = 'E'.
              concatenate ']'
                          l_it_header-info
                     into l_it_header-info.
            endif.
            append l_it_header.
            clear: l_it_header-key,
                   l_it_header-info.
          endloop.
        endif.
      END-OF-DEFINITION.
      m_selinfo: s_trmdat,
                 s_trmext,
                 s_trmint,
                 s_fkdat,
                 s_delno,
                 s_vbeln,
                 s_deact,
                 s_kdmat.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
           EXPORTING
                it_list_commentary = l_it_header[].
    ENDFORM.
    I hope, this will help you.
    Regards
    Nicole

  • How i can install the whatspp,facebook,and viber to my i phone 3g?

    How i can install the whatspp,facebook,and viber to my iphone 3g?

    You can't.  Buy a new phone.

  • How we can replace the column in Core Table plz see this msg

    Hi,
    How we can replace the column in Core Table plz see this msg
    Req:
    when i push the Insert button the data inserted into the Table
    like
    Cols Values
    FOCD      CUFZ14
    PRDCD FU6
    Month 082008
    AgencyCD AG02
    PLAN 123
    This is FO_Plan Table....
    Requirement:
    i need at table show to replace the Prd_CD to Prd_Desc while inserting the above Row....
    There is no Prd_Desc in FO Plan Table....
    Prd_desc comes from Product Table.
    did u get my point...
    how to solve.
    Thanks
    Ram
    Edited by: Ram Vungarala on Sep 24, 2008 9:09 AM
    Edited by: Ram Vungarala on Sep 24, 2008 9:15 AM

    Hi,
    I'm not sure if I understood what are you trying to do. But you can modify your table in a backing bean code. JSF page code for a table:
    <af:table id="product_search_results_tbl" binding="#{backingBean.boundTable}" ... />
    And a backing bean code:
    import oracle.adf.view.faces.component.core.data.CoreTable;
    public class YourBackingBean {
        private CoreTable boundTable;
        public void setBoundTable(CoreTable boundTable) {
            this.boundTable = boundTable;
        public CoreTable getBoundTable() {
            return boundTable;
       public String insertButtonAction() {
          // Bind your button action to this method and modify here your bound table
         return null;
    {code}
    Look for column modification methods in a CoreTable class documentation.
    Marius                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How i can set the selected item of a dropDown component from java code

    Hi
    Thank you for reading my post
    How i can set the slected item of a DropDown component from backing beans java code ?
    it is binded with a database , so one field determine its display and one other field determine its value , I want to set the selected item of this combobox
    In back code i have both value and display values to use them .
    can some one give me some help ?
    Thanks ,

    See code sample 3 at http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/helloweb.html
    See also, the selection components row in the table under http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/helloweb.html
    It says
    One way to preselect items is to call setSelectedValue(Object[]) or setSelectedValue(Object) from the prerender() method. You pass in the return values of the items that you want preselected. Be sure to verify that getSelected() returns null before setting the default options, or you will overwrite the user's selections on a post-back.

  • How I can stop the combo box with list of values from fireing validations

    Hi I'm using Jdeveloper 11.1.2.3.0
    Using Hr Schema employees table
    I Display employees data in af:table
    and I make List Of values on Department_id filed to easy change the employee department
    and another one on Job_id filed
    and Imake them UI Hints as ( combo box with list of values ) in the employeesVO
    the problem is when I Select a value from department or jobs ( combo box with list of values )
    fires the entire filed validations for mandatory atributes
    Note : the af:table Property ( contedelivery) is set to (immediate )
    How I can stop the combo box with list of values from fireing validations

    check it out.,
    http://andrejusb.blogspot.in/2012/09/what-to-do-when-adf-editable-table.html

  • HT5621 When I got my new iPhone and was trying to switch everything over I accidentally set up a new icloud account with one email and had one on my old iphone with another account. Does anyone know how I can merge the two accounts?

    When I got my new iPhone and was trying to switch everything over I accidentally set up a new icloud account with one email and had one on my old iphone with another account. Does anyone know how I can merge the two accounts?

    You cannot merge Apple IDs but you can go to Settings > iCloud and 'Delete Account'.  When prompted to turn off documents and data, choose the only option which is Delete from my iPhone, but on the other prompt for Contacts, Calendars, etc you can choose 'Keep on my iPhone'  Then once the Account is Deleted form the iPhone, log back in with the correct Apple ID and choose Merge when prompted.  This will merge your data from this iPhone with that iCloud account effectively putting your devices on the same account.

Maybe you are looking for

  • Trading in MacBook Pro 13 inch late 2011 for a new 2012 model

    Hi! I bought a 13-inch MacBook pro late 2011 model just a week ago, on 05 June 2012, from an apple premium reseller. I have hardly used it. Now apple announced their new MacBook pro line yesterday. I went to the reseller today to know whether they wo

  • Data Validation in Excel 2007

    I have three drop down lists that I have already made dependent on the first list selection using the INDIRECT formula. Is there a way to make the selection in the two following dropdowns Depth & Thickness select cells within the data list rather tha

  • OSX Mountain lion to OSX Maveriks

    Hi Friends Is possible to upgrade from OSX Mountain Lion to OSX Maverixs without the cost, Last 23rd August the Macbook pro 13, Please advise .

  • Please help!! Drawing problem

    Hi all, Sorry for bothering for this question but it's important for me to have an answer.. Well, i created a small graphic interface in which i put some buttons and an area to display Graphics (see Xrect in my code). The problem i have is that i can

  • HP Pavilion DV6 notebook fails to start-up or display. Repeatedly fails by itself.

    DV6 584037-001, Windows 7 - Approx 1 and a half years old. Basically, I was downloading on my laptop when it crashed. I tried rebooting but when I switch the power on it doesn't start up. what happens? the power light, cap locks light (only sometimes