How to get current row using submit button ?

Hello Friends ,
Is there any way i can capture the value of current row by submit button ?
Here is my requirement , i have seeded OAF screen and it has table region one of the column has radio button , the existing
functionality is when ever the radio button is selected and click on submit button ( submit button attached on top of the table region )
other oaf page is getting opened .
Now i wish to restrict the navigation based on some condition , but i don't know how to get the current row using submit button .
Note : there is no Fire Action event for radio button column ? I dont' know how orale is selecting a specific row
Any suggestion please ?
Regards ,
Vamsi

Thanks sushant for your response ,
Well i have tried your approch , i am not getting values for current row .
if (pageContext.getParameter("paApply") != null)
OAApplicationModule am = pageContext.getApplicationModule(webBean);
OAViewObject localOAViewObject1 = (OAViewObject)am.findViewObject("ProjectDatesVO");
if(localOAViewObject1!=null) {
Row DateVoROw = localOAViewObject1.first();
RowSetIterator iterator = localOAViewObject1.createRowSetIterator("iterator");
iterator.setRangeStart(0);
iterator.setRangeSize(localOAViewObject1.getRowCount());
for(int i=0; i<iterator.getRowCount(); i++)
DateVoROw=iterator.getRowAtRangeIndex(i);
String vacancyValue= DateVoROw .getAttribute("vacancyname).toString();
Could you please let me know where i am going wrong
Thanks again ,
Vamsi

Similar Messages

  • How to get Current row of ViewObject in the DoDML methode

    Hi all
    I have two ViewObject EmplyesView and DeptView
    How to get Current row of ViewObject DeptView in the DoDML methode of EmplyesView

    OK, we can play this game on and on...
    I'll ask for a use case (http://en.wikipedia.org/wiki/Use_case) and you don't give any info we don't already know. After an other 10 posts we probably know what you real problem is and can give you the advice which you could have gotten in the fist place.
    So please take some time and describe the problem as if you would ask your mother for help. Tell us how the data model is build and how the VO are related. Is there any input from an user involved? Which information from the other view do you need? How do you get to the doDML method? Is there a button in the ui involved?
    Timo

  • How to get current row data in table control

    Hi , expert ,
       I am professional in oracle ,  but  now I am a new guy in SAP ABAP .
    I  have a question in UI
    How to get current row data and click pushbutton  in table control  to open next screen ?
    I want to get the current data and open next screen to carry out detail detail .
    Thansk for all your suggestion .

    GET CURSOR LINE SY-CUROW .
      READ TABLE internal_table index SY-CUROW.

  • How to get  current row(Based on Radio button check)  submit button Click

    Hi i hava Query Region Search(Based On Auto Customization Criteria).
    For Showing Results iam Using Table Region.
    Using Radio button How we get the row reference value using Submit button Click.
    Please Help on this .
    Thanks & Regards
    San

    Hi san ,
    Try this
    if ("EventID".equals(pageContext.getParameter(EVENT_PARAM)))
    String rowRef = pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
    OARow row = (OARow)am.findRowByRef(rowRef);
    VORowImpl lineRow = (YourVORowImpl)findRowByRef(rowRef); // Replace your vo name .
    Please refer this link , Let me know if its not clear .
    Single Selection in table Region in OAF .
    Keerthi

  • How to get Current Row information

    Hi,
    Actually i have an lov item and when user enters some value in the lov and just tabs out the process request method on the lov region is fired. Now the lov item is in a advance table and table has lets say 5 rows.
    Now the user enters some invalid value in lov item of say 3 row and tabs out of the lov. As a result the lov popup gets enabled and process request at the lov region is called.
    Now my requirement is in the process request of lov region i want to get hold of the current row of view object.
    I have attached a controller at the lov region and i have put system.out.println at process request method.
    The control is going there, now when i grab the VO and do getCurrentRow() it doesn't return anything.
    Actually i know that we can capture the tab out event using pageContext.islovevent but it gets fired only for valid values in lov input. for invalid values process request is called at the lov region.
    Kindly put some light on it.
    Thanks,
    Gaurav Sharma

    Actually, when the user tabs out of the lov then if there's a valid value in lov then lovValidate event is fired and lov is not popped up. But for invalid values lovvalidate event is not getting fired but control goes to the process request of lov region.
    My requirement is that i have two lovs in an advance table region . one for Country and one for State.
    Now i want that as the user enters some value in State lov and tabs out then as the lov gets popped up then it should pick up the value in Country LOV and based on that Country it should display the results for the current row as there may be multiple rows on advance table.
    Now there are two things, when user clicks on lov torch on state then lov prepare event is fired and then i am able to grab the the country for the current row using row reference.
    But when user enters some invalid value in state lov and tabs out then no event is fired, rather than this process request is called at the lov region . Now how can i capture the value in Country lov of current row.
    Thanks,
    Gaurav
    Edited by: [email protected] on May 21, 2009 4:59 AM

  • How to get Current Row values in Af:ForEach

    Hi,
    We have a requirement to conditionally Display/Hide CommandLink item in af:forEach Loop.
    <af:forEach items="#{bindings.RegionalAreaPVO.rangeSet}" var="parent">
    <af:spacer height="10" id="s1"/>
    <af:commandLink inlineStyle="font-weight:bold;" text="#{parent.ItemName}" partialSubmit="true" actionListener="#{backingBeanScope.RegionalAreaBean.launchTaskflow}" id="cl1" rendered="*#{backingBeanScope.XXWFCRegionalAreaBean.modelEligibleflag eq true}*">
    <af:setActionListener from="#{parent.Code}" to="#{parentNode}"/>
    </af:commandLink>
    </af:forEach>
    I have added a Cutom Managed Bean Class and Returning boolean value to Control Render property which is working. But now i want to add business Logic based on 'parent.ItemName' or 'parentNode' Values in the bean method to return proper Boolean value.
    But i am unable to get the Current Iteration values in the bean method.
    I am using below EL expressions to get the values. But no luck.
    String nameel = (String)ADFUtil.evaluateEL("#{bindings.parent.ItemName}");
    String codeel = (String)ADFUtil.evaluateEL("#{parent.Code}");
    String nodeEl = (String)ADFUtil.evaluateEL("#{parentNode}");
    Also, i have tried getting the Row object like below but i am getting the First row details always. My intention is to get Current row values and use them for Business logic.
    ViewRowImpl row =
    (ViewRowImpl)ADFUtil.evaluateEL("#{bindings." + VoName +
    "Iterator.currentRow}");
    String code = (String)row.getAttribute("Code");
    Any help is highly appreciated.
    Thanks
    Kaja

    Hi Sascha,
    I have tried that. But in my case the functional logic behind the Rendering is based on more complex logic. Hence i am trying to add a method to return a boolean in Render property of the Link.
    But the real problem for me is, in the Managed bean method i am not finding a way to get the Current Iteration index. If i can get the Current iteration index, i can get the Corresponding Component ID of Command link (In the forEach Loop Component Id's are getting generated Dynamically based on Iteration Index), i can use that and add additional logic and derive true/false to return.
    Any inputs?
    Thanks
    Kaja

  • How to get current row value from table when press the submit button

    Hi,
    I want to get the current row value of SuccessionPlanId which is one of the column in a advanced table.
    I created one button (created using personalization, action fired thru CO)in the table as column, so each row having one button, if i press the first row's button means then i want to fetch the first row's SuccessionPlanId and if it is 3rd means then i want to get the value of third row's value.
    How to do it in controller extension?
    Please reply soon, its urgent.
    Thanks in advance,
    SAN

    Pratap,
    Yes, I tried with 'delete' button which is seeded one.
    For this, our code using row reference is working too fine. it throws exact SuccessionPlanId value of corresponding row.
    I created MessageStyledText, but here i need to give text value right, then only it 'll appear in the page.
    Instead i created one image and fired explicitly from the controller processRequest method.
    But the same problem remains..
    here my code:
    public void processRequest(OAPageContext pageContext, OAWebBean webBean){
    super.processRequest(pageContext, webBean);
    OAButtonBean oabb = (OAButtonBean)webBean.findChildRecursive("XXSubmit");
    FireAction action = new FireAction("XXSubmit");
    oabb.setAttributeValue(UIConstants.PRIMARY_CLIENT_ACTION_ATTR, action);
    OAImageBean oaib=(OAImageBean)webBean.findChildRecursive("XXSubmitImage");
    oaib.setFireActionForSubmit("XXSubmitImage", null, null, true);
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean){
    if("XXSubmitImage".equals(pageContext.getParameter("event"))){
    String succIdI="";
    String rowRefI = pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
    if(rowRefI != null && !("".equalsIgnoreCase(rowRefI ))){
    PerSuccPlanSearchVORowImpl rowI = (PerSuccPlanSearchVORowImpl)oaam.findRowByRef(rowRefI);
    if(rowI != null)
    succIdI=rowI.getAttribute("SuccessionPlanId").toString();
    }else{
    throw new OAException("Row is null");
    throw new OAException(succIdI, OAException.INFORMATION);
    }else{
    super.processFormRequest(pageContext, webBean);
    If i run the page using this controller, it throws exception without any value, because for 'succIdI' i initialized without any string.
    Can you please suggest me how to solve?

  • How to get blank rows using #

    Hi,
    I have a requirement to restrict my query on Creation Date. For this I am creating a variable in Query Analyzer such that when I execute my query standard SAP creation date pop up comes but now my client also want to get the blank rows using # along with the date entered by the user.
    My problem is how should I append # along with the user entered date.
    Thanks.

    I am not able to enter # . As only the calender is coming there is no option to enter # .
    I am thinking of another solution please tell me if I am correct. Can I create two variables to creation date such that one of the variable is of type User Input and another one will be of Customer Exit type, then in customer exit in I_STEP = 2 I can manually append #. Will it be a appropriate solution?

  • How to get Current Row in POV of a screen

    hi ,
    On F4 of a field in a screen in POV, i need to fetch some details based on some other fields in the same row. How can i get the row number??
    Thanks

    Hi Radhika,
    Try this way. Let me know if you get any doubt .
    *  MODULE f4_on_tablecontrol OUTPUT
    MODULE f4_on_tablecontrol OUTPUT.
      DATA: BEGIN OF it_marc OCCURS 0,
              matnr TYPE marc-matnr,
              werks TYPE marc-werks,
            END OF it_marc.
      DATA:it_dynpread TYPE TABLE OF dynpread,
           wa_dynpread LIKE LINE OF it_dynpread.
      DATA: it_return_tab TYPE ddshretval OCCURS 0,
            wa_return LIKE LINE OF it_return_tab.
      wa_dynpread-fieldname = 'ITAB-WERKS'.
      wa_dynpread-stepl     = tabc-current_line. "Where TABC is table control name.
      APPEND wa_dynpread TO it_dynpread.
      CLEAR  wa_dynpread.
      "DYNP_VALUES_READ read screen
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          dyname     = sy-repid
          dynumb     = sy-dynnr
        TABLES
          dynpfields = it_dynpread.
      READ TABLE it_dynpread INTO wa_dynpread INDEX 1.
      p_werks = wa_dynpread-fieldvalue.
      IF it_marc[] IS INITIAL.
        SELECT * FROM marc INTO CORRESPONDING FIELDS OF TABLE it_marc WHERE werks = p_werks.
      ENDIF.
      "F4 help F4IF_INT_TABLE_VALUE_REQUEST
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield    = 'MATNR'
          dynpprog    = sy-repid
          dynpnr      = sy-dynnr
          dynprofield = 'ITAB-MATNR'
          value_org   = 'S'
        TABLES
          value_tab   = it_marc
          return_tab  = it_return_tab.
      IF sy-subrc EQ 0.
        READ TABLE it_return_tab INTO wa_return INDEX 1.
        IF sy-subrc EQ 0.
          p_matnr = wa_return-fieldval.
        ENDIF.
      ENDIF.
    ENDMODULE.                    "f4_on_tablecontrol OUTPUT
    Thanks
    Venkat.O

  • How to get subgroup rows using SP

    I need to get some rows (NOT ALL ROWS, NOT FIRST n ROWS) from a query SP, below is my code: Can anyone help me to get the rows starting at row startrowno and ending at stoprowno ?
    CREATE OR REPLACE PACKAGE BODY emppkg AS
    procedure querysubrows (
    table_name VARCHAR2,
    startrowno IN NUMBER,
    stoprowno IN NUMBER,
    orderbystring IN VARCHAR2,
    totalrows OUT NUMBER,
    sum_cv IN OUT sumCur) AS
    sql_statement VARCHAR2(1000);
    BEGIN
    sql_statement :='SELECT * FROM '&#0124; &#0124;table_name&#0124; &#0124;' ORDER BY :str';
    OPEN sum_cv FOR sql_statement USING orderbystring;
    LOOP
    END LOOP;
    END;
    END;
    Thanks in advance

    Here u go.......
    CREATE OR REPLACE PACKAGE BODY emppkg AS
    procedure querysubrows (
    table_name VARCHAR2,
    startrowno IN NUMBER,
    stoprowno IN NUMBER,
    orderbystring IN VARCHAR2,
    totalrows OUT NUMBER,
    sum_cv IN OUT sumCur) AS
    sql_statement VARCHAR2(1000);
    BEGIN
    sql_statement :='SELECT * FROM (SELECT ROWNUM A,'&#0124; &#0124;table_name&#0124; &#0124;
    '.* from '&#0124; &#0124;table_name&#0124; &#0124;' ORDER BY :str)'&#0124; &#0124;
    'WHERE A BETWEEN '&#0124; &#0124;startrowno&#0124; &#0124;' AND '&#0124; &#0124;stoprowno;
    OPEN sum_cv FOR sql_statement USING orderbystring;
    LOOP
    END LOOP;
    END;
    END;
    null

  • How to get current row of Advanced table with no submit

    I have an advanced table with an 'Add another button'. When an empty row is created by clicking this button, LOV is used on the first column to populate other fields of the row. The rows of the table carry a button called "Add dependencies" whose functionality is to take the user to a different table to add rows to a different VO. This button is just a button and not a submitButton. I am passing the row's primary key as part of the URI as Vo attribute FdTaskId={@FdTaskId}
    The button works perfectly fine for database fetched rows (rows already present in the database), but, for the rows created using 'Add Another button', though LOV populates all fields including the primary key, the URI parameter passes null to the next page. That means, the VO attribute is not set. This works fine only when a 'submit' happens in the first page. For example, if I click Add another row again, then the previously inserted row passes the primary key fine as part of {@FdTaskId}.
    Could you please help me how I can resolve this issue?
    Thanks,
    Datta

    I am doing exactly that. My issues is that, VO attribute is passed correct for the table rows which are fetched from the database. For the table rows which got created through 'Add Another button', the VO attribute passed through URI as {@FdTaskId} is returning null. The VO attribute sets only when a form submit happens. For example, after adding a row through 'Add another row' button, click the same button again to add one more row and now go back to previously added row and now you can see that its VO attribute is set ({@FdTaskId} carries value )

  • Anyone know how to get current time using Java?

    Hi,
    do anyone know how to use system.currentTimeMillis() to get the current time?
    I know that system.currentTimeMillis() get the time between current time and midnight, January 1, 1970 UTC. but how to use it to get the current time format?
    Thank you very much.

    Hi,
    do anyone know how to use system.currentTimeMillis()
    to get the current time?
    I know that system.currentTimeMillis() get the time
    between current time and midnight, January 1, 1970
    UTC. but how to use it to get the current time format?
    Thank you very much.
    long timeInMillis = System.currentTimeMillis();
    Calendar c = Calendar.getInstance();
    c.setTime(timeInMillis);
    Date d = c.getTime();And format using SimpleDateFormat:
    SimpleDateFormat sdf = new SimpleDateFormat("dd-mm-yyyy HH:mm:ss");
    String formattedDateString = sdf.format(d);

  • How to get next record using next  button

    my database is very large and i awnt to display results 1 page at a time by keeping next button.so when i click next i should get next record.
    help me out

    Re-direct this post under relevant Developer Tools Forums.
    http://forums.oracle.com/forums/category.jspa?categoryID=19
    Regards,
    Sabdar Syed.

  • How to get current row from advanced table

    Hi,
    I have the following code to pick the value of columnA from one of the columns of an advanced table:
    OAViewObject vo = (OAViewObject)am.findViewObject("AAALineVO2");
    if (vo != null)
    OARow vorow = (OARow)vo.getCurrentRow();
    String ColA = (String)vorow.getAttribute("ColumnA");
    String message = ColA; //to throw message so i can verify the value of ColumnA
    throw new OAException(message, OAException.INFORMATION);
    }It's picking up the first value of ColumnA of the first record correctly, however when I add a new row, it's not picking up the value of columnA anymore.
    What am I doing wrong?
    Thanks in advance,
    N

    Try with this:
    import oracle.apps.fnd.lookups.server.LookupCodeVORowImpl;
    public void aaa (String row)
        LookupCodeVORowImpl laborcreateeovorowimpl = (LookupCodeVORowImpl)findRowByRef(row);
    }Thanks
    --Anil                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Issue in getting current row value using getCurrent Value

    Issue:When I call ththe method executeSearchVO from controller class
    with Row row = personalActionSearchVO.first();
    I am getting the corresponding value.
    but my requirement is I have multiple record , If i press action on any of the record, I need to read SITName value for the particular record and need to pass it as parameter to other pager(i mean If i select any record, I need to get corresponding value in the attribute for the record.)
    if i comment personalActionSearchVO.first(); i am getting null pointer exception.
    Pl. helpme how to get current row instead of first row always.
    AMIMPL Clause
    public void executeSearchVO(String loginPersonId)
    XXHRPersonalActionSearchVOImpl personalActionSearchVO =getXXHRPersonalActionSearchVO1();
    personalActionSearchVO.initQuery(loginPersonId);
    // Row row = personalActionSearchVO.first();
    row = personalActionSearchVO.getFirstFilteredRow("action","1");
    Row masterRow = row;
    personalActionSearchVO.setCurrentRow(masterRow);
    OARow Row1 = (OARow)personalActionSearchVO.getCurrentRow();
    System.out.println("Org "+Row1.getAttribute("Organization"));
    calling this method from controller clause
    if("action".equals(pageContext.getParameter(EVENT_PARAM)) )
    System.out.println("Person Id "+ pageContext.getParameter("XXHRPersonId"));
    Serializable methodParams[] = {pageContext.getEmployeeId()+""};
    applicationModule.invokeMethod("executeSearchVO",methodParams);
    need it urgently. pl. help
    thanks
    siva

    Timo,
    I am new to Jdevloper. I will explain the issue in detail.
    Version: Oracle 9i Jdeveloper
    I have a query page with multiple records. when I perform action , I need to pass 2 parameters from query screen to my actual page.
    1 parameter is Login person Id,. Now the issue is with getting current value for 2nd paramenter. 2nd Parameter will be changed depends upon record i am choosing in my query page: column is : Information Name.
    when I use getcurrentrow , I am getting null pointer exception.
    My controller class when I click action button :
    if("action".equals(pageContext.getParameter(EVENT_PARAM)) )
    Serializable methodParams[] = {pageContext.getEmployeeId()+""};
    applicationModule.invokeMethod("executeSearchVO1",methodParams);
    {color:#993300}
    // Here I need to get InformationName value based on the record I am choosing{color}
    HashMap hashMap = new HashMap(2);
    hashMap.put("XXHRPersonId", pageContext.getParameter("XXHRPersonId"));
    // hashMap.put("InformationName", methodParams);
    pageContext.forwardImmediately(
    "OA.jsp?page=/xxhr/oracle/apps/xxhr/selfservice/personalaction/webui/XXHRPersonalActionPG",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    hashMap,
    true, // Retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO
    my AMIMPL Clause :
    I am just pasting whatever I have tried. Pl. suggest me If my code is wrong.
    *{color:#993300}I need to get current row information value from the below method*
    *{color}*
    public void executeSearchVO1(String loginPersonId)
    XXHRPersonalActionSearchVOImpl personalActionSearchVO =getXXHRPersonalActionSearchVO1();
    personalActionSearchVO.initQuery(loginPersonId);
    System.out.println("Row count "+personalActionSearchVO.getRowCount());
    // Row row = personalActionSearchVO.first();
    Row row = personalActionSearchVO.getCurrentRow();
    System.out.println("Informaton Name "+row.getAttribute("InformationName");
    In this , If i initialzie with Row row = personalActionSearchVO.first();I am able to get value for my column Information Name.
    whereas, if I use directly Row row = personalActionSearchVO.getCurrentRow();, i am getting null pointer exception.
    Pl. let me know how to get current row value for Information Name.
    Looking for the reply at the earliest.
    Thanks
    siva

Maybe you are looking for

  • FaceTime Problem

    Hi, I have an iPhone 4S and I recently updated its software from 5.0.1 to 7.0.2, update was successful but I can't find Facetime anywhere on the device. I have seen an older phones versions with Facetime working on it. Please advice how to get faceti

  • Some songs end half way through

    I have an 80 GB iPod. I bought it new and originally formatted it for Windows and connected it to iTunes in Windows. I later bought a Mac, reformatted the iPod for Mac and had iTunes copy all my song files to it again. Most of my music collection are

  • OBI 11G installtion seems ok. But cannot open browser

    Hello, I have installed OBI 11G to my notebook. Everything seems to be ok, when I check the status with command opmnctl status. opmnctl status output is below: C:\app\WLS1033\instances\instance1\bin>opmnctl status Processes in Instance: instance1 ---

  • Kuler iPhone app - White Balance

    No way to set white-balance? Kuler for iPhone is really a very nicely done app, but there is a fairly major issue for an app that is only about colour. No white-balance setting.  The iPhone's colours are often too blue.  (Probably because Apple think

  • ...but I don't want the german Music Store

    When I choose the Music Store from iTunes I access the German store... closer to home, Australia, would be good. Any suggestions would be appreciated