LOVs in Portal Custom Form

I am trying to implement an LOV in a custom PL\SQL/HTML form (portlet). Has anyone had any success in doing this?

David,
Here is a sample that is standard PL/SQL and is not portal specific ... it does use the PL/SQL toolkit that is installed with Portal though....
The first procedures creates a drop down LOV that pulls its options from the database. It is based on the SCOTT.EMP tables. Then the second procedure receives the choice and displays the result. You can use this and expand for your specific application.
==========================================
CREATE OR REPLACE PROCEDURE pass_empno
IS
CURSOR c_select
IS
SELECT empno, ename
FROM scott.emp;
BEGIN
htp.htmlOpen;
htp.headOpen;
htp.title('Passing Information Using a Form Selectbox');
htp.headClose;
htp.bodyOpen;
htp.header(1, 'View Employee Information');
htp.formOpen(OWA_UTIL.GET_OWA_SERVICE_PATH | | 'display_ename');
htp.formSelectOpen('p_empno', 'Please select the employee number to view the name');
for v_select IN c_select LOOP
htp.formSelectOption(v_select.empno);
htp.nl;
end LOOP;
htp.formSelectClose;
htp.para;
htp.formSubmit(cvalue=> 'View Employee Info');
htp.formReset;
htp.formClose;
htp.bodyClose;
htp.htmlClose;
end pass_empno;
============================================
CREATE OR REPLACE PROCEDURE display_ename(p_empno IN VARCHAR2)
IS
p_ename emp.ename%TYPE;
BEGIN
htp.htmlOpen;
htp.headOpen;
htp.title('What you want display at top left of browser');
htp.headClose;
htp.bodyOpen;
SELECT ename
INTO p_ename
FROM emp
WHERE empno = p_empno;
htp.tableOpen(cborder=> 'BORDER=1');
htp.tableRowOpen;
htp.tableHeader(htf.bold('Employee Name'));
htp.tableRowClose;
htp.tableRowOpen;
htp.tableData(calign=> 'CENTER',
cvalue=> htf.bold(p_ename));
htp.tableRowClose;
htp.tableClose;
htp.bodyClose;
htp.htmlClose;
end display_ename;
null

