Displaying text in bold weight using PL/SQL

I am trying to display some text using PL/SQL. I would like it to display in bold, but I haven't been able to find anything that will work. I tried using htp and htf which supposedly creates html tags, but I couldn't get that to work properly. I also tried the srw built in package. My code currently looks like this:
function CF_NUMBER_HOLESFormula return Char is
begin
return('NUMBER OF HOLES LOGGED: ' || :number_of_holes);
end;
And it only displays if the variable number_of_holes is not null. I want it so that 'NUMBER OF HOLES LOGGED' is bold but the actual output from the database is not.
Thank you,
Amanda Stephano

Hi Alison
One approach could be:
Instead of using a PL/SQL formula, follow any one of the two ways suggested above by Vinayak / Sripathy, and make only your Text Bold.
Then go to the Property inspector of the fields that you have created, and in all the fields (wherever you want) - whether it is a repeating frame, or a boilerplate text or a data field, you choose "Conditional Formatting" from the Property Inspector and do the following:
New.. > If the value of: > Number_of_holes > Null > Hide the Object.
This will print the whole text + number only whenever the number is Not Null.
Navneet.

Similar Messages

  • Display data in log file using PL/SQL procedure

    Just as srw.message is used in Oracle RDF Reports to display data in log file in Oracle Apps, similarly how it is possible to display data in log file using PL/SQL procedure?
    Please also mention the syntax too.

    Pl post details of OS, database and EBS versions.
    You will need to invoke the seeded FND_LOG procedure - see previous discussions on this topic
    Enable debug for pl/sql
    https://forums.oracle.com/forums/search.jspa?threadID=&q=FND_LOG&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    HTH
    Srini

  • Displaying text in different languages using smart forms

    hi,
      I am working on smartfroms.
      I have to display the text in different languages using smartforms.
      how to proceed ?
    thanks,
    Aruna.

    To Display in Different Languages:
    Smartforms:
    In the Smartform you create:
    In General Attributes, in Translate, select the radiobutton 'Into Selected Languages' and specify the lang for which you want the translation to be available.
    To translate:
    Go to SE63.
    In menu, Translation -> ABAP Objects -> Other Long Texts.
    In the Object Type Selection window that appears, expand FS ( Forms and Styles) and choose SSF (SAP SmartForms)
    Specify your form name in Object Name and select the source and target lang and click on Edit button.
    In the editor screen specify translated text in the lower half.
    After you are done, click on Save Active button.
    To view your form in the translated language, specify that language when you login.
    SAPscripts:
    Goto SE76.
    Specify the script name, source and target language. Click on Create/Change button.
    Specify all the translations. Click on release.
    It will prompt you to translate window contents.
    Double click on the window and translate the contents. When you are done, the Translation Status will become COMPLETED. Click on Release again.
    (You can edit and check too)
    Now when you preview by choosing the desired language, the translated script is displayed.
    Hope this helps
    Edited by: Jayanthi K on Jan 15, 2009 9:34 AM
    Edited by: Jayanthi K on Jan 15, 2009 9:35 AM

  • Reading Text file & Updating table using PL SQL Procedure

    Guys, I am trying to read data from a large text file which
    contains tab delimited data. Based on success of validations, I
    have to insert/update data in to table(s). Does any one has any
    sample procedure to read data (tab delimted/comma seperated)
    from a text file and write to database table? Your help is
    greatly appreciated!

    Is there any particular reason why you're not using SQL*Loader
    for this? Otherwise you would seem to be re-inventing the wheel.
    rgds, APC

  • Displaying text in BOLD in classical report

    Hi all,
    I want to display a word as BOLD in classical report.. How to acieve the same in classical report
    Regards,
    Shanthi

    HI,
    I m working in ECC 6.0 system only. But still the followinf statement is not displaying the word in bold letters.
    Pls tell  me what is wrong in the below code.
    FORMAT INTENSIFIED on.
    write 'some text'.
    FORMAT intensified off.

  • How to open a htmlwebpage by using pl/sql?

    my problem is how to open/invoke a existing webpage by using pl/sql.Because I want to do a authentication function,and write a procedure to varify the user ID and password.If they are valid,a welcome webpage can display,otherwise a eror message/webpage will be invoked.
    My question is how to display the error message to the webpage or to open a webpage which display the error message by using pl/sql.

    I think you may be in the wrong forum, but anyways...
    What I think your looking for is the htp.print('insert html here'); function. It's plsql, and writes out html to the web server that calls it.
    if you search for htp.print you should find loads of examples.
    hope this helps.
    Merv.

  • Typekit font (Arvo) only displaying in bold weights...

    Hi, I began a site with the Muse free trial. At the end of my trial I bought a subscription. However, I've ran into a fairly significant issue with typekit now that I've subscribed. For some reason, it will only display the font Arvo ( https://typekit.com/fonts/arvo ) in it's bold weights. It doesn't matter whether I choose to use Arvo regular or Arvo bold, it only displays as bold. Same goes for the Italic as well, only bold italic not the regular weight.
    Is there any fix for this?

    Creating new text boxes and typing new text fixes the issue. Now I just have to recreate dozens of text boxes and enter all of the text in fresh.
    I'm curious as to what caused the problem though. Also, if that text is copy/pasted into any new text frame the font weight for the new text frame locks to bold and becomes unchangeable.
    Not sure if it's relevant, but none of my text frames were behaving this way before I applied my subscription; the trial was probelm free for me.
    Alright, the issue was that the text frames had bold applied to them, however I didn't apply that to any of them. They looked markedly different in my project using the trial than they did when I upgraded to the full subscription. I now know this is because bold was randomly applied to all of my text boxes. Is this a known issue?
    Sorted now though.
    Many thanks,
    Chris
    Message was edited by: chriscambell

  • How to write a sql query to calculate weights using CTE

    Hi guys,
    want some help using a CTE to generate data using recursive SQL - input data in table A to be transformed into table B shown below
    Table A
    Instru_id_index     instru_id_name    instru_id_constit  con_name   weight
            56                       INDEX A                     
    23                  A                 25
            56                       INDEX A                     
    24                 B                  25
            56                       INDEX A                     
    25                  C                 25
            56                       INDEX A                     
    57              
    INDEX  B       25
            57                      
    INDEX B                     31                 
    D                 33
            57                      
    INDEX B                     32                 
    E                  33
            57                      
    INDEX B                     33                 
    F                  33
    (Logic should be recursive in order to be able to handle multi-level, not just level 2.)
    Table B
    Instru_id_index     instru_id_name    instru_id_constit  constit_name   weight
            56                       INDEX A                        
    23                A                   25
            56                       INDEX A                        
    24                B                   25
            56                       INDEX A                        
    25                C                   25
            56                       INDEX A                        
    31                D                   8.3
            56                       INDEX A                        
    32                E                    8.3
            56                       INDEX A                        
    33                F                    8.3
            57                       
    INDEX B                       31                
    D                   33
            57                       
    INDEX B                       32                E                   
    33
            57                       
    INDEX B                       33               
    F                     33
    how can I write a simple CTE construct to  display the data in table B -  How can i calculate the values of weights as 8.3 respectively - calculate these without changing the structure of the tables.
    Can I do this in a CTE

    Full join?
    Anyway, thanks for Rsignh to produces a script with CREATE TABLE and INSERT statements. I've extended the data to one more level of recursion.
    create table weight_tab(
     instrument_id_index int,
     instrument_id_name varchar(10),
     instrument_id_constituent int,
     constituent_name varchar(10),
     [weight] decimal(10,2))
     insert into weight_tab values
     (56,'INDEX A',23,'A',25),(56,'INDEX A', 24,'B',25),
    (56,'INDEX A',25,'C',25),(56,'INDEX A', 57,'INDEX  B',25),
    (57,'INDEX B',31,'D',33), (57,'INDEX B', 32,'INDEX E',33),
    (57,'INDEX B',33,'INDEX C',33),
    (33,'INDEX C',42,'Alfa',60),
    (33,'INDEX C',43,'Beta',40),
    (32,'INDEX C',142,'Gamma',90),
    (32,'INDEX C',143,'Delta',10)
    go
    SELECT * FROM weight_tab
    go
    ; WITH rekurs AS (
        SELECT instrument_id_index, instrument_id_name, instrument_id_constituent,
               cast(weight as float) AS weight, cnt = 1
        FROM   weight_tab a
        WHERE  NOT EXISTS (SELECT *
                           FROM   weight_tab b
                           WHERE  b.instrument_id_constituent = a.instrument_id_index)
        UNION ALL
        SELECT r.instrument_id_index, r.instrument_id_name, w.instrument_id_constituent,
               r.weight * w.weight / 100, r.cnt  + 1
        FROM   rekurs r
        JOIN   weight_tab w ON r.instrument_id_constituent = w.instrument_id_index
        WHERE r.cnt < 4
    SELECT instrument_id_index, instrument_id_name, instrument_id_constituent,
           cast(weight AS decimal(10,2))
    FROM   rekurs
    go
    DROP TABLE weight_tab
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Displaying Include text in Bold

    Hi,
    How to display the text  in BOLD that is accessed with "INCLUDE TEXT" in smartfrom . (ID:ST,NAME:Z_VBAK-VKORG_CONTRACT_TEXT1,Text:TEXT,Language:NAST-Spras).
    Thanks:
    Kangarun

    Hi,
    Create a character fornat in STYLE with Fon style BOLD ( second radio button in SMARTFORMS tcode)
    before displaying your text apply this character format to the text which you need bold
    eg: character format is <C1>
    Write <C1> your text <C1  or using Include statement include the text

  • Displaying diff dates using PL/SQL expression for 'display only' item ?

    Hi ,
    I am having a display only item -- :P2_FROM_Date . If its Thu,Fri,Sat or Sun I want to set the date as the last Monday's date . If its Mon,Tue or Wed then it should be the present Monday's date .
    E.g: Today is Friday and the last Monday was on 18th .
    So for yesterday , today,tomorrow and Sunday , the date should be displayed as 18-JUN-2012.
    From the coming Monday to Wednesday , the date should of be the coming Monday i.e , 24-JUN-2012
    I tried it doing under 'Source ' of item using PL/SQL expression and PL/SQL function body. Not working
    Can someone help ?
    Thanks & Regards
    Umer

    Nice1 wrote:
    declare
    lv_date number;
    begin
    select to_char(sysdate,'D') into lv_date from dual;
    if lv_date=2 then
    :P2_FROM_DATE := to_char(sysdate-1);
    end if;
    end;I tried this under " PL/SQL function body " in "Source " tab of the item P2_FROM_DATE
    When I run this , nothing is displayed corresponding to the item P2_FROM_DATEExactly as expected. This code will only set a value for <tt>P2_FROM_DATE</tt> when run on Mondays in territories where the first day of the week is Sunday, and when run on Tuesdays where Monday is the first day of of the week:
    SQL> var P2_FROM_DATE varchar2(30)
    SQL> alter session set nls_date_format='Dy DD-MON-YYYY';
    Session altered.
    SQL> select sysdate from dual
    SYSDATE
    Mon 25-JUN-2012
    SQL> alter session set nls_territory='AMERICA';
    Session altered.
    SQL> declare
      2  lv_date number;
      3  begin
      4  select to_char(sysdate,'D') into lv_date from dual;
      5  if lv_date=2 then
      6  :P2_FROM_DATE := to_char(sysdate-1);
      7  end if;
      8  end;
      9  /
    PL/SQL procedure successfully completed.
    SQL> print p2_from_date
    P2_FROM_DATE
    Sun 24-JUN-2012
    SQL> alter session set nls_territory='UNITED KINGDOM';
    Session altered.
    SQL> exec :p2_from_date := null
    SQL> declare
      2  lv_date number;
      3  begin
      4  select to_char(sysdate,'D') into lv_date from dual;
      5  if lv_date=2 then
      6  :P2_FROM_DATE := to_char(sysdate-1);
      7  end if;
      8  end;
      9  /
    PL/SQL procedure successfully completed.
    SQL> print p2_from_date
    P2_FROM_DATE
    SQL>Hence the questions about language above.
    >
    I am having a display only item -- :P2_FROM_Date . If its Thu,Fri,Sat or Sun I want to set the date as the last Monday's date . If its Mon,Tue or Wed then it should be the present Monday's date .
    E.g: Today is Friday and the last Monday was on 18th .
    So for yesterday , today,tomorrow and Sunday , the date should be displayed as 18-JUN-2012.
    From the coming Monday to Wednesday , the date should of be the coming Monday i.e , 24-JUN-2012
    >
    The coming Monday is 25-JUN-2012.
    Aren't these rules equivalent to "Monday this week, where Monday is the first day of the week"? In which case the PL/SQL Expression you require is:
    trunc(sysdate, 'iw')For example:
    SQL> with t as (
      2    select date '2012-06-21' + level d from dual connect by level <= 17)
      3  select
      4            d
      5          , trunc(d, 'iw')  monday
      6  from
      7            t;
    D               MONDAY
    Fri 22-JUN-2012 Mon 18-JUN-2012
    Sat 23-JUN-2012 Mon 18-JUN-2012
    Sun 24-JUN-2012 Mon 18-JUN-2012
    Mon 25-JUN-2012 Mon 25-JUN-2012
    Tue 26-JUN-2012 Mon 25-JUN-2012
    Wed 27-JUN-2012 Mon 25-JUN-2012
    Thu 28-JUN-2012 Mon 25-JUN-2012
    Fri 29-JUN-2012 Mon 25-JUN-2012
    Sat 30-JUN-2012 Mon 25-JUN-2012
    Sun 01-JUL-2012 Mon 25-JUN-2012
    Mon 02-JUL-2012 Mon 02-JUL-2012
    Tue 03-JUL-2012 Mon 02-JUL-2012
    Wed 04-JUL-2012 Mon 02-JUL-2012
    Thu 05-JUL-2012 Mon 02-JUL-2012
    Fri 06-JUL-2012 Mon 02-JUL-2012
    Sat 07-JUL-2012 Mon 02-JUL-2012
    Sun 08-JUL-2012 Mon 02-JUL-2012
    17 rows selected.
    SQL> alter session set nls_territory='AMERICA';
    Session altered.
    SQL> alter session set nls_date_format='Dy DD-MON-YYYY';
    Session altered.
    SQL> with t as (
      2    select date '2012-06-21' + level d from dual connect by level &lt;= 17)
      3  select
      4            d
      5          , trunc(d, 'iw')  monday
      6  from
      7            t;
    D               MONDAY
    Fri 22-JUN-2012 Mon 18-JUN-2012
    Sat 23-JUN-2012 Mon 18-JUN-2012
    Sun 24-JUN-2012 Mon 18-JUN-2012
    Mon 25-JUN-2012 Mon 25-JUN-2012
    Tue 26-JUN-2012 Mon 25-JUN-2012
    Wed 27-JUN-2012 Mon 25-JUN-2012
    Thu 28-JUN-2012 Mon 25-JUN-2012
    Fri 29-JUN-2012 Mon 25-JUN-2012
    Sat 30-JUN-2012 Mon 25-JUN-2012
    Sun 01-JUL-2012 Mon 25-JUN-2012
    Mon 02-JUL-2012 Mon 02-JUL-2012
    Tue 03-JUL-2012 Mon 02-JUL-2012
    Wed 04-JUL-2012 Mon 02-JUL-2012
    Thu 05-JUL-2012 Mon 02-JUL-2012
    Fri 06-JUL-2012 Mon 02-JUL-2012
    Sat 07-JUL-2012 Mon 02-JUL-2012
    Sun 08-JUL-2012 Mon 02-JUL-2012
    17 rows selected.Also note that using the item source properties will only set the <tt>P2_FROM_DATE</tt> in the rendered page, not in session state.

  • Loading the data from a text file to a table using pl/sql

    Hi Experts,
    I want to load the data from a text (sample1.txt) file to a table using pl/sql
    I have used the below pl/sql code
    declare
    f utl_file.file_type;
    s varchar2(200);
    c number := 0;
    begin
    f := utl_file.fopen('TRY','sample1.txt','R');
    loop
    utl_file.get_line(f,s);
    insert into sampletable (a,b,c) values (s,s,s);
    c := c + 1;
    end loop;
    exception
    when NO_DATA_FOUND then
    utl_file.fclose(f);
    dbms_output.put_line('No. of rows inserted : ' || c);
    end;
    and my sample1.txt file looks like
    1
    2
    3
    The data is getting inserted, with below manner
    select * from sampletable;
    A     B     C
    1     1     1
    2     2     2
    3     3     3
    I want the data to get inserted as
    A     B     C
    1     2     3
    The text file that I have is having three lines, and each line's first value should go to each column
    Please help...
    Thanks

    declare
    f utl_file.file_type;
    s1 varchar2(200);
    s2 varchar2(200);
    s3 varchar2(200);
    c number := 0;
    begin
    f := utl_file.fopen('TRY','sample1.txt','R');
    utl_file.get_line(f,s1);
    utl_file.get_line(f,s2);
    utl_file.get_line(f,s3);
    insert into sampletable (a,b,c) values (s1,s2,s3);
    c := c + 1;
    utl_file.fclose(f);
    exception
    when NO_DATA_FOUND then
    if utl_file.is_open(f) then utl_file.fclose(f); ens if;
    dbms_output.put_line('No. of rows inserted : ' || c);
    end;SY.

  • How to generate formated (defined position) text and image using pl/sql and

    Hello,
    I need to use pl/sql to create a dynamic html page (or image , if possible) with defined positions for text and bar code. It is necessary because the page will be printed and it should be able to be read by one other process , OCR, that needs to have all the data in defined positions.
    Any suggestion are welcome.
    Thanks in advance,
    Emilio

    I don't think it's that easy. Notice that if you put the insert into an actual pl/sql block, you don't get the correct column pointer anymore.
    BEGIN insert into bob(col1, col2) values (123.12, 12345.12); END;
    ERROR at line 1:
    ORA-01438: value larger than specified precision allows for this column
    ORA-06512: at line 1
    Richard

  • I just updated Firefox to 6.0, and suddenly certain parts of the text which used to be in English now display in Devanagari, the font used in Hindi. How do I get it back to English?

    I just updated Firefox to 6.0, and suddenly certain parts of the text which used to be in English now display in Devanagari, the font used in Hindi. How do I get it back to English?

    You can do a check for corrupted fonts and other font issues:
    * http://www.creativetechs.com/iq/garbled_fonts_troubleshooting_guide.html - CreativeTechs Tips: Garbled Fonts Troubleshooting Guide
    * http://www.thexlab.com/faqs/multipleappsquit.html - Font Book 2.0 Help: Checking for damaged fonts

  • Is there any option to display selection screen text in bold or big font?

    Hi all,
    Is there any option to display selection screen text in bold letters or with increase font size?
    Thanks n Regards

    Hi,
    Just give atry in this way..
    open the same program ans selection-screen screen no will be 1000 in se51 screen painter,
    go to properties of the texts u want to change then go to display tab and check the checkbox bright.
    it may or may not work but this will work in module pool .
    just give a try...
    Regards,
    Suresh.

  • Can text be displayed in a formula column using mathematical functions?

    I am working with Financial Reports version 11.1.1.3 and I'm trying to accomplish the following scenario:
    Column D is a data column
    Column E is a text column containing the value "TEXT"
    Column F is a formula column with the following formula: IfThen([D]=0,[E],[D])
    What I want to see happen is if the value in column D is 0 then I want the value "TEXT" to appear in column F, otherwise; I want to show the data value that is in column D. Is it possible to display text in a formula column and if so, what is the syntax for that? Or does anyone have another way to accomplish this? Any help would be appreciated.
    Thanks!

    Short answer: No.
    For your particular issue, I would suggest putting your TEXT value in the #zero and #missing overrides in Report Studio.
    In general, Hyeprion Reporting does not do any real text validations or functions like you could use in Excel.

Maybe you are looking for

  • Firefox won't startup. Icon bounces once then stops. Mac G5 Mac OS 10.5.8 Was OK now it isn't.

    Firefox won't startup so I can get to its preferences, profiles or anything else for that matter. This happens every time I try to start it up. I've recently reloaded my system software and transfered my systems settings from a backup hard drive that

  • Photoshop elements won´t start

    Hallo Adobe Photoshop elements 12 won´t start. The editor does not start, the organizer has no problmes. I have reinstall the programm (sorry is english is not so good) because i had installed new hardware. (Mainboard, CPU, RAM). After restarting the

  • Moving Events and iPhoto library to a new Mac

    I just picked up a new Mini for my HTPC. I would like to move the Events and photos that I already have on my other Macs to the new one. I exported all of the photos to a flash drive and then imported them in on the new Mini, but of course it just im

  • Can I set up my Apple TV without an internet connnecttion?

    I bought an AppleTV about a month ago.  I have a router and everything I need; expect for internet.  My husband and I do not have internet, I normally go 2 hours north to my parents house when I need to update my phone/ipod.  Is there a way to set up

  • Pr /po cancelation

    HI, 1. how to cancel & delete; purchase requisiton (CAse : PR is created through sales order -3 party sales) how to cancel & delete; purchase order 2. how to find purchase order by using purchase requisiton.