Making a form portlet reusable by allowing a parameter to be passed to it

I have a form that allows maintenance on records. I need to filter the records that a user can maintain, (and insert) based on a column value. I can accomplish this by setting the default value for the (hidden) column. When I query and maintain the records in the form it behaves correctly by only affecting the records for the default value. Now I want to place the form into multiple pages as a portlet.
The goal is to be able to change the default value for the portlet (reuse). I've seen many postings on how to pass things to and from forms, but nothing seems to address allowing a user to easily customize the portlet.
Any bright people out there have a creative solution to this?

I discovered the way to do this is by making the form based on a procedure and creating link to the form. When a form is based on a table or view, the link will pass field information and return records, when a form is based on a procedure there are no records to retrieve so it sets values passed as default.

Similar Messages

  • 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

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

  • 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

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

  • How can I create a long employment form without making the form widget drag?

    How can I create a long employment form without making the form widget drag?

    Sorry Sachin, I mean that I created a simple form on the page from the widget and started adding fields to it. The more fields I add the slower the delay becomes in creating a new field. Even when I try to select and drag or move an item, there's a huge delay and sometimes the program feezes,  loose what i've done and have ot restart.
    I'm doing an enployment form that has more than 20 fields, at least, and I need to be able to build the fields in separate categories, like Education, Past Employment, etc... quickly without delay issues.
    I can probably send you a snap shot of what I'm talking about if I cna post it or attach it here..?
    ~Andy

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

  • Making a form secure

    I am pretty new at this and I am making some forms that need
    to be secure. I was wanting to know how to go about it.

    .oO(scip-a-roo)
    >I am pretty new at this and I am making some forms that
    need to be
    >secure. I was wanting to know how to go about it.
    Security can mean a lot of different things. So what you're
    after
    actually? Some more details, please.
    Micha

  • Which version of the Forms Central subscription will allow me to export data to excel (CSV file)?

    Which version of the Forms Central subscription will allow me to export data to excel (CSV file)?

    Hi Heather 349
    I believe you can do it with both FormsCentral Basic and FormsCentral PLUS
    Also Refer : Tutorial: Exporting Responses to Excel, CSV or PDF

  • 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

  • Form Portlet Now Displaying

    I have created a Form Portlet but my form does not display. I created I report against the same remote database (using a DB link and a public synonym) and it works fine.
    I can edit the Form Portlet but can't do anything to make it show up on my page.

    there must be some code which commits or posts the data in any other trigger.

  • Help!  Replace form portlet with report portlet

    I have a page with 2 column regions. The right region contains a form portlet based on a stored procedure. When the user submits the form data, I would like the stored procedure to replace the form portlet with the report portlet results.
    How can I do this?
    Thanks,
    Ed

    Hi,
    You can call the report in the form success. But this would replace the page with the report. The other way is to create a page with
    the report portlet and call this page in the success of the form.
    Thanks,
    Sharmila

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

Maybe you are looking for

  • How can I make hyperlinks work from a Flash/SWF presentation?

    How do you make hyperlinks/buttons work in Flash/SWF Captivate 5.5 presentations? This did not seem to be an issue with Version 4. I cannot publish to video (i.e. mp4) or as an executable file for posting on our internal system. If it cannot be done

  • HP LaserJet Pro 400 color MFP M475dn (CE863A), Localisation?

    Hi! Is there RUSSIAN menu in HP LaserJet Pro 400 color MFP M475dn (CE863A)? Thank you

  • Using Time Capsule as just a backup. (Need Help)

    There are two Time Capsules in our home.  We use one with our modem for our home Wi-Fi.  The one that I have on my desk, I would like to just use it as a back.  Does anyone have any idea as to how I can set it up to my iMac for just a back up?

  • Power Plane Problem: Only one layer as an option.

    Dear all, I try to use Create Power Plane tool as usually, but for some reason bottom layer is already selected and it can not be changed. I am using dual layer board, so there should be also top layer. I can draw traces and everything except the pow

  • Deletion of Release Group and Code in PO

    Dear Consultant, In Purchase order, we have created some release group and code, Unfortunately we deleted some groups Without deleting in Order wise. In table level the Release Group is there but in SPRO Release Strategy settings its not there..My co