Lookup Table Insertions to OAF Page

Hello friends,
1)i have added new rows to the lookup’s in oracle apps, this lookups i am making one query and create the Vo to populate these values into dropdown of OAF pages.but they are not always available to the OAF pages until Apache is bounced.
2)I have a program name drop down list in OAF page, where the data is coming from oracle apps lookups.i added XX, XX2 & XX3 program name lookups. When I went to the OAF page none of the values were available in the Program Name drop-down. I bounced Apache and then they appeared.
3)sometimes i added programs through lookups , I went to the OAF Page and it was available to choose. I didn’t have to bounce Apache this time.
I’ve seen this happen a few times. Do you know why? can any one have an idea how this was happend.
Thanks
vamshi.

kumar , see my requirement is below.
1) i have search page , in that i have a detail icon to navigate detail page - i am carrying some values from search page to detail page. carrying values should read only in detail page.
2) based on the detail page , carrying values data - i want to render poplist.
ex: in search page i have deptid,dname, loc, email- these values are carrying to detail page with read only. i have a ename pooplist in detail page . based on the values(deptid,dname, loc, email) rendering detail page , i want to display ename poplist data. for this i am doing this below approach.
1. Created a viewObject VO.
2. Added it to the ApplicationModule of the page.
3. Created the poplist with required properties..
i set the "Picklist View Instance" to VO added in the rootAM(for example, PoplistVO1).
4. To change the whereClause based on the input parameter use following eg code in your processRequest()
String a = pagecontext.getParameter("empno");
vo.setWhereClause("emp_no = :1");
vo.setWhereClauseParams(null);
vo.setWhereClauseParam(1, a);
vo.executeQuery();
in this case i cannot use Picklist View Definition. please let me know and help me out.very urgent.
Thanks
vamshi.

