The display of an image defined in an external PLSQL procedure that renders the code HTML and called in a region of the APEX

I have an external PLSQL procedure that dynamically creates a report out of the HTML tags that I then called an anonymous block APEX PLSQL.  I'm making bad images with the following code:
in the external procedure.  How do you get around that? (NOTE: the procedure is too big to store directly in the APEX)

....

' < style td = "width: auto;" "padding: 0px 5px 0px ' > '. spc_rec. SPC_VIABILITY_STATUS. "< table > ' |

"< style td =" width: auto; " text-align: left; "padding: 0px 5px 0px" > ' | spc_rec. SPC_VIABILITY_REASON. "< table > ' |

TD > < img src = "" #IMAGE_PREFIX #check2.gif "alt =" "/ > < table > '"

....

Thanks in advance

PaulP

Hi Paul,.

You can use the global variable of the APEX package below to get the image prefix in pl/sql. Of course, your procedure should be in APEX, schema analysis application.

APEX_APPLICATION. G_IMAGE_PREFIX

Kind regards

Hari

Tags: Database

Similar Questions

  • Warning on the Trojan horse that could get banking information and call 855-*-*, is it really you?

    I got what looks like a caveat with you, or maybe a scam, do not know that. He said I might have a virus called 'Browser.Hijacker.Spy/Trojan.BankPass-Download. It also has a dialog box that appears telling me the threats that I could cope and to click 'OK' and call it 855-*-*. I really care, is not on your part, and if I click on ok, I download the virus. Help!

    Jack

    Edit: removed personal information for your protection. (philipp)

    If you get a pop-up message asking to put plugins or Firefox updated or anti-malware analysis then this message probably is a scam and you should never respond to such reporting to avoid being infected by malware.

    • Don't update Firefox via "> about" or by downloading and installing Firefox from Mozilla and server never using a popup or a link on a web page.
    • Plugins should be updated only through the plugin itself, or by visiting the home page of the plugin.
  • A message is displayed on my laptop that safari has been compromised and call apple immediately.  Looks like a scam to me.  How can I get rid of this message?

    A message jumped on my laptop a virus tries to enter my computer, click on 'OK' to resolve this problem, and the message does not have its own.  Any ideas on how to solve this problem?

    Choose force quit from the Apple menu, close Safari and then run it with the SHIFT key is pressed. If the message reappears, disconnect the computer from the Internet and close the tab Popup came.

    (141954)

  • Is it possible to define an exceptions list of cookies that will not be deleted and disable any cookie?

    I installed firefox to clear all cookies when firefox is closed, and this is how I want to keep it. However, there are a handful of sites where I don't want the cookie to be deleted. I also want cookies from these sites to update when I visit websites, so I can not simply copy them to another folder.
    Is it possible for me to implement a list of exceptions to the rule "delete all cookies in closing?
    Thank you
    Chris

    In Options-> Privacy .

    1. In the section accept cookies , set keep until: I close Firefox. This will make all cookies expire when Firefox is closed.
    2. Add domains you want to keep to the Exceptions list, choose "allow". (example: "mozilla.com")
    • If you use the feature delete history Firefox closing , make sure "Cookies" is not checked in the settings..., as this setting overrides your Exceptions list and delete all cookies when leaving.
  • One of the pages of my site moves to the right when using anchors to scroll. I checked for Ghost off the page boxes and checked that all my 100% width images are actually 100%. I discovered that this problem is in Chrome and do not hap

    One of the pages of my site moves to the right when using anchors to scroll. I checked for Ghost off the page boxes and checked that all my 100% width images are actually 100%. I discovered that this problem is chrome and does not happen in Firefox. Any suggestions?

    Thank you Brad, my ankles were lined up however they were in the Center. I am proposing to-100 and it solved the problem. Thanks for your help.

  • PLSQL procedure with the ORA-01858: a non-digit character was found where

    Hi friends,
    I'm pretty much back to the plsql programming. I am creating the plsql procedure that basically accepts the values of variables and controls difference of two columns if she's even if different it inserts values into the temporary table GTT_S_DOC_QUOTE, and then inserts data into another table in s_doc_quote please help me or correct my procedure.
    Since I'm getting below error ORA-01858: a non-digit character was found here where waiting a digital .my procedure is as below.
    CREATE OR REPLACE PROCEDURE QUOTE_STS)

    ROW_ID_IN GGATE_CT. GTT_S_DOC_QUOTE. ROW_ID % TYPE,
    STAT_CD_IN GGATE_CT. GTT_S_DOC_QUOTE. STAT_CD % TYPE,
    PREV_STS_CD_IN GGATE_CT. GTT_S_DOC_QUOTE. PREV_STS_CD % TYPE,
    BU_ID_IN GGATE_CT. GTT_S_DOC_QUOTE. BU_ID % TYPE,
    CREATED_IN GGATE_CT. GTT_S_DOC_QUOTE. CREATED % TYPE,
    X_CRRNT_TOT_AGRD_RMS_IN GGATE_CT. GTT_S_DOC_QUOTE. X_CRRNT_TOT_AGRD_RMS % TYPE,
    X_CRRNT_TOT_BLCKD_RMS_IN GGATE_CT. GTT_S_DOC_QUOTE. X_CRRNT_TOT_BLCKD_RMS % TYPE,
    X_CRRNT_TOT_PCKDUP_RMS_IN GGATE_CT. GTT_S_DOC_QUOTE. X_CRRNT_TOT_PCKDUP_RMS % TYPE,
    X_CRRNT_TOT_PCKDUP_AVGRT_IN GGATE_CT. GTT_S_DOC_QUOTE. X_CRRNT_TOT_PCKDUP_AVGRT % TYPE,
    X_CRRNT_TOT_BLCKD_AVGRT_IN GGATE_CT. GTT_S_DOC_QUOTE. X_CRRNT_TOT_BLCKD_AVGRT % TYPE,
    X_CRRNT_CNTRCT_SR_REVN_IN GGATE_CT. GTT_S_DOC_QUOTE. X_CRRNT_CNTRCT_SR_REVN % TYPE,
    X_CRRNT_CNTRCT_FD_REVN_IN GGATE_CT. GTT_S_DOC_QUOTE. X_CRRNT_CNTRCT_FD_REVN % TYPE,
    X_CRRNT_CNTRCT_BEV_REVN_IN GGATE_CT. GTT_S_DOC_QUOTE. X_CRRNT_CNTRCT_BEV_REVN % TYPE,
    X_CRRNT_CNTRCT_RM_REVN_IN GGATE_CT. GTT_S_DOC_QUOTE. X_CRRNT_CNTRCT_RM_REVN % TYPE,
    X_CRRNT_USD_EXCHNG_RT_IN GGATE_CT. GTT_S_DOC_QUOTE. X_CRRNT_USD_EXCHNG_RT % TYPE,
    X_CRRNT_CNTRCT_OTHR_REVN_IN GGATE_CT. GTT_S_DOC_QUOTE. X_CRRNT_CNTRCT_OTHR_REVN % TYPE,
    X_CRRNT_CNTRCT_RSRC_REVN_IN GGATE_CT. GTT_S_DOC_QUOTE. X_CRRNT_CNTRCT_RSRC_REVN % TYPE,
    LAST_UPD_IN GGATE_CT. GTT_S_DOC_QUOTE. LAST_UPD % TYPE)

    BEGIN

    IF (PREV_STS_CD == STAT_CD) then
    END if;
    INSERT INTO GTT_S_DOC_QUOTE)
    ROW_ID,
    STAT_CD,
    PREV_STS_CD,
    BU_ID,
    CREATED,
    X_CRRNT_TOT_AGRD_RMS,
    X_CRRNT_TOT_BLCKD_RMS,
    X_CRRNT_TOT_PCKDUP_RMS,
    X_CRRNT_TOT_PCKDUP_AVGRT,
    X_CRRNT_TOT_BLCKD_AVGRT,
    X_CRRNT_CNTRCT_SR_REVN,
    X_CRRNT_CNTRCT_FD_REVN,
    X_CRRNT_CNTRCT_BEV_REVN,
    X_CRRNT_CNTRCT_RM_REVN,
    X_CRRNT_USD_EXCHNG_RT,
    X_CRRNT_CNTRCT_OTHR_REVN,
    X_CRRNT_CNTRCT_RSRC_REVN,
    LAST_UPD
    )
    VALUES ('ROW_ID_IN',
    "STAT_CD_IN,"
    "PREV_STS_CD_IN,"
    "BU_ID_IN,"
    "CREATED_IN,"
    "X_CRRNT_TOT_AGRD_RMS_IN,"
    "X_CRRNT_TOT_BLCKD_RMS_IN,"
    "X_CRRNT_TOT_PCKDUP_RMS_IN,"
    "X_CRRNT_TOT_PCKDUP_AVGRT_IN,"
    "X_CRRNT_TOT_BLCKD_AVGRT_IN,"
    "X_CRRNT_CNTRCT_SR_REVN_IN,"
    "X_CRRNT_CNTRCT_FD_REVN_IN,"
    "X_CRRNT_CNTRCT_BEV_REVN_IN,"
    "X_CRRNT_CNTRCT_RM_REVN_IN,"
    "X_CRRNT_USD_EXCHNG_RT_IN,"
    "X_CRRNT_CNTRCT_OTHR_REVN_IN,"
    "X_CRRNT_CNTRCT_RSRC_REVN_IN,"
    'LAST_UPD '.
    );

    INSERT INTO S_DOC_QUOTE_CT
    (ROW_ID_OUT, STAT_CD_OUT, PREV_STS_CD_OUT, BU_ID_OUT, CREATED_OUT, X_CRRNT_TOT_AGRD_RMS_OUT, X_CRRNT_TOT_BLCKD_RMS_OUT, X_CRRNT_TOT_PCKDUP_RMS_OUT, X_CRRNT_TOT_PCKDUP_AVGRT_OUT,
    X_CRRNT_TOT_BLCKD_AVGRT_OUT, X_CRRNT_CNTRCT_SR_REVN_OUT, X_CRRNT_CNTRCT_FD_REVN_OUT, X_CRRNT_CNTRCT_BEV_REVN_OUT, X_CRRNT_CNTRCT_RM_REVN_OUT, X_CRRNT_USD_EXCHNG_RT_OUT, X_CRRNT_CNTRCT_OTHR_REVN_OUT,
    SELECT X_CRRNT_CNTRCT_RSRC_REVN_OUT ROW_ID), STAT_CD, PREV_STS_CD, BU_ID, CREATED, X_CRRNT_TOT_AGRD_RMS, X_CRRNT_TOT_BLCKD_RMS, X_CRRNT_TOT_PCKDUP_RMS, X_CRRNT_TOT_PCKDUP_AVGRT,.
    X_CRRNT_TOT_BLCKD_AVGRT, X_CRRNT_CNTRCT_SR_REVN, X_CRRNT_CNTRCT_FD_REVN, X_CRRNT_CNTRCT_BEV_REVN, X_CRRNT_CNTRCT_RM_REVN, X_CRRNT_USD_EXCHNG_RT, X_CRRNT_CNTRCT_OTHR_REVN,
    GGATE_CT X_CRRNT_CNTRCT_RSRC_REVN. GTT_S_DOC_QUOTE;

    COMMIT;
    end if;
    end QUOTE_STS;

    I was wondering why I get this error even if I stated the PREV_STS_CD

    What line do you think that you said PREV_STS_ID on? As far as I can see that the IF statement is the first mention of it in your code. My guess is that you mean PREV_STATS_ID_IN (goes the same for STAT_CD / STAT_CD_IN).

    If you write

    IF prev_sts_cd_in = stat_cd_in
    THEN
       NULL;
    END IF;
    
    do_something_here;
    

    then "do_something_here" will be processed regardless of the IF condition. I think what you probably wanted was something like

    IF prev_sts_cd_in = stat_cd_in
    THEN
       NULL;
    ELSE
       do_something_here;
    END IF;
    

    Is it possible for the prev_sts_cd and the stat_cd null? The test above would not handle this.

    Also, as others have mentioned, the first INSERT statement attempts to insert the strings like "ROW_ID_IN" you probably want to use the value of the ROW_ID_IN parameter, which is the reason why you get the error ORA-01858. I'm guessing here of course, but I took out the quotes.

    That would make your code something like this:

    CREATE OR REPLACE PROCEDURE quote_sts
        ( row_id_in                    ggate_ct.gtt_s_doc_quote.row_id%TYPE
        , stat_cd_in                   ggate_ct.gtt_s_doc_quote.stat_cd%TYPE
        , prev_sts_cd_in               ggate_ct.gtt_s_doc_quote.prev_sts_cd%TYPE
        , bu_id_in                     ggate_ct.gtt_s_doc_quote.bu_id%TYPE
        , created_in                   ggate_ct.gtt_s_doc_quote.created%TYPE
        , x_crrnt_tot_agrd_rms_in      ggate_ct.gtt_s_doc_quote.x_crrnt_tot_agrd_rms%TYPE
        , x_crrnt_tot_blckd_rms_in     ggate_ct.gtt_s_doc_quote.x_crrnt_tot_blckd_rms%TYPE
        , x_crrnt_tot_pckdup_rms_in    ggate_ct.gtt_s_doc_quote.x_crrnt_tot_pckdup_rms%TYPE
        , x_crrnt_tot_pckdup_avgrt_in  ggate_ct.gtt_s_doc_quote.x_crrnt_tot_pckdup_avgrt%TYPE
        , x_crrnt_tot_blckd_avgrt_in   ggate_ct.gtt_s_doc_quote.x_crrnt_tot_blckd_avgrt%TYPE
        , x_crrnt_cntrct_sr_revn_in    ggate_ct.gtt_s_doc_quote.x_crrnt_cntrct_sr_revn%TYPE
        , x_crrnt_cntrct_fd_revn_in    ggate_ct.gtt_s_doc_quote.x_crrnt_cntrct_fd_revn%TYPE
        , x_crrnt_cntrct_bev_revn_in   ggate_ct.gtt_s_doc_quote.x_crrnt_cntrct_bev_revn%TYPE
        , x_crrnt_cntrct_rm_revn_in    ggate_ct.gtt_s_doc_quote.x_crrnt_cntrct_rm_revn%TYPE
        , x_crrnt_usd_exchng_rt_in     ggate_ct.gtt_s_doc_quote.x_crrnt_usd_exchng_rt%TYPE
        , x_crrnt_cntrct_othr_revn_in  ggate_ct.gtt_s_doc_quote.x_crrnt_cntrct_othr_revn%TYPE
        , x_crrnt_cntrct_rsrc_revn_in  ggate_ct.gtt_s_doc_quote.x_crrnt_cntrct_rsrc_revn%TYPE
        , last_upd_in                  ggate_ct.gtt_s_doc_quote.last_upd%TYPE )
    IS
    BEGIN
        IF prev_sts_cd_in = stat_cd_in
        THEN
            NULL;
        ELSE
            INSERT INTO gtt_s_doc_quote
                 ( row_id
                 , stat_cd
                 , prev_sts_cd
                 , bu_id
                 , created
                 , x_crrnt_tot_agrd_rms
                 , x_crrnt_tot_blckd_rms
                 , x_crrnt_tot_pckdup_rms
                 , x_crrnt_tot_pckdup_avgrt
                 , x_crrnt_tot_blckd_avgrt
                 , x_crrnt_cntrct_sr_revn
                 , x_crrnt_cntrct_fd_revn
                 , x_crrnt_cntrct_bev_revn
                 , x_crrnt_cntrct_rm_revn
                 , x_crrnt_usd_exchng_rt
                 , x_crrnt_cntrct_othr_revn
                 , x_crrnt_cntrct_rsrc_revn
                 , last_upd )
            VALUES
                 ( row_id_in
                 , stat_cd_in
                 , prev_sts_cd_in
                 , bu_id_in
                 , created_in
                 , x_crrnt_tot_agrd_rms_in
                 , x_crrnt_tot_blckd_rms_in
                 , x_crrnt_tot_pckdup_rms_in
                 , x_crrnt_tot_pckdup_avgrt_in
                 , x_crrnt_tot_blckd_avgrt_in
                 , x_crrnt_cntrct_sr_revn_in
                 , x_crrnt_cntrct_fd_revn_in
                 , x_crrnt_cntrct_bev_revn_in
                 , x_crrnt_cntrct_rm_revn_in
                 , x_crrnt_usd_exchng_rt_in
                 , x_crrnt_cntrct_othr_revn_in
                 , x_crrnt_cntrct_rsrc_revn_in
                 , last_upd );
    
            INSERT INTO s_doc_quote_ct
                 ( row_id
                 , stat_cd
                 , prev_sts_cd
                 , bu_id
                 , created
                 , x_crrnt_tot_agrd_rms
                 , x_crrnt_tot_blckd_rms
                 , x_crrnt_tot_pckdup_rms
                 , x_crrnt_tot_pckdup_avgrt
                 , x_crrnt_tot_blckd_avgrt
                 , x_crrnt_cntrct_sr_revn
                 , x_crrnt_cntrct_fd_revn
                 , x_crrnt_cntrct_bev_revn
                 , x_crrnt_cntrct_rm_revn
                 , x_crrnt_usd_exchng_rt
                 , x_crrnt_cntrct_othr_revn
                 , x_crrnt_cntrct_rsrc_revn
                 , last_upd)
            SELECT row_id
                 , stat_cd
                 , prev_sts_cd
                 , bu_id
                 , created
                 , x_crrnt_tot_agrd_rms
                 , x_crrnt_tot_blckd_rms
                 , x_crrnt_tot_pckdup_rms
                 , x_crrnt_tot_pckdup_avgrt
                 , x_crrnt_tot_blckd_avgrt
                 , x_crrnt_cntrct_sr_revn
                 , x_crrnt_cntrct_fd_revn
                 , x_crrnt_cntrct_bev_revn
                 , x_crrnt_cntrct_rm_revn
                 , x_crrnt_usd_exchng_rt
                 , x_crrnt_cntrct_othr_revn
                 , x_crrnt_cntrct_rsrc_revn
                 , last_upd
            FROM   ggate_ct.gtt_s_doc_quote;
    
        END IF;
    END quote_sts;
    
  • I'm trying to display an image in the Apex 5.0

    Hello

    I'm on version 5.0 of the APEX. I'm trying to display an image in the header area. The image is associated with the application. This is the code that I put in the header area.

    & lt; img src = "#APP_IMAGES #Distributor_Portal.jpg" & gt; It doesn't seem to work. I will attach what it looks like when I run the page. I'd appreciate any help you can give me.

    Thank you

    PAM

    Hi Pam,.

    PAM wrote:

    I'm on version 5.0 of the APEX. I'm trying to display an image in the header area. The image is associated with the application. This is the code that I put in the header area.

    < img src = "#APP_IMAGES #Distributor_Portal.jpg" > it doesn't seem to work. I will attach what it looks like when I run the page. I'd appreciate any help you can give me.

    You use:

    <img src="#APP_IMAGES#Distributor_Portal.jpg">
    

    in the header of the region? Use instead:

    
    

    Is your "Distributor_Portal.jpg" file that is responsible for-> the static space of work/Application files, the shared components? Check if the file will load in your APEX 5.0 page.

    This problem happens so that a single file or all files in space of static work/applications?

    Go to the tab network browser development tools and inspect what happens if you load a page with files of static applications/work space.

    Do you use the ADR as an option of listening port Web for Oracle APEX 5?

    If you get 404 for work/application space static files then this is the issue of the wrong Configuration of RESTful Services.

    Reference: Re: APEX 5.0 - static files not found even though I configured ADR.

    Kind regards

    Kiran

  • I'm having a problem using the slideshow module in LR 6.3. The slideshow contains the background image as one of the images to display. Earlier, I had created a slideshow of practice and the background image was not displayed as an image in itself. How to

    I'm having a problem using the slideshow module in LR 6.3. The slideshow contains the background image as one of the images to display. Earlier, I have created a slideshow of practice and the background image was not displayed as an image in itself. How to make it behave?

    Another approach, perhaps a little more elegant (?). Create a collection that includes images for the slideshow. Include the background image in the collection. Drag the background image in the Panel to designate. Then, remove this image from the collection and create the slide show. I just tried and it works, too.

  • Display problem. The images have random black or white boxes that appear at different zoom levels. Picture is ok 100%

    I have recently updated my iMac last Adobe CC retina and now experience display problems. The images have random black or white boxes that appear at different zoom levels. Images ok 100% and some other levels of zoom.

    I've read other posts with the same questions.

    When Adobe gets out a fix, as this seems to be an error as Adobe making a lot of different HW platforms.

    Hi Martin,

    Please go to Preferences > Camera Raw and uncheck use display adapter. Click OK.

    Restart Photoshop and check for the issue.

    ~ UL

  • Display a random image whenever the page is refreshed...

    Hello

    I am creating a website using MUSE. Everything is ready, but there is a prob... I have 200 different images to display on my site. How can I set up to display a random image whenever the page is refreshed?

    You can use the slideshow widget "full screen" on your master page with the following parameters:

  • Image is not displayed in the shape of the APEX with utility function APEX

    Dear experts, APEX,

    As I am new to oracle apex development. I just created the basic employee information form where I download the picture of the employee. Photography is transferred, but it does not display correctly. I already spoke of the sample database application to display the image. Also, I followed the same steps it is used to display the image of the product for this application. I am still unable to get the result. I receive after release:


    < img src = "" apex_util.get_blob_file? a = 35682 & s = 101496289174102 & p = 15 & d = 10639237623242912156 & i = 10639236703270912154 & p_pk1 = 21 & p_pk2 = & p_ck = FCA12832591A1C706D76FDD589E551A2 "/ >"

    Please help me elders to solve this problem. How to view the image using this utility.

    mehpandya wrote:

    I saw more HTML code after inspecting the two applications.

    1 example of application of database:

    In this application, the product image is downloaded and displayed correctly, and the following code is rendered in the HTML source code.

    2 example of Application HRMS - which I created for learning.

    In this application, the photo of the employee is transferred, but it is not displayed correctly. Here's how to code is rendered in the HTML code.

    ""< img src = "apex_util.get_blob_file? a = 35682 & s = 100541516379272 & p = 15 & d = 10639237623242912156 & i = 10639236703270912154 & p_pk1 = 21 & p_pk2 = & p_ck = 31A8328E0F5754D7CBD0FC0C6313B38A" "/ >"

    That is why, in my application code is not perfectly rendered and syntax is not over.

    the following characters are rendered like this. : & lt, & quot, & gt, & amp.

    So, is this the reason for not displaying the image?

    Yes.

    To get a displayed item to render in HTML, in the definition section Security value escape special characters notitem.

    For a column of the report, ensure that the column attribute text to display as report is report Standard column rather than the default display text (escape special characters).

    Use a part of the Image display and declarative BLOB support instead of this manual method clumsy.

    -----

    Please read the FAQ and the forum threads sticky (if you haven't already done so.

    You will get a faster, more effective response to your questions including information as much information as possible from the outset. This should include:

  • Full version of APEX
  • Complete operating system DB, version, edition, host
  • Architecture of Web server (EPG, SST or APEX listener/host operating system)
  • Browser (s) and version (s) used
  • Theme
  • Model (s)
  • Region/item (s)

    The APEX documentation is here.

  • Press the button to display a random image

    Hello

    I'm used to working with the timeline and don't often go into the side of the things actionscript.

    I created a second animation 60 an hourglass timer countdown, and next to him, is a map showing a Word. I need this whole animation to play when you press a button 'start game' and also I need the word on the card to be a word at random. All the words are saved as separate vector files for now.

    What is the best way to handle this in the timeline, and what would be the code to display a random image?

    The only discussion I found on these are memory games and they are more complex for what I need!

    I just thought I would put the answer incase anyone needs help with that.

    In the end, I added each image as a picture on the same layer in a clip and added a stop(); action to each image.

    I added this line of code for the keyframe with the movieclip on the timeline:

    This. MovieClipName.gotoAndPlay (Math.round (Math.random () * 4));   4 set up the number of images that you have in the movieclip

    Works great so far - I'll let know you if he throws up additional problems

  • Display a default Image in the case of the Image src attribute points to null

    Hello

    I am display pictures on DataGrid by reading an XML file.
    This works very well if the src of the Image is present.
    Now my question is that sometimes the src of the Image can be null, so in this case, I need to
    display some default Image.

    < mx:HBox id = "hBox" >
    < mx:Image source="{rep.currentItem.@src}"/ >
    < / mx:HBox >


    < images >
    < image src = "images/One.png" / > "
    < src="images/Two.png"/ image >
    < image src = "" / >
    < / images >

    Please tell me how to show a default Image in case of Image src attribute is null.

    Please share your ideas on this.

    Thanks in advance.

    bind the source of the image to a function

    then write a function to detect if an image is present

    private void getImage (): String
    {

    If ( rep.currentItem.@src == null)

    {
    return "default.png";

    }

    on the other

    {

    Return rep.currentItem.@src;

    }
    }

  • Question about the display of an image between the columns in a report

    Hi people,

    I looked at the examples I have come across, but I guess I'm missing something. I have a PL/SQL procedure that returns a sql statement to a report. I want to display an image between the two columns. I already have the pictures stored in the APEX. Can someone please tell me what I'm doing wrong here?

    SELECT the id INTO file_id OF APEX_APPLICATION_FILES
    WHERE filename = 'Blue Free';

    q: = "select";
    q : = q || ' current_status_cd,';
    q : = q || "APEX_UTIL. GET_FILE(p_file_id => file_id,p_mime_type => ''image/jpeg'',p_inline => ''YES'') M,';
    q : = q || "UserID,';
    q : = q || "usernum,';
    q : = q || "LastName,';
    q : = q || "First name";
    q : = q || "from une_table";

    Return to q;

    Thank you very much

    -Adam

    Published by: avonnieda on November 11, 2008 12:28

    Adam:

    The references of the generated query "une_table." Is this a valid table in the application schema analysis?
    If so, change the query to be

    q: = "select";
    q : = q || ' current_status_cd,';
    q : = q ||'' ' "image,';
    q : = q || "UserID,';
    q : = q || "usernum,';
    q : = q || "LastName,';
    q : = q || "First name";
    q : = q || "from une_table";

    CITY

  • How to display a PNG image according to the response from the Web Service?

    Hello

    I use the web service XML from Weather.com to get the current temperature, temperature 'feels' and the current condition icon number.  Their service provides many (> 20 I think) which represents the current status of PNG files.  How do I install my script AS3 do basically if... then Else instructions based on the returned value icon?  For example, if the value of icon = 20, then view 20. png on stage?  I need match the value of correct PNG icon and then put that PNG (as a clip?) on stage for a predefined timeline section.

    Thank you

    SID

    Hello

    I also used this API, and I only use cases or conditions in order to retrieve the values and turn them into a file name.

    If you do not use all the available conditions and turning them into an icon, then Yes, you need to do a switch condition.

    But if you want to use them all, them you can simply get the condition number and add the '.png' and call the corresponding file directly. Here you can do a test, just in case the condition / icon does not exist (e.g. system failure any)

    uicondition.source = String (resultXML.cc.icon) + ".png";

    The UILoader is an excellent component for this sort of thing. You can accomplish the same thing with a MovieClip and load an image. It is lighter.

    But then again if you want to resize you would code all methods for that.

    I hope this helps.

Maybe you are looking for