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

Similar Messages

  • 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

  • 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

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

  • Multiselection issue in advanced table on OAF page

    Hi,
    I have a advanced table on OA Page. To this advanced table, I had added the multi selection table action.
    To the multiselect, i have attached a View Instance and a view attribute.
    There is text input field in the advanced table. If user makes changes to it, an event "updateDate" fires.
    In CO:
    if(event.equals("updateDate")){
    System.out.println("A");
    String rowReference =
    pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
    Serializable[] param = {rowReference} ;
    am.invokeMethod("DetailsCheckBox", param);
    In AM:
    public void DetailsCheckBox(String rowReference) {
    System.out.println("B");
    oracle.jbo.Row row = findRowByRef(rowReference);
    DetailsVOImpl ivo =
    (DetailsVOImpl) findViewObject("DetailsVO1");
    String chkbox = (String)row.getAttribute("Multiselect");
    System.out.println("multiselect original: "+chkbox);
    if ((chkbox == null)||(chkbox.equals("N"))){
    ivo.setCurrentRow(row);
    row.setAttribute("Multiselect","Y");
    String chkbox1 = (String)row.getAttribute("Multiselect");
    System.out.println("multiselect : "+chkbox1);
    // ivo.reset();
    The issue is that if there are 5 rows getting displayed in the advanced table and i make changes to any of first 4 rows, the checkbox gets checked on page but if i make changes to last row the checkbox is not checked on page, even though the statement String chkbox1 = (String)row.getAttribute("Multiselect"); returns 'Y' in AM.
    Please help. Its urgent.

    Hi Gyan,
    Multiselect attribute is checked for Always Updateable.
    and have done sop for other attributes also, dey are coming for 5th row only.
    also if my VO query returns 27 rows, and advanced table displays 10 rows at a time then pnly 10th row gives this issue. It works fine even for 20th row.
    Observed one more thing, if i first update any other row and then the last row, it works fine.

  • Dynamic display of table on ADF page

    I am looking for a ADF page which has a drop down box having table name as inputs and when selected it should show the data inside that table in the ADF table component.

    Hi John,
    Regarding your situation if you use different page fragment and then by using dymanic task flow decide which page fragment must be shown (each fragment has a table) in this case it is really performance effective because in the case of switcher or simpler (add 3-4 differenct table and just flag the rendered attribute of each table) your page must have all the iterator of the tables.
    when your page render all the iterator must be proceed.
    in the TAsk flow situation just the iterator of the fragment would be proceed.
    so the most simple solution is drag all the table to the page and just flag the rendered attribute of each of them so only one of them render base on the choice list.
    the best solution is to use the task flow.
    Good Luck.

  • Raising errors in trigger of table underlying OAF page

    we have the standard customer page of Oracle R12. We are modifying the triggers of the TCA tables to check for certain conditions during updates.
    In the trigger I am checking for a condition and setting an error message as follows :
    IF nvl(:OLD.ATTRIBUTE1, 'APPROVED') NOT IN ('NEW', 'APPROVED', 'REJECTED') THEN
    FND_MESSAGE.SET_NAME('AR', 'XO2C_SALES_UPD_ERROR');
         raise_application_error(-20000,fnd_message.get);          
    END IF;
    I want only this error message to appear on the page. however the message shown on the page is :
    The following SQL error occurred: ORA-20000: cannot update record in pending status ORA-06512: at "APPS.XO2C_HZ_PARTY_ACCT_PREUPD_T1", line 26 ORA-04088: error during execution of trigger 'APPS.XO2C_HZ_PARTY_ACCT_PREUPD_T1'.
    I want only the line "cannot update record in pending status " to be shown. How do i acheive this. Is it becuase the error is raised in a trigger versus a procedure that the page shows it in this manner ?
    please help.
    thanks,

    You need to extend the CO and put the logic discussed in the thread in it.. to make this happen.
    --Mukul                                                                                                                                                                                                                               

  • How to generate dynamic table in JSPX page?(Use ADF to realize OAF)

    Dear all,
    My requirment is to realized the a EBS standard OAF page(PDH module) function by ADF technique. The key point is to realize Dynamic Search Layout and Dynamic Result Table Layout by ADF.
    If anyone who is skill at OAF and ADF, proficient in PDH module is prefered, your question will be highly appreciated.
    Because it is hard to paste image into this thread, so I will appreciate it very much if you can refer the attachment ifile of SR 3-1397372841 for detail information. Sorry for the trouble, I really thanks for your help.
    Edited by: user12264776 on 2010/02/22 17:32

    Hi,
    Thanks for the quick reply. I am using JSF for my ADF application.Could u please elaborate how to use the PhaseListener for Auditing user navigation?
    Arijit

  • 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

  • Convert 6 page pdf to dynamic layout

    Hello,
    I am trying to create a dynamic pdf that shows/hides various sections and grows as needed depending upon what is selected.  I started with a 6 page pdf that I created from the html webpage that we are currently using to do this with javascript.
    So I am setting up my subforms and using the Action Builder to set the presence of the subforms and everything is working great until I get to the bottom of the page and the last subform is not carrying over to page 2 and is just cutting off in the middle.   I've tried looking at various pagination options, and I am just not sure what to do.  So I looked in the Help more and it talks about how dynamic pdfs don't really have pages until they are fully processed, so I am not sure how to get my fields out of the current 6 page layout.  I am very new to Designer so I would appreciate if you have any advice for me on how to get this working.
    Thank you!
    Mindy

    Hi Mindy,
    It should like the page type is set to Positioned in the Object > Subform palette. To get the content to overflow onto a new page, you need to set the page type to Flowed.
    When you change the type to flowed, the page contents will become left aligned and stacked one object on top of another. This may mess up your layout. So if you undo this and then start to group objects that do not grow into positioned subforms. This will help you maintain the overall layout.
    This example form looks at the difference between positioned and flowed content. If you scale the images up you will see that the positioned content will cut off the image and will not flow onto a new page.
    http://www.assuredynamics.com/index.php/category/portfolio/explore-the-differences-between -positioned-and-flowed/
    I have a sample here that examines the steps to setting up a dynamic form:
    http://www.assuredynamics.com/index.php/category/portfolio/building-dynamic-tables/
    In addition the form needs to be saved as a Dynamic XML Form in the save-as dialog.
    Hope that helps,
    Niall
    Assure Dynamics

  • 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

  • How to display data in table with dynamic rows, section wise in a page.

    Hello all,
    I work on report creation in BI Publisher where I need to display data from xml in a table in pdf format.The output page is divided into two vertical sections , containing tables, with exactly same columns on left and right sections. The number of rows in table depends on the output of the fetching query. The page is to be populated in such a way that, at first, the left table is populated, then the next rows fill up the table on the right section of the page, if more rows are left, they fill up the tables on next page[first the left table, and then the right one, in a similar fashion as in page 1]
    On a bird's eye view, the data needs to be simply mapped to a table, with dynamic number of rows, and so can span number of pages depending on size of data. On a implementation level, I am stuck in getting the left section of the page populated first, then the right section[in place of the right page], and then the next page.
    Please guide me if someone has any idea in getting this achieved.
    Thanks in advance.

    Thanks for the response...
    I am able to get the desired functionality. I just need the tables to be inside a bigger table, that also has a dividing line between the two columns. This is was is intended in the req. provided to me. The column formatting option provides me a line ,but that is not further modifiable .Please help me in getting a perpendicular line between the two columns, which I need to be of a specified width and color.

  • 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                                                                                                                                                                                                                   

  • How to view database table in OAF run page.

    Hi,
    how to view database table in OAF run page,any manual setting .please help me.
    thanks
    saran.

    Hi;
    1. This site side related EBS for your issue there is sqldeveloer dedicated forum side
    Forum Home » Application Development in PL/SQL » SQL Developer (Not for general SQL/PLSQL questions)
    2. Please see:
    http://docs.oracle.com/cd/B10501_01/java.920/a96655.pdf
    Regard
    Helios

  • 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

Maybe you are looking for