Row level ppr in advanced table

Hi,
my requirement is as follows...
for example
One dept lov is there, and two more fields are there, one is LOV and another one is Message text input.
if I select 10 in DEPT lov need t show lov field and hide text field if i select 20 need tod show text field and hide lov field.
for this i wrote code, but problem is this effecting for every row.
requirement need to effect for that current row only.
pls check below code and advice
in CO at PFR
if (pageContext.isLovEvent())
OAApplicationModule oa=(OAApplicationModule)pageContext.getApplicationModule(webBean);
String rowReference =
pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
Serializable[] parameters = { rowReference };
// Pass the rowReference to a "handler" method in the application module.
oa.invokeMethod("initPPRevent", parameters);
at AM
public void initPPRevent(String rowReference)
OARow row1 = (OARow)findRowByRef(rowReference);
if (row1 != null)
String Action=(String)row1.getAttribute("Action");
System.out.println("reserveMethod"+Action);
xxpdpVORowImpl row = (xxpdpVORowImpl)findRowByRef(rowReference);
// String jname = (String)row.getName2();
// xxpdpVORowImpl invViewVO= (xxpdpVORowImpl)getxxpdpVO1();
if(Action.equals("10"))
row.setAttribute("attrb1", Boolean.TRUE);
row.setAttribute("attrb2", Boolean.FALSE);
else
row.setAttribute("attrb1", Boolean.FALSE);
row.setAttribute("attrb2", Boolean.TRUE);
}

Hi ,
when value selected from LOV ,fire some action ,
then redirect to same page ,
in process request get the value of LOV which is selected
based on value hide or show the fields .
Thanks
Raju

