Adding Additional Columns in LOV,That column capturing values from function

My requirement:
Adding Additional Columns in LOV,That column values capturing values returned by function.....
Give me the ides to achieve this...

Hi Subramaniam,
If your requirement is to call a Database function then please make use of the below code ,
import java.sql.CallableStatement;
import java.sql.SQLException;
import oracle.apps.fnd.framework.server.OADBTransactionImpl;
OAApplicationModule oaapplicationmodule = oapagecontext.getApplicationModule(oawebbean);
OADBTransactionImpl txn = (OADBTransactionImpl)oaapplicationmodule.getOADBTransaction();
CallableStatement cs = txn.createCallableStatement ("begin :1 := xxpackageName.xxfunctionname(:2,:3); end;",-1);//Replace your function Name
try
cs.registerOutParameter(1, Types.VARCHAR);
cs.setString(2,InputParam1); // InputParam1 is the name of variable captured from the OAF page and passed into function as input parameter
cs.setString(3,InputParam2); //InputParam2 is the name of variable captured from the OAF page and passed into function as input parameter
String outParamValue = null; // outParamValue will capture the value returned by function .
cs.execute();
outParamValue = cs.getString(1);
catch(SQLException sqle)
throw new RuntimeException(sqle);
finally
cs.close();
Let me know if its not clear .
Keerthi
Edited by: keerthioaf on Nov 23, 2012 5:17 AM

