Table editor row identification for an action on table row

Hi Experts,
I have a table editor with 5 columns and one of the column is a LinkToAction element.
Now when i have multiple lines in this table, I want to know on action of click of the linktoaction of a particular row, i want the row number and its details.
How can i know which row's action was clicked?
Any clue is highly appreciated.
Ajay

Hi Ajay,
If you want details of row which the link to action is clicked,
you can get the corresponding context element in the event handler of the action for Link to Action.
method ONACTION.
  DATA cont_ele TYPE REF TO IF_WD_CONTEXT_ELEMENT.
  cont_ele = wdevent->get_context_element( 'CONTEXT_ELEMENT' ).
endmethod.
In the above code, Cont_ele will have the reference to the context element corresponding to the
link to action which was clicked.
Cheers,
Kris.

Similar Messages

  • Table Maintenance: Manual Transport for Entries in Customizing Table

    Dear forum,
    i'm facing a tricky problem at the moment. My customer wants the maintain a customizing table, but he does not want to transport the entries automatically (don't ask me for the reason), but manually.
    The online help tells me, that this can be done.
    In the SE11 i chose untilities -> table maintenance generator and for the subscreen "dialog data transport details" i chose "no or user, recording routine".
    Continuing wiht the SE11 i chose untilities -> table maintenance generator -> environment -> maintenance objects -> transport "manual transport".
    In the SE54 i created the events 10, 11 and 12 with the recommended coding from the online help.
    But when i start the Maintenance via SM30 the points in the menue table view -> transport or edit -> transport are not active.
    The function group does not include any generated statuses to activate the menue-points. What is missing toi get the popup, that asks me for the transport number?
    Can somebody help me out or tried this before?
    With kindly Regards,
    Robert

    wrong!
    the online documentation says:
    Manual transport
    The object maintenance transaction offers a manual link to transports. You can branch to it by selecting the Transport menu option. In the transport session, you can then select objects to place them in a Change request. A special transport program may be available instead of the menu option Transport, to place the object in a change request. The setting Manual transport means that changes to the object are not automatically recorded. If the maintenance transaction offers an automatic transport link, in addition to the manual one, you should select the setting Automatic transport.
    What has to be done to realise it except creating the events?

  • MS SQL Table Editor for OSX

    Would anyone know a inexpensive or free ms sql table editor out there for OS 10.4.11?
    I tried Aqua Datas Studio eval and it works great but is $400.00 and is a complete sql program. All I need is the table editor function.
    they have many on the pc but not on mac...
    Help

    Hello,
    I have a similar issue, about creating a table in oracle from an existing table in MS Server.
    I've tried the above solution.
    However, there are data type incompatibility issues - like timestamp datatype which is not valid in Oracle since the variable is declared as :
    BLOBLASTUPDATED TIMESTAMP(23) NULL
    Error: ORA-30088: datetime/interval precision is out of range
    which is due to '(23)'
    I actually have to replicate a table (which already exist in MS Server) in Oracle automatically using ODI as interface tool.
    Any advice would be of great help.
    Thanks.
    Rgds,
    Nishna
    Edited by: user12054478 on Sep 16, 2010 3:37 AM

  • RH 10 Table editor

    I am trying to create a standard table style using the table editor as part of my CSS:
    the header row needs to be bold
    it needs to have all borders, except the very first and last vertical borders.
    I have spent most of the day struggling with the borders. At first I have getting double borders. I think there might be a bug in the table editor, because I get the borders perfect, but when I want to make row 1 bold, the borders disappear from row 1.
    At last I got the borders 99% correct, except for one cell's border. The left side of the table is perfect. The right side of the table has a verticle border only on the first row, last column (see the image). I have copied the code from my stylesheet below. I don't understand why one rule would work for all rows, except row 1. Please help!
    table.Table_Normal {
    padding: 0px;
    x-border-spacing: 0px;
    x-row-pat-1: 1;
    x-row-pat-1-name: t1Row;
    x-row-pat-count: 2;
    x-row-pat-2: 1;
    x-row-pat-2-name: t2Row;
    border-left-style: None;
    border-left-width: 1px;
    border-left-color: #a7a9ac;
    border-top-style: Solid;
    border-top-width: 1px;
    border-top-color: #a7a9ac;
    x-1st-row: 1;
    x-1st-row-name: t1st;
    x-last-col: 1;
    x-last-col-name: last;
    font-size: 9pt;
    table.Table_Normal td {
    padding-left: 4px;
    padding-right: 4px;
    padding-top: 2px;
    padding-bottom: 2px;
    table.Table_Normal tr.t1st td {
    font-size: 9pt;
    font-weight: bold;
    border-right-style: Solid;
    border-right-width: 1px;
    border-right-color: #a7a9ac;
    border-bottom-style: Solid;
    border-bottom-width: 1px;
    border-bottom-color: #a7a9ac;
    table.Table_Normal tr.t1Row td {
    font-size: 9pt;
    border-right-style: Solid;
    border-right-width: 1px;
    border-right-color: #a7a9ac;
    border-bottom-style: Solid;
    border-bottom-width: 1px;
    border-bottom-color: #a7a9ac;
    table.Table_Normal tr.t2Row td {
    font-size: 9pt;
    border-right-style: Solid;
    border-right-width: 1px;
    border-right-color: #a7a9ac;
    border-bottom-style: Solid;
    border-bottom-width: 1px;
    border-bottom-color: #a7a9ac;
    table.Table_Normal tr.t1st td.last {
    font-size: 9pt;
    border-right-style: None;
    border-right-width: 1px;
    border-right-color: #a7a9ac;
    table.Table_Normal tr.t1Row td.last {
    font-size: 9pt;
    border-right-style: None;
    border-right-width: 1px;
    border-right-color: #a7a9ac;
    table.Table_Normal tr.t2Row td.last {
    font-size: 9pt;
    border-right-style: None;
    border-right-width: 1px;
    border-right-color: #a7a9ac;

    Hi,
    Sorry this took so long, but it ended up below a string of other things. Anyway, why it doesn't work is simple: The RoboHelp table editor does not consider the last cell of the first row to be part of the 'last column' definition. But here is some CSS that fixed it:
    Replace your style for table.Table_Normal tr.t1st td.last with:
    table.Table_Normal tr.t1st td:last-child {
              font-size: 9pt;
              border-right-style: None;
              border-right-width: 1px;
              border-right-color: #a7a9ac;
    This will target only the last cell of the first row of your table.
    Greet,
    Willam

  • Reorder external row number for Service PO

    Hi
    Anyone knows of any FM to reorder the external row number for service PO in table ESLL ?
    Thanks for any advice in advance.
    Edited by: Amelia on Feb 13, 2008 9:37 AM

    hi
    service entry sheet is internally created number ranges.
    please check whether the entry sheet is available in display mode

  • Using Table name as value for formula

    I am using a table as a list for lookup in other tables using vlookup. The entire table is the source, so I'd like to do something like:
    =Vlookup("value to lookup", TableName, 3)
    However, it seems the entire reference including columns must be included. Is this so?
    Thanks for your help.

    I understand why they didn't do this. Many times you do not need to look up the values in the A column, but in the B or C column. This forces the novice user, and advanced users, to fully evaluate their expression. e.g. Numbers should not make any assumptions about your intentions.
    A novice user might see experienced users that use the shorthand for examples, and assume that you MUST use the entire table, and they would go off making these very odd looking tables just to accommodate this misconception.
    I wouldn't doubt if they tested this with a small set of novice users and got some very confused responses. then nixed it.
    just my 2 cents from writing programs for those very users,
    Jason

  • Table name& field name for production order  & operation confirmation

    Hi All,
              I would like to know the table name and field name for the production order "confirmation" (CNF) and the operation confirmation (CNF).
    Thanks and Regards,
    PSS

    Hi there,
    CORU(R/3 Application development: PP Confirmations )
    AFFW       Goods movements with errors from confirmatio
    AFRC       Table of planned changes to conf.: Automatic
    AFRD       Default values for collective confirmation 
    AFRH       Header information for confirmation pool   
    AFRP1      Table of planned changes to conf.: Automatic
    AFRP2      Table of planned changes for confirmation: B
    AFRP3      Table of planned changes for confirmation: C
    AFRP4      Table of planned changes to confirmatn: Data
    AFRU       Order completion confirmations             
    AFWI       Subsequently posted goods movements for conf
    TAFWD      CORU: Messages that are not interpreted as e
    TCORD      Table for field-dependent check routines   
    TCORU      Parameters for order confirmations         
    TCORV      Table with Routines for structureing variabl
    TCORW      Confirmation: Window Control               
    TPARU      Control parallelized confirmation processes
    TPRRU      Control table for process chain for confirma
    TPRRUT     Text table for process control of confirmati
    TRUGS      User status caused by deviation            
    CO(R/3 Application development: PP Production orders )
    AFBP        CIM order: Batch print requests            
    AFFL        Work order sequence                        
    AFKO        Order header data PP orders                
    AFPO        Order item                                 
    AFVC        Operation within an order                  
    AFVU        DB structure of the user fields of the opera
    AFVV        DB structure of the quantities/dates/values
    FAPW        Index of production-/issuing plant for produ
    FTIND       Missing parts index                        
    ORDCOM      Communication control Operation download   
    T024F       Production scheduler                       
    T399X       Parameters dependent on order type         
    T441C       Profile - availability check               
    T441CT      Texts for Profile "Display Availability Chec
    T490        Transactions PP - orders - order category  
    T496B       CIM order: Assigning document types to refer
    T496D       CIM: Destination/lists/spool parameters per
    T496F       CIM order: Form description of the list    
    T496K       CIM order: Entity table of possible table id
    T496N       CIM order: List descriptions               
    T496P       Print PP documents: Determination of output
    T496R       Print PP shop papers: Report control       
    T496T       Print PP shop papers: Transaction control  
    T496V       PP Print: Default Value for Printing Online
    T496Z       CIM order: Table-controlled table access   
    TC32        Assigning subscreen to processing location 
    TC34        Allocating operation to object type for the 
    TC62        Sequence of detail screens when processing h
    TCO01       Sequence/operations control in logicstics or
    TCO03       CIM order: Texts for TCO01, Description of o
    TCO04       Table for controlling the screen sequence gr
    TCO05       CUA status depending on panel, trans. type, 
    TCO06       Exclusive functions for PP orders           
    TCO09       CIM order: Text IDs of objects in orders    
    TCO10       Valuation variant for order costing         
    TCO11       Control table for production orders - availa
    TCO12       Control table production orders - stock dete
    TCO36       PP orders: Control table for calling up pop-
    TCO41       CIM order: Default values for generating ope
    TCO43       PP-SFC order profile                        
    TCO43T      Description of production scheduler profile 
    TCO60       Sequence keys for input facility and verific
    TCO61       Sequence key for PP orders                  
    TCO62       Defining screen sequences for input facility
    TCO63       Sequence of detail screens when maintaining 
    TCODB       Database fields development class CO per ord
    TCOF        Profile for missing parts info system       
    TCOFF       Profile for Missing Parts Info System: Displ
    TCOFFT      Texts for Missing Parts Info System: Display
    TCOFG       Profile for missing parts info system: crite
    TCOFGT      Texts for Missing Parts Info System: Criteri
    TCOFK       Texts for functions in milestones/trigger po
    TCOFS       Profile for Missing Parts Info System: Sort
    TCOFST      Texts for Missing Parts Info System: Sort Cr
    TCOFT       Texts for Missing Parts Info System        
    TCOKO       Constants for PP orders                    
    TCOKT       Account assignment categories for order    
    TCOP        Field selection profile                    
    TCOPS       Field selection profile                    
    TCOPT       Description of Profile for Field Selection 
    TDUMMY      Dummy structure of a table for READ with VER
    TRUG        Reason for variances in completion confirmat
    TRUGT       Text describing the reason for a variance in
    TXPR1       XPRA control - missing parts info system   
    Regards
    Hemant G

  • Can I use action build to fade one table row as I move to the next row in the table?

    I have built a table with 6 rows.  Right now,I am building the table row by row when I play the slide. Is there a way to fade or dissolve one row when I move to the next row in the table? I want to be able to de-emphasize the row I just discussed when I move to the next row in the table. I can fade the entire table by invoking that action but I do not seem to be able to use this action one row at a time. Thanks for your comments and assistance.

    you will have to use a workaround to get the exact effect you described
    create a table with out any text
    use text tool to add text and position in each table cell
    select the text boxes( command click) in the first row and group them (arrange > group)
    use a, build in, to display text and then a, build out, to remove it
    repeat the above for the other rows

  • While perform Action on Selected Rows in trinidad Tables it gives Nullpoint

    I created one table with Multiple row selection on JSF page with one Button Update.on_click of that button i am getting below Exception.
    For reference I am posting code here.
    Table::
    <af:form>
    <af:panelStretchLayout....
    <tr:table binding="#{mybean.table}" rowselection="multiple" ...>
    </tr:table>
    <tr:commandButton text="Update" actionListener="#{mybean.performUpdate}"/>
    Mybean.performUpdate::
    public void performUpdate(ActionEvent actionEvent) {
    List list=new ArrayList();
    UIXTable table = getTable();
    Iterator selection = table.getSelectedRowKeys().iterator();
    Object oldKey = table.getRowKey();
    while(selection.hasNext())
         Object rowKey = selection.next();
              table.setRowKey(rowKey);
              MyRowImpl row = (MyRowImpl) table.getRowData();
              //custom method exposed on an implementation of Row interface.
              row.markForDeletion();
    Exception::
    java.lang.NullPointerException
         at org.apache.myfaces.trinidad.model.RowKeySet.add(RowKeySet.java:129)
         at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.table.TableSelectManyRenderer._setDeltas(TableSelectManyRenderer.java:161)
         at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.table.TableSelectManyRenderer.decode(TableSelectManyRenderer.java:113)
         at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.TableRenderer.decodeSelection(TableRenderer.java:138)
         at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.TableRenderer.decode(TableRenderer.java:102)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.__rendererDecode(UIXComponentBase.java:1089)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decode(UIXComponentBase.java:714)
         at org.apache.myfaces.trinidad.component.UIXTable.decode(UIXTable.java:136)
         at org.apache.myfaces.trinidad.component.UIXCollection.processDecodes(UIXCollection.java:193)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:970)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:956)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:812)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:970)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:956)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:812)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:970)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:956)
         at org.apache.myfaces.trinidad.component.UIXForm.processDecodes(UIXForm.java:75)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:970)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:956)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:812)
         at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1015)
         at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:504)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl$ApplyRequestValuesCallback.invokeContextCallback(LifecycleImpl.java:1113)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:293)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:175)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:181)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:279)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:239)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:196)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:139)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at oracle.security.jps.wls.JpsWlsFilter$1.run(JpsWlsFilter.java:85)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:257)
         at oracle.security.jps.wls.JpsWlsSubjectResolver.runJaasMode(JpsWlsSubjectResolver.java:250)
         at oracle.security.jps.wls.JpsWlsFilter.doFilter(JpsWlsFilter.java:100)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:65)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

    Hi Timo,
    Thanks for reply .
    I am using Jdev11g.
    I also tried Debug and what i observer is
    1)If i drop trinad table it gives above error before catching debug point in action.
    2)If i use <af:table ... i am able to catch debug point but it give null value on step UIXTable table = getTable() in above code.
    Please suggest me how to use trinidad table for multiple row selection functionality bcz it satisfy my requirement.

  • How to get row count(*) for each table that matches a pattern

    I have the following query that returns all tables that match a pattern (tablename_ and then 4 digits). I also want to return the row counts for these tables.
    Currently a single column is returned: tablename. I want to add the column RowCount.
    DECLARE @SQLCommand nvarchar(4000)
    DECLARE @TableName varchar(128)
    SET @TableName = 'ods_TTstat_master' --<<<<<< change this to a table name
    SET @SQLCommand = 'SELECT [name] as zhistTables FROM dbo.sysobjects WHERE name like ''%' + @TableName + '%'' and objectproperty(id,N''IsUserTable'')=1 ORDER BY name DESC'
    EXEC sp_executesql @SQLCommand

    The like operator requires a string operand.
    http://msdn.microsoft.com/en-us/library/ms179859.aspx
    Example:
    DECLARE @Like varchar(50) = '%frame%';
    SELECT * FROM Production.Product WHERE Name like @Like;
    -- (79 row(s) affected)
    For variable use, apply dynamic SQL:
    http://www.sqlusa.com/bestpractices/datetimeconversion/
    Rows count all tables:
    http://www.sqlusa.com/bestpractices2005/alltablesrowcount/
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Design & Programming
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • How to find rows in F table of a cube for a given request ID

    Can someone tell me how to find the rows in the F table of a cube for a given request id?

    Hi,
    Copy the Request ID number of that cube and go to manage of the cube and select contents tab, select Infocube content,
    select list of objects to be displayed with results and in that screen give Request ID at Request ID row and at bottom Max no. of Hits keep blank and execute at the top.
    this will display all the data rows loaded with that request. this is records from cube.
    from Fact table, go to SE11, give /BIC/FXXXX "XXXX" is cube name for custom cube.
    get the SID of that cube from the Cube contents as mentioned above, for field select for output along with Request ID select Request SID also.
    from SE11 give table /BIC/DXXXXXP "XXXX" is cube name for custom cube. P for Packet Dimension. here pass reqest SID in 'SID_0REQUID' and get value for DIMID.
    pass this DIMID into KEY_XXXXP, this give the fact table rows for that request DIM ID.
    hope this helps
    Regards
    Daya Sagar

  • Row Selection for second and subsequent level nodes in tree table

    Hi All,
    We have a .jsff page with tree bindings to display a three-level hierarchy tree table.Suppose the hierarchy is
    -> Department
    ->-> Employees
    ->->-> Employee details.
    I have a use case where-in when we add the employee node within a department,the department node must expand and the newly added employee node must be selected.
    In both the cases(for new department or employee), we are following the approach mentioned below:
    1. Get the treeTable Iterator.
    2.Adding the new object to the java ArrayList which is bound to the corresponding level in the tree.
    3.Refreshing the treeTable iterator.
    4.Execute treeTable.setSelectedRowKeys()
    5.Add a partial target to the treetable.
    The issue is that the new employee gets added but the upper-level department node collapses and no selection is performed on the new employee node.
    But when we add a new department node, it gets selected on creation.
    Is there any additional steps to be performed for second-level row selection?

    Hi,
    Thanks for the reply.
    I looked at the code given in sample 61.
    In the sample, a new node is not added dynamically (for ex.either new location or its child nodes.)
    As mentioned in the above post, after adding a new node at a level in our use case, when we perform the refresh of the tree-table's iterator,the selection state of the rows is not shown on the table.
    If the tree-table's iterator is not refreshed and the treeTable.setSelectedRowKeys() is executed, the rows get selected but the subsequent node additions do not show up in the table as the table's iterator is not refreshed.
    Any sample code is available where in both the addition of new node and its selection is performed at the same time?
    Thanks.

  • Change field value in a table, based on another field value in the same row (for each added row)

    Please Help, I want to change field value in a table, based on another field value in the same row (for each added row)
    I am using this code :
    <HTML>
    <HEAD>
    <SCRIPT>
    function addRow(tableID) {
    var table = document.getElementById(tableID);
    var rowCount = table.rows.length;
    var row = table.insertRow(rowCount);
    var colCount = table.rows[0].cells.length;
    for(var i=0; i<colCount; i++ ) {
    var newcell = row.insertCell(i);
    newcell.innerHTML = table.rows[1].cells[i].innerHTML;
    switch(newcell.childNodes[0].type) {
    case "text":
    newcell.childNodes[0].value = "";
    break;
    case "checkbox":
    newcell.childNodes[0].checked = false;
    break;
    case "select-one":
    newcell.childNodes[0].selectedIndex = 0;
    break;}}}
    function deleteRow(tableID) {
    try {var table = document.getElementById(tableID);
    var rowCount = table.rows.length;
    for(var i=0; i<rowCount; i++) {
    var row = table.rows[i];
    var chkbox = row.cells[0].childNodes[0];
    if(null != chkbox && true == chkbox.checked) {
    if(rowCount <= 2) {
    alert("Cannot delete all the rows.");
    break;}
    table.deleteRow(i);
    rowCount--;
    i--;}}}catch(e) {alert(e);}}
    </SCRIPT>
    </HEAD>
    <BODY>
    <INPUT type="button" value="Add Row" onClick="addRow('dataTable')" />
    <INPUT type="button" value="Delete Row" onClick="deleteRow('dataTable')" />
    <TABLE id="dataTable" width="350px" border="1">
    <TR>
    <TD width="32"></TD>
    <TD width="119" align="center"><strong>Activity</strong></TD>
    <TD width="177" align="center"><strong>Cost</strong></TD>
    </TR>
    <TR>
    <TD><INPUT type="checkbox" name="chk"/></TD>
    <TD>
    <select name="s1" id="s1">
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    </select>
    </TD>
    <TD><input type="text" name="txt1" id="txt1"></TD>
    </TR>
    </TABLE>
    </BODY>
    </HTML>

    Hi,
    Let me make sure u r working with table control.
    First u have to create a event(VALIDATE) to do the validation.
    Inside the event,
    1. First get the current index where user has pointed the curson
    2. Once u get the index read the internal table with index value.
    3. Now u can compare the col1 and col2 values and populate the error message.
    1. DATA : lo_elt TYPE REF TO if_wd_context_element,
                   l_index type i.
    lo_elt = wdevent->get_context_element( name = 'CONTEXT_ELEMENT' ).
         CALL METHOD LO_ELT->GET_INDEX( RECEIVING  MY_INDEX = l_index.
    above code should be written inside the event.
    Thanks,

  • ADF Table - Command buttons disappear when no rows returned for table

    We have a command button that navigates to a create screen, when the table returns no rows the button disappears. We need to have this displayed always and within the ADF table. The code looks like:
    <f:facet name="selection">
    <af:tableSelectOne text=""
    binding="#{Search.tableSelectOne1}"
    id="tableSelectOne1">
    <af:commandButton actionListener="#
    bindings.ExecuteWithParams1.execute}"
    text="Edit n"
    action="edit"
    binding="#{SearchCtgry.commandButton3}"
    id="commandButton3">
    <af:setActionListener from="#{row.Code}"
    to="#{processScope.toCode}"/>
    </af:commandButton>
    </af:tableSelectOne>
    </f:facet>

    try placing the command button within the "actions" facet of the table. It will place it above the actual rows of the table. You could also use the "header" facet.
    <af:tableSelectOne text=""
    binding="#{Search.tableSelectOne1}"
    id="tableSelectOne1">
    <f:facet name="actions">
    <af:commandButton actionListener="#
    bindings.ExecuteWithParams1.execute}"
    text="Edit n"
    action="edit"
    binding="#{SearchCtgry.commandButton3}"
    id="commandButton3">
    <af:setActionListener from="#{row.Code}"
    to="#{processScope.toCode}"/>
    </af:commandButton>
    </f:facet>
    </af:tableSelectOne>

  • Scripting for different numbers of table rows in cs3

    As always thank you for the help.
    My question: is there a simple newbie way to script for stroke placements when the numbers of rows in the category between the stroke will vary. I have not even attempted to script this style, as frankly I don't know where to start, but here is an explanation of what I need:
    The table foodstuff contains:
    animal, vegetable, fruit
    Under animal there is:
    beef, lamb, pork, poultry
    Under vegetable there is:
    potato, pepper, onion
    Under fruit there is:
    orange
    If wanted a line under each category, ie after poultry, after onion, and after orange how would I go about it.
    Thank you to all who have helped me so far, either by reading answers to other people's queries, or by responding directly to my own

    Interesting ... I don't think there is a newbie-level answer to this challenge. It comes down to finding the first (left-to-right) cell that contains text, and adding a line on top of it all the way to the last cell in that row.
    Here's a first attempt:
    table = app.selection[0];
    if (table.hasOwnProperty("baseline"))
    table = table.parent;
    if (table instanceof Cell)
    table = table.parent;
    if (table instanceof Column)
    table = table.parent;
    if (table instanceof Row)
    table = table.parent;
    if (table instanceof Table)
    table.cells.everyItem().properties = {topEdgeStrokeWeight:0, bottomEdgeStrokeWeight:0, leftEdgeStrokeWeight:0, rightEdgeStrokeWeight:0};
    table.rows.lastItem().bottomEdgeStrokeWeight = 1;
    for (r=0; r<table.rows.length; r++)
      for (c=0; c<table.rows[r].cells.length; c++)
       if (table.rows[r].cells[c].contents)
        for (; c<table.rows[r].cells.length; c++)
         table.rows[r].cells[c].topEdgeStrokeWeight = 1;
        break;
    } else
    alert ("You were supposed to be somewhere inside a Table");

Maybe you are looking for