Getting the details of element in lead selection

hi experts,
please help me out with the following requirement.
I have a table displayed in my table_view with 3 feilds.if i select a row in the table and click details, then it should get the details(ie all 8 fields) in the table_details view.
I used the currentContextElement option but it gave me the details of the last row always..
thanks in advance..
jithin

Hi,
suppose if u have two node node1 and node2
and u want to copy the selected element from node1 to node2,
int lead=wdContext().nodeNode1.getLeadSelection();
/////get attributes at lead selection
IPrivateView.INode1Element elem1 = wdContext().nodeNode1().getInode1ElementAt(lead);
String a =elem1.get<Attr1>();
//////create an elemnt of the node2 and set the attributes
IPrivateView.INode2Element elem2 = wdContext().nodeNode2().createNode2Element();
wdContext().nodeNode2().bind(elem2);
elem2.set<Attr1>(a);
Regards,
Satya.

Similar Messages

  • Obtain a reference to the element at lead selection

    I am trying to obtain a reference to the element at lead selection of a context node (Node name is Person) of component controller, i had a method initPerson() to initialize the values, so when i am writting
    IPersonElement personEl = wdContext.nodePerson().currentPersonElement();
    to obtain a reference , at IPersonElement  it is giving me an error
    IPersonElement can not be ressolved or is not a type !
    can anyone help me on this
    Thanks in advance.
    Rashmi.
    Edited by: Rashmi Gupta on Nov 6, 2008 11:40 AM
    Edited by: Rashmi Gupta on Nov 6, 2008 11:41 AM

    Hi
    Usse
    view/controllerName.IPersonElement
    Just like given example below
    IPublicAllInOne.IFlight_List_1Element ELE = wdContext.nodeFlight_List_1().createFlight_List_1Element(new Bapisfldat());
    PS: Orgine the import files. by pressing control+Spece button at time
    or
    controlSpeceO
    Thanks

  • How do you get  the count of number of  checkbox selected?

    hi,
    plz tell me how do you get the count of number of checkbox selected?

    Not sure what you are doing so I will attempt to answer your question. If have one question which can have multiple answers you have will recieve an array so you have to do getParameterValues("name") and move it into an array.
    If you have multiple questions and only value will be selected do a getParameter("name") on each form element.
    HTH, if not provide more detail.
    J.Clancey

  • How to get the current tree element (node/childnode/childnode/...) ?

    Hello!
    I'm trying to create a kind of a navigation tree for my application.
    It should represent some elements of an XML structure and some other nodes for other options.
    The binding with the context is not a problem, I can create the tree up to all the levels I want to.
    The problem now is, that I don't know, how to get the "current tree element", when there is any action.
    For example:
    public void onActionSelect(...) {
    String test = wdContext.currentTreeNodeElement().getText();
    wdThis.wdGetContext().currentContextElement().setSelectedElement(test);
    With this method I can get the text of the "first level nodes". If I want to get the "second level node", I can do
    String test = wdContext.currentTreeNodeElement().currentChildElement.getText();
    ..and for the next levels so on.
    Isn't there any general method to get the information of the selected element without knowing before, whether it is a nodeElement or a nodeElement.currentChildElement or a nodeElement.currentChildElement.currentChildElement, ...?
    Greetings,
    Ramó

    Hi,
    if you following that pdf ,
    i think your not implemented the below code in DomodifyView method
    if (firstTime) {
          IWDTreeNodeType treeNode = (IWDTreeNodeType) view.getElement("TheNode");
          /* The following line is necessary to create parameter mapping from parameter "path" to parameter "selectedElement".
    Parameter "path" is of type string and contains the string representation of the tree element (its corresponding context element to be exact)
    that raised the onAction event. Parameter "selectedElement" is of type IWDNodeElement (or extends it) and is defined as parameter in the event handler
    that handles the onAction. The parameter mapping defined here translates the String "path" into the corresponding context element that then can
    be accessed within the event handler
          treeNode.mappingOfOnAction().addSourceMapping("path", "selectedElement");
          /* The following line is necessary to create parameter mapping from parameter "path" to parameter "element".
    Parameter "path" is of type string and contains the string representation of the tree element (its corresponding context element to be exact)
    that raised the onLoadChildren event. Parameter "element" is of type IWDNodeElement (or extends it) and is defined as parameter in the event handler
    that handles the onLoadChildren. The parameter mapping defined here translates the String "path" into the corresponding context element that then can
    be accessed within the event handler
          treeNode.mappingOfOnLoadChildren().addSourceMapping("path", "element");
    please cross check once.
    Thanks,
    Ramesh

  • R/3 job and get the details of variants like (from and to)

    Hi,
    How to find R/3 job and get the details of variants like (from and to) for that job.
    the job is extraction job and running for 4 hours in R/3 once atfer this job completes BW job will start executing. Now i have to analyse R/3 job that how many years of data it is extracting (from, to) and other useful information why it is taking time for 4 hours.
    Please let me know what transaction i have to use and how to check this information in R/3 side.
    Thanks,

    Hi........
    Go to SM37 >> select the job >> Click on Job log.........Check there whether u r getting any Clue or not...........Is this load is through PSA..........? if so check the records of the First data packet...........then the Last data packet............from there u can get some idea..................
    Also u can check the data in the Extractor.......is it a full load?.............Go to RSA3 >> Execute..........there check the data........
    Is it a LO datasource ? if so................Go to LBWE >> Click on maintenance link for your datasource........>> Here in the Right pane u can see the Structute associated with that Datasource ...........If u remove MC from those structure name............u will get the table name..............In those tables also u can check the data...............there should be some data field.............from where u can get some idea.........
    If ur Extractor is extracting data using some Function Module.............then open the datasource using RSA2.............there double click on the Exrtractor..............u will get the function module.................u can try to analyze the function module............
    For Variants..................select the job >> click on Step in the top >> then Go to in the top >> Variant..............but I don't think this will help u............this will tell u that this Extraction job is part of which chain or IP......
    Regards,
    Debjani..........

  • PowerShell Script to get the details Like Scope,Last Deployed date and Name for a Solution Deployed in the Farm.

    Hi Experts,
    I am trying to  build a PowerShell Script to get the details Like Scope,Last Deployed date and Name for a Solution Deployed in the Farm.
    Can anyone advise on this please.
    Regards

    Get-SPSolution|Select Name,Scope,LastOperationResult,LastOperationEndTime|Export-CSV "SPInstalledSolutions.csv" -NoTypeInformation
    SPSolution properties
    Get-SPSolution
    This post is my own opinion and does not necessarily reflect the opinion or view of Slalom.

  • How to get the Details Regarding the tcode like used by  and used in .

    Hi all,
    My requirement is if i give the Z* Tcode in the selection screen I should get the details like program Name and Creator Name and created on and last Changed by and used by and used in Related Data.
    Somehow i managed to get all the data except for two fields used by and used in .Please let mke know is there any Function Module to fetch the used by(User Name ) and used in data or any table where this data is saved.
    Thanks in Advance.
    Regards,
    Naveen

    Hi Naveen,
    What are you exactly looking for in "used by" (if it's who launched the transaction lastly -> performance statistics, transaction ST03N, search forum how to read it) and "used in" (programs in which the transaction is statically defined in CALL TRANSACTION, and other statements -> CROSS table)?
    BR
    Sandra

  • Get the number of elements in Array

    Hi everyone,
    Could anyone give me idea on how to get the number of elements in an Array (not number of rows) ?
    I tried to find that in both property node and array functions but nothing.
    Thanks,
    -Kun

    You are going to have to provide some proof that the Array Size does not work correctly. Right click on the input to it and select 'Create Indicator'. Run the VI. Go to the front panel and select 'Edit>Make Current Values Default'. Save the VI and attach it to your post.
    You can also check the array size yourself. Right click on the index display of the array and select 'Advanced>Show Last Element'. I will bet you that number shown is equal to Array Size -1.
    p.s. The number of elements in an array is equal to the number of rows in a 1D array. If you define the number of elements as anything else, you are mistaken.
    Message Edited by Dennis Knutson on 04-21-2009 10:40 AM

  • SSAS : How to get the details of a mesure by script

    Hi,
    I have 5 cubes in my DB. I have regulare mesures (count, min, max, ...) on the fact (see the botton ones in the print screen below)... but also some other calculations (see the top 3 ones in the print screen below).
    When i use this MDX script....
    SELECT [CATALOG_NAME] as [DATABASE],
        CUBE_NAME AS [CUBE],[MEASUREGROUP_NAME] AS [FOLDER],[MEASURE_CAPTION] AS [MEASURE],
            [EXPRESSION], [MEASURE_IS_VISIBLE]
    FROM $SYSTEM.MDSCHEMA_MEASURES
    WHERE CUBE_NAME  ='EPE'
     ORDER BY [MEASUREGROUP_NAME]
    I get as a result this :
    I need to get the details (expression) of 8 botton mesures ... as with the 3 top ones ...
    example : the last one is 'Somme Montant' (in english is : SUM Amount). It is a sum on the musure 'Montant' (Amount).... as : SUM(Montant)
    i want to show the real calculation  behind it with the real name (as is on the fact) of the column on with the mesure is based.
    Thank you for your help.
    Nacer CREPUQ BI Developer

    Thank you Dareen and Jerry,
    I wasn't able to make it work ...
    1. my case here do not work.
    2. i don't see how to get the column name of the mesure as it is on the fact table. with MEASURE_NAME_SQL_COLUMN_NAME it shows its name as is displayed for the use.
    ie: please show me how i can do what you sayed : you can overwrite the expressions of regular measures and list them out by script.
    Please advice.
    Thank you.
    SELECT MEASURE_AGGREGATOR, MEASURE_NAME_SQL_COLUMN_NAME, MEASURE_AGGREGATOR
        , CASE [MEASURE_AGGREGATOR]
              WHEN 1 THEN 'Sum'
              WHEN 2 THEN 'Count'
              WHEN 3 THEN 'Min'
              WHEN 4 THEN 'Max'
              WHEN 8 THEN 'Distinct Count'
              WHEN 9 THEN 'None'
              WHEN 10 THEN 'AverageOfChildren'
              WHEN 11 THEN 'FirstChild'
              WHEN 12 THEN 'LastChild'
              WHEN 13 THEN 'FirstNonEmpty'
              WHEN 14 THEN 'LastNonEmpty'
              WHEN 15 THEN 'ByAccount'
              WHEN 127 THEN 'Calculated measure'
              ELSE 'N/A'
       END AS AggregateFunction
    FROM $SYSTEM.MDSCHEMA_MEASURES
    WHERE CUBE_NAME  ='EPE'
    Nacer CREPUQ BI Developer

  • Is there a way to get the details for each hit in the portal database WCR_WEBCONTENTSTAT?

    Hi,
    I need to get the details for each user hit.
    Apparently, this table has the IMPRESSIONS column which returns the total number of hitcounts and VISITS which counts the number of unique user who accesses the portal. What I am trying to look for is to get all the details per hitcount. I need to find out how many time a specific user accessed a specific page or iview.
    I also used the table WCR_USERPAGEUSAGE, which I get the information of the users counted in the VISITS column in the first table.
    I could not get the specific user per hit.
    Please enlighten me if this is possible and how to do this?
    Thanks!

    Hi Catherine,
    Why not use the portal activity report iView?
    In the portal activity report iView the 3rd option allows you to choose a page for example and see
    the user who accessed it and how many times.
    Thanks and BR,
    Saar

  • How to get the number of elements in a tilelist

    I'm writing test cases for a flex application using FlexSelenium and I need to get the number of elements displayed in the tilelist.
    I know that that the tilelist is fed by an array. but i can't access that array from my test case.
    Can anyone tell me how I can get the number of elements in a tilelist on the application? which property of the tilelist can provide that number?

    try tileList.dataProvider.length;

  • How to get the number of elements in DB

    Could you tell me how to get the number of elements in DB??
    My code to get the number is below, but I think it is not efficient
    DB->cursor(DB, NULL, &cursorp, 0);
    while ((ret = cursorp->c_get(cursorp, &key, &data, DB_NEXT)) == 0)
    count++;
    --------------------------------------------------------------------------------------------------------------

    Hi,
    The most efficient way to get a count from the database is using the DB->stat API (http://docs.oracle.com/cd/E17076_02/html/api_reference/C/dbstat.html)
    The code will be something like:
            DB *dbp;
            DB_BTREE_STAT *statp;
            int ret;
            /* Print out the number of records in the database. */
            if ((ret = dbp->stat(dbp, NULL, &statp, 0)) != 0) {
                    dbp->err(dbp, ret, "DB->stat");
                    goto err1;
            printf("%s: database contains %lu records\n",
                progname, (u_long)statp->bt_ndata);
            free(statp);The code comes from the example included in the distribution at examples/c/ex_btrec.c
    If the database isn't a btree, you should update to the appropriate statistics structure and field.
    It's worth noting that retrieving the count is never a "cheap" operation. The count is not stored in the database - since doing so introduced a single point of contention that creates a bottle neck.
    Regards,
    Alex Gorrod
    Oracle Berkeley DB

  • Getting the Details from a HTTP Request using C#

    Hi,
    Suppose, a user submits a form with some details as Address, Phone Number etc.. to a Web Application. On the client side, I need to have a proxy to intercept this http request message being sent to the Server and get the details in it like Phone number and
    Address in this case and display them to user in a pop up box for confirming and if he clicks YES, then only I should forward the request to Web Server/Web Application. 
    If the user feels that the information shown to him is not correct he can Click NO and the request will not be sent to the Server. Anyone know how to use this in DOTNET WEB APPLICATIONS?
    I need to write code for the Proxy Part, I am not sure how to handle HTTP messages and from where to start with. Any help would be of great help.
    Thanks
    K.V.N.PAVAN

    http://forums.asp.net/
    Yu have many sections to choose from concerning Web based solutions.

  • How to get the current node element by its value?

    e.g,:
    wdContext.current<b>Deal</b>Element().setAttributeValue("<i>deal_id</i>","<i>aaaaaaa</i>");
    above code can get the result i wanna.
    but now i wanna in terms of its node'name to  set attribute vaue of itself. in other words,i have no idea about how to get the current node element by its name"<b>Deal</b>".

    Hi Wing,
    The answer is there in your question itself.
    wdContext.currentDealElement()
    will give you the current node element by its name"Deal" or you could use
    wdContext.nodeDeal().getCurrentElement()
    or you could use
    wdContext.nodeDeal().getElementAt(wdContext.nodeDeal().getLeadSelection())
    Regards,
    Sudeep

  • FM to get the details of the file on presentation server

    hi friends ,
      i need to read the files on the front end in c:\ directory which start with hw.  
    is their any function module to get the details of the files like name of the file .
    as for application server we have "EPS_GET_DIRECTORY_LISTING".
    thank you,
    kat.

    Use method CL_GUI_FRONTEND_SERVICES=>DIRECTORY_LIST_FILES
    CALL METHOD cl_gui_frontend_services=>directory_list_files
      EXPORTING
        directory                   = 'C:\'
        filter                      = 'hw*.*'
      changing
        file_table                  = t_file_table
        count                       = w_count.
    Edited by: Swastik Bharati on Nov 3, 2008 7:53 AM

Maybe you are looking for

  • Teamwork still a factor?

    I just wondered through how much hassle and flaming some Java students are willing to suffer just to get an answer to problems like recursive method creations. It especially makes me wonder because if I don't know something, I ask my pals or my co-wo

  • Regarding 0cust_Sales

    HI all, we are using standard function for transfering data from R/3 to BIW For Fetching classification data of customer , we created one customised function module and through user exit , we are using that functionmodule. But we are facing Peforaman

  • Quicktime .MOV files want to be opened by Spotify

    Quicktime .MOV files want to be opened by Spotify I right click open with, then select Quicktime, and click always use this or set default or whatever, but that dosent work. The video cannot play in Spotify.

  • Ical server mail gateway process

    I have an issue with the ical gateway application on OSX SL 10.6.5. The replyto addresss being displayed by the receiving invitee is borked. Has anyone seen this issue and if you could you point me in the right direction. here is a sample of a generi

  • VarArg parameters and its outcome

    Hi, just to be sure about continuity. At the moment, if you have a method like void myMethod(Object ... objects);The following calls will result in the respective objects value: myMethod()results to objects == Object[]{}and myMethod(null)results to o