SetActionListener to access table row column

I am using JDev 11.1.1.6.
I am using a Panel Header Form. Within the form I have a menu and a read only table.
The able has several columns and several rows of data. The menu has a command link in which I need to pass some parameters via the request scope to the bounded task flow that I am calling. Within the command link I am currently setting the requestScope parameters with a setActionListener. The from parameters are currently hardcoded and posted to the cooresponding requestScope parameters. Based on the hard coded parameters that I am passing the called task flow and page are rendering correctly.
I would like to dynamically pass properties from one of the columns for a given selected row in the table. Because the menu with the command link is not embedded within the table, I can't access the "row" variable from the table.
The question I have is how can I access a column value for a given row in the table when using the setActionListener within my menu. I have also read that I might want to utilize setPropertyListener instead, however I seem to have the same issue accessing the row data.

This helped quite a bit, but I still have 1 more question.
Currently my action on my commandMenuItem is the action associated with my Control Flow Case call. The example you provided has the action calling the method within my backing bean. How would I be able to execute both the call to the backing bean which will set my requestScope variable. The current method I have within the backing bean is as follows:
public void m2_attributeChangeListener(AttributeChangeEvent attributeChangeEvent) {
// Add event code here...
// For learning purposes - show Select One button clicked
System.out.println("Navigate to page link clicked");
// Get bindings associated with the current scope, then access the one that we have assigned to our table - e.g. OpenSupportItemsIterator
DCBindingContainer bindings =
(DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
DCIteratorBinding dcItteratorBindings =
bindings.findIteratorBinding("OpenSupportItemsIterator");
// Get an object representing the table and what may be selected within it
ViewObject voTableData = dcItteratorBindings.getViewObject();
// Get selected row
Row rowSelected = voTableData.getCurrentRow();
//print
System.out.println("DC Number" + rowSelected.getAttribute("DcNum"));
ADFUtil.setEL("#{requestScope.DcNumber}", rowSelected.getAttribute("DcNum"));
}

Similar Messages

  • Acrobat - Insert Table (Rows/Columns)

    I need to insert a table over a plan (architectural plan) so that we can indicate start and finish dates for work activities.  Is any one aware of a plug-in facility that will allow you to create a table (Rows/Columns) of varying quantity/size? Similar to draw table in MS Word.
    Thanks

    The only way I know to do this is to create the table in a word processor or such. You could do this for all of the tables you need. Create a new PDF of the tables. Then use the object touchup tool (or object select?) to copy the table from the table PDF to the drawing. You may have to look for where it is copied and move it to where needed. The paste seems to work differently in different versions of Acrobat.

  • How to access Table rows in ADOBE form

    Hello Experts,
    I want to access the Table rows which are getting populated by WDA context, in form JavaScript when the table is populated.
    on the basis of few cell values i want to disable and enable particular cells in table rows when the table is rendered to the user.
    Please provide your inputs and suggestion on how to write a java script for it and in which event  i should write the script.
    i searched SDN and found couple of blogs and threads and tried using them but not working.
    Thanks,
    Siddharth

    Hello All,
    thanks for your suggestions.
    after some research and  trial and error i found the solution:here is the sample code for those who might face this issue.
    SUPERNODE(Root Node)
        --SUBFM(SUBFORM)
    MYNODE( Table)
    DATA(Table ROW)
    ADD       (Table COLUMNS)
    DELETE   (Table COLUMNS)
    var data1;
    var norows = xfa.resolveNodes("SUPERNODE.SUBFM.MYNODE.DATA[*]").length;
    for ( var i =0; i < norows; i++)
         if( xfa.resolveNode("SUPERNODE.SUBFM.MYNODE.DATA["i"].DELETE").rawValue == "")
        xfa.resolveNode("SUPERNODE.SUBFM.MYNODE.DATA["i"].DELETE").access = "readOnly";
        if( xfa.resolveNode("SUPERNODE.SUBFM.MYNODE.DATA["i"].ADD").rawValue != "")
        xfa.resolveNode("SUPERNODE.SUBFM.MYNODE.DATA["i"].ADD").access = "readOnly";

  • Creating Tables (Rows & Columns)

    Hi, I am having trouble designing tables for an article of my
    university magazine publication.. I know freehand doesnt support
    tables so I converted my MSWORD file into PDF and then used the
    snapshot tool to get an image of those tables in freehand--but it
    isnt coming right. The image gets massively distorted.. I have used
    different website (vectormagic.com) to create vector images of the
    tables, but still no success. I surely cannot draw 140 rows and 6
    columns (thats easy) and then put numerical data in those spaces.
    it will take me ages.. is there anyone to ease my pain? plz answer
    [email protected]

    > Hi, I am having trouble designing tables for an article
    of my universi=
    ty
    > magazine publication.. I know freehand doesnt support
    tables so I =
    > converted my
    > MSWORD file into PDF and then used the snapshot tool to
    get an image o=
    f =
    > those
    > tables in freehand--but it isnt coming right. The image
    gets massively=
    > distorted.. I have used different website
    (vectormagic.com) to create =
    =
    > vector
    > images of the tables, but still no success. I surely
    cannot draw 140 =
    > rows and 6
    > columns (thats easy) and then put numerical data in
    those spaces. it =
    > will take
    > me ages.. is there anyone to ease my pain? plz answer =
    > [email protected]
    Is the magazine made with FreeHand too? Layout programs like
    InDesign ca=
    n =
    import pdf files as images of course InDesign also imports
    Word tables.
    Best way I can think of is to make the table layout in Word
    and then =
    export pdf files. Insead of making images pdf files can be
    saved as eps =
    =
    and imported to FreeHand as any other eps image. This
    requires Acrobat =
    Pro, though. FreeHand can import some pdf formats but most
    often not.
    If the tabels have black text ensure that eps file do not
    include rgb =
    colors (Pdf export settings, Press Quality for example).
    Wrong color spa=
    ce =
    will mess up the printing for sure because rgb black is
    usually converte=
    d =
    into cmyk color like C=3D94 M=3D82 Y=3D81 K=3D89.
    Jukka

  • Images in table rows/columns

    Hi I am new to this and seem to struggle on what I think
    should be easy!
    I have one client with many pictures I want to display 4
    pictures in a row, repeating the rows until all the images for that
    client are displayed.
    Can anyone point me in the right direction with the correct
    CF tags to use
    Many thanks

    You want to use the MOD attribute.
    <!-- set how many rows across you want-->
    <cfset ColumnCount=4>
    <!-- set the physical path to your images-->
    <cfset imagefolderpath = "D:\website\folder\images">
    <!- query the folder for a list of images that are jpg -
    edit for other file types if needed-->
    <cfdirectory action="list" name="readfolder"
    directory="#imagefolderpath#">
    <cfquery dbtype="query" name="listimage">
    SELECT Type, Name
    FROM readfolder
    WHERE Type = <cfqueryparam cfsqltype="cf_sql_varchar"
    value="File">
    AND
    ( Name LIKE <cfqueryparam cfsqltype="cf_sql_varchar"
    value="%.jpg">
    OR Name LIKE <cfqueryparam cfsqltype="cf_sql_varchar"
    value="%.JPG">)
    ORDER BY Name ASC
    </cfquery>
    <!-- output images -->
    <body>
    <table>
    <tr>
    <cfoutput query="listimage">
    <cfif (listimage.CurrentRow mod ColumnCount) is 1>
    </tr><tr>
    </cfif>
    <td>
    <IMG src="../images/foldername/#name#">
    </td>
    </cfoutput>
    </tr>
    </table>
    </body>
    This is a basic proof of concept. You can style your images,
    whatever
    HTH

  • How can I write into a table cell (row, column are given) in a databae?

    How can I write into a table cell (row, column are given) in a database using LabVIEW Database Toolkit? I am using Ms Access. Suppose I have three columns in a table, I write 1st row of 1st column, then 1st row of 3rd column. The problem I am having is after writing the 1st row 1st column, the reference goes to second row and if I write into 3rd column, it goes to 2nd row 3rd column. Any suggestion? 
    Solved!
    Go to Solution.

    When you do a SQL INSERT command, you create a new row. If you want to change an existing row, you have to use the UPDATE command (i.e. UPDATE tablename SET column = value WHERE some_column=some_value). The some_column could be the unique ID of each row, a date/time, etc.
    I have no idea what function to use in the toolkit to execute a SQL command since I don't use the toolkit. I also don't understand why you just don't do a single INSERT. It would be much faster.

  • How to access all rows one by one of a ADF table through managed bean

    Hi Experts,
    Hi i am new in ADF.
    Could someone help me for solving the below case?
    Scenario - I have table called Test_T1 which have 4 columns C1,C2,C3,C4. Have created EO,VO and AM for test_t1.
    At the time of ADF page creation i selected the option 'Automatically Exposed UI components in New managed bean' (mynewmanagedbean.java).
    From Data control drag and drop Test_T1 table in the page as a ADF table.
    Set the properties for C1,C2,C3 is read only and C4 is an input text.
    Have add after the table and attathed button action on the managed bean mynewmanagedbean.java.
    At the time of running the page Test_T1 populated with some no. of rows (like 9).
    How can i access all the above rows through pressing the button without selection of any of them.
    Actually i want to print all the table rows in log file at the time of pressing the button.
    Thanks in advance.

    Hi Timo,
    Thanks a lot for your reply.
    I am using the JDeveloper 11.1.2.1.0.
    As previously said I am totally new in this framework. So if you explain the solution given by you then it will be help full for me.
    Don't know r you agree or not for this ?
    When i put your resolution in the command button bean JDeveloper said TestDataRow type not found.
    What will be the type and TestDataRow and what is missing in below code or how i will declare that in below code?
    Also Could please mentioned the missing thing ?
    package createrow.view.pagecreation.bean;
    import oracle.adf.model.binding.DCBindingContainer;
    import oracle.adf.model.binding.DCIteratorBinding;
    import org.apache.myfaces.trinidad.model.RowKeySet;
    import oracle.adf.model.BindingContext;
    import java.util.Iterator;
    import java.util.List;
    import oracle.adf.model.bean.DCDataRow;
    import oracle.jbo.Key;
    import oracle.jbo.Row;
    import oracle.jbo.RowSet;
    import oracle.jbo.RowSetIterator;
    import oracle.jbo.ViewObject;
    public class OrdCreationWithManagedBean {
    public String cb1_action() {
    // Add event code here...
    DCBindingContainer bindings =
    (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding dcIteratorBindings =
    bindings.findIteratorBinding("TestOrderItemAllocationVO1Iterator");
    // Get all the rows of a iterator
    Row[] rows = dcIteratorBindings.getAllRowsInRange();
    TestDataRow dataRow = null;
    for (Row row : rows) {
    dataRow = (TestDataRow)((DCDataRow)row).getDataProvider();
    // work with the row...
    return null;
    My page bindings like below
    <?xml version="1.0" encoding="UTF-8" ?>
    <pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel" version="11.1.2.60.81"
    id="OrdCreationWithManagedBeanPageDef" Package="createrow.view.pageDefs">
    <parameters/>
    <executables>
    <variableIterator id="variables"/>
    <iterator Binds="TestOrderItemAllocationVO1" RangeSize="25" DataControl="MainAppModuleDataControl"
    id="TestOrderItemAllocationVO1Iterator"/>
    <iterator Binds="TestOrderItemsEOView1" RangeSize="25" DataControl="MainAppModuleDataControl"
    id="TestOrderItemsEOView1Iterator"/>
    </executables>
    <bindings>
    <tree IterBinding="TestOrderItemAllocationVO1Iterator" id="TestOrderItemAllocationVO1">
    <nodeDefinition DefName="createrow.view.TestOrderItemAllocationVO" Name="TestOrderItemAllocationVO10">
    <AttrNames>
    <Item Value="AllocationId"/>
    <Item Value="AlocationSequence"/>
    <Item Value="ProductName"/>
    <Item Value="AllocationPercentage"/>
    </AttrNames>
    </nodeDefinition>
    </tree>
    <tree IterBinding="TestOrderItemsEOView1Iterator" id="TestOrderItemsEOView1">
    <nodeDefinition DefName="createrow.view.TestOrderItemsEOView" Name="TestOrderItemsEOView10">
    <AttrNames>
    <Item Value="OrderId"/>
    <Item Value="AllocationId"/>
    <Item Value="ProductName"/>
    <Item Value="OrderItemsQty"/>
    </AttrNames>
    </nodeDefinition>
    </tree>
    </bindings>
    </pageDefinition>
    Thanks In Advance

  • How to reject external table rows with some blank columns

    How to reject external table rows with some blank columns
    I have an external table and I would like to reject rows when a number of fields are empty. Here are the details.
    CREATE TABLE EXTTAB (
    ID NUMBER(10),
    TSTAMP DATE,
    C1 NUMBER(5,0),
    C2 DATE,
    C3 FLOAT(126)
    ORGANIZATION EXTERNAL (
    TYPE ORACLE_LOADER
    DEFAULT DIRECTORY EXT_DAT_DIR
    ACCESS PARAMETERS (
    RECORDS DELIMITED BY NEWLINE
    LOAD WHEN (NOT (c1 = BLANKS AND c2 = BLANKS AND c3 = BLANKS))
    LOGFILE EXT_LOG_DIR:'exttab.log'
    BADFILE EXT_BAD_DIR:'exttab.bad'
    DISCARDFILE EXT_BAD_DIR:'exttab.dsc'
    FIELDS TERMINATED BY "|"
    LRTRIM
    MISSING FIELD VALUES ARE NULL
    REJECT ROWS WITH ALL NULL
    FIELDS (
    ID,
    TSTAMP DATE 'YYYYMMDDHH24MISS',
    C1,
    C2 DATE 'YYYYMMDDHH24MISS',
    C3
    ) LOCATION ('dummy.dat')
    REJECT LIMIT UNLIMITED
    So, as you can see from the LOAD WHEN clause, I'd like to reject rows when C1, C2 and C3 are empty.
    The above statement works fine and creates the table. However when I am trying to load data using it, the following error is produced:
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-00554: error encountered while parsing access parameters
    KUP-01005: syntax error: found "not": expecting one of: "double-quoted-string, identifier, (, number, single-quoted-string"
    KUP-01007: at line 1 column 41
    ORA-06512: at "SYS.ORACLE_LOADER", line 14
    ORA-06512: at line 1
    It seems that external tables driver does not understand the "NOT (...)" condition. Could anyone suggest how I can achieve what I want in a different way?
    Thank you.
    Denis

    Another method would be to simply remove the "LOAD WHEN condition" and create a view on the external table which filters the data.
    CREATE EXTTAB_VIEW AS
    SELECT * FROM EXTTAB
    WHERE not (c1 is null and c2 is null and c3 is null);

  • Row/column counter for tables

    Hello,
    I know this is very basic, but so far examples I dug up don't really anything remotely to what I want.
    I have 3 databases. Well they are defined as "connections" in SQLDeveloper I hope that's the same I am still not used to Oracle abstractions.
    Each has several tables. All I want is loop through each of the 3 DBs and log row count and table count.
    Say DB1:
    Rows: Columns:
    Table1: x y
    Table2: x y
    I don't really care what's inside them. I found one example that did it but it listed some system tables that aren't part of my db. Changing "owner" didn't really help.
    From the value of the variable "Owner" means a database, is that correct?
    Oh and I also don't care if the code is "inefficient", tables aren't that big.
    Thanks in advance.
    Edited by: 940349 on Jun 14, 2012 6:22 AM

    not sure what you are planning to achieve, but you can use below query to get owner of table, table name , column name, number of tables by owner and number of column in a table (belonging to owner). This will require access to dba_tab_columns.
    select owner,table_name,count(*) over(partition by owner) count_table,column_name,count(*) over(partition by owner,table_name) count_column from dba_tab_columns;

  • Schema Design for 10^6+ rows table (Indicator Column / Bitmap Join Index?)

    Hi all,
    I read following suggestion for a SELECT with LEFT OUTER JOIN in a DB2 consulting company paper for a 10 million-rows table:
    SELECT columns
    FROM ACCTS A LEFT JOIN OPT1 O1
    ON      A.ACCT_NO = O1.ACCT_NO
    AND     A.FLAG1 = ‘Y’
    LEFT JOIN OPT2 O2
    ON      A.ACCT_NO = O2.ACCT_NO
    AND     A.FLAG2 = ‘Y’
    WHERE A.ACCT_NO = 1
    For DB2, according to the paper, the following is true: Iff A.FLAG1 <> ‘Y’ Then no Table or Index Access on OPT1 is done. Same for A.FLAG2/OPT2.
    I recreated the situation for ORACLE with the following script and came to some really interesting questions
    DROP TABLE maintbl CASCADE CONSTRAINTS;
    DROP TABLE opt1 CASCADE CONSTRAINTS;
    DROP TABLE opt2 CASCADE CONSTRAINTS;
    CREATE TABLE maintbl
    id INTEGER NOT NULL,
    dat VARCHAR2 (2000 CHAR),
    opt1 CHAR (1),
    opt2 CHAR (1),
    CONSTRAINT CK_maintbl_opt1 CHECK(opt1 IN ('Y', 'N')) INITIALLY IMMEDIATE ENABLE VALIDATE,
    CONSTRAINT CK_maintbl_opt2 CHECK(opt2 IN ('Y', 'N')) INITIALLY IMMEDIATE ENABLE VALIDATE,
    CONSTRAINT PK_maintbl PRIMARY KEY(id)
    CREATE TABLE opt1
    maintbl_id INTEGER NOT NULL,
    adddat1 VARCHAR2 (100 CHAR),
    adddat2 VARCHAR2 (100 CHAR),
    CONSTRAINT PK_opt1 PRIMARY KEY(maintbl_id),
    CONSTRAINT FK_opt1_maintbltable FOREIGN KEY(maintbl_id) REFERENCES maintbl(id)
    CREATE TABLE opt2
    maintbl_id INTEGER NOT NULL,
    adddat1 VARCHAR2 (100 CHAR),
    adddat2 VARCHAR2 (100 CHAR),
    CONSTRAINT PK_opt2 PRIMARY KEY(maintbl_id),
    CONSTRAINT FK_opt2_maintbltable FOREIGN KEY(maintbl_id) REFERENCES maintbl(id)
    INSERT ALL
    WHEN 1 = 1 THEN
    INTO maintbl (ID, opt1, opt2, dat) VALUES (nr, is_even, is_odd, maintbldat)
    WHEN is_even = 'N' THEN
    INTO opt1 (maintbl_id, adddat1, adddat2) VALUES (nr, adddat1, adddat2)
    WHEN is_even = 'Y' THEN
    INTO opt2 (maintbl_ID, adddat1, adddat2) VALUES (nr, ADDdat1, ADDdat2)
    SELECT LEVEL AS NR,
    CASE WHEN MOD(LEVEL, 2) = 0 THEN 'Y' ELSE 'N' END AS is_even,
    CASE WHEN MOD(LEVEL, 2) = 1 THEN 'Y' ELSE 'N' END AS is_odd,
    TO_CHAR(DBMS_RANDOM.RANDOM) AS maintbldat,
    TO_CHAR(DBMS_RANDOM.RANDOM) AS adddat1,
    TO_CHAR(DBMS_RANDOM.RANDOM) AS adddat2
    FROM DUAL
    CONNECT BY LEVEL <= 100;
    COMMIT;
    SELECT * FROM maintbl
    LEFT OUTER JOIN opt1 ON maintbl.id = opt1.maintbl_id AND maintbl.opt1 = 'Y'
    LEFT OUTER JOIN opt2 ON maintbl.id = opt2.maintbl_id AND maintbl.opt2 = 'Y'
    WHERE id = 1;
    Explain plan for "Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi":
    http://i.imgur.com/f0AiA.png
    As one can see, the DB uses a view to index-access the opt tables iff indicator column maintbl.opt1='Y' in the main table.
    Explain plan for "Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production":
    http://i.imgur.com/iKfj8.png
    As one can see, the DB does NOT use the view, instead uses a pretty useless case-statement
    Now my questions:
    1) What does the optimizer do in 11.2 XE?!?
    2) In General: Do you suggest this table-setup? Does your yes/no suggestion depend on the rowcount in the tables? Of course I see the problem with incorrectly updated columns and would NEVER do it if there is another truly relational solution with same performance possibly.
    3) Is there a way to avoid performance issues if I don't use an indicator column in ORACLE? Is this what a [Bitmap Join Index|http://docs.oracle.com/cd/E11882_01/server.112/e25789/indexiot.htm#autoId14] is for?
    Thanks in advance and happy discussing,
    Blama

    Fair enough. I've included a cut-down set of SQL below.
    CREATE TABLE DIMENSION_DATE
    DATE_ID NUMBER,
    CALENDAR_DATE DATE,
    CONSTRAINT DATE_ID
    PRIMARY KEY
    (DATE_ID)
    CREATE UNIQUE INDEX DATE_I1 ON DIMENSION_DATE
    (CALENDAR_DATE, DATE_ID);
    CREATE TABLE ORDER_F
    ORDER_ID VARCHAR2(40 BYTE),
    SUBMITTEDDATE_FK NUMBER,
    COMPLETEDDATE_FK NUMBER,
    -- Then I add the first bitmap index, which works:
    CREATE BITMAP INDEX SUBMITTEDDATE_FK ON ORDER_F
    (DIMENSION_DATE.DATE_ID)
    FROM ORDER_F, DIMENSION_DATE
    WHERE ORDER_F.SUBMITTEDDATE_FK = DIMENSION_DATE.DATE_ID;
    -- Then attempt the next one:
    CREATE BITMAP INDEX completeddate_fk
    ON ORDER_F(b.date_id)
    FROM ORDER_F, DIMENSION_DATE b
    WHERE ORDER_F.completeddate_fk = b.date_id;
    -- which results in:
    -- ORA-01408: such column list already indexed

  • How to access af:table rows in JavaScript

    Hi,
    I have a requirement to access af:table rows in java script.I tried the same using following code.
    getRows returns the correct no of rows from the table, but table.getValue() returns null.
    var table = AdfPage.PAGE.findComponentByAbsoluteId('t1');
    if (table != null){
    alert(table.getRows());
    alert(table.getFirst());
    alert(table.getValue());
    Any pointers on how i can achieve this.

    We have a requirement where in,we have to check if the order number is already added to the cart(cart here is a table)
    and this validation needs to be done as soon as you enter 10 digits in the input field for order number.
    in short,order need to validated if its duplicate order against table at client side(sson as you enter 10 digits in order number)
    initially I was trying to implemet this with ServerSide listner as below
    Java script on page :
    function addDuplicate(evt) {
    var source = evt.getSource();
    AdfCustomEvent.queue(source, "MyCustomServerEvent",
    false);
    event.cancel();
    Bean method
    public void callAddDuplicateSeverEvt(ClientEvent clientEvent) {
    ADFContext.getCurrent().getPageFlowScope().put("dupOrderNumFlag", "N");
    System.out.println("in handle Add duplicate::"+ ADFContext.getCurrent().getPageFlowScope().get("dupOrderNumFlag"));
    input text on page
    ====
    <af:inputText label="" id="it1" value="#{pageFlowScope.dspOrderNum}"
    columns="14" autoComplete="off" styleClass="orderveritext"
    maximumLength="10" >
    <af:clientListener method="validateOrderNumChars" type="keyPress"/>
    <af:clientListener method="enableAddButton" type="keyUp"/>
    <af:clientListener method="addDuplicate" type=" keyPress "/>
    <af:serverListener type="MyCustomServerEvent"
    method="#{viewScope.HLKioskBean.callAddDuplicateSeverEvt}"/>
    </af:inputText>
    Problem with this solution is My application is KIOSK app(touch screen) on every key press in order num input field screen flickers,looks like its trying to do Full page rendering(though i do not have any PPR) in every call to serverListerner.
    Please advise.

  • How to get the selected rows & columns in the table?

    hi everybody,
                         In my application the table is kept inside the event structure.I select the cells  in the table (using mouse) on running time.How to get the selected number of rows & columns in that table?

    Hello,
    You can fill selected values of the table by writing to it or the corresponding property using a property node - the table is just a 2D array of strings.  I think for your "disable" question you are referring to the shortcut menu (when you right click).  If you are using LabVIEW 8.x, you can edit or disable that shortcut menu - just right click on your table at edit time and choose Advanced >> Run-Time Shortcut Menu.
    Best Regards,
    JLS
    Best,
    JLS
    Sixclear

  • Button in a table row to get value of a column.

    Hello,
    I am following [this thread|Re: Problem with getting table element's table row] to get the value of a column up on button click (the button is in the same row).
    Here is the code in wdDoModify ()
    if (firstTime)
              IWDButton button = (IWDButton) view.getElement("TableCellEditor");
              button.mappingOfOnAction().addSourceMapping("ScheduledCourses", "row");
    Here is the code in the button action()
    public void onActionRegisterStudent(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, com.gfc.hr.training.wdp.IPrivateCourseRegistrationCompView.IScheduledCoursesElement row )
        //@@begin onActionRegisterStudent(ServerEvent)
         wdContext.nodeScheduledCourses().setLeadSelection(row.index());
        //@@end
    The context node for the table is "ScheduledCourses"
    When I click the button, I get an exception....
    com.sap.tc.webdynpro.services.exceptions.WDIllegalArgumentException: Parameter ScheduledCourses not found

    Hi Srinivas,
    Assuming you have a node 'ScheduledCourses' with two attributes 'courseId' and 'courseName' and you want to display the 'courseName' on click of the button placed in a particular row of the table, please try the following (Most of them you have already done, if i am not wrong. I am listing the entire steps so that you can check whether you have missed any thing). 
    1. Place a Table UI element and bind the datatsource property to the node 'ScheduledCourses'
    2. Insert a new column in the table and for the column insert a table cell editor and select 'Button' from the list.
    3. select the button(table cell editor) and create an action for the button. While creating an action create a parameter with name 'courseElement' and type as IPrivate<ViewName>.IScheduledCoursesElement (Interface representing element of ScheduledCourses node)
    3. In wdDoModifyView() write the following code
        if(firstTime){
             IWDButton button=(IWDButton)view.getElement("Button1");
             button.mappingOfOnAction().addSourceMapping("nodeElement","courseElement");
    Here "Button1" is the id of the button inserted in the table column. The string "nodeElement" should be written as such and "courseElement" is the name of the parameter which we have created for the action of the button.
    4. Now in the action created for the button try to print the courseName as shown
    wdComponentAPI.getMessageManager().reportSuccess(courseElement.getCourseName());
    Regards,
    Shabeer

  • Where can I find the function "mark a line" in a table (not a row but the line in-between the rows/columns)

    In the old version of Numbers (09) as well as in the same Pages version I could choose to allow to mark single lines inbetween rows/columns in order to choose to create different types of lines to mark separations in different sections or just single cells within a table, how do I do that in the recent upgrade?!!! I´m going mad over here!!!!!

    Hi A-S,
    Do you mean Cell Borders in the Format Panel?
    To create this?
    Or if you want borders under only A5 and C5 (but not B5) command click on those cells to select them before applying the borders in Format Panel
    Regards,
    Ian.

  • Applying table scroll bar for only table rows with table columns fixed.

    hi oa gurus,
    i had implemented table scroll bars using oarawtextbean , there is no problem in vertical and horizontal scroll bar working its working fine. but the requirement is i need to scroll only the table rows with table columns fixed. so , how to achieve the table scroll for only table datas neglecting table headers.
    the code for vertical and horizontal bars scroll is like this,
    OARawTextBean ors = (OARawTextBean)webBean.findChildRecursive("raw1");
    ors.setText(div id=tabledivid style=height:500px;width:100%; overflow:auto>);
    OARawTextBean ore = (OARawTextBean)webBean.findChildRecursive("raw2");
    ore.setText("</div>");
    where raw1 and raw2 are rawtextbean created above and below of the table . but i dont know hoow to apply this only for table rows neglecting table columns , can anybody give any ideas.
    pelase this is very urgent , can u help me in this regards
    thanks
    Edited by: user630121 on Sep 29, 2008 5:17 AM
    Edited by: user630121 on Sep 29, 2008 5:18 AM

    hi,
    I have a similar task to do... Only to apply scrollbar at the table level.
    I tried using the above mentioned but I am facing Null Pointer Exception..
    Please explain about raw1 and raw2
    Rahul

Maybe you are looking for

  • What should I do when iTunes won't let me redownload a song I previously purchased?

    I have previously bought many songs and some of them aren't displayed as "purchased". When I manually try to find them in iTunes, they appear as if they have never been purchased before. HOWEVER iTunes does offer "Complete My Album", which is extreme

  • My iphone5S got stolen, how can i get the photos back ?

    Phone got stolen, just want to get back my kids photos, please help

  • Exchange 2003 sp2 to exchange 2007 sp1 upgrade error

    Hi, We had Windows 2003 DCs and Exchange 2003 servers. We migrated AD DCs to windows 2008 R2 at parent domain. We have one parent domain and 10 child domains in remote sites .3 remote sites have been migrated to windows 2008 R2. Now at parent domain

  • Error on the import statement

    // chekdb1.cpp : main project file. #include "stdafx.h" #include <windows.h> #include <stdio.h> #include <conio.h> #include <iostream> using namespacestd; #import <"C:\Program Files (x86)\Common Files\System\ado\msado15.dll">rename("EOF", "EndOfFile"

  • JSF and Struts

    Why would I still want to use Struts? Doesn't JSF elimintate the need for Struts? Can someone please give me the low-down? Thanks, Michael