Problems of form portlet

I am new to orcale portal. Here is some simple questions. I hope someone will help me. Thanks in advance.
How to detect duplicate records when insert or update?
e.g. I created a form based on table/view. My requirement is when I am doing insert or update, it will check the database for duplicate record. If duplicate is found, It will generate a user defined meaningful message and stops processing else submits the form. Can this be done by adding PL/SQL codes with 'insert' button?
Another question is, I want a 'preview' button to show the user the content that he just filled in before submitting the content. e.g, if a user put some HTML codes in one field of the form, he is given the preview before he submitting the content. My question is, if I use javascripts event handlers for the 'preview' button, how to get the value that the user put in from the session?

Violet,
I believe what you are talking is having created a portlet via the Display In Place (DIP) provider and creating it via the Providers tab under the Navigator page.
If this is the case... you cannot change this. The thing is that the underlying functionality is creating packages in the database for a specific database schema, where you can't move these straitaway as they refer also to data within some tables inside the Portal.
Maybe you can ask the Oracle Support to file an Enahncement Request.
I hope it helps...
Cheers,
Pedro.

Similar Messages

  • 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

  • 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

  • Passing parameters between form portlets on two different pages ...

    Here is a brief summary of our problem.
    We have one master form and a detail form which are published as portlets and placed in two different pages.
    Now i want to pass parameters from master form portlet resides on one page to detail form portlet resides on another page.
    Say for example, when i invoke master form (created based on demo DEPT table), enter values on fields then invoke another page
    on which the second form portlet (say form based on EMP demo table) resides. Now i want to pass deptno to second form and
    get displayed in deptno field of second form.
    I was looking at the following posting, but how to do this when forms are published as portlets and placed on two different pages ?
    http://forums.oracle.com/forums/message.jsp?id=997683
    Customer actually want to pass a parameter from master form to 5 detail form portlets resides on different pages.
    This is bit urgent as it is the only problem stopping the customer go live.
    Thanks in advance.

    Please refer to post Re: session state security
    It tells you how to populate a form portlet in a page by clicking on a link in a report portlet.
    You can use the wwsto_api_session objects to store data submitted by the master and let the detail form pick it up and proceed with the query.

  • Form portlets give preference path errors

    Hi there,
    I've created a number of application components that work well
    in isolation. However, when I place them as portlets on a page I
    often get the following (or similar) error messages when I flick
    between the tabs that contain the portlets.
    Error: An unexpected error occurred: ORA-01403: no data found
    ORA-01403: no data found (WWV-16016)
    An unexpected error occurred: ORA-01403: no data found (WWV-
    16016)
    The preference path does not exist:
    ORACLE.WEBVIEW.PARAMETERS.753_RP_MAINT_ROV_COMPONENT_2498561
    (WWC-51000)
    My components all share a small number of tables and I find the
    problems usually occur when I delete a record from one form
    portlet and then click on a tab to display a different form
    portlet. My forms all contain combobox LOVs based on a query.
    What is causing such annoying problems? I need to fix it ASAP!

    repost...

  • 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.

  • Problem viewing forms.This form is not supported with the current version of Adobe Reader.Upgrade to the latest version for full support. That does that mean exactly?

    Problem viewing forms.This form is not supported with the current version of Adobe Reader.
    Upgrade to the latest version for full support.
    What exactly do I need to do?

    That means you were probably using Adobe Acrobat to view PDF's. Acrobat is totally unnessary, you can view PDF's in Preview (Applications - Preview).
    BTW PLEASE complete your profile. It's very difficult to help  someone when they don't provide any information about their system. You can easily do this by clicking Your Stuff in the upper right of this page, then click Profile and fill in the pertinent information.

  • 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;

  • Role Based Access problem in forms

    This would be a long reading.
    I'm having a problem with forms Role Based Access.
    We have two databases, one in London and one in Zurich. We have installed
    application server and oracle forms on London database. We have implemented
    Role Based Access to forms. For this we have created a database role (say ZUR_USER)
    in both databases. The view FRM50_ENABLED_ROLES which is used by forms role based access control
    is also created in both databases with a 'grant select to public'.
    Our form system has a menu and forms under that menu. Both menu and the underlying forms have been
    assigned Menu Security/Item Roles to the above mentioned ZUR_USER role and the role is assigned
    to various users.
    Now a Zurich user is trying to login to Zurich database using the URL for forms installation
    in London server. He can login successfully and can see the menu heading in the main screen but
    when he clicks the menu he doesn't see the underlying forms list.
    When we try the same user id and database from London (using the same URL) we see all the forms.
    Any idea what are we missing. The Menu Security is setup at menu level as well as the form level under
    that menu. User can see the menu but not the form under that menu from Zurich. No such problem while
    login from London.

    I'm using the Forms 10g
    and yes the only difference is between login from Zurich and London.
    Problem definitely is due to Role Based Access setup.
    The user in Zurich can see the Menu but not the items under that menu.
    I have set the security set up at both menu and menu item(i.e. form name) level.

  • Problem in Forms...in 11i

    Hi All,
    i have created a form, and uploaded to respective directory. From apps menu it is calling the form and working fine, but the foreground colour is black...
    So if i highlighted the field then i can see the field value; otherwise full text field is black.
    Do i need to set any thing?
    If I run from directly from form6i, it is showing perfectly fine.
    Rg,
    Subir

    Duplicate thread ..
    Problem in Forms...
    Re: Problem in Forms...!!!

  • Facing problem in placing portlets in Web Layout

    I am facing problem in placing portlets on Web layout page-
    1. I am getting some space between the regions. I want that my portlet should join adjacent only not even a single pixel gap should be there.
    2. In Web Layout, First region is the left most and after that subsequent region comes right to first region and one after other. But my second and third region's portlet are coming adjacent instead of third region's portlet coming under second region's portlet
    Please help...............

    The first issue is a bug/feature that has been changed in 3.0.8 (9iAS MR1) due out this week. In previous releases we added spacing arbitrarily. Now, you can define the spacing in the region properties.
    I don't understand issue number 2. Can you clarify the problem?

  • Using a Simple Parameter Form Portlet with a Report Portlet to Search DB

    My organization registers clients for workshops in iLearning.We use iPortal for our web site. I would like to use a Simple Parameter Form Portlet for clients to conduct a search on the data that is in iLearning and have it displayed in a Report Portlet on a separate page. I have been able to bring the iLearning data into the Report Portlet but I have not been successful in setting up the Simple Parameter Form Portlet to do a search on the data and then have it displayed. Any suggestions.

    hi,
    i just tested this in portal 10.1.4 and it works fine. you can fire an event and pass a parameter from a simple parameter form portlet and consume this page parameter in a portlet builder reports component. there is some documented behavior in bug 3321558 that has to do with personaliziation (customization in older releases). if you enter some personalization the page parameter gets ignored. for more information on this please contact oracle support services.
    regards,
    christian

  • Problem in form based authentication

    Hi,
    I am encountering some problem in form based authentication.
    When I try to login for the first time. It reoute me to the image
    directory and not to the request page.
    When I try it for the second time, it shows
    "Form based authentication failed. Could not find session."
    And it always show this message no matter how many time I try.
    I am not sure is it something that I did not set ...
    Thanks for any advice.
    Eric

    Hi Eric,
    It may be a problem in your web.xml, I missed the "/" slash character
    in the web.xml's in <form-login-page> element. So your web.xml
    must look like

  • Facing problem in placing portlet on Web Layout

    I am facing problem in placing portlets on Web layout page-
    1. I am getting some space between the regions. I want that my portlet should join adjacent only not even a single pixel gap should be there.
    2. In Web Layout, First region is the left most and after that subsequent region comes right to first region and one after other. But my second and third region's portlet are coming adjacent instead of third region's portlet coming under second region's portlet
    Please help...............

    The first issue is a bug/feature that has been changed in 3.0.8 (9iAS MR1) due out this week. In previous releases we added spacing arbitrarily. Now, you can define the spacing in the region properties.
    I don't understand issue number 2. Can you clarify the problem?

Maybe you are looking for