How to get current Cell's Row & Col in a Dynamic Table??

Hi all,
I would to know if is possible, when I pass with a mouse over a specific cell's table (the table is created dynamically), to get the currents Row & Column.
My target is to set a tooltip for any cell of that table that says to user the label of Row & Column.
Can anyone help me please???
Thanks a lot.
Gianluca Barile

Scuse me Armin,
I don't find the method (in Java code) for creating a Column's calculated attribute.
My Node and My Table are not visible in Context tabstrip, because I'd created them into wdDoModify() method.
My Node has (3 + N) attributes (columns) and it's binded to a Table.
I post you my code so I wish you explain me how I do Insert the lines code. Sorry but I don't had understanded the phases. Can you Help me please?? Thanks a lot.
if (firstTime) {          
          //Node
          IWDNodeInfo nodeinfo = wdContext.getNodeInfo();
          IWDNodeInfo grigliaComparativaNode = nodeinfo.addChild("NODE",null,true,true,true,false,false,true,null,null,null);
          //Aattributes
          IWDAttributeInfo nominativo = grigliaComparativaNode.addAttribute("Name","com.sap.dictionary.string");
          IWDAttributeInfo periodoDa = grigliaComparativaNode.addAttribute("From","com.sap.dictionary.string");
          IWDAttributeInfo periodoA = grigliaComparativaNode.addAttribute("To","com.sap.dictionary.string");
          IWDAttributeInfo[] voti = new IWDAttributeInfo[MAX_ELEMENTS];
          for (int i = 0; i < wdContext.nodeElements().size(); i++)
               voti<i> =     grigliaComparativaNode.addAttribute("V"+i,"com.sap.dictionary.string");          
//Table
          IWDTable tab=(IWDTable)view.createElement(IWDTable.class,"Dyntable");
          IWDAttributeInfo attrib1 = grigliaComparativaNode.getAttribute("Name");
          IWDAttributeInfo attrib2 = grigliaComparativaNode.getAttribute("From");
          IWDAttributeInfo attrib3 = grigliaComparativaNode.getAttribute("To");
          for (int i = 0; i < wdContext.nodeElements().size(); i++)
               voti<i> = grigliaComparativaNode.getAttribute("V"+i);
          //Binding Node -> Table
          tab.bindDataSource(grigliaComparativaNode);
          tab.setReadOnly(true);
          tab.setDesign(WDTableDesign.ALTERNATING);
          //Table’s Columns
          IWDTableColumn tabColumn1 = (IWDTableColumn)view.createElement(IWDTableColumn.class,"Name");
          IWDTableColumn tabColumn2 = (IWDTableColumn)view.createElement(IWDTableColumn.class,"From");
          IWDTableColumn tabColumn3 = (IWDTableColumn)view.createElement(IWDTableColumn.class,"To");
          IWDTableColumn[] votiCol = new IWDTableColumn[MAX_ELEMENTS];
          for (int i = 0; i < wdContext.nodeElements().size(); i++)
               votiCol<i> = (IWDTableColumn)view.createElement(IWDTableColumn.class,"V"+i);
          //Captions
          IWDCaption nameCap=(IWDCaption)view.createElement(IWDCaption.class,"Name Caption");
          nameCap.setText("NAME");
          tabColumn1.setHeader((IWDCaption)nameCap);
          IWDCaption daCap=(IWDCaption)view.createElement(IWDCaption.class,"From Caption");
          daCap.setText("FROM");
          tabColumn2.setHeader((IWDCaption)daCap);
          IWDCaption aCap=(IWDCaption)view.createElement(IWDCaption.class,"To Caption");
          aCap.setText("TO");
          tabColumn3.setHeader((IWDCaption)aCap);
          IWDCaption[] votiCap = new IWDCaption[MAX_ELEMENTS];
          for (int i = 0; i < wdContext.nodeElements().size(); i++){
               votiCap<i> = (IWDCaption)view.createElement(IWDCaption.class,"V_C"+i);
               String s = wdContext.nodeElements().getElementAt(i).getAttributeAsText("Name");
               votiCap<i>.setText(s);
               votiCol<i>.setHeader((IWDCaption)votiCap<i>);
          //Cells
          IWDInputField nameText=(IWDInputField)view.createElement(IWDInputField.class,"Name");
          nameText.bindValue(attrib1);
          tabColumn1.setTableCellEditor((IWDTableCellEditor)nameText);
          IWDInputField daText=(IWDInputField)view.createElement(IWDInputField.class,"From");
          daText.bindValue(attrib2);
          tabColumn2.setTableCellEditor((IWDTableCellEditor)daText);
          IWDInputField aText=(IWDInputField)view.createElement(IWDInputField.class,"To");
          aText.bindValue(attrib3);
          tabColumn3.setTableCellEditor((IWDTableCellEditor)aText);
          IWDInputField[] votiField = new IWDInputField[MAX_ELEMENTS];
          for (int i = 0; i < wdContext.nodeElements().size(); i++){
               votiField<i> =(IWDInputField)view.createElement(IWDInputField.class,"V_F"+i);
               votiField<i>.bindValue(voti<i>);
               votiCol<i>.setTableCellEditor((IWDTableCellEditor)votiField<i>);
          //Insert columns into table
          tab.addColumn(tabColumn1);
          tab.addColumn(tabColumn2);
          tab.addColumn(tabColumn3);
          for (int i = 0; i < wdContext.nodeElements().size(); i++){
              tab.addColumn(votiCol<i>);
          tab.createLayoutData(IWDRowHeadData.class);

Similar Messages

  • Interactive Report: how to get value of given row/col cell in selected row

    Hi -- I have an interactive report. Instead of the default behavior of the link going to a single row view, I want it to
    go to a form for editing the row. This means I have to be able to populate the form w/ the correct row's information...
    so need to get the value(s) for the PK column(s) in the selected row of the interactive report, so I can select the row
    from the database.
    How can I do this? I see in the report attributes, Link Column section, I can set Rows Uniquely Identified by, and a Unique
    Column (though there could be more than one in a PK). I imagine I'd want to use the rowid, but I'm not sure how the
    rowid of the selected IR row can be referenced. And at that point, I'm not sure how to get the IR column value for
    that row. (Say I'm on the 8th row and I need the first column... How is the column referenced? By a number, it's name,
    its heading?)
    Or maybe I'm not on the right track at all...
    Ideas?
    Thanks,
    Carol

    Hi Carol,
    What I´m trying to do is: defining a button such as when you click it a pl-sql procedure is called, which needs as an input parameter the id of the row selected in my form. what I need first, then, is to get the id of the selected row. how did you get it?
    Thanks in advance
    Francesco

  • 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 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 rowindex of clicked object in cr2008 preview control

    hi
    i want to get selected raw data when user click on crystal report 2008 preview control.
    i can achieve using following code for particular row no.
    Dim repReport as new ReportDocument
    repReport.Rows(RowIndex).Item(ColumnIndex)
    how to get current rowindex ? 
    Thanks
    Sanjiv Sharma

    Only way I can think of is to use the rowset controller from the InProc RAS SDK. Here is a snippet of a sample code on how to:
    //Load the report
    if (clientDoc != null) {
    //create metadata structure
    RowsetMetaData rowSetMetaData = new RowsetMetaData();  rowSetMetaData.setDataFields
    (clientDoc.getDataDefinition().getResultFields());
           Fields fields = rowSetMetaData.getDataFields();
           String colName,colTypeName;
           int colType, len;
           Field field;
           HashMap colNames = new HashMap();
           HashMap colTypes = new HashMap();
           for (int i = 0; i < fields.size(); i++) {
                   field = (Field) fields.get(i);
                   colName =field.getDisplayName(FieldDisplayNameType.description, Locale
    .ENGLISH);
                   colNames.put("COL"+i,colName);
           colType = getColTypeFromVariant(field.getType().toVariantTypeString());
           len=field.getLength();
                  //Placeholder
            //add column metadata to data structure or XML
            Object colValue;
            int rowCount=0;
            if (getMaxRows() != 0) {
                   RowsetCursor rowsetCursor = clientDoc.getRowsetController(). createCursor
    (null, rowSetMetaData);
                  //Setting the batch size to make sure that you get back all the
                  //rows by setting the batch size.
                        clientDoc.getRowsetController().setRowsetBatchSize (rowsetCursor
    .getRowset().getTotalRecordCount());
               //Getting the Results back starting from the first row
               RowsetCursor resultCursor = clientDoc.getRowsetController(). createCursor(null,
    rowSetMetaData);
               resultCursor.moveTo(0);
                  while (!resultCursor.isEOF()) {
                      for (int i = 0; i < fields.size(); i++) {
                               colName=(String)colNames.get("COL"+i);
                               colTypeName=(String)colTypes.get("COL"+i);
    colValue=record.getValue(i);
                                //Placeholder
    //add row data to data structure or XML
    resultCursor.moveNext();
    For more details, consult the Report Application Server .NET SDK Developer Guide
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • How to get specific cell or whatever is in your datatable?

    All there is in my datatable is one value loaded. Here's my code, but how do i convert that datatable to a string?
    var fileName = string.Format("{0}\\file.xlsx", Directory.GetCurrentDirectory());
    var connectionString = string.Format("Provider=Microsoft.Jet.OLEDB.12.0; data source={0}; Extended Properties=Excel 12.0;", fileName);
    OleDbConnection connExcel = new OleDbConnection(connectionString);
    connExcel.Open();
    DataTable xlsData = new DataTable();
    OleDbDataAdapter dbAdapter = new OleDbDataAdapter("select * from [Filters$B2]", connExcel);
    dbAdapter.Fill(xlsData);
    //Now i want to see that value in xlsData???? or possibly convert it since it is only one cell loaded to a string? HELP?

    Hi  vkid,
    >>All there is in my datatable is one value loaded. Here's my code, but how do i convert that datatable to a string?
    About convert datatable to a string, you can use the following code
    string res = String.Join(Environment.NewLine, table.Rows.OfType<DataRow>().Select(x => String.Join(" ; ", x.ItemArray)));
    But based on your title, How to get specific cell,  please check the following code
    string value = table.Rows[0].ItemArray[0].ToString();
    It means get the firstrow and first column value. You can get the specified cell which you want.
    Best regards,
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • In Table Control How to get only a single row .

    Hi
    In Table Control How to get only a single row .I am able to decrease it its height to 4 but then 2 rows is getting dsplayed .I want only one row to be display and 2nd row should be deactivated or not visible.
    regards
    Avik
    Edited by: Julius Bussche on Jan 30, 2009 1:10 PM
    Removed friendly greeting from the subject title

    Hi Avik
    use this code it will help you.
    MODULE passdata OUTPUT.
      READ TABLE it_revision INTO wa_rev INDEX tab_clc-current_line.
      IF sy-subrc = 0.
        LOOP AT SCREEN.
          IF screen-group1 = '111'.      " 111 IS THE GROUP NAME
            screen-input = 1.          " input mode
            screen-active = 1.         " input mode.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ELSE.
        LOOP AT SCREEN.
          IF screen-group1 = '111'.       "GROUP NAME
            screen-input = 0.           " display mode
            screen-active = 1.          " DISPLAY MODE.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ENDIF.
    ENDMODULE.                 " PASSDATA  OUTPUT
    Make sure in group tou are passing the field name that you want in input mode on the base of other field
    Hope it will help you.
    Thanks
    Arun Kayal.

  • How to get current view name on clicking device back button?

    Hi,
    iam wriing a function for handling device back button(in android) press in my app.controller.js .How to get current viewname when clicking device back button.
    code samples will be helpful.
    my app.controller.js looks like below
    sap.ui.controller("com.opensap.App", {
      onInit : function() {
      document.addEventListener("deviceready", onDeviceReady, false);
      onBeforeShow : function(evt) {
      navButtonTap : function(evt) { 
    function onBackKeyDown(){
      //alert("hai");
      //sap.ui.getCore().byId("SalesDetail").app.backToPage("ProductList");
      //sap.ui.getCore().byId("ProductList").app.backToPage("Dashboard");
      //sap.ui.getCore().byId("SupplierDetail").app.backToPage("Dashboard");
    function onDeviceReady(){
       document.addEventListener("backbutton", onBackKeyDown, false);

    I somehow managed to find the solution
    function onBackKeyDown(){
      var app = sap.ui.getCore().byId("LoginDetail").app;
      app.back();

  • How to get current version of safari. without having safari browser?

    how to get current version of safari. without having safari browser?

    I don't understand the question. Safari is a browser.
    Can you elaborate on what your are trying to do that initiated the question? People may be able to come up with some other option that gets you working the away you want.
    When you respond, please post the version of the Mac OS and the version of Safari you currently have. Otherwise, people are guessing and the quailty of help you get plummets.

  • How to get control on each row in advance table

    hi, i have a advanced table with some data, in each row i have two radio buttons which i need to set depending on some column value in the row, i tried by following code
    for(SoftCompVORowImpl row2 = (SoftCompVORowImpl)svo.first();row2!=null;row2=(SoftCompVORowImpl)svo.next())
    if(row2.getAttribute("CommitEndDate")==null || row2.getAttribute("CommitEndDate").equals(""))
    onetime.setSelected(true);
    recurring.setSelected(false);
    else
    onetime.setSelected(false);
    recurring.setSelected(true);
    but this code is making set only one radio button (onetime), which ever i am making first true its getting selected, i need to know how to get control of each row....

    Babu,
    Basically you should use the decode function in your sql query itself and attach it with BC4J properties of radio buttons.In that case you don't have to worry about setting them declaratively !
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to get current month and last month dynamically??

    how to get current month and last month dynamically
    like
    month = getCurrentMonth();
    lastmonth = getcurrentMonth() -1;
    please help
    thanks

    hi :-)
    /* depracated but can be still useful */
    java.util.Date dtCurrent = new java.util.Date();
    int month = dtCurrent.getMonth();
    int lastmonth = dtCurrent.getMonth() - 1;
    System.out.println("* " + month);
    System.out.println("* " + lastmonth);
    /* better to use this one */
    Calendar cal = new GregorianCalendar();     
    int imonth = cal.get(Calendar.MONTH);
    int ilastmonth = cal.get(Calendar.MONTH) - 1;
    System.out.println("*** " + imonth);
    System.out.println("*** " + ilastmonth);
    regards,

  • How to get current IUser (com.sapportals.portal.security.usermanagement)

    Hi,
    does anybody know how to get IUser for the current user?
    I know how to get current IUser from com.sap.security.api package:
    IWDClientUser wdcu = WDClientUser.getCurrentUser();
    IUser sapUser = wdcu.getSAPUser();
    but I need to have IUser from com.sapportals.portal.security.usermanagement package.
    Regards,
    Ladislav

    Ladislav,
    Try this:
    Get the IUser uisng the API com.sap.security.api.IUser and store it in a variable, say <i>sapUser</i>.
    Then,
    // Convert the logged in user to old EP5 usermanagement API
    com.sapportals.portal.security.usermanagement.IUser user = null;
    try
         com.sapportals.portal.security.usermanagement.IUser user = WPUMFactory.getUserFactory().getEP5User(sapUser);
    catch (UserManagementException e)
         e.printStackTrace();
    Bala

  • How to get current assigned participant id?

    Hi mates,
    This might be a basic questions, but useful for me :)
    How to get current assigned participant id from screenflow? Or How to pass it as an argument from interactive activity?
    Below is what I tried.
    Participant.id or Instance.participant.id - returns login user id
    Thanks

    Hi,
    Please correct me if I understood wrong.
    You want to know whether an instance is assigned or not and if assigned then you want to fetch the assigned participant id.
    If this is your requirement then please find the code below and make the necessary changes into it.
    Write the following code in screen flow automatic activity but before that you need to pass the instanceid as argument to the screen flow.
    In the process as well as screen flow layer make an instance variable instanceid as Int.
    Then make an argument variable instanceidArg as Int in both the screenflow and process layer and map accordingly so that it will take the instanceid from process layer to the screen flow layer.
    Assign instanceid = id.number; in process layer automatic activity but before the global interactive activity where you have maped the screen flow.
    Write the following code in screen flow automatic activity.
    logMessage("============= instanceid ==============" + instanceid); //instanceid is the id of the instance that you have passed from process layer.
    ProcessService ps;
    InstanceFilter instF = InstanceFilter();
    ps.connectTo(url : Fuego.Server.directoryURL, user : "<userid>", password : "<password>"); //In studio the userid and password will be same
    logMessage("Connected");
    instF.create(processService : ps);
    instF.searchScope = SearchScope(participantScope : ParticipantScope.ALL, statusScope : StatusScope.ONLY_INPROCESS);
    //<ProessId Name> is the id of the process where you want to know the assighed participant id
    instF.addAttributeTo(variable : VarDefinition.processid, comparator : Comparison.CONTAINS, value : "/" + "<ProessId>");
    instF.addAttributeTo(variable : VarDefinition.INSTANCE_NUMBER, comparator : Comparison.IS, value : Int(instanceid));
    Fuego.Papi.Instance[] instances = getInstancesByFilter(ps, filter : instF);
    foreach (instance in instances) {
    logMessage("Assigned ?: " + instance.participantId.empty);
    logMessage("instance.participantId: " + instance.participantId);
    ps.disconnectFrom();
    Bibhu

  • How to get current date for posting date

    hi,
    how to get current date for posting date ? any sample code ?
    Thanks

    Hi......
    Use
    Select getdate()
    for current date.......
    Regards,
    Rahul

  • Urgent : How to get current user id

    Hello,
    fnd_global.user_id returns -1
    fnd_profile.get('user_id',x_user_id) return null
    can anyone help how to get current logged in user to apps.
    Regards,
    Dinesh.

    Hi Dinesh,
    You must also make sure you have initialised the app.
    If you run this from sqlplus then it will return -1.
    If however you run this from within a concurrent program then the user id will be returned.
    Try using this from sqlplus fnd_global.apps_initialize
    Eg.
    begin
    dbms_output.put_line(fnd_global.user_id);
    fnd_global.apps_initialize(user_id => 3551,
    resp_id => 1,
    resp_appl_id => 1);
    dbms_output.put_line(fnd_global.user_id);
    end;
    /

Maybe you are looking for

  • Can't view Attribute Text in HR Workflow.

    Hi Experts,                  I am doing HR Hiring scenario and the BOR is BUS1065. The workflow is triggering and mail is sent. But in the mail i have places Name of the hiring person which is not getting displayed. When i place dynamic text in mail

  • PC suite for K750

    Does anyone know if it´s possible to install pc suite on a windows 7 computer for the K750 model? It says that it´s only compatible with XP and Vista, but maybe there´s a fix to get around that. Thank you. /Z

  • E' possibile trasferire video fatti con iphone 4s su ipad 2?

    e' possibile trasferire video fatti con iphone 4s su ipad 2?

  • Suddenly iTunes keeps starting itself

    Just today I am having to deal with not being able to shut itunes down. It shuts down but a couple of minutes later it just starts itself back up.

  • SOA Managed Server cloning and adding it to a cluster.

    Hi, The following is the configuration I have in my machine already. ->Weblogic 10.3 ->Domain : soa_domain ->Contains AdminServer and a soa manged server (soa_server1) I would like to have another managed server (soa_server2) so that I can create a c