Similar Messages

  • How can we show image in per_images table in our OAF page?

    Hi All,
    Can any one suggest me how to show the image from per_images table on to OAF page?
    Ihe image is stored as binary value in the table..
    <br><br> Thanks in advance. <br>
    Soujanya

    Go through this thread:
    Re: Displaying an Image stored in the Database as BLOB on OA Fwk Page
    --Mukul                                                                                                                                                                                                                   

  • Can the cell lines be removed from a table inserted in a Pages document?

    Can the cell lines be removed from a table inserted in a Pages document?

    Inspector > Table > Table > Cell Borders
    The buttons immediately below "Cell Borders" allow you to choose left, right, inside, outside etc.
    Choose None from the border style Pop-up.
    Download the Number'09UserGuide from the Help menu in Pages. Search for borders.
    Regards,
    Ian.

  • Need to populate sequence value in a field after insert in oaf page

    Hi All,
    I have a custom OAF insert page in that i need to populate a sequence value to a field once the data inserted successfully to the table.
    so for that i followed the below approach.
    1>Created a sequence in database.
    2>In the EOImpl java file in the setter method for the respective field have written below code.
        public void setContainid(Number value) {
            if (value == null) {
                    OADBTransaction t = getOADBTransaction();
                    value = t.getSequenceValue("XXXXX_CONTAIN_SEQ");
            setAttributeInternal(CONTAINID,value);  
    But still i am not able to populate the sequence value for the field in my oaf page,please help me out on thsi.
    Thanks

    Hi,
    Write this logic in create method of EOImpl:
      public void create(AttributeList attributeList)
        super.create(attributeList);
        OADBTransaction transaction = getOADBTransaction();
        Number contID = transaction.getSequenceValue("XXXXX_CONTAIN_SEQ");
        setContainId(contID);
    --Sushant

  • Column Totals of a table region in OAF Page

    Hi,
        I developed a custom OAF page with a table region (NOT an Advanced table region). It has several columns and one of them is a flag column of checkbox type and also there is amount column.
    My requirement is to display totals on the amount column based on the flag value. So if there are 4 records out of which 3 of them have flag = "Y"
    then at footer level, one line should display Total Amount when flag = "Y"   as sum(amount_column) with flag = "Y"
    and another line should display : Total Amount when flag = "N"  as sum(amount_column) with flag = "N".
    Can anybody help me how I can accomplish this?
    Note: I tried to use "Total" property to "True" but it is displaying data irrespective of my flag value. Some how, I should be able to filter the total based on the flag column. Also I need to display as one total per each flag value...
    Please note that I am using Table region NOT Advanced table region.....I appreciate of some one can give me detailed steps to accomplish this. Thanks
    Sample output....
    Flag            Amount
    Y                       100
    N                         50
    Y                         15
    Y                         20
    Total with "Y" = 135
    Total with "N" = 50

    hi Smitha,
        We cannot avoid that. but an alternate is that use another table above this table and which has the number of rows as zero. hide the table header for the below table. you need to adjust the header of above table so that it fits for the below table.
    This works fine if the table doesn't have sorter facility.
    Regards,
    Gopi

  • How to display an image of BLOB type from a Table in an OAF page?

    Hi,
    My requirement is that in the database table images gets saved of type BLOB and i have to display these images in my OAF page .I looked in OA developers guide and followed the instruction but unable to achieve my requirement .As per the developers guide "I created an item of type messageDownload ,in the viewattribute i set the view attribute FileData and File View Attribute FileContentType the table used is FND_LOBS" but i couldn't achieve anything.
    Please help me and if possible give me exact way to achieve it as i am new to this framework.
    Thanks in advance

    Map the database table columns to the Table region columns. For image column set the item style as "Messagedownload". Set the View Instance (VO) , View Attibute Name (image name) and View Attribute Data (blob col).

  • How to control the width of the columns in a table in the oaf page?

    hi,
    We have a requirement to adjust the width of the columns of the table so that they are in line with the width of the page.
    Please do share any feasible solution.
    thanks,
    Danish

    try to personalize and set the width property of item.
    else use below code in Controlller.
    1) public class wyseQotLinesCOEx extends QotLinesCO
    public CSSStyle cellUpperCase;
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    2)
    get handle of inputitem as inputbean;
    cellUpperCase = new CSSStyle();
    cellUpperCase.setProperty("width","50");
    if (inputbean != null)
    {        inputbean.setInlineStyle(cellUpperCase);
    }

  • Need to upload a CSV/Excel to a table in OAF page

    I have an updatable products table on a OAF page. I need to provide that table with an 'Upload' button, On clicking, user should be able to browse for the excel/csv(It contain some products) file from local desktop and be able to upload it into products table.
    Any idea how this can be done?
    Do we need to use messageFileUpload> get DataObject>> convert to StringBuffer>>> and break it into rows >>>>insert each row thru VO >>>>> refresh the VO?
    Is that the process or do we have any other process. If so could you please point out to some examples of using messageFileUpload?
    Thanks,
    Santosh.

    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    OAApplicationModule am = (OAApplicationModule) pageContext.getApplicationModule(webBean);
    OAViewObjectImpl vo = (OAViewObjectImpl) am.findViewObject("XxCholaCsvDemoVO1");
    if ("Go".equals(pageContext.getParameter(EVENT_PARAM)))
    DataObject fileUploadData =(DataObject)pageContext.getNamedDataObject("FileUploadItem");
    String fileName = null;
    String contentType = null;
    Long fileSize = null;
    Integer fileType = new Integer(6);
    BlobDomain uploadedByteStream = null;
    BufferedReader in = null;
    try
    fileName = (String)fileUploadData.selectValue(null, "UPLOAD_FILE_NAME");
    contentType =(String)fileUploadData.selectValue(null, "UPLOAD_FILE_MIME_TYPE");
    uploadedByteStream = (BlobDomain)fileUploadData.selectValue(null, fileName);
    in = new BufferedReader(new InputStreamReader(uploadedByteStream.getBinaryStream()));
    fileSize = new Long(uploadedByteStream.getLength());
    System.out.println("fileSize"+fileSize);
    catch(NullPointerException ex)
    throw new OAException("Please Select a File to Upload", OAException.ERROR);
    try{
    //Open the CSV file for reading
    String lineReader="";
    long t =0;
    String[] linetext;
    while (((lineReader = in.readLine()) !=null) ){
    //Split the deliminated data and
    if (lineReader.trim().length()>0)
    System.out.println("lineReader"+lineReader.length());
    linetext = lineReader.split(",");
    t++;
    //Print the current line being
    System.out.println(t + " - " +
    linetext[0].trim() + " - " + linetext[1].trim() + " - " +
    linetext[2].trim() + " - " + linetext[3].trim() + " - " +
    linetext[4].trim() + " - " + linetext[5].trim() );
    if (!vo.isPreparedForExecution()) {
    vo.setMaxFetchSize(0);
    vo.executeQuery();
    Row row = vo.createRow();
    row.setAttribute("Column1", linetext[0].trim());
    row.setAttribute("Column2",linetext[1].trim());
    row.setAttribute("Column3",linetext[2].trim());
    row.setAttribute("Column4", linetext[3].trim());
    vo.last();
    vo.next();
    vo.insertRow(row);
    catch (IOException e)
    throw new OAException(e.getMessage,OAException.ERROR);
    else if ("Upload".equals(pageContext.getParameter(EVENT_PARAM))) {
    am.getTransaction().commit();
    throw new OAException("Uploaded SuccessFully",OAException.CONFIRMATION);
    }

  • Not able to create rows in a table with dependent columns in an OAF page.

    We have a table in an OAF page which has the property "Records Displayed" set as "10". Hence pagination kicks in for more than 10 rows in the table. "Add rows" is enabled in this table. The table also has 'detail' component.
    In this table, we have created 2 new columns (dropdowns) using personalization. Dropdown 2 is dependent on the value selected in Dropdown1. Both are required fields.
    We are able to add new rows to the table. All the columns render properly. Dropdown 2 also renders properly depending on the values selected in Dropdown1. There is no issue until we add the 10th row (remember the number of displayed records in the tabble is 10). When we add the 10th row, the fields appear properly. Dropdown1 values are displayed as expected. But when we select a value in Dropdown1, Dropdown2 does not refresh and get populated with the expected values (depending on Dropdown1 values). Dropdown2 remains blank. But this happens only when the 10th row is added. Since Dropdown2 is a required field and since Dropdown2 is not refreshed with values depending on Dropdown1, the records cannot be saved.
    There seems to be a problem with refresh when the nth row is added to the table where 'n' is the Records displayed in the table (pagination).
    If we change the Records Displayed to say 15 then we have the above problem when adding the 15th row. 14 rows can added to the table without an issue.
    Can a workaround (other than increasing the number of displayed records) be provided for this issue?

    Hi,
    I suspect you have written a method having String return type but the method does not have return statement.
    Go to the Catalogue component->BPM Object->Right click on the BPM object and select New Method->Give the method name. Now the method window will be opened. Go to the propertied tab of the right most panel. Set the return type as string. In the method window editor write your business logic. The below mentioned code is for sample one.
    String msg = "Hello World";
    return msg;
    Bibhu

  • Urgent please: Master-Deatils OAF Page for enter and Update data

    Hi all,
    i need your help to build master-details oaf page for Enter / Update data
    for example: We have Locations , Department , Employees tables
    all these tables on one oaf page (OAAdvancedTable)
    when user enter New Location and go to Enter it's Departments and for each department, he can Enter they employees.
    and Regarding to Update date:
    - when user select Location , Department table fetch all departments and user can update
    waiting your support for urgent please
    Regards
    Hany

    i do these Steps :
    1- Create LocationEO,DepartmentEO and EmployeesEO
    2- Create Association between LocationEO and DepartmentEO with one-to-Many relation (LocToDeptAO)
    3- Create Association between DepartmentEO and EmployeesEO with one-to-Many relation (DeptToEmpAO)
    4- Create View Object (LocationVO)
    5- Create DepartmentVO (and add LocationEO due to LocToDeptAO)
    6- Create EmployeesVO (and add DepartmentEO due to DeptToEmpAO)
    7- Creare View Link between LocationVO and DepartmentVO (Based On LocToDeptAO) --> LocToDeptVL
    8- Creare View Link between DepartmentVO and EmployeesVO (Based On DeptToEmpAO)---> DeptToEmpVL
    9- Add LocaionVO to Application Module, then add DepartmentVO Via (LocToDeptVL)
    10-Add EmployeesVO to Application Module Via (DeptToEmpVL)
    and Then Run Test AM, all data fetch sucessfully, and i can insert data with proper relations
    NOw, i want to implement this Business Logic in single oaf Page using 3 OAAdvancedTable (Master - Details -Details )
    Regards

  • Multi row checking in advance table and passing this to other OAF page...

    Hello,
    I have an advance table on my OAF custom page, this table have checkbox column. I need to implement the solution when user selects some rows in this table and then press submit button on the page. So new OAF page is opened and on that page i need to show those lines which user selected in previous step.
    The problem is that right now i have this selection checkbox tight to VO attribute which updates table and then on submit do commit and on another page i'm just selecting rows which have this flag set. But what i'm looking for is - do not make commit and changes on database data, but pass the selected rows as kind of parameter to other page or something like this.
    Could you please give me any suggestions of how is the better way to implement this solution?
    thanks in advance...

    Make a transient VO, and insert all the lines the user has checked.Share the same AM in other page and while redirecting retain AM. On this page show the lines from the transient VO.Another option could be utilizing session.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to enable the DFF in OAF page(where Dff is based on the custom table).

    Hi Experts!!
    I am in the process of enabling the dff in OAF page. I am not able to enable the dff if am using the Custom table.
    Ex:
    Assume that my DFF XX_DFF is using the custom table XX_TABLE of att1,att2..
    I am able to enable the dff in OAF page but not able to make those values entered to get stored in the custom table.
    I need helping hands to help me out to get the entered dff values stored in my custom table.
    Kindly provide me the steps so that I can follow up..
    Best wishes,
    Thiru.

    Hi,
    thiru_apps wrote:
    I need to store the captured values of Dff(which was enabled in the seeded page based on the custom table XX_Table) and the same needs to be stored into the custom table xx_Table.
    Basically the entered values for the DFF enabled should have to be get stored in the XX_TABLE(Custom TAble).As per my understands in Standard page u want create some extra fields and those should be save in custom table...is it ...
    For that u r going create stack layout region in standard page via personalization and extend with custom region.
    IF im geting u correctly u need to write code in co and am.
    ---U had already created the components eo vo AM co...
    ---For the custom region in Jdev do the mapping of viewInstacne and view attribute properties for the fields.
    ---In AM:
    public void CreateVo(OAPageContext pageContext, OAWebBean webBean)
    Row hrow;
    OADBTransaction tr=getOADBTransaction();
    EOVOImpl vo=getEOVO1();
    if(!vo.isPreparedForExecution())
    vo. executeQuery();
    hrow=vo.createRow();
    vo.insertRow(hrow);
    hrow.setNewRowState(Row.STATUS_INITIALIZED);
    public void savetr()
    OADBTransaction tr=getOADBTransaction();
    tr.commit();
    In Co ProcessREq:
    AMImpl AM=(AMImpl)pageContext.getApplicationModule(webBean);
    AM.CreateVo(pageContext, webBean);
    In Co ProcessFormREq:
    ---GEt the event of the save button of the standard page
    if(pageContext.getParameter("save")!= null)---DI of the standard page
    AM.savetr(pageContext, webBean);
    Regards
    Meher Irk

  • How to Update Particular row in a table from OAF page

    Hi Can anyone please help me on the following requirement:
    In my oaf page i am displaying table values(supplier site details from base tables) with update and delete icons . When i click on update button a new page opens in which we used to update the values and click on apply button which again comes back to the original page.
    So when i click on apply button on update page i have to first search for the site in the site table whether it exists or not, if not exists i have to create a new row and save the data, if site exists in the table i have to update the row of a table for that particular site. I have written code for this but unable to achive the requirement, it is not updating the existing row of the table. And i am doing all this on the Temp tables.
    So now when i save, previous transaction is also updating along with the current transaction. That means when i m trying to save 2nd transaction values , 1st transactions values are getting updated with the 2nd transaction values(2 rows are getting updated)
    Can anyone help me with the code used for updating the current row of the table. Please correct me if i m doing anyting wrong in code.
    following is the current code i m using and which is failing :
    Controller Code
    if(pcontactaction.equals("createECdetailsEvent")) {
    String currentSiteName=pageContext.getParameter("SiteName");
    System.out.println("Selected Site Name is : " + currentSiteName);
    Serializable x[]={reqNum,suppId,currentSiteName,pnotifMethod,pfaxNum};
    System.out.println("Invoking AM Method.........");
    am.invokeMethod("initCreateECDetails",x);
    System.out.println("initCreateECDetails Method Executed. ");
    //am.invokeMethod("save");
    localOAApplicationModule.getTransaction().commit();
    pageContext.setForwardURL(
    "OA.jsp?page=/oracle/apps/floaf/flpos/supregister/webui/ECDetailsPG"
    , null //not needed as we are retaining menu context
    ,OAWebBeanConstants.KEEP_MENU_CONTEXT
    , null //not needed as we are retaining menu context
    ,null // no parameters are needed
    ,true //retain AM
    ,OAWebBeanConstants.ADD_BREAD_CRUMB_NO
    ,OAWebBeanConstants.IGNORE_MESSAGES);
    AM Code
    public void initUpdateECDetails(String request_number,String supplier_id,String site_name,String site_id,String notification_method,String fax_number)
    OADBTransaction localOADBTransaction = getOADBTransaction();
    String siteToUpdate;
    siteToUpdate=site_name;
    String siteidToUpdate;
    siteidToUpdate=site_id;
    System.out.println("Site Name to Update or Create is : " + siteToUpdate);
    System.out.println("Site Id to Update or Create is : " + siteidToUpdate);
    System.out.println("Inside Update EC Details MEthod.");
    OAViewObject suppSiteDetVO = getFLPOSSuppSiteDetailsVO1();
    FLPOSSuppSiteDetailsVORowImpl sro=null;
    String existingWhereClause = suppSiteDetVO.getWhereClause();
    suppSiteDetVO.setWhereClause(null);
    suppSiteDetVO.setWhereClauseParams(null);
    suppSiteDetVO.setWhereClause("SUPPLIER_ID = :1 AND REQUEST_NUMBER = :2 AND SITE_ID = :3 ");
    suppSiteDetVO.setWhereClauseParam(0, supplier_id);
    suppSiteDetVO.setWhereClauseParam(1, request_number);
    suppSiteDetVO.setWhereClauseParam(2, site_id);
    suppSiteDetVO.executeQuery();
    suppSiteDetVO.setWhereClauseParams(null);
    suppSiteDetVO.setWhereClause(existingWhereClause);
    int rowcount = suppSiteDetVO.getRowCount();
    System.out.println("Fetched Rows : " + rowcount);
    if (rowcount == 0) {
    Row row = suppSiteDetVO.createRow();
    System.out.println("Row is : " +row);
    suppSiteDetVO.insertRow(row);
    String siteId = getOADBTransaction().getSequenceValue("FLPOS_SITE_ID_SEQ").toString();
    System.out.println("New Site ID : " + siteId);
    row.setNewRowState(Row.STATUS_INITIALIZED);
    row.setAttribute("RequestNumber", request_number);
    row.setAttribute("SupplierId", supplier_id);
    row.setAttribute("SiteName", site_name);
    row.setAttribute("SiteId", siteId);
    row.setAttribute("FaxNo",fax_number);
    row.setAttribute("NotificationMethod",notification_method);
    System.out.println("New Row Created for Supplier Site.");
    System.out.println("Data Saved to table.");
    else{
    System.out.println("Inside Else Block ");
    try {
    System.out.println("Inside Try Block ");
    Row[] row = suppSiteDetVO.getAllRowsInRange();
    for (int i = 0; i < rowcount; i++) {
    sro = (FLPOSSuppSiteDetailsVORowImpl)row;
    String psiteName=sro.getSiteName();
    Number psiteid=sro.getSiteId();
    System.out.println(" p Site Name is : " +psiteName);
    System.out.println(" p site id is " +psiteid);
    if(psiteid.equals(siteidToUpdate) ) {
    sro.setAttribute("FaxNo",fax_number);
    sro.setAttribute("NotificationMethod",notification_method);
    //getOADBTransaction().commit();
    break;
    catch (Exception e) {
    System.out.println("Exception in update : " + e);
    }

    Please answer following:
    1. Are you using EO based VOs or ReadOnly VO?
    2. What is your VO Query for the search and update?
    3. Why have you based your logic on site_name; you should have used site_id?
    4.Are you getting correct site name in handling createECdetailsEvent event in CO?
    5. In case of update are you getting correct values on the Update Site Details?
    6. On coming back from Update page to Supplier Site Search page, do you see old values of the site or the new values in the results table?
    Please share the screenshot if possible.
    -Prince
    [email protected]
    http://princekapoor82.blogspot.com

  • Help needed in Loading excel data to staging table from OAF Page

    Hi All,
    We have a requirement from the client on loading of a excel sheet data into staging table using OAF page.
    We were able to load a CSV file into staging table via OAF. The approach we used is we created a item of style 'messageFileUpload', which would pick the CSV file from desktop and we wrote the logic on the controller to place the file into server and then sumit a concurrent program to load the data into the staging table.
    But client wants data from the excel file to be loaded into staging table. Is there any way(approach) by which we can convert the excel file data into .CSV file using OAF?
    Any help or pointers on this will be highly apperciated.
    Thanks,
    Chethana

    Hi,
    Read through this :
    Need to upload a CSV/Excel to a table in OAF page
    Thanks,
    Gaurav

  • Dynamic layout of table in OAF page

    Hi,
    I have a requirement where, i need to generate a table layout with changing columns in OAF page.
    Ex: If i search a job in OAF page, depending on the job family, the results table displays the number of columns. (My number of rows is constant but the columns changes)
    Please let me know if anyone worked on it and if it can be achieved using PPR.
    Your help will be appreciated.
    Thanks in Advance,
    Sh

    Check this link
    Re: To Hide Columns of table region dynamically using Users Input in OAF

Maybe you are looking for

  • External swf not clickable

    I'm using addchild to load an external swf into a swfContainer, but i realize that all the buttons and text links doesnt seem to be working anymore.... swfContainer.addChild(loader); I try not loading it into a movieclip instead i load in on stage ad

  • How can I open my books in iBook saying not formatted but is downloaded?

    Since my iPad was reset unable to open my books in iBook saying not formatted how can I open?

  • Importing Artwork

    I'm sorry if this is a "duh" question, but I'm trying Photoshop Elements 5.0 for 30 days and don't have a lot of time. I've spent about $80 on other scrapbook software with literally thousands of graphics and backgrounds. Can someone please tell me i

  • How to reduce time while deleting more than 300K records ?

    Hi, I am using SQL SEVER 2008 R2. I've a doubt, if there any possible to reduce executing time while deleting  more than 3 lakhs records. I will explain about the table structure. Table_Name : test. In that table have 15 Columns , 6 Indexes ,Foreign

  • Delete Groups @ runtime

    In older versions of Crystal reports RDC with VB6 there was the ability to delete a group at runtime, now with Crystal Report 11.5.net from VB 2005 I can't find a way to do that.  Any suggestions?