Similar Messages

  • How to attach Item LOV to new Customized form.

    Is it possible to attach Item Lov to new customized form in EBS12.04.
    For example
    I have created new form and i want to attach LOV of Item like in Requisition Form a LOV attached with Item Text Box.

    Thanks avajain for reply,
    I can create new lov and attach it with item. But i want to call same API or LOV which is called from Purchasing-->requisition-->Item . Where from you select Item Class, Sub Class, serial.
    Regards,
    Fassi

  • How to implement a Date Picker (Calendar) as a LOV in Portal Form?

    I have a form, which will input date from user, and I also have javascript calender.
    How to implement a Date Picker (Calendar) as a LOV in Portal Form? Do I need to choose POPUP and LOV for Date?
    Instead of typing the Date within a Portal form, a popup Calender that will allow user to Pick a date.
    Please help anyone!!

    Once you have the JavaScript and have added it to your form, you need to the the following. First off, you need to be able to customize the HTML code for the form (i.e. choose custom for form type when creating the form). Once you do that go into the custom layout to customize your HTML code. Find the field you want to add the date picker to. It will be <#your_field_name.ITEM#>
    Paste this code after it:
    <a href="javascript:show_calendar('forms[0.elements[16');" onmouseover="window.status='Date Picker';return true;" onmouseout="window.status='';return true;"><img src="the source of your image file" width=34 height=21 border=0></a></TD>
    You will have to play around with the forms[0].elements[16]. 16 is what date field is set to. However your will differ, so just play with it.
    Hope this helps.
    Martin

  • Calendar Lov not showing in custom forms on EBS 12.1.1

    Hi,
    Previously i worked on Oracle Forms 6i but at present i am working on Forms 10g (Forms [32 Bit] Version 10.1.2.0.2 (Production)) with no patch.
    I build the custom forms and compile that in custom top on EBS 12.1.1 but the calendar lov is not showing.
    Build Step.
    Used TEMPLATE.fmb for scratch.
    Field name -Order date, Item Type- TextItem, SubclassInformation- TEXT_ITEM_DATE, DataType-Datetime, FormatMask -DD-MON-YYYY HH24:MI:SS,
    List Of Values- ENABLE_LIST_LAMP, Validate Form List- No
    Add 'KEY-LISTVAL' trigger in ORDER_DATE field and write 'calendar.show;' Trigger text but it's not working.
    If Above steps apply on forms-6i then calendar lov populated on EBS 11.5.10.2.
    I know this is very old topic and found lots of post for this topic but none of them help me.
    Could any one help me if anything i missed for Forms-10g with EBS12.1.1 ?
    Thanks in advance.

    Hi Srini,
    Thanks for your reply.
    You can see i followed the all the above steps as mentioned in the article.
    But still it's not working.
    If you implemented the Calendar LOV in EBS12.1.1 through forms 10g then please give me your steps.
    AS per my understanding the below is the required steps.
    1. Item Type - Text Item
    2. Subclass Information - TEXT_ITEM_DATE
    3. Data Type - Datetime or Date
    4. List of Values - Enable_List_Lamp
    5.Add key-LISTVAL trigger and written calendar.show;
    Thanks
    Edited by: user10977928 on Aug 6, 2012 1:25 AM

  • How to display custom forms or reports on portal pages?

    Hi friends
    I am new to Portal. I knew that we can create forms and reports in portal.
    But how can i display a custom form ( ex: employee.fmb) on a portal page?
    Thanks
    Ravi

    Are you meaning Oracle Forms Module and Oracle Reports?
    If so
    please check the following
    Reports
    http://download-uk.oracle.com/docs/cd/B14099_15/bi.1012/b14048/pbr_conf.htm#sthref494
    Forms (you can only invoke forms using the SSO)
    http://download-uk.oracle.com/docs/cd/B25016_02/doc/dl/web/B14032_02/security.htm#sthref42
    Otherwise you can create your custom HTML form and report using the following technologies:
    http://download-uk.oracle.com/docs/cd/B14099_15/portal.1014/b14135/pdg_matrix.htm#CHDJIEIH
    Please refer also to:
    http://download-uk.oracle.com/docs/cd/B14099_15/portal.1014/b14135/pdg_understand.htm#sthref35
    Hope this helps
    Cheers
    Diego

  • Isuppliers included in customer Lov in Standard Find Customer Form

    Issue:
    On the Customer Standard form, when queried for the customer name, the lov gives list of true customers and isuppliers (Which i think are internally created as parties after isupplier registration and may be thats the reason its showing in the list).
    But we want only the true customers (has account number) not the isuppliers (no account number) in the list.
    1.Please let me know if isuppliers are created as parties? I am pretty confused here.
    2. Is it the oracle standard functionality to pull all the parties (including the party created due to the isupplier registration) in the customer name field of the standard find customer form ?
    3. Also, is there a way to modify the standard form to include only the true customers in the lov of customer name?
    4. Is there a way to query suppliers which are registered in iSupplier from po_vendors or hz_parties tables?
    Please assist. Thanks.

    Hello Shrilakshmi,
    The fields which are used in additional data while creating customer master are must define in customer master table using ci_include or append structure. So it automatically comes in bapi or everywhere wher u used that table.
    Regards
    Dhiraj Dangore

  • How to attach custom form LOV to find (torch symbol) button

    Hi,
    We are working on Oracle Applications 11.5.10.2. We are customizing new forms and registered with Oracle Apps, there are lov's on the form and we want to attach lov to the find button on tool menu.
    Our requirement is when ever click on find button, it has to display all the values in the LOV. But our custom form is not reaching this requirement.
    Please help us in this regard to make link between LOV and find button
    Thanks in Advance...
    Venky.

    Hi,
    I can you make your requirement a bit clear.
    From the below text what I could able to understand is, when we click on the browse button(i.e. tourch symbol) it should dispaly a list of values from which we can select a values and the form will display the records pertaining to onl those records .Is that True?
    Rgds,
    Naveen.

  • How to initialize org in a custom form in R12 upgrade

    Hi,
    We are migrating a custom form from 11i to R12. But the form and LOVs in the fields dont return any values in R12. The custom views attached to these LOVs, return values in toad when the org is set. We think that the issue is that the org is not initialized in the form.
    Can anyone help on how to resolve this?
    Would it help if we used "MO_GLOBAL.SET_POLICY_CONTEXT('S',fnd_global.ORG_ID);" in the when new form instance trigger in the form.
    Thanks

    Use following code in when-new-form- instance form level trigger
    FND_ORG.CHOOSE_ORG;
    :PARAMETER.ORG_ID:=FND_PROFILE.VALUE('org_id');
    then insert following in pre-insert block level trigger
    :ORG_ID := :PARAMETER.ORG_ID;

  • How to set org in a Oracle custom form

    Hi,
    We are migrating a custom form from 11i to R12. But the form and LOVs in the fields dont return any values in R12. The custom views attached to these LOVs, return values in toad when the org is set. We think that the issue is that the org is not initialized in the form.
    Can anyone help on how to resolve this?
    Would it help if we used "MO_GLOBAL.SET_POLICY_CONTEXT('S',fnd_global.ORG_ID);" in the when new form instance trigger in the form.
    Thanks

    YOu should ask your question in an ebusiness-suite related forum.

  • How to register custom form into Oracle Applications

    I created a custom form based on a custome table, then I registered in Oracle applications, but it is not opening properly in Oracle applications. It is running fine outside of Oracle Applications. Are there any standard packages which I need to attach while creating this custom form.
    Please help.

    1. Copy your form (test.fmb) into $AU_TOP/forms/US
    2. Compile with f60gen
    3. Copy the test.fmx file to $PRODUCT_TOP/forms/US
    4. Login to Oracle Applications with sysadmin user
    5. Select Application Developer responsibility
    6. Navigate to Application - Form -
    7. Enter the values for following parameter
    Form = test
    Application = You can select from LOV
    User Form Name = Enter as you like
    Description = Enter if any
    8. Navigate to Application - Function
    9. Enter the values in the function form
    in Description TAB - Enter the value for Function, User Function Name, Description
    in Properties TAB - Type = FORM
    Maint.Mode Support = None
    Context Dependence = Responsibility
    in Form TAB - Form = Select your form name that already registered (above one)
    Application = Will display
    Parameters = STARTUP_MODE= TEST
    10. Now you can attach the form in Menu then Responsibility
    Revert back if you have any query.
    Regards,
    S. Velusamy Raja
    Oracle Apps DBA

  • How to find custom forms in FND_FORM

    Hi All,
    I Retrieved data from fnd_form table.I got total forms.But i want only custom forms.How to find custom forms.How to retrieve only custom forms.
    Thanks& Regards,
    Raghu

    Hi,
    Edit form
    You use this form to create or change individual documents (for example, single news items). Typically, this form contains input fields in which you can create content (for example, the title or text for a news item).
    Show form
    You use this form to display a single document. Typically, the Show form displays all elements of a document (for example, the title, author, and all the text contained in a news item). Do not use entry controls on the Show form.
    RenderListItem form
    You use this form to define the layout of a list entry in a folder in the flexible user interface. Typically, you display some of the elements of a document, such as the title and summary of a news item, on this form. You call up the Show form if you want to display the entire document.
    You do not create pushbuttons or links for creating, changing, or deleting XML documents in the RenderListItem form. You define which commands are to be displayed using command groups of the flexible user interface. You can create several iViews for displaying the same XML documents with different command groups.
    ListEdit form
    You use this form to change a list of documents. Typically, this form contains pushbuttons for creating, changing, and deleting entries. You call up the Edit form if you want to change or create content. You call up the Show form if you want to display all entries.
      ListShow form
    You use this form to display a list of documents. Typically, this form only displays part of a document element (for example, the title of a news item). You call up the Show form if you want to display the entire document.
    Refer this documents
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ee639033-0801-0010-0883-b2c76b18583a
    Regards,
    Kumar

  • Oracle APPS custom form using KFF is not working as expected

    Hi,
    I have created a custom form and using KFF to accept code combination in line block. My custom form is based on AP_INVOICES_INTERFACE and AP_INVOICE_LINES_INTERFACE.
    When I query the records in form and update the code combination field using keyboard (typing or copy-paste) it works fine at first time but when I re-enter another code then it does not accepts the new code and reverts to previous code. Form accepts the same code when KFF screen is using by pressing LOV button. I concluded this problem as "when record status is QUERY then KFF works fine with keyboard but when record status changes to CHANGED then it does not accepts the new code when entered using keyboard".
    I have created all triggers and invoked relevant fnd_flex.event in triggers. I have created PRE-QUERY, POST-QUERY, PRE-INSERT, PRE-UPDATE, WHEN-VALIDATE-ITEM, WHEN-VALIDATE-RECORD, WHEN-NEW-ITEM-INSTANCE, KEY-EDIT, KEY-LISTVAL at form level and calling FND_FLEX.EVEND and APPS_STANDARD.EVENT (where required) in triggers.
    This same issue is in AP Invoice Workbench form. When updateing code combination in distribution block in invoice form is showing same behaviour.
    I am running this form in 12.1.2, same form is working in other instance which is on 12.1.3.
    Please help.
    Regards,

    Please check the below link just to make sure all steps are taken care.
    http://oraclemaniac.com/2012/08/15/how-to-add-a-descriptive-flexfield-dff-in-a-custom-oracle-apps-form/

  • Travel Expense (Portal) - Adobe Form

    Hi:
    We recently implemented Adobe Forms for travel expense booking via portal. For that the necessary ADS configuration and other development changes were made. It is working fine except one issue. When we display/print an existing expense report on portal, it opens in pdf form with ides logo and other standard wording on it. How can we modify that print form to match our template? Where exactly that print form is assigned so that we can customize it?
    Please advise.
    Thanks.
    RG

    Upload your custom form via SFP.. and you can copy the standard travel expense form PTRV_EXPENSE_FORM which I think you already did (check the 2nd and also note 944221 if you have any problems with initiating the travel form)
    http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=233410928
    http://wiki.sdn.sap.com/wiki/display/ERPHCM/CustomizingTravelExpenseforms%28SFP%29
    These wiki links may help
    Edited by: Sally Redmond on Jun 2, 2011 9:23 PM

  • Report name LOV in Submit request form in Oracle Applications

    One of my client have a requirement to make modification in List of Values of Report Name on Submit Request form in Oracle Applications.
    Currently or by default it displays the reports order by Applications name, but the requirement is that It should display reports Order by Report Name instead of Applications Name.
    Any one have idea how to customized the form, can it is possible through custom.pll or any other method.
    THanks in Advance
    Muhammad Ali

    The Report Submission screen is FNDRSRUN. The LOV for the concurrent program name is based on the PROGLOVDEF record group, which has the "order by a.application_name, p.user_concurrent_program_name" order by clause.
    As far as I know, you cannot modify the query for a "static" record group (defined in the form) at run time, so I can't see that you could do anything with the CUSTOM.pll.
    However, you could create a customised version of the form (same name) with a different order by on the record group, but then you have to reapply the customisation every time the form is patched (or you lose the customisation).
    You can create a custom copy of the form (different name) and then update all of the functions that call the standard form to call your custom form, but there are lots of functions that call this standard form and you have the problem with patches overwriting the customised function anyway.

  • PORTA  R2, custom form for uploding files

    Hello,
    I want to create a custom FORM in order to upload files by the BROWSER, I followed the example in the mod_plsql User's Guide, but it didn't work.
    1. First, I created the table myTABLE
    CREATE TABLE myTABLE
    WHO VARCHAR2(128),
    DESCRIPTION VARCHAR2(128),
    ARCHIVE VARCHAR2(128)
    2. I created the HTML page to send the file:
    <HTML>
    <HEAD>
    <TITLE>test upload</TITLE>
    </HEAD>
    <BODY>
    <FORM enctype="multipart/form-data" action=INTRANET.WRITE_INFO metthod="POST">
    <p>Autor's Name:<INPUT type="text" name="who">
    <p>Description:<INPUT type="text" name="description"><br>
    <p>File to upload:<INPUT type="file" name="file"><br>
    <p><INPUT type="submit">
    </FORM>
    </BODY>
    </HTML>
    3. Finally I built the write_info procedure
    PROCEDURE INTRANET.WRITE_INFO (who IN VARCHAR2, description IN VARCHAR2, file IN VARCHAR2)
    as
    begin
    insert into INTRANET.myTABLE values (who, description, file);
    htp.htmlopen;
    htp.headopen;
    htp.title('File uploaded');
    htp.headclose;
    htp.bodyopen;
    htp.header(1, 'Upload Status');
    htp.print('Uploaded ' || file || ' ok');
    htp.bodyclose;
    htp.htmlclose;
    exception
    when others then
    null;
    end;
    When I try to upload the file by the browser,the table myTABLE is updated, but the file is not uploaded in the table portal.wwdoc_document$.
    I'll be very pleased if somebody could help me with that.
    My e-mail: [email protected]
    Thanks a lot.

    Hi,
    If you are using your own HTML form this will not happen because you are not using any of PORTAL's code. You can do this using the portal forms component.
    Thanks,
    Sharmila

Maybe you are looking for

  • Strike a word in abap

    Hi All, I need to strike a word in abap... For ex : daughter It should come as daughter Thanks,

  • Change job owner for job owned by a report server process

    Question on a SQL 2008 Enterprise Edition (64-bit) I have changed the owner of a couple of jobs (owned by a report server process) using Management Studio. The new user has sysadmin role just like the previous one had. Then I kept thinking on the job

  • Epson 4870 on Vista with CS3 will not scan

    I have an Epson 4870 scanner which I'm using with my Vista Home Premium (32 bit)software. When I first installed it, it worked fine. However, some update came along and made that a thing of the past. I've tried uninstalling and reinstalling. (The dri

  • Dreamweaver cs5 hangs on start

    every time i start dreamweaver cs5, it get stuck on initializing files, i  cant even do end task on it. i tried giving administrator permission,  try switching to xp compatible or vista, nothing works. anyone knows  what can be the problem? i have at

  • Int'l keyboard settings not saved during reboot

    I have a G5 tower that I updated to Leopard. Generally, everything seems fine but there is one thing that is irritating: I have US English set as my main keyboard, but I often switch to Japanese and Korean to insert a few characters. So, in my keyboa