Capture grid row value and set it in edit box

hello expert
i want to select  the perticular colum of grid and capture the three colum value of grid in three edit box on the form pls help me sir
                         thanx a lot

Hi vmaskey,
Use the Grid's DataTable GetValue method to get the values you need.
Do this on the ItemPressed Item event, when the user selects a row
Dim Value1 As String = oGrid.DataTable.GetValue(0, oGrid.GetDataTableRowIndex(oGrid.Rows.SelectedRows.Item(i, BoOrderType.ot_RowOrder)))
Regards,
Vítor Vieira

Similar Messages

  • 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

  • How to get the kerning value and set it to back use script?

    hi,guys
    I come back again.
    I encountered a kerning problem.
    how to get the kerning value and set it to back use script?
    Thanks very much!

    For both cases, the filename can be found on the FILE.ReceivedFileName Context Property.  You can access this Property in a Pipeline Component or Orchestration and take any action you want, such as apply to a database.
    The value is accessed by: MyReceivedMessage(FILE.ReceivedFileName)
    In the case of a duplicate EDI Interchange, you would use the Failed Message Routing feature to capture the error message with either an Orchestration or Send Port.

  • Is it possible that a particular row of IWDTable set to non editable?

    Hi All,
    Is it possible that a particular row of IWDTable set to non editable on the basis of a field value ?? Plz help.

    Context
    + Rows (node)
       + value (integer)
       + readOnly (boolean,calculated=true)
    Bind the "readOnly" property of the InputField (cell editor) to the "readOnly" attribute shown above. Implement the calculated attribute getter like
    boolean getRowsReadOnly(IRowsElement element)
      return element.getValue() == 42; /* or whatever */
    Armin

  • Bex Query - How to capture characteristic value and set it as filter value?

    Dear Experts,
    I would like to create a tricky report that listed sales quantity by companis. Companies consists of production plant as well as trading company.
    Company / Sales Quantity / Sales Quantity 2 (which produced by Company itself)
    A            / 100                  / 50                     (50 was produced by company A)
    B            /  80                   / 0                      (this is a trading company)
    C            / 150                  / 150                   (All are produced by company C)
    First I thought of using variable to capture Company value and then under Sales Quantity 2 I set producing company = this variable. But this only works if I filter company values. Any workaround idea that I can get the above with all the listing of companies?
    Any assistance would be great! Thanks!
    JL

    Hi,
    Have you tried elimination of Internal business Volume?
    http://help.sap.com/saphelp_bw32/helpdata/en/d5/784d3c596f0b26e10000000a11402f/content.htm
    Impliment this solution  by adding another KF Sales qty2.  with ref. to Sales qty.
    In characteristic pair you can have Company and  Production Company(navigational attribute).
    By implimenting this solution  the system will eliminate if the quantity is produced by the company it self.  You can create CKF in query to get the result you need.
    Jaya

  • Capturing the row selector and perform logical delete

    Hi All ,
    I add a tabular report in one of my page .But in the MULTI_ROW_DELETE button I like to capture the checkbox (row selector) and fire a PL/SQL anonymous block where rather than performing actual row delete it will update a database field and perform some sort of logical delete .
    Now my problem is I cant able to capture that what are the rows need to be logically deleted :
    DECLARE
    vRow BINARY_INTEGER;
    BEGIN
    FOR i IN 1 .. apex_application.g_f01.COUNT
    LOOP
    vRow := apex_application.g_f01(i);
    update test123 set delete_flag='y' where col2=vRow ;
    end loop;
    end;
    Its throwing error .Can anyone help on this pls how to write the pl/sql code to perform the logical delete.
    Thanks in advance ,
    Regards,
    Debashis.

    Guys ,
    Got the solution by searhcing several of the therads from Denes...
    Create the checkbox from Form page :
    htmldb_item.checkbox(1,t.USERNAME) DeleteItem,
    and then captured it as :
    FOR i in 1..HTMLDB_APPLICATION.G_F01.count
    LOOP
    UPDATE table1 set DELETE_FLAG='Y'
    WHERE USERNAME = HTMLDB_APPLICATION.G_F01(i);
    END LOOP;
    Cheers,

  • How to capture selected row value inside of c:foreach

    Hi ,
    I have a for each loop as follows : I want to do Edit, Delete Copy functions on indivisually displayed rows.
    =======================================================
                             <c:forEach items="${position.positionAuthorizations}" var="app" varStatus="appStatus">
                                  <%-- Alternate style classes for rows --%>
                                  <c:if test="${appStatus.count % 2 == 0}">
                                       <tr class="HeaderRowSub">
                                            <TD colspan="4"><SCRIPT language="JavaScript">RowTwistie(1,"<c:out value="${app.id}" />","�����<c:out value="${app.id}" /> - <c:out value="${app.name}" />","CLASS: HeaderRowSub");</SCRIPT></TD>
                                       </tr>
                                  </c:if>
                                  <c:if test="${appStatus.count % 2 != 0}">
                                       <tr class="HeaderRowSubTwo">
                                            <TD colspan="4"><SCRIPT language="JavaScript">RowTwistie(1,"<c:out value="${app.id}" />","�����<c:out value="${app.id}" /> - <c:out value="${app.name}" />","CLASS: HeaderRowSubTwo");</SCRIPT></TD>
                                       </tr>
                                  </c:if>
                                       <c:forEach items="${app.roles}" var="role" varStatus="roleStatus">
                                            <%-- Alternate style classes for rows --%>
                                            <c:if test="${roleStatus.count % 2 != 0}">
                                                 <SCRIPT LANGUAGE="JavaScript">RowTwistieInclude("<c:out value="${app.id}" />","CLASS: RowOne");</SCRIPT>
                                            </c:if>
                                            <c:if test="${roleStatus.count % 2 == 0}">
                                                 <SCRIPT LANGUAGE="JavaScript">RowTwistieInclude("<c:out value="${app.id}" />","CLASS: RowTwo");</SCRIPT>
                                            </c:if>
                                                 <%-- checkbox table cell --%>
                                                 <TD align="right"><%-- <INPUT type="checkbox" name="<c:out value="${role.id}" />Checkbox" value="<c:out value="${role.name}" />" style="height: 12px;"> --%></TD>
                                                 <%-- role name table cell --%>
                                                 <TD><c:out value="${role.id}" /></TD>
                                                 <%-- Delete/Edit button cell --%>
                                                 <td>
                                                      Edit
                                                      Copy
                                                 Delete
                                                      Delegate                                              </td>
                                       </c:forEach>
    ====================================================

    you can:
    1. write a javascript to check which checkboxes are checked
    2. place a listener on the checkbox, onchecked, when it's checked it'll run a javascript which will add the row index in a List, and vice versa when it's being unchecked the javascript will remove the row index from the list

  • Grabbing Array Value and setting a hidden input

    Not sure if anyone can help but I am having an issue grabbing a certain value from an array and setting a hidden input inside a loop that then is grabbed outside the loop using a document.getElementById.
    Example to what I am trying to do.
    I have a Oracle Package that returns an array for a shopping cart. Each line has its on value and the value can either be 'N', 'P', or 'Y'. Depending on if any of the lines return an 'N' or a 'P' then something else needs to happen.
    So say I have a cart that has 5 lines in it.
    Line 0 = 'Y'
    Line 1 = 'N'
    Line 2 = 'N'
    Line 3 = 'Y'
    Line 4 = 'Y'
    Since one of the lines returns an 'N' I now want to set a hidden input with a value of 'N'. (Right now I have it setting that value in the cart display loop, which maybe be wrong.)
    <input type="hidden" id="AllowCheckOut" name="AllowCheckOut" value="N">
    Once the hidden input is set then outside the loop I am doing the following to determine if the 'Checkout' button should be displayed or not.
    if (document.getElementById('AllowCheckOut').value == "N") {
    isDisabled = true;
    The reason I am having to do it this way is because the 'Checkout' button is at the parent .jsp page and this is being determined in the child .jsp page.
    The problem I am having is even though I am doing an if else logic in the loop to look for an 'N' value which it does find, but it looks like it is always setting the hidden input value to whatever the last line value is which is 'Y' instead of setting it to 'N' since one of the lines had an 'N' in it.
    If anyone understands what I am trying to do can you please explain what I may be doing wrong or need to do.
    Thanks

    Also you have strings there delimited by single quotes, which is invalid in Java.
    Are you sure this is Java and not Javascript?
    Though a cart implemented in Javascript seems problematical to me.

  • How to capture the selected values from module pool dialog list box !

    Hi experts,
    Can anyone help me out in capturing the values from the list box.
    i am able to set the values in the list box.But i am not able to capture the selected value from the list box. Always the list box name is getting as "space"
    I also tried in using the FM "VRM_GET_VALUES" but it is retireving all the values. Is there is any flag for filttering out the selected value.
    Your inputs are appreciated.
    Thanks,
    Vijay.

    Along with the PBO and PAI event, add a POV event in the flow logic of the screen
    DEMO_DROPDOWN_LIST_BOX -is a good demo example.
    PROCESS ON VALUE-REQUEST.
    FIELD structure_name-field_name MODULE create_dropdown_box.
    In the report :
    MODULE create_dropdown_box INPUT.
      SELECT carrid carrname
                    FROM scarr
                    INTO CORRESPONDING FIELDS OF TABLE itab_carrid.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
           EXPORTING
                retfield        = 'CARRID'
                value_org       = 'S'
           TABLES
                value_tab       = itab_carrid
           EXCEPTIONS
                parameter_error = 1
                no_values_found = 2
                OTHERS          = 3.
      IF sy-subrc <> 0.
      ENDIF.
    ENDMODULE.
    In the layout, assign a Function Code , for eg : 'SELECTED' to the listbox and lets say name of the field is SDYN_CONN-CARRID. So in the PAI module,
    MODULE user_command_0100 INPUT.
      CASE ok_code.
        WHEN 'SELECTED'.
          MESSAGE i888(sabapdocu) WITH sdyn_conn-carrid.
      ENDCASE.
    ENDMODULE.
    sdyb_conn-carrid will contain your selected field

  • How to get selected row values in a table using check box

    Hi ADF Experts,
    JDEV Version 11.1.1.7.0
    My requirement is getting the selected row valuesof a af:table using a checkbox(multi select).
    Thanks,
    Animesh

    Hi,
    add a transient attribute to the POJO entity and update this through a check box. The ensure you have autosubmit=true set on the check box. In a value change listener set or remove the row's checbox attribute value
    Frank

  • Use VO to get DB value and set attribute

    Hi,
    I am working a page to create new order. I need some information populate. This is my code, which somehow not work
    public void createOrder() //(String[] args)
    OAViewObject vo = (OAViewObject)getxxMobileOrderVO1();
    if (!vo.isPreparedForExecution())
    vo.executeQuery();
    Row row = vo.createRow();
    vo.insertRow(row);
    row.setNewRowState(Row.STATUS_INITIALIZED);
    // Populate support information
    xxMobileSupportVOImpl sptVo = (xxMobileSupportVOImpl)getxxMobileSupportVO1();
    if (sptVo == null)
    MessageToken[] errTokens = {new MessageToken("OBJECT_NAME", "xxMobileSupportVO1")};
    throw new OAException("PER", "XXBOL_OAF_OBJECT_NOT_FOUND", errTokens);
    sptVo.initSupport();
    Row sptRow = sptVo.getCurrentRow();
    if (sptRow != null) {
    row.setAttribute("SupportPersonId", sptRow.getAttribute("PersonId"));
    row.setAttribute("SptName", sptRow.getAttribute("FullName"));
    row.setAttribute("SptEmail", sptRow.getAttribute("EmailAddress"));
    The VO xxMobileSupportVO is a simple select returns one records:
    SELECT ppx.person_id
    , ppx.employee_number
    , ppx.full_name
    , ppx.email_address
    --, lk.tag
    FROM fnd_lookup_values lk
    , per_people_x ppx
    WHERE lk.lookup_type = 'XXXX'
    AND lk.lookup_code = ppx.employee_number
    AND lk.enabled_flag = 'Y'
    AND lk.LANGUAGE = USERENV('LANG')
    AND lk.tag =
    ( SELECT MAX(NVL(tag, 0))
    FROM fnd_lookup_values
    WHERE lookup_type = 'XXXX'
    AND TRUNC(SYSDATE) BETWEEN lk.start_date_active
    AND NVL(lk.end_date_active, hr_general.END_OF_TIME)
    The VO is correctly attached to AM. I use Test feature to be sure it does get value.
    However, when the page is opened and createOrder method is called. The field does not get value populated.
    Does anyone can tell what is the issue?
    Thanks in advance.
    Rudoph

    Are you executing the VO query?
    I suppose you are executing it in sptVo.initSupport();
    If not first execute the VO using sptVo.executeQuery()
    After executing the query, do sptVO.first().
    This will give you the row of the VO.
    Then do your work based on that.
    Regards,
    Peddi.

  • Compare step values and set document to incomplete, if value is negative

    Hi All,
    I am looking for standard feature of SAP to set the document incomplete, if the difference of the two steps value is negative.
    e.g
    Step     CT     Value     SubTot     AltCal
    10     ABC     10          D              
    20     XYZ      20          E         
    30     Total     (-10)                    12(std cal type Subtract Subtotal D - E)
    Now the requirement is to set the document incomplete when the step 30 value is negative. Using custom routine it is feasible but I am looking for standard, if any.
    The idea is to check value of step 10 and 20, if the value of step 10 is less than step 20, then set the document to incomplete.
    Not necessary to check negative and then set to document to incomplete.
    I am also looking to use minimum order value concept but no success.
    Request to kindly let me know your valuable inputs. Thanks
    Regards
    Kalyan

    Hi
    Once I did this using EDI1 and EDI2 functioanlity. I changed that according to my own requirement. You could also use this and change this as per your own requirement but I think yours is very much similar to mine Check this below document.
    How to Implement minimum Price check in Sale order and billing.
    Thank$

  • Webi - Multiply row values and aggregate

    Hi,
    I am trying to do some report level calculation in which I need to multiple two measures and then aggregate the values.
    Here is an example:
    Region     City     Unit Price     Qty Sold     Rev
    A     C1     10     2     20
    A     C2     20     3     60
    C     C2     30     4     120
                        200
    Table above has Unit price & Qty sold for each region and city.
    I calculated Rev by Unit price * Qty sold, and also got sum of rev as 200.
    But when I try to show the Rev at region level I dont get the right figures:
    Region     What I need     What I get
    A     80     150
    C     120     120
         200     270
    For Region A I shd get 80 ((102)+(203)) and not 150 (30*5).
    can someone provide suggestions to get this to work...
    I've tried using some context but no luck so far..

    Use the formula below for revenue:
    Sum(([Unit Price]*[Qty Sold]) ForEach ([Region];[City]))
    Make sure you have both region and city dimensions in webi query.

  • Add selected table row value to PageFlowScope so I can access in taskflow

    Hi all,
    Running into a problem getting a value from a selected ADF table row to a taskflow that is displayed as an inline popup. Here's the scenario. I have a view which displays a table. When I click on an edit btn I display my taskflow as an inline popup. What I would like to do is take the currently selected table row, pull off lets say the row name value and pass it to my taskflow for display. I've tried settting this value inside a mbean when I click the edit btn using:
            AdfFacesContext.getCurrentInstance().getPageFlowScope().put("editTargetNameSource", targetName);
            String tmpClear = (String) AdfFacesContext.getCurrentInstance().getPageFlowScope().get("editTargetNameSource");Which seems to get set but when I attempt to grab this value using EL inside my taskflow jspx page it looks to not be set.
    <af:outputLabel value="Selected Row" id="ol1"/><af:outputText value="#{pageFlowScope.editTargetNameSource}"It seems like pageFlowScope for my popup taskflow != pageFlowScope for the page my table lives in. I've tried setting this as a input page param but I have a feeling I'm missing something. I'd like to be able to set this value inside my bean when a user clicks the edit btn and then display this value in my taskflow popup.
    Any help is appreciated,
    -Wraith

    Thanks for the links Timo. I still must be missing something here. In the vids you linked it looked like he was using regions to pass params from main page to a taskflow; setting a param on child taskflow (causes param to be required when dragging into main page). So I think I understand I add an expected param to my taskflow which somehow will be set by my main page. The part I'm missing is from my main page how can I get the selected table row value and set it in the expected pageflowscope param that my taskflow is expecting?
    I've tried several things:
    1) Using managed bean associated with my main page; setting param inside the bean on main page btn click and then try accessing this mbean param (couldn't access this value as different pageflowscope I believe)
    2) Programmatically setting PageFlowScope as I linked in previous post.
    3) using setPropertyListener I can set a static value setting value in pageflowscope.start and then inside adfc.config for the task set start value to another value expected by the taskflow page. This seemed to work but I can't figure out how to do the programmatic version of this using the currently selected row and its value.
    One who seems to be missing something,
    -Wraith

  • Capture Hyperlink event and set value

    Hello everyone,
    I have a hyperlink on a report column and when I click on the hyperlink it takes me to an URL. Now I need to capture the time the user clicked on the URL and update a DB table column. So I created a Dynamic event to update an item, but I am not able to get the hyperlink event. When I select the Event as 'Click' and 'Selection Type' as 'Item', the report column does not show up on the Item(s) LOV. Can Dynamic Actions be based only on click of page items?
    If so, is there any other to capture this Hyperlink event and set value? Also, as my 'Column Link' target is 'URL', I cannot set any value for items there!
    Please help,
    Ramya

    Thanks a lot Vee, that was very helpful.
    I added the dummy page with 'OnLoad' page process with the PL/SQL code and my current page redirects to a new page with the new page's attributes set. Now I am able to update the timestamp on the table with the sysdate when I click on the click. However, my URL does not work. A page cannot be found error is returned. I displayed the P2_URL_ITEM on the page and it displays only until 'http', the rest of the text is cut. Is there a way I can increase the length of this page item?
    As the URL value assigned to the page item did not work, I tried to hardcode the URL. Below is my page process on the load of dummy page,
    BEGIN
    UPDATE xxnf.XXNF_APEX_RR_REPORTS
    SET last_used = SYSDATE
    WHERE report_id = :P2_REPORT_ID;
    sys.owa_util.redirect_url('www.google.com');
    --owa_util.redirect_url(:P2_URL_ITEM);
    END;
    However, still the page not found error comes up. Could you please help fix both these issues?
    1) P2_URL_ITEM - not having the complete URL
    2) redirect_url not working.
    Looking forward to any helpful pointers,
    Ramya

Maybe you are looking for

  • Bluetooth driver problem on windows 8.1 Yoga Tablet 2-1051f

    Hi, I just purchased my yoga tablet 2 but i can't bluetooth get working. Bluetooth device has status "Windows has stopped this device because it has reported problems. (Code 43)". Currently installed  driver from microsoft, version 6.3.9600.17093. Al

  • Print preview report running error in client workstation

    dear all, I face an issue in  preview report in client, The report is write in store procedure, using crystal report for the designer. I use OLEDB SQL native clilent. My report is running well in server the server os is windows server 2003 , SQL serv

  • My safari keeps closing 5 seconds after i open it, what should i do?

    My safari keeps closing about 5 seconds after i open it and i have already reported it but i really need it right now, what can i do?

  • How to make my Aluminum Casing Look new again

    How can I clean up my physical appearence of my mac so as to make it look all new and shiny. There are sever ***** and dents which I can open it up and smooth it out, but there are some scratches and spots where the paint has rubbed of and I want to

  • Embed flv instead of linking?

    Is there a way to embed flv files (the same way images are embeded) within the published SWF? From this thread I see the default behavior is to link to flv files, I'm just wondering if there is a way to change that behavior without bringing the code