Similar Messages

  • LOV that returns multiple values

    Apologies if this is a daft question or has been solved before...
    How do I have a standard type of LOV (not java pop up) that displays one value as normal but, upon selection of that value, populates a number of other items in the region?
    i.e.
    instead of an LOV like
    select col1 d, col2 r
    from table_name
    order by col1
    I'd like:-
    select col1 d, col2 r, col3, col4...etc
    from table_name
    order by col1
    with the additional values passed into 'text' items in the region.
    Thanks,
    Tom

    Thanks, the problem is that there may be up to a few hundredl hundred values in the lov. So this isn't practical to use the multiselect list. ideally there would be something like a poopup love, only when a value was chosen the value would be copied back into the main page, but the popup lov would stay open so that more values could be chosen.
    I think this isn't implemented in apex, so I'll have to think about how to do this myself, or possibly make people open a new lov everytime...

  • UIX LOV: How to Design an LOV that provides lookup value to multiple field

    Hi,
    I've have an input form which has following fields.
    1) Task Name1: (input lookup field. invokes LookupTask.uix)
    2) Task Name2: (input lookup field. invokes LookupTask.uix)
    3) Task Name3: (input lookup field. invokes LookupTask.uix)
    4) TaskId1 (hidden form field. tied to field Task Name1)
    5) TaskId2 (hidden form field. tied to field Task Name2)
    6) TaskId3 (hidden form field. tied to field Task Name3)
    the way I intend to have the LOV work is as follows:
    The three Task Name input fields are populated by using the same LOV page LookupTask.uix. The user will select a task name from the LOV page.
    When the user invokes the LoV against the TaskName1 field, and selects a value from the LoV and closes it, then it should transfer the task name from the LoV to the Task Name1 field and the corresponding task id to TaskId1 hidden field on the input page. If the LoV was invoked from the TaskName2 field, then the lookup values should be transferred to the TaskName2 and TaskId2 fields correspondingly.
    I am able to make it work if there is just one pair of field, i.e. TaskName1 and TaskId1. I'm not able to make it work with multiple fields served by the LOV window.
    any suggestions on making this work will be greatly appreciated.
    thanks
    Lalit Agarwal

    Lalit -
    Have you tried setting the onLovSelect attribute on the lovInput to a javascript callback function that populates the hidden form fields?
    Matt Lee
    UIX Team

  • Capture value from the input field

    Hello All,
            I'm new to BSP.
    I have a small querry.
    I have a input field.
    beside this a push button.
    if i enter a value in the input field and press the push button, i need to capture the value from the input field and pass it to a variable contained in a class.
    i'm attaching the layout code here.
    but i'm not knowing what to write in the event(on input processing)
    <u><b>Layout code &#61664;</b></u>
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content design="design2003" >
      <htmlb:page title        = "Page to take the value from the screen and pass to the class "
                  marginBottom = "100"
                  marginLeft   = "250"
                  marginRight  = "100"
                  marginTop    = "100"
                  scrolling    = " AUTO" >
        <htmlb:form>
          <htmlb:tray id        = "tray1"
                      hasMargin = "TRUE"
                      title     = "Value Capture"
                      width     = "350" >
            <htmlb:textView text      = "Enter a value"
                            design    = "emphasized"
                            textColor = "negative" >
            </htmlb:textView>
            <br>
            <htmlb:inputField alignment = "left"
                              id        = "gv_var"
                              required  = "true"
                              type      = "STRING"
                              design    = "standard" />
            <htmlb:button design  = "emphasized"
                          id      = "button"
                          text    = "SUBMIT"
                          onClick = "btn_click" />
            </br>
          </htmlb:tray>
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    eventhandler&#61664;on input processing code
    DATA: event TYPE REF TO if_htmlb_data.
    event = CL_HTMLB_MANAGER=>get_event_ex( request ).
    IF event->EVENT_NAME = 'button' AND event->EVENT_TYPE = 'click'.
        ENDIF.

    HI BSPian,
        htmlb:inputField value = "<%= v_value %>"
                         id = "gv_var"
                         required = "true"
                         size = "10"
                         type = "STRING"
                         maxlength = "10"
                         design = "standard" />
    Here u mean to say that v_value must be one more field type string. is it so ?
    But i want to see the value in the same input field
    id ="gv_var". i.e if i enter the value "BSPian" in the input field and press "submit" the internal processing will be done as told by u and after that ,on the screen i want to keep that value till i end that session.
    i passed a variable v_value in the inputfield value but it's not working ..
    regards,
    deepu.

  • How to create a multi column list item and select these values from a LOV

    Hi all,
    My requirements are:
    1) create an LOV which holds the productno, productname and productprice fields (this is working)
    2) at run time, select one record from LOV and populate the list/grid with this selected record values of productno, productname and productprice fields, so we are showing them on the form in the form of a table/grid (not working)
    3) be able to select multiple records from LOV and be able to populate the list item with multiple records (not working)
    4) have two more columns in the list/grid, for productquatity and total price (not wokring)
    Please help me.
    how can i create this grid or list in oracle
    whats the possible way of acheiving this in oracle

    If you use a list item to display multiple columns then you'll need to use a fixed-width font. You can achieve a similar look with proportional fonts by using a normal block and setting the fields' bevel to 'None'.
    Each column in the LOV has a Return Item property (under Column Mapping Properties). Set this to a :block.item reference for each column to bring the data back into those referenced fields.
    You can't select multiple records from an LOV. For this you will need to create your own form. Check the help for system.mouse_button_modifiers to see how to respond to Ctrl+click and Shift+click.
    To add columns just modify the LOV's record group's query.

  • Can I create a Master PDF that pulls field values from multiple PDFs?

    I am designing a tracking system for a class and want to have the student fill out a basic information form that tracks personal information and individual test grades.  As an administrator, I want to have a master list that can track the entire class and pull in their grades, calculate class average, and order them accordingly.  Ideally, it would pull from a folder of these student PDFs.
    Does Adobe have a way to do this?  I have LiveCycle and Acrobat Pro.

    Thanks for the very prompt answer!  That seems like it sort of does what I want - however, once I leave the course, I want to have the system continue to work - and future Admins probably wont have access to Acrobat Pro, or the technical knowledge to send out looking for responses.  Nor is there a sharepoint (or equivalent drive) to set.  Perhaps some further explanation is required.
    There are multiple classes going on at one time, and each class gets a folder on a standalone machine, with a different Admin in charge of each class.  When one graduates, another one fills in behind them a week or so afterwards.  So what I need is a "template" file for student data, and a template "Master list" that pulls from all of the student data PDFs in that folder, locally, without the Master list having to send out requests for information.  That way, when a new class starts, the students can email in their student data, the Admin can pop them all in a folder with a blank Master List template, and when the admin opens the Master list, it populates with all the data from the student sheets.
    Hopefully that is a little clearer, and hopefully doable!  It really needs to be pretty darn simple.  We used to do it in Excel, and gave each student a tab where we copy/pasted their basic data - and a crosslinked sheet pulled it into the master list.  Alas, that looked unprofessional and sometimes was very troublesome when the students altered the Excel form in any way or put things in the wrong cells.
    Thanks!

  • How to Capture Value from Form in DFF at Data Entry Level

    I need to catch some Atrribute into DFF, which are stored in Customer Master DFF to Order Entry Form DFF, when that Particular Customer is selected.
    For e.g. If in DFF of Customer Master Attribute1 is 'XYZ' for ABC Customer.
    When user is booking Order For that Customer, Order Heaer DFF should be polulated by 'XYZ'.

    Use NAME_IN function to get value.

  • How can I decode that MIME format value from cookie?

    Hello:
    I have a cookie that data was encode by MIME format.
    It's like this "N2eauTdoJ1lwcm9mc3B3MkB3ZWJmYXJtLmRlYXJib3JuLmZvcmQuY29tAGJiYXJlbAAxOS40NC41Ni4zNgB="
    So, please tell me how to decode these value?
    Thousand thanks for your help.
    Very appreciate it.

    Your cookie is formatted with Base64, it seems.
    I ran the program (below) which uses Base64 decoding and got the following result (from the string you posted):
    7g�&#9571;7h'[email protected] bbarel 19.44.56.36
    First get a free Base64 utility here (or if you already have another Base64 decoder)
    http://ostermiller.org/utils/#download
    Then use code like:
    import com.Ostermiller.util.*;
    public class Test {
         public static void main(String[] arg) {
              String encCookie = "N2eauTdoJ1lwcm9mc3B3MkB3ZWJmYXJtLmRlYXJib3JuLmZvcmQuY29tAGJiYXJlbAAxOS40NC41Ni4zNgB=";
              String cookie = Base64.decode(encCookie);
              System.out.println(cookie);
    }

  • How 2 make a function that gets a value from DB without reloading?

    Hi every1,
    I'm facing this problem where I have to get a value (which always change) from database through a button function which is in Java scriplet.
    Now the scriplets (codes within <% and %>) contain calls to the database which get the value, but this is only done when the page loads. So everytime I neeed to get the latest value, I need to reload the code. Is there a way around this?
    Thanks!
    Regards,
    Venus

    Add a meta refresh header to let the page refresh itself at certain intervals.
    <meta http-equiv="refresh" content="10">This will refresh the current page every 10 seconds.
    By the way, Java code belongs in Java classes, not in JSP files. Avoid scriptlets as much as possible. In this case use a Servlet and a DAO.

  • Code for capturing values from BARCODE Label using Scanner into SAP FIelds

    Hi Gurus
    i am a functional consultant and have not worked on <b>BARCode label Scanning</b> using a barcode Scanner, For my project i need to Sccan a BArcode label which has 25 fields and need to populate it into 16 SAP fields.
    and these values are then saved in a custom Z table from whwre it can be used for other t-codes and reports
    So can anyone please help me as to how to do this and is there any steps for uplaoding this data directly while scanning the label??
    Thanks in advance for your help and appreciate your responses
    Regards

    Hi,
    There were tools and method by which we can read barcode data.
    Can you please let me know what is the instrument you are using and whether it was integrated with SAP or not?.. If not you can as barcode reader manufacturer for some executable files for to read the current value of barcode. By executing those files we can read the current value of Barcode into SAP through some function modules.
    Thanks,
    Saida Rao

  • Return multiple values from dynamic lov in apex 3.2.1

    Hi
    I need to create a dynamic lov that displays multiple values from a table and RETURNS multiple values into display only fields in a form page to be saved to the database
    For example
    dynamic list of value name SERVER
    select name || ',' || life_cycle d, name r
    from sserver
    order by 1
    This SERVER LOV is attached to the P4_SSERVER_NAME field in the form.
    However this only returns sserver. name into the P4_SSERVER_NAME field in the form. I would need to capture the life_cycle field as well and populate the P4_LIFE_CYCLE field in the form as well. How does one do this?
    I have searched this forum however could not find a thread that fit my situation. i saw that in 4.2 there is dynamic action however unable to upgrade at this moment.
    any suggestions are greatly appreciated.
    thank you

    Hi CRL,
    One method is to set the value of your P4_LIFE_CYCLE item via APEX_UTIL.set_session_state
    To do this you need to create a Page Process
    Type PL/SQL anonymous block
    Process Point On Load - Before Header
    The source for the Process might look like this: DECLARE
       l_life_cycle   VARCHAR2 (50);
    BEGIN
       SELECT life_cycle
         INTO l_life_cycle
         FROM sserver
        WHERE :p4_sserver_name = sserver.name;
       APEX_UTIL.set_session_state ('P4_LIFE_CYCLE', l_life_cycle);
    END;Jeff

  • Capture Audio from Mic

    I am new to Java and need to know where to start with developing a Java app that can capture audio from a pc's mic, convert it to mp3, name the audio, and store it in a directory of my choosing. Additionally, I'll need an interface to that audio app that can receive function calls and args from a windows-based application.
    Can you point me in the right direction- sample code if possible.
    Thanks,
    Jeff

    I have the same problem. There doesn't seem to be any sample code for capturing an audio recording with JMF! I have browsed the web, the usenet groups and the (physical) library. It's almost like they try to keep it secret :/
    There is plenty of information on how to use the JMF player, though.

  • Capturing audio from microphone and save it to a file

    Hi!!
    I'm searching for a code using JavaSound that allows capturing audio from a microphone and save it to a file.
    thanks in advance and sorry for my English

    Hi,
    Check out these links.
    http://developer.java.sun.com/developer/technicalArticles/Media/JavaSoundAPI/
    http://java.sun.com/j2se/1.3/docs/guide/sound/prog_guide/chapter5.fm.html
    Also this is a very good site for finding similar issue as yours.
    http://www.jsresources.org/examples/audio.html
    Hope this helps.
    Regards,
    Roopasri Vittal
    Developer Technical Support
    Sun Microsystems
    http://sun.com/developers/support

  • I need to convert PDF to Excel, however, columns and tabs make many merged cells and many blank columns. In addition to not separate the columns correctly, I see many not separate lines together in the same cell. I'm even thinking that Adobe Acrobat Pro D

    I need to convert PDF to Excel, however, columns and tabs make many merged cells and many blank columns. In addition to not separate the columns correctly, I see many not separate lines together in the same cell. I'm even thinking that Adobe Acrobat Pro DC has limitations. There is no way to define what points in columns to force break column? Nor create many columns that are useless? How does text to column in Excel, fixed size when we import text, and define where the breaks have columns?
    Google Tradutor para empresas:Google Toolkit de tradução para appsTradutor de sitesGlobal Market Finder
    Desativar tradução instantâneaSobre o Google TradutorCelularComunidadePrivacidade e TermosAjudaEnviar feedback

    PDF does not contain columns, rows, formats, styles, or other aspects of word processing or spreadsheet file formats.
    This is because PDF is decidedly not a word processing or spreadsheet file format or something "like" one of those.
    (see ISO 32000 for what PDF "is")
    What can optimize the export of PDF page content is to start with a well-formed tagged PDF (ISO 14289-1, PDF/UA-1 compliant).
    Without that export is what it is and one performs whatever content cleanup is needed using the native application for the export file (MS Word or Excel).
    Be well...

  • Updating a title column in list that is a lookup column to document library in sharepoint designer workflow 2010

    Hi I have a requirement to create a list item in Contracts List when a document is uploaded in Contracts Vendor library.
    Contracts List will
    have  columns - Contract Name ( title column), Contract Number, Contract Start date and end date.
    Contracts Vendor library will have Contract
    Name,Contract NUmber.
    User will select the Contract Name from drop down ( this is look up column linked to Contract Name in Contract
    List).When user uploads document in Contract Vendor library then item should be created in Contract List with selected Contract Name and
    Contract number .
    Contracts and Contracts Vendor are related by look up Contract Name. Contract Name is internally a title column in
    Contracts List.
    Issue1 :
    Since Contract number is look up column, while I am creating item the Contract name is not getting updated in
    Contracts List. I have to use sharepoint designer workflow to achieve this task. Title colum or Contract Name shows no title.
    Issue 2:
    One
    more issue I am facing is that Contracts List has Section and Division cascaded drop downs when i select values from section and division
    dropdowns and save item in Contracts list the values are getting saved in Contract List.
    Could anyone suggest me how to handle this ? I am
    attaching the screenshots of the list and library structure. TRuly appreciate your help.
    Below are screenshots of the list structure

    Hi,
    According to your post, my understanding is that you wanted to update a title column in list that is a lookup column to document library in sharepoint designer workflow 2010.
    I try to reproduce the issues as follows:
    Create a custom list named Contracts List, add columns: Contract Name ( title column), Contract Number(Number), Contract Start date(Data and Time) and Contract End date (Data and Time).
    Create a document library named Contracts Vendor library, add columns: Contract Name(Lookup), Contract NUmber(Lookup).
    Create a workflow associated to the Contracts Vendor library.
    Add action: Create List Item.
       5. Start the workflow automatically when an item is created.
       6. Upload a document, select the Contract Name and Contract NUmber, the workflow will be started automatically.
       7. Open the Contracts List, an item will be added with the Contract Name and Contract Number in the Contracts Vendor library.
    Thank you for your understanding.
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

Maybe you are looking for

  • Error : Catalog object schema validation failed in OBIEE 11.1.1.5

    Hi all , Facing the below error while accessing few reports present in a folder (Voice Tab) . But , able to access other reports present in the same folder . Catalog object schema validation failed: /users/weblogic/sayak/TPLAN reports/Voice Tab/Net r

  • How much Ram can I install in a mid 2011 mac mini, 2.3Ghz?

    I have a mid 2011 mac mini with a 2.3 Ghz processor and the factory installed 2GB of ram.  I would like to increase my ram but I am confused about the amount it can handle.  everywhere i look on the internet it says it can handle up to 8GB however i

  • Office 2010 from template

    Just downloaded the eval version of 9.0.1 to try it out. I figured I'd start with something easy, from a Template. Office 2010 seemed like a good candidate. I installed Office 2010 on a clean machine, then generated the virtual app using the template

  • How do i clean up my hard disk

    My hard disk has only 40 GB free out of 160 GB. Is it possible to get a listing of everything on this drive so I can begin delete the clutter?

  • Transaction FBZ5

    Hello i am printing an FI document created in FB60 in FBZ5.Error message reads 'No accts. specified for co.code pmnt method A and currency EUR.