Image in a Form Portlet disappears

I made a Form with an Image (Signatur of an employee - gif). Everithing goes fine. I can upload an image, i can see it too in a Form.
Now i want to run this Form as a Portlet on my Portal-Site.
Everithing is o.k., but now i can not see my image any more.
Why?
any suggestions?
thanks!

check permissions - unfortunately don't know the details, sorry!

Similar Messages

  • How to show photo in form portlet when using ORDSYS.ORDIMG?

    I built a Form based on table that has ORDSYS.ORDIMG column.
    When I query the form,the photo shows. And then I publish this
    form to portal and add in a page. But the form portlet doesn't
    show picture, when I query. Why? What should I do?
    Please help me. I'm looking forward to hearing from all of
    you
    Thank you,
    Sirin

    Well I don't know how to use the ORDSYS.
    So I've created a solution myself using javascript.
    I created a table with a column "image" as VARCHAR2. Using the portal image fieldtype (in a form) will store the image name in the table-column and the actual image in a portal own table.
    1) First in the form added a new field (label only)
    2) The label is "<IMG SRC=/images/blank.gif NAME=test>"
    NB. I'm not sure if I added the blank image myself or not but it is a small gif in the images directory with only a transparent color.
    3) In the Additional PL/SQL Code section ... after displaying the page I added the following code;
    DECLARE
    v_image VARCHAR2(200);
    BEGIN
    v_image := p_session.get_value_as_VARCHAR2(
    p_block_name => 'DEFAULT',
    p_attribute_name => 'A_<imagefieldname>');
    IF v_plaatje IS NOT NULL THEN
    HTP.PRINT('<script language="JavaScript">
    if(document.images)
    document.test.src="http://<hostname>/pls/portal30/docs/'||v_image||'";
    </script>');
    END IF;
    END;
    Regards,
    Arnoud Koot
    Oracle Web Consultant
    http://www.thedoc.nl

  • Dynamic pdf up to 200 images, the size of pdf is larger, cannot save data and images to the form

    Hi all,
    My client would like to dynamic images up to 200 pictures to my forms. It is working fine. However, when I add images up to 35 images. I could not add images to the form any more. Then, I save data on the form. All images and data typed on the form are disappeared. I don't know reason.
    If I only add 10 images - I can save data and images on the form. The size of pdf is 15456 kb.  I was unable to  add more pictures or data on the form.
    Maybe there are problem the size of pdf? How much size can an dynamic pdf  limited?
    Can we save the information and images as much as we want?
    I have spent 2 weeks to work and try to figure out this problem. However it is not successful.
    Please help,
    Cindy

    You should ensure, that your users do not import big images.
    Therefore you can use a script on the change event of an image field which checks the data size and warns the user if the file is too big.
    function formatNumber(number) {
        var num = number + '',
        x = num.split('.'),
        x1 = x[0],
        x2 = x.length > 1 ? '.' + x[1] : '',
        rgx = /(\d+)(\d{3})/;
        while (rgx.test(x1)) {
            x1 = x1.replace(rgx, '$1' + ',' + '$2');
        return x1 + x2 + "KB";
    var sizeLimit = 200, //allow upto 200KB images
      thisSize = Math.round((this.value.oneOfChild.value.length * 3 / 4) / 1024);
    if (sizeLimit > 0) {
      if (thisSize > sizeLimit) {
      xfa.host.messageBox("Note: With " + formatNumber(thisSize) + " the size of the imported image is greater that the recommended maximum of " + formatNumber(sizeLimit) + ".\nLarge images can cause a insufficent performance.\n\nIf possible, use images with the following recommended specs:\nFormat:\t\tPNG or JPG\nColor depth:\t8 Bit (higher is not supported)\nColor space:\tRGB (CMYK is not supported)\nFile Size:\t\t" + formatNumber(sizeLimit), "Recommended image size exceeded", 3, 0);

  • Display Image in a Form

    Hey guys,
    Had a question regarding displaying an image in a form. In the page, User enters all the details in the form and should be able to upload an image file
    and also display a small size of the image uploaded in the same page.
    Thank you for your help, really appreciate it
    Jesh

    Roel,
    I have tried this example, but when I want to resize the image with the help of the link given at the end
    Note: To modify the display attributes of the image (i.e. to make it smaller), you need to use the programmic way of including images. See the documentation at (http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10499/api.htm#CHDICGDA)
    this link to modify the image doesnt work, it says Error Page.
    Any Suggestions ? ? ?
    Thank You
    Jesh

  • How to show a time field in a form portlet

    Hi,
    I am not familiar with PL/SQL and I was wondering how I could show a time field on a form portlet.
    I have a date column in my database that stores the time and date together, but I do not know how to separate them into date and time fields. I also do not know how to concatenate them when a user inserts a new record, or how to query on a date alone.
    At present, the user has to type the date and time following this format mask hh:mi am DD/Mon/RR
    I also have a problem with one of my hidden id fields. I have set the default to a sequence.nextval (#qtc_app.seq_visitor.nextval) and then hidden it since
    it is irrelevant to my users. However, I can no longer use the query function since the sequence is always generating a new value. How would I only generate
    a new sequence no. when a user inserts a record??
    Thank you!
    cheers, Kim

    Hi,
    Each colunm in the form has a format mask associated with it. For the date column make the format mask like this DD-MON-RR HH.MI. This will show the date along with the hours and minutes.
    Thanks,
    Sharmila

  • How to define parameters in a FORM portlet

    Is there a way to define parameters in a form portlet? I am trying to create a form with the "OmniPortlet-Simple Parameter Form" functionality so that I can have dynamic LOVs instead of hard-coded ones.

    Are you trying to create this with a normal portal form?
    If that is the case then, it is not possible to have parameters in forms. (I mean, you will not be able to dynamically change the LOV).
    Thanx,
    Chetan.

  • How to use alerts in Form Portlet

    Hi I m new to portal..
    Plz suggest me how to use alerts in Form Portlet...
    If possible give me some sample code...

    I think I already answered this question in the main Portal forum.
    Mick.

  • How to Display an Image on my FORM

    Good Day!
    I would like to ask some help from you guys with my problem on how to display an image on my form. I would like to display my uploaded image on my form but instead of an image, the get_blob_file is showing. By the way, I'm using Apex 4.1
    I downloaded the Order Entry Sample Application and followed the Page 6, the Product Details. I even made snapshots of each details from Page Rendering to Page Processing in order not to miss a thing.
    At the moment, I was able to upload or store the image on my created Oracle table and also able to retrieve it on the Download Link Text with Content Disposition value of Inline, provided by APEX Settings. If I invoke the Download link beside the file browser, a page with the image will be shown, below is the address:
    http://127.0.0.1:8080/apex/apex_util.get_blob_file?a=200&s=339877802936975&p=230&d=7107921433296839&i=7107601420296838&p_pk1=54&p_pk2=&p_ck=7D6512D967336C4B94258EEA3CDF1BE6&p_content_disposition=inline
    However, instead of showing the image on a region, below is the one showing on my Form:
    <img src="apex_util.get_blob_file?a=200&s=339877802936975&p=230&d=7107921433296839&i=7107601420296838&p_pk1=54&p_pk2=&p_ck=7D6512D967336C4B94258EEA3CDF1BE6" />
    As you can see the parameter values are the same but I know I missed something that's why I'm here :)
    I would highly appreciate all the help you can provide and many thanks in advance.
    I tried to change gear by making an html region of type PL/SQL (anonymous block) and a procedure but still no image :(
    Below are the scripts.
    declare
    cursor cur is
    select *
    from wsemployee
    where empid = :P230_EMPID;
    begin
    for rec in cur
    loop
    IF rec.mime_type is not null or rec.mime_type != '' THEN
    htp.p( '<img src="my_image_display?p_image_id='||NVL(rec.empid,0)||'" height="'||100||'"/>' );
    else
    htp.p( 'No Image ');
    END IF;
    htp.p( ' ');
    end loop;
    end;
    PROCEDURE
    create or replace PROCEDURE my_image_display( p_image_id IN NUMBER)
    AS
    l_mime VARCHAR2 (255);
    l_length NUMBER;
    l_file_name VARCHAR2 (2000);
    lob_loc BLOB;
    BEGIN
    SELECT MIME_TYPE, PHOTO_BLOB_CONTENT, PHOTO_FILENAME,DBMS_LOB.GETLENGTH(photo_blob_content)
    INTO l_mime,lob_loc,l_file_name,l_length
    FROM wsemployee
    WHERE empid = p_image_id;
    -- set up HTTP header
    -- use an NVL around the mime type and
    -- if it is a null set it to application/octect
    -- application/octect may launch a download window from windows
    owa_util.mime_header( nvl(l_mime,'application/octet'), FALSE );
    -- set the size so the browser knows how much to download
    htp.p('Content-length: ' || l_length);
    -- the filename will be used by the browser if the users does a save as
    htp.p('Content-Disposition: attachment; filename="'||replace(replace(substr(l_file_name,instr(l_file_name,'/')+1),chr(10),null),chr(13),null)|| '"');
    -- close the headers
    owa_util.http_header_close;
    -- download the BLOB
    wpg_docload.download_file( Lob_loc );
    END my_image_display;
    Edited by: user13831927 on Dec 22, 2012 3:24 PM

    Hi Ying,
    you can add a UDF to the table spp2 with a programm
    but the table is not yet listed in the 'Manage User Fields' form.
    there's no way to "enable" it - sorry

  • Getting my report portlet, to link to my form portlet

    I am attempting to put together a portal page that has the
    following components:
    A- Form Portlet with a Pull Down that links to a
    B- Report Portlet built by a SQL Statement that links to a
    C- Form Portlet that acts like a Property Sheet from the Report
    A drives B that drives C, all within the same page, using page
    refreshes, to show the linkage after clicks.
    I have been able to put this together because, I have used the
    explanation found in the Advanced Portal Presentation put
    together by Kenneth Atkins, that can be found at
    http://www.arrowsent.com.
    It provides a really good explanation on how to link portal
    components(forms, reports, etc) using the pdk.
    I have attempted to use what he has put together, and in general,
    it is all working, as he has explained in your ppt, except the
    very last bit. Where B refreshes C
    That is, my pull down form refreshes the report, just fine.
    and then when I click on my "item" in the report, to refresh my
    detail form, it does that, but what it brings, up is the item, I
    clicked on previously. It's like the "C" Component wants to show
    the previously selected item, rather than the current one.
    I am using Portal 3.0.9, on 8.1.7, and this behaviour is
    consistent on both Solaris and Win2000
    I have included the PL/SQL code that is inserted in "Before page
    processing section" of the "C" form.
    My guess is, that I have syntax wrong in either the do_event line
    or I am not setting the rowid for the auto_query to work
    properly.
    regards
    Franco
    =================================================================
    ================================
    PROCEDURE autoquery_task_form(p_session in out
    PORTAL30.wwa_api_module_session) IS
    v_RowID VARCHAR2(100);
    v_Session portal30.wwsto_api_session;
    v_st_id varchar2(40); --STEPS.ST_ID%TYPE;
    BEGIN
    v_Session := portal30.wwsto_api_session.load_session('CONTEXT',
    'SESS_PROJECT');
    v_st_id := v_Session.get_attribute_as_varchar2('ST_ID');
    htp.p('Print Step Id='||v_st_id); htp.br;
    BEGIN
    SELECT rowidtochar(rowid) INTO v_rowid
    FROM STEPS
    WHERE ST_ID= to_number(v_st_id);
    END;
    htp.p('Print Row Id='||v_rowid); htp.br;
    -- Tell the component that the query is coming from a link, and
    that the rowid
    -- is being used to query the correct context record.
    p_session.set_value (p_block_name=>'DEFAULT',
    p_attribute_name=>'_CALLED_FROM_LINK',p_value=>'ROWID');
    -- Pass the rowid of the context record to query.
    p_session.set_value (p_block_name=> 'DEFAULT',
    p_attribute_name=> '_ROWID',p_value=> v_rowid);
    -- Now do the actual query, using the query button processing
    in the target module
    -- this seems to execute with the rowid in context of the
    previous instance i.e, Out of Synch by 1 element in an array
    PORTAL30.wwa_api_module_event.do_event('DEFAULT',
    'QUERY_BOTTOM', 1, 'ON_CLICK', True, '', p_session);
    -- Save the session information, which includes the
    p_session.save_session;
    END;

    Hi,
    It seems like we have the same problem!!!
    Look at http://forums.oracle.com/forums/message.jsp?id=539039

  • Urgent ! Code for Displaying Image from Oracle BLOB image on VB Form

    Hi Plz any one have any work to showing a Picuture on Visual Basic Form, i Save the Picure in table and its column type is BLOB where i save picture, now i want to show it on VB form. if anybody knows plz tell me. and if image not found then how can i handle in nvl(field,' ') function.

    Refer VB sample on Passing LOB parameters to a stored procedure. It shows how to display and insert the image from VB form to an Oracle Database in a BLOB column.
    http://otn.oracle.com/sample_code/tech/windows/ole_db/oledb8/content.html
    Chandar

  • Want to scan an image from oracle forms -- Is it possible??

    Hi all,
    I want to scan an image from oracle forms through a scanner. I have not found any help on this topic. Pls help with example or code or with demmo form.
    BR
    Tarik.
    Edited by: Tarik_kuet on Sep 9, 2008 1:39 PM
    Edited by: Tarik_kuet on Sep 9, 2008 1:39 PM

    A colleague of me did it like this:
    * the scanner is connected to a network document server.
    * the document server sends(ftp) the image to the oracle XDB
    * a form shows the scanned documents(using a view on the ftp directory in XDB using path_view)
    * in this form the user can move the scanned document(s) to a (blob field) in a table.
    Hope this helps a bit...
    Edited by: poelger on Sep 9, 2008 10:08 AM

  • How do I reference a field in form portlet?

    I created a simple form portlet in Oracle Portal using the wizard.
    I want to execute a custom pl/sql query using simple select statement. (e.g. select emp from scott where ...)
    I created a new Button item.
    In the PL/SQL Button Event Handler I put the select statement.
    Now I have 2 questions.
    Question 1. Do I have to use the Query or Custom button.
    Question 2. In either way I get PLS-00428: an INTO clause is expected in this SELECT statement.
    I guess the fundamental question here is how do I reference a field in the form?

    If I understand you correctly you want to click on the button and then display a value selected from the database, right?
    1. You have to use the Custom button - query is exclusive for the form query.
    2. You will have to select the value into an interim PL/SQL variable and then set the form field using the portal session attribute.
    The following principles apply:
    * To set a field you have to use code like
    p_session.set_value(
    p_block_name => 'DEFAULT',
    p_attribute_name => 'A_RFS_ID',
    p_value => 30);
    p_session.save_session;
    where
    - p_session is available in most custom PL/SQL blocks - I'm not sure if its in the custom block for a button - this type of code is used mostly in the "cusom pl/sql before form is displayed" (last tab) - if its not available you might have to jump through some more hoops !:). It refers to a portal stored session that is used to store all the internal variables.
    - block_name is either DEFAULT for simple forms or MASTER or DETAIL for master/detail forms
    - p_attribute_name is the name of the field you want to set BUT (very important) prefixed with A_
    - p_value is the actual value - here you will use your pl/sql variable.
    so try something like:
    l_number number;
    select anumber into l_number from atable where ....;
    p_session.set_value(
    p_block_name => 'DEFAULT',
    p_attribute_name => 'A_field1',
    p_value => l_number);
    p_session.save_session;

  • IMAGE IN A FORM

    I'm trying to embed an image in a form. For example: show a persons picture with his name address etc. Can someone tell me exactly how to do this? The form will contain fields that are updateable. I tried this:
    Created a region;
    Created items A,B,C in this region
    Item A should contain a picture:
    Item A is defined as: Display as Text (escape special characters, does not save state)
    Element--
    HTML Form Element Attributes: ><img src="file:///C%7C/unzipped/Southwind/southwind_ss.gif" width="188" height="148"><td
    This kind of works, but everything seems misaligned.
    Is there a better or different way to do this?
    Thanks

    check permissions - unfortunately don't know the details, sorry!

  • How to change the image of the favourtie portlet

    Can anyone tell me how can I change the image of the favourite
    portlet ? I found that I can only change the title text but not
    the image. Any clue ?
    Thanks.
    -Maggie

    This is a hard coded image in the 3.0.x releases of Portal.
    If you want to change it, the only way you can do it today is to
    replace the ml_us.gif file which you will find in
    $ORACLE_HOME/portal30/images
    This is the image for the US language, there will be one for
    each language installed. e.g. ml_f.gif for French.
    If you replace that gif file with an image of your own using the
    same file name, then yours will be rendered rather than the
    default.
    Regards
    Jason

  • How to create Edit Image in my form

    hi All,
    I have a form with header and detail, in my detail block i need to add Edit Image in my form. When i click on this i should be able to open one of my text column.
    can any one please help me how to create new images....

    Siva,
    There is a different Technology Stack associated with the Enterprise Business Suite (EBS). amitphynyl is correct with the description of how to create a button with the edit.ico assigned to it, but with the EBS, you will want to speak to your DBA to get a list of all the Icons that are available as you will have more icons with the EBS than are available with a standard install of Forms Builder 6i. I would also suggest you ask your DBA to give you a copy of all the Icons so you can add them to your Forms Builder installation so they will be available to you during design of your Form.
    I would also recommend that you review the Oracle Applications User Interface Standards for Forms-Based Products guide in the Oracle Applications Documentation web site to ensure your Custom Form conforms to Oracle guidelines.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

Maybe you are looking for

  • New project won't work!!!!!

    everytime i start a new project and i try and drag  a title square or a pic from the factory box(the map for example) it won't let me drag it into the project. it just keeps going back to its original spot. it does the same with the music and everyth

  • Open Crystal Report in PDF

    Hi If I open the Crystal Report in PDF using the below code using weblogic 8.1 ReportExportControl exportControl = new ReportExportControl(); Object reportSource = session.getAttribute("reportSource"); exportControl.setReportSource(reportSource); Exp

  • EJB 3.0, BC4J and weblogic managed server

    Hi, I've got a problem using EJB 3.0 with a BC4J Application module in a weblogic managed server. My bean is a stateless session bean that use BC4J for database transaction. When I call the bean the first time, It returns de values I need, without pr

  • Inserting Image

    When I use "Insert, Image", the code appears as below with a forward slash (/) preceding "Buttons". This results in the image appearing in the design view but when tested in the browser, the image container appears but not the image. THIS CODE DOES N

  • Parental Controls Time Limits circumvented after upgrading to 10.6.5

    Sometime after upgrading to Mac OS 10.6.5, my son discovered a way to circumvent some of the time limits in Parental Controls. Here is the procedure: If I have allotted him 30 minutes, before his allotted time runs out, all he has to do is return to