Similar Messages

  • Row Level PPR in Advanced Table with Add More Rows Button

    <br>
    I have programmatically fired PPR event on MessageChoice. But it is in Advanced Table with
    Add More Rows Button. When the value is changed in MessageChoice I Show/Hide Custom LOV
    through SPEL like this ${oa.BioEmployeePVO.EmpManagerRender} .
    But it is <b>hiding the all the ROWS</b> not just the row where the value has been changed.
    I even tried with this code and get NULL for rowReference.
    String rowReference = pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
    In Processrequest()
    String pageName = pageContext.getRootRegionCode();
         Hashtable params = new Hashtable (1);
         params.put ("param1", pageName);
         Hashtable paramsWithBinds = new Hashtable(1);
        paramsWithBinds.put ("param2",new OADataBoundValueFireActionURL (mcb, "{$AttendeeType}"));
        mcb.setFireActionForSubmit ("empPositionChange", params, paramsWithBinds,false, false);
    In ProcessFormRequest() {
    if ("empPositionChange".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM)))   
          String rowReference = pageContext.getParameter("param2");
        //    String rowReference = pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
         Serializable[] parameters = { rowReference };
          am.invokeMethod("handlePositionChangeEvent", parameters);
    <br>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    HI Kumar,
    Answer to your last post is "yes".
    Now to your doubt regarding the code:
    Hi Anna
    I am trying to understand your code.
    FireAction firePartialAction = new FirePartialAction("fireHideEvent"+(i/noOfTlaColSpan));
    HideImgBean.setAttributeValue(PRIMARY_CLIENT_ACTION_ATTR,firePartialAction);
    1. What is this i/noOfTlaColSpan ?
    :)Forget abt this in your case it should be the event name which u r firing and capturing the it in the PFR.
    Like FireAction firePartialAction = new FirePartialAction("YOurEventName");
    and in PFR u can capture tht as:
    if("YOurEventName".equals(pageContext.getParameter(EVENT_PARAM)))
    //your logic to invoke AM method
    2. I believe this HideImgBean would be MessageChoice for me?
    :)Yep ur right
    3. This brcdOhInventoryViewUpdateVOImpl would be the Custom PVO(Extending Seeded Base VO)
    I create by adding the transient attributes?
    :)Yep ur right
    4. I cannot understand this code. Could you explain.
    :)Please look at my comments in some of the lines .I have explained wht i am doing
    if(updateIter==null)
    updateIter[0]= invViewVO.createRowSetIterator("updateIter");//This initViewVo should be ur custom VO object
    if(cnt>0)
    updateIter[0].setRangeStart(0);
    updateIter[0].setRangeSize(cnt);
    for(int i=0;i<cnt;i++)
    row = (brcdOhInventoryViewUpdateVORowImpl)updateIter[0].getRowAtRangeIndex(i);
    String selectFlag=(String)row.invokeMethod("getPartNumber");//This getPartNuber should be replaced by the Prim Key inoke methd of ur VO
    if(RowID.equals(selectFlag))
    //This is my logic to set the transient attributes based on the msgChoiceBean value ..u have to pass the value when u invoke this method
    if(reserveMethod.equals("BINARY"))
    System.out.println("In Binary");
    Boolean bVal= new Boolean("false");
    Serializable sr[]={bVal};
    Class []methodParamTypes = { bVal.getClass() };
    row.invokeMethod("setshowreservetxt",sr,methodParamTypes);
    Boolean bVal1= new Boolean("true");
    System.out.println("bVal1"+bVal1);
    Serializable sr1[]={bVal1};
    Class []methodParamTypes1 = { bVal1.getClass() };
    row.invokeMethod("setShowreservemsgchoice",sr1,methodParamTypes1);
    break;
    In my AM I am doing this. Am i doing right?:)Yep u r right
    BioPrescribersPVO is the custom VO(extending seeded base VO).
    public void handlePositionChangeEvent(String param)
    OAViewObject vo = (OAViewObject)findViewObject("BioPrescribersPVO");
    OARow row = (OARow)findRowByRef(rowReference);
    if (row != null)
    String position = (String)row.getAttribute("AttendeeType");
    if (("PRESCRIBER".equals(position)) )
    // BioEmpManagerRender is the transient attribute in BioPrescribersPVO.
    row.setAttribute("BioEmpManagerRender", Boolean.TRUE);
    row.setAttribute("BioPresManagerRender", Boolean.FALSE);
    else
    row.setAttribute("BioEmpManagerRender", Boolean.FALSE);
    row.setAttribute("BioPresManagerRender", Boolean.TRUE);
    } // end handlePositionChangeEvent()
    // Initializing the custom VO
    /*No need to initialize the VO because this is not a PVO(Propeties View object)
    U r just using the existing VO and tht vo shloud have a primary key.Tht way u can match the rowref u r getting with the actual row from the View object*/
    public void init()
    OAViewObject appPropsVO = (OAViewObject)getBioPrescribersPVO();
    if (appPropsVO != null)
    if (appPropsVO.getFetchedRowCount() == 0)
    appPropsVO.setMaxFetchSize(0); appPropsVO.executeQuery();
    appPropsVO.insertRow(appPropsVO.createRow());
    OARow row = (OARow)appPropsVO.first();
    row.setAttribute("RowKey", new Number(1));
    handlePositionChangeEvent("");
    } // end init()
    Thanks
    Anna

  • Row Level Delete in Advanced Table - Urgent

    Hi,
    I have an advanced table with a delete icon as the last column in Create Records kind of form. If the user clicks on this icon then the particular row should be deleted where as the rows above and below it should remain as they are, with their values intact.
    I am trying to do this by capturing the recordId of the particular row and using the code in the toolbox. But this seems to behave in a very different fashion, as all the data in the other rows also seem to get cleared with only empty fields.
    Unable to understand where am i doing wrong.
    Please help!
    Thanks

    user610625,
    Either you follow the guide completely or if you are making your own changes, put the complete details of those changes.
    --Shiv                                                                                                                                                                                                                                                                                                   

  • How to implement row level security using external tables

    Hi All Gurus/ Masters,
    I want to implement row level security using external tables, as I'm not sure how to implement that. and I'm aware of using it by RPD level authentication.
    I can use a filter condition in my user level so that he can access his data only.
    But when i have 4 tables in external tables
    users
    groups
    usergroups
    webgrups
    Then in which table I need to give the filter conditions..
    Pl let me know this ...

    You pull the Group into a repository variable using a session variable init block, then reference that variable in the data filters either in the LTS directly or in the security management as Filters. You reference it with the syntax VALUEOF("NQ_SESSION.Variable Name")
    Hope this helps

  • Applying Row level restrictions on a Table and Contexts

    Hi Techies,
    Here I have a question in applying the row level restrictions on a columns.
    Let me explain some more about the same,....
    I am working on Designer ( SAP BO XI3.1)
    In my universe, I have 6 Contexts , I have one main table in each context and I want to apply row level restriction on a column from each table involved in the context.
    When I am doing this only I am able to add the restriction on only one table from a context. and the rest other contexts are missing.
    here I want to apply the restrictions on all 6 tables in a single restriction to the group.
    Please help me on this....

    I think if you are applying row level restrictions on each tables that are being used in universe then u must be adding all the context in your webi reports.
    So I think you need to add tables and apply where condition on each tables and your restriction will work.
    I will create one demo universe and try to apply the same and revert you asap.

  • Row attributes in the advanced tables

    Hi Everyone,
    In my custom page, i have developed an Advanced Table. The user can add any number of rows in the advanced table and i am capturing all the rows and the attributes of those rows in the advanced table using a loop.
    Now, no matter how many rows the user adds, i need to fetch the attributes of all the rows and pass them to the next page for calculations and other purposes. I am not sure how to implement this logic.
    Please let me know if anyone of you has got any ideas.
    Thanks

    Hi,
    You can get the row reference with this code.
    Example:--->
    CO Code
    import oracle.apps.fnd.framework.webui.OAWebBeanConstants;
    if ("serviceDateChange".equals(oapagecontext.getParameter("event")))
    String s5 = oapagecontext.getParameter("evtSrcRowRef"); // Getting the Row reference
    OR
    *// Another Method for getting row reference.*
    String rowReference = pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
    Serializable aserializable6[] = { s5 };
    am.invokeMethod("validateBackDate", aserializable6);
    AM Code
    public void validateBackDate(String s)
    XXEOVORowImpl xxeovorowimpl = (XXEOVORowImpl)findRowByRef(s);
    if (xxeovorowimpl != null)
    //do whatever you want to do...
    Thanks
    --Anil                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Crystal Reports - ECC Tables - Row level security on Multiple tables

    Hi Experts,
    We are implementing Crystal Reports directly reporting on ECC Tables.  Lot of information on row-level security has been provided by experts Ingo Hilgefort, Don Williamsand Mike Seblani, but not related to multiple tables or Wild cards
    Requirement:
    Crystal Users should have access to ALL the tables in ECC, but restricted by Company code, plant, Sales Organization, Purchasing Organization fields to what ever table it applies to. Example: MARC table should be restricted by Plant, BSEG table should be restricted by Plant and company code, GLT0 table should be restricted by Company code..etc
    Users should ONLY see their Organization related data.
    Solution Developed:
    1. We created custom authorization object with BUKRS and WERKS
    2. In  /CRYSTAL/RLS  we used Wild Cards *, +  rather than specific table  and referenced the custom authorization object with =BUKRS and =WERKS  in the Field Value
    3. Enabled global lock
    4. Custom Authorization object was added to user-profiles with corresponding restrictions
    *Observation:*
    1. This security works when a crystal report was developed on a ECC table which has both BUKRS and WERKS
    2. This setup DOES NOT work when a crystal report developed on a table with either one of BUKRS or WERKS
        Example: Does not work on MARC table - error message "Database connection error: /CRYSTAL/OSQL_EXECUTE_QUERY Message: field T0~BUKRS" unknown"
       Does not work on GLT0 table - error message "Database connection error: /CRYSTAL/OSQL_EXECUTE_QUERY Message: field T0~WERKS unknown"
    Trouble Shooting:
    In the "where clause" of the internal ABAP code generated for MARC, system is checking for BUKRS - which  should not be the expected result
    ANYTHING WRONG IN THE SECURITY SETUP ? PLEASE ADVICE
    Note: Document "BusinessObjects XI Release 2, Integration Kit for SAP, Installation Guide" does not talk much about this multiple table restriction. Any other document to be referred to ?

    I'm not sure how that would help; by using the Faculty_ID Session Variable I can identify the CRN and Term of all courses a faculty member is teaching. But I don't think that has to do with the problem I am having?

  • Row-level Security over Multiple Tables

    Working on Oracle Database 10g Enterprise Edition 10.2.0.4.0 - 64bit
    Say you have the following tables:
    CREATE TABLE    faculty_course_term
        crn             CHAR(8),
        term            DATE,
        course_college  VARCHAR2(20 Char),
        course_depart   VARCHAR2(20 Char),
        faculty_id      NUMBER,
        fac_college     VARCHAR2(20 Char),
        fac_department  VARCHAR2(20 Char),
        fac_fname       VARCHAR2(20 Char),
        fac_lname       VARCHAR2(20 Char),
        CONSTRAINT      faculty_course_term_uk
            UNIQUE      (crn, term, faculty_id)
    CREATE TABLE    course_term
        crn             CHAR(8),
        term            DATE,
        course_subject  VARCHAR2(20 Char),
        course_number   CHAR(4),
        course_section  VARCHAR2(5 Char),
        college         VARCHAR2(20 Char),
        department      VARCHAR2(20 Char),
        course_credits  NUMBER,
        CONSTRAINT      course_term_uk
            UNIQUE      (crn, term)
    CREATE TABLE    student_course_term
        crn             CHAR(8),
        term            DATE,
        course_college  VARCHAR2(20 Char),
        course_depart   VARCHAR2(20 Char),
        student_id      NUMBER,
        stu_college     VARCHAR2(20 Char),
        stu_department  VARCHAR2(20 Char),
        earned_credit   NUMBER,
        CONSTRAINT      student_course_term_uk
            UNIQUE      (crn, term, student_id)
    );These tables are summary tables that represent multiple other tables. These tables can be joined by the CRN and Term columns. There is not, however, any foreign keys between them.
    You have made these tables available within a Subject Area on a repository. You now want to increase your user base for faculty, department heads, and college heads to access this data, but only the data that they have access to via their position.
    So you have the following Requirements for your security:
    Requirement 1:     Users with a Group_ID of 1 can see all data.
    Requirement 2:     Users with a Group_ID of 2 can see all Faculty, Course
              and Student records within their College.
    Requirement 3:  Users with a Group_ID of 2 can see Students records
              that are not in their College but are taking Courses in their
              College.
    Requirement 4:     Users with a Group_ID of 3 can see all Faculty, Course
              and Student records within their Department.
    Requirement 5:  Users with a Group_ID of 3 can see Students records
              that are not in their Department but are taking Courses in their
              Department.
    Requirement 6:     All Users can see Course records that they teach (even if it is
              outside their Department or College), as well as all Students
              within those Courses.To meet this criteria, you setup a new table on the database:
    CREATE TABLE    faculty_groups
        faculty_id      NUMBER,
        group_id        NUMBER,
        username        VARCHAR2(20 Char),
        fac_college     VARCHAR2(20 Char),
        fac_department  VARCHAR2(20 Char)
    );And you setup your Session Initialization Blocks and Variables like this:
    SELECT 'GROUP_ID', group_id
    FROM faculty_groups
    WHERE UPPER (username) = UPPER( 'VALUEOF(NQ_SESSION.USER)')
    SELECT 'COLLEGE', fac__college
    FROM faculty_groups
    WHERE UPPER (username) = UPPER( 'VALUEOF(NQ_SESSION.USER)')
    AND group_id = 2And so on for Department and Faculty_ID.
    Now, meeting Requirement 1 is easy enough starting all your data filters with:
    VALUEOF(NQ_SESSION."GROUP_ID") = 1
    ORRequirements 2 and 4 are also easily met in the manner of:
    VALUEOF(NQ_SESSION."GROUP_ID") = 2
    AND
         "Courses Term"."FACULTY_COURSE_TERM"."COURSE_COLLEGE" =  VALUEOF(NQ_SESSION."COLLEGE")
         OR
         "Courses Term"."FACULTY_COURSE_TERM"."FAC_COLLEGE" =  VALUEOF(NQ_SESSION."COLLEGE")
    )However, the hard part comes up with Requirements 3, 5 and 6. Using Requirement 6 on Student_Course_Term as an example, you need to identify the Faculty member that is teaching the Course using the Faculty_Course_Term table, then connect all related records to the Student_Course_Term table using the CRN and Term fields. But attempting the following data filter on the Student_Course_Term table results in a "No fact table exists at the requested level of detail" error:
    OR
    "Courses Term"."FACULTY_COURSE_TERM"."FACULTY_ID" = VALUEOF(NQ_SESSION."Faculty_ID")As well as trying:
    OR
         "Courses Term"."FACULTY_COURSE_TERM"."FACULTY_ID" = VALUEOF(NQ_SESSION."Faculty_ID")
         AND
         "Courses Term"."FACULTY_COURSE_TERM"."CRN" = "Course Term"."STUDENT_COURSE_TERM"."CRN"
         AND
         "Courses Term"."FACULTY_COURSE_TERM"."TERM" = "Course Term"."STUDENT_COURSE_TERM"."TERM"
    )Any suggestions? Does what I am attempting require physical foreign keys between the tables?
    Edited by: Nick Clinite on May 21, 2013 1:34 PM

    I'm not sure how that would help; by using the Faculty_ID Session Variable I can identify the CRN and Term of all courses a faculty member is teaching. But I don't think that has to do with the problem I am having?

  • Create a new Row in an advanced table in an advanced table

    Hi,
    I am handling the master detail relationship. For this i have used advanced table in an advanced table. I am facing a problem while creating a new row in the inner advanced table.
    I have a Display Sequence column in the inner advanced table. I want to handle the logic for displaying the value of this attribute. As per dev guide i have attached the view link and for handling the Add New row event i am using the below code
    OAAdvancedTableBean sublineDetailsTableBean = (OAAdvancedTableBean) webBean.findChildRecursive("SublineAdvTableRN");
    OATableFooterBean sublineTableFooterBean = (OATableFooterBean) sublineDetailsTableBean.getFooter();
    if (sublineDetailsTableBean.getName().equals(pageContext.getParameter(SOURCE_PARAM))
    && ADD_ROWS_EVENT.equals(pageContext.getParameter(EVENT_PARAM)))
    This is working fine. The challenge i am facing is for creating a new row. Below is the code given in dev guide
    // get a handle to inner tableOATableBean innerTable =
    (OATableBean)webBean.findChildRecursive("InnerTableBean");
    // create an enumeratorOAInnerDataObjectEnumerator enum =
    new OAInnerDataObjectEnumerator(pageContext, innerTable);
    while (enum.hasMoreElements())
    RowSet innerRowSet = (RowSet) enum.nextElement();
    // get all rows
    Row []rowsInRange = innerRowSet.getAllRowsInRange();
    for (int i = 0; i < rowsInRange.length; i++)
    Row nextRow = (Row) rowsInRange;
    // In case you want to add new rows in this RowSet, you can do the same
    OARow newRow = (OARow) innerRowSet.createRow();
    // initialize value for some attribute and insert the row
    newRow.setAttribute("SomeAttr", "SomeValue");
    innerRowSet.insertRow(newRow);
    The Above code creates a new Row in all the master records.
    How do i identify that the add new Row event has been triggered for which master record?
    Can any body please help me on this. I am stuck from a long time and am unable to find the appropriate solution.
    Thanks in advance
    Raj Papdeja

    Hi,
    Following is the code written in PFR,
    OAAdvancedTableBean sublineDetailsTableBean = (OAAdvancedTableBean) webBean.findChildRecursive("SublineAdvTableRN");
    System.out.println("sublineDetailsTableBean::"+sublineDetailsTableBean);
    OATableFooterBean sublineTableFooterBean = (OATableFooterBean) sublineDetailsTableBean.getFooter();
    System.out.println("lineTableFooterBean::"+sublineTableFooterBean);
    if (sublineDetailsTableBean.getName().equals(pageContext.getParameter(SOURCE_PARAM))
    && ADD_ROWS_EVENT.equals(pageContext.getParameter(EVENT_PARAM)))
    System.out.println("Inside Add New Row Button Event for the Sub Lines");
    strValueParam = (String) pageContext.getParameter(VALUE_PARAM);
    System.out.println("strValueParam=>"+strValueParam);
    ViewLink vl = am.findViewLink("GEPSCSTaskLineToSublineVL1");
    System.out.println("View Link=>"+vl);
    if(vl != null)
    OAViewObject vo = (OAViewObject) vl.getSource();
    if(null != vo)
    GEPSCSTaskLineItemsVORowImpl voRow =
    (GEPSCSTaskLineItemsVORowImpl) vo.getCurrentRow();
    Number LineNo = voRow.getLineNo();
    System.out.println("Source Row Line No::"+LineNo);
    /*OAViewObject vo = (OAViewObject) am.findViewObject("GEPSCSTaskLineItemsVO1");
    GEPSCSTaskLineItemsVORowImpl voRow = (GEPSCSTaskLineItemsVORowImpl) vo.getCurrentRow();
    Number LineNo = voRow.getLineNo();
    System.out.println("Line No::"+LineNo);*/
    // Getting the LineNo as null
    /*int intRowCount = vo.getRowCount();
    if(intRowCount > 0)
    System.out.println("Sublines are already present");
    GEPSCSTaskLineItemsVORowImpl tasklineVORow =
    (GEPSCSTaskLineItemsVORowImpl)vo.getCurrentRow();
    Number lineNo = (Number) tasklineVORow.getLineNo();
    System.out.println("LineNo=>"+lineNo);
    Number lastLineDispSequence = null;
    // Method to set the display sequence
    //am.invokeMethod("createNewSublineRow");
    // create an enumerator*/
    OAInnerDataObjectEnumerator enum =
    new OAInnerDataObjectEnumerator(pageContext, sublineDetailsTableBean);
    while (enum.hasMoreElements())
    RowSet innerRowSet = (RowSet) enum.nextElement();
    // get all rows
    Row []rowsInRange = innerRowSet.getAllRowsInRange();
    intRowCount = rowsInRange.length;
    System.out.println("intRowCount=>"+intRowCount);
    if(intRowCount == 0)
    System.out.println("No Rows present");
    OARow newRow = (OARow) innerRowSet.createRow();
    // initialize value for some attribute and insert the row
    newRow.setAttribute("DisplaySequence", new Number(1));
    innerRowSet.insertRow(newRow);
    else if(intRowCount > 0)
    System.out.println("Rows are already present");
    Row nextRow = (Row) rowsInRange[intRowCount-1];
    lastLineDispSequence = (Number) nextRow.getAttribute("DisplaySequence");
    OARow newRow = (OARow) innerRowSet.createRow();
    // initialize value for some attribute and insert the row
    newRow.setAttribute("DisplaySequence", new Number(lastLineDispSequence.intValue()+1));
    innerRowSet.insertRow(newRow);
    break;
    When i try to fetch the Line No which is the primary ID of the Parent VO, it always returns me the LineNO of the first Row and not of the parent row for which i have clicked the Add new Subline button of the Child record
    Number LineNo = voRow.getLineNo();
    System.out.println("Source Row Line No::"+LineNo);
    Is there any way to fetch the primary ID of the row for which i have selected the Add new Subline button
    Thanks
    Raj Papdeja

  • Deleting a row from advance table:urgent

    Hi All,
    I am using Advance table with "Add Another Row" button.Situation is like this, i have an empty row and an exsist row in my Table. Against each row i have a Delete image.Now my problem is, when I am clicking on the Delete image, i am getting the empty row id which is there is the VO cache,not the one against which i have clicked on the Delete image.Please help me to solve this problem.
    Thanks in Advance,
    Vikram

    For the Delete image, why dont you enable a firePartialAction on that and use SPEL binding to pass a unique id (like an <object>_id) as an EVENT PARAM to the Controller. From there on you can pass it to the AM and delete that particular row.
    For adding a new row, if you use the default add row feature in the advanced table and set the Insert Rows Automatically property to true, it should take care of inserting the rows by default at the end of your existing rows, without you having to write any code for it.
    If, on the other hand, you want to manually add the new row yourself, such as for defaulting some values into the new row, then you might want to explore if insertRowAtRangeIndex will work.

  • Row Level Security Not working for the ECC table.

    Hi All,
    We have created a crystal report using SQL Driver.
    We have set the row level security on PA0001 table so that we can restrict the query based on Company Code.
    But when I run the report, it bypasses the row level security and gives access.
    Am I missing some configuration?

    Hi Ingo,
    Security is set up using /crystal/rls transaction. A custom auth object is used for checking the company code with a single field "BUKRS".
    This custom auth object is maintained for the PA0001 table.
    This object is added at the role level with the restricted access to the Company Code..

  • How to capture the row  value in Advanced Table on OAF ?

    Hi:
    I was wondering, if anyone has any idea as to how to capture a row value on an advanced table on a OAF Page.
    I am currently trying to capture the Expense Report Number ( first column) on the Track Expenses Reports table on the page /oracle/apps/ap/oie/webui/HomePG.
    Any idea would be helpful ?
    Thank You

    Hi,
    856070 wrote:
    This is what I am looking for :
    Default Functionality
    On the expenses home page there is a table for the Submitted expenses Table ( advanced table) with multiple Expense Number rows , which has a link associated with every expense number. When the user clicks the expense number link , EBS takes you to a more detail information page. ---As per default functionality :::whene ever user clicks on link it will takes u to details info page based expense no right.
    ---Check the property of the Destination URL of the ExpensionNumber column.
    ---In this property u can find the page path and paramam ex:pexpencenumber.
    Customized functionality
    I would like to capture the Expense number on the detailed page to call another application based on the expense number. The expense number on the
    detailed page is not available on the request-parameter or on the VO.
    I was thinking of capturing the ExpenseNumber when the user clicks it and save the expense number on a >transientvalue to retrieve it on the detaile dpage..but unable to do so.---Here get the paramereter pexpencenumber and pass it to another appilcation.
    Regards
    Meher Irk

  • Advance Table - Add Row button and coloumn issue

    Hi all,
    I have created Advanced Table wth four coloumns.
    for two columns item style as messagtextinput and the rest are same as DATE.
    But when the page is rendering the table columns shows as messagestyletext , which means messagetextinput style item is not appearing.
    Kindly help me if am missed anything wrong.
    and also can u help me to create add row button featurs in advance table
    Thanks in advance.
    Senthur

    Senthur,
    I hv done this using row status initialised.I couldnt get the above lines.
    I have another doubt also. In Advanced table there is coloumn header, is there any Row header.There is nothing as such RowHeader. Let me know ur exact requirement.
    Name age salary
    empid1 xxx 21 100
    empid2 yyy 22 200Create a VO which return the above attributes and attach the same to the Adavanced Table Bean.
    Regards,
    Gyan

  • Advance table Add another row button error  ---Error: Cannot Display Page

    hi, i m new to OAF.
    I m trying to add new row programatically to my advanced table, but getting the error
    Error: Cannot Display Page
    You cannot complete this task because one of the following events caused a loss of page data:
    Your login session has expired.
    A system failure has occurred.
    My page has two EOs with two differnt tables Table A(Accident details) and Table B(Victim Details).Table A is Parent of Table B.No relation is defined in my page for these two tables so far.Foreign key is not defined.
    On my page I have various field for entering data for Table A and its saving data properly
    For table B i have taken the Advanced table.When i click on Add row button of table i m getting the said error.
    My CO
      public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
        super.processFormRequest(pageContext, webBean);
        OAApplicationModule am=(OAApplicationModule)pageContext.getApplicationModule(webBean);
         System.out.println("processFormRequest ");
         if(pageContext.getParameter("Save")!=null)
            am.invokeMethod("apply",null);
            System.out.println("Save ");
      if  ("addRows".equals(pageContext.getParameter("event")) && "AdvTblRN".equals(pageContext.getParameter("source")) )
      System.out.println("The source is :"+pageContext.getParameter("source"));
      String p_header_id = (String)pageContext.getTransactionValue("p_tx_header_id");
      Serializable[] param = {p_header_id};
      am.invokeMethod("createRow", param);
       am.invokeMethod("apply",null);
       System.out.println("Add Row ");
      pageContext.forwardImmediatelyToCurrentPage(null,false,"N");;
    And AM
    public void createRow( String p_header_id)
    Row prow;
    VictimDtlVOImpl pvo= getVictimDtlVO1();
    pvo.setMaxFetchSize(0);
    prow=pvo.createRow();
    pvo.insertRow(prow);
    prow.setNewRowState(Row.STATUS_INITIALIZED);
       OAViewObject vo1 = (OAViewObject)getVictimDtlVO1();
    OADBTransaction transaction1 = getOADBTransaction(); 
      System.out.println("---- "+transaction1.getSequenceValue("XXMIS_SAFETY_VICTIM_DTL_SEQ"));
      Row row1 = vo1.createRow();
       vo1.insertRow(row1);
      row1.setAttribute("VictimId",transaction1.getSequenceValue("XXMIS_SAFETY_VICTIM_DTL_SEQ")); 
      row1.setNewRowState(Row.STATUS_INITIALIZED);
    public void apply()
    try {
      getOADBTransaction().commit();
    System.out.println("Commit ");
    plz help .......
      catch (Exception e)
       e.printStackTrace();

    Hi Vaishali,
    Use below code for add line in Nested Table.
    if(pageContext.getParameter("addRows") != null){
            OAAdvancedTableBean sectionsTable = (OAAdvancedTableBean)webBean.findChildRecursive("AdvTblRN");
            OAInnerDataObjectEnumerator sectionsEnum = new OAInnerDataObjectEnumerator(pageContext, sectionsTable);
            while(sectionsEnum.hasMoreElements()){
                RowSet sectionsRowSet = (RowSet) sectionsEnum.nextElement();
                for(int i = 0; i < 1; i++){
                    OARow newRow = (OARow) sectionsRowSet.createRow();
                    sectionsRowSet.insertRowAtRangeIndex(sectionsRowSet.getRowCount(), newRow);
    Thanks,
    Dilip

  • How to get the row reference of inner table of an advance table

    Hi Gurus,
    Using R12.1.3, How to get the handle of inner table row reference of an advance table in controller.
    Regards,
    Zakir

    The javadoc for oracle.jbo.Key is really helpful.
    getAttributeNames()
    getAttributeValues()
    etc

Maybe you are looking for