Need to identify the id of clicked element in jsp

HI
Edited by: namit bhandari on Nov 5, 2008 4:46 PM

Hi,
Id of clicked element means is it a button??? or some thing else??? is it a HBJ control or normal HTML control??? incase of HBJ controls you can create an event handler in the DynPage(Portal Component) and there you can catch the id.
for more info, refer the below links..
http://help.sap.com/saphelp_nw04/helpdata/EN/f5/cfa441cd47a209e10000000a155106/content.htm
http://help.sap.com/saphelp_nw70/helpdata/en/44/471ce3617b14bce10000000a155369/content.htm
or
[clickhere|http://www.google.co.in/search?hl=en&sa=X&oi=spell&resnum=0&ct=result&cd=1&q=JSPdynpageEvent+Handling&spell=1]
Regards,
Srinivas

Similar Messages

  • WebForms - Can i make the form user specific. For example can i identify the user who clicked on the link of webform?

    For example can i identify the user who clicked on the link of webform? Because i have a list of users and every time individual needs to select their name.?

    Hi,
    Unfortunately, it is not possible to create a user specific form in  FormsCentral, It is not possible to identify the users who has visited the link.
    Regards,
    Nakul

  • Need help identifying the application responsible for an insert...

    Hi,
    I'm a MSSQL guy and Oracle is still a bit mysterious to me.  I'm looking for some assistance tracking down the application in an environment which is responsible for particular inserts.
    For example, suppose I have 10 different programs running and inserting values to a DB.  I need to know which one of them inserts a "0" in a particular column.
    I found a trigger which will tell me the user, unfortunately these programs use a shared credential so that doesn't help me.... here's what I've got:
    CREATE OR REPLACE TRIGGER check_for_zero_insert
    AFTER INSERT
      ON DATA_TABLE_0001
      FOR EACH ROW
    DECLARE
      v_username varchar2(10);
    BEGIN
      -- Find username of person performing the INSERT into the table
      SELECT user INTO v_username
      FROM dual;
      -- Insert record into audit table
      INSERT INTO audit_table
      ( samplevalue
      sampletime,
      username )
      VALUES
      ( :sampletime,
      :samplevalue
       v_username );
    END;
    But again, username won't help me, I need the originating process if at all possible (either an executable name, PID, or something to identify the specific application on the other side.)

    use this in your trigger
    select sys_context('USERENV','OS_USER') ||'-' ||user  into v_username from dual;
    You might need to increase the v_username data type length.
    Thanks,
    GPU

  • Need to identify the same people based on their (misspelled) names

    hello
    we have a table with persons and their name (first name and last name in 1 field) ;
    the names are often mispelled, so some string comparison is required;
    can you advise what the best approach would be to uniquely identify the same people?
    so far i have only found this functions :utl_match.jaro_winkler_similarity and SOUNDEX
    is there anything else 'out of box' i could make use of to implement the above?
    i appreciate any tips
    thanks very much
    rgds

    UTL_MATCH (either the Jaro-Winkler or the edit distance functions) would generally be preferred. SOUNDEX is a less sophisticated algorithm.
    In the general case, however, doing this sort of thing yourself is extremely difficult. There are commercial products out there that just help you do fuzzy matching on names. If you're going to build something yourself, you're likely going to spend a large amount of time trying to fine-tune the algorithm to try to balance type 1 (false positive, you match names that you shouldn't) and type 2 errors (false negative, you fail to match names that you should). To do it well will require a rather large number of meetings with users trying to figure out the appropriate balance of errors in your particular environment.
    Justin

  • Need to change the lenth of data element WRBTR in Idoc FIDCCP01.

    Hi All,
    In my program i am doing a amount calculation and storing it in variable of data type BSIS-WRBTR. The same i am passing to a Idoc segment FIDCCP01 which alos uses the same data type. WRBTR has alenth of (13,2).
    My calculation are crossing the desired limit of this data type. So i would like to change the Data elemet WRBTR used in IDOC segment.
    Can any one guide me in how to do this.
    Thanks,
    Ravi Kasnale.

    Hi mr  Bhagath.
    the only options where i can get the IDOC Number is as shown in the below attached screen s .
    Varma
    iam not sure of where i can get the IDOC number  and implement the code,the only area where i could get the IDOC number is at the higlited square  block where i explained that i can get but i am not able to write any code there as SAP is not allowing me .
    hope to get the best answer from you.
    regards.
    Varma

  • Help needed in identifying the performance bottle neck

    Version: Oracle 11g
    I have application which accesses an Oracle DB. With only one application accessing the DB, the application is quite fast in retrieving the results from the DB or inserting results into the DB.
    But if another application is added accessing the same database but different data from the database, the speed of the application has reduced drastically..
    Can anybody tell me what are the possible reasons for such reductions in the speed of the application..

    Hi,
    Run statspack/AWR for each case for 5 minute and see the diffrencess.

  • Need help identifying the name of a game from Macintosh Performa days.

    Sorry to re-post this question. Had two questions in the previous post and got overly excited and hit solve prematurely. You deserve it though, Neil! Here was the second question I was hoping to get an answer for--
    "Game 2: This one is harder to recall details for. It was basically a compilation of mini games, I think. It took place in what was a carnival, I specifically remember it being a midway. Pretty sure skiball was involved. There was also a beach scene at night for some reason.
    I know this isn't much to go on. However, any help would be greatly appreciated!"

    Browse the titles at Macintosh Garden, http://macintoshgarden.org/all. Maybe something will ring a bell. Perhaps http://macintoshgarden.org/games/at-the-carnival ?

  • How to identify the component in an action

    Hi, here is my scenario:
    I have multiple tree components in a page and all nodes of them are associated with an action. And I need to identify the id of the tree, from where the action is triggered. But it seems that I cannot pass any parameters into the action. Is there anything like event to let me dynamically identify the tree id where the node clicked belongs to? Using ActionListener?
    thanks,

    Please see
    http://developers.sun.com/prodtech/javatools/jscreator/reference/techart/2/tree_component.html
    Note this sample does not work for portlet.

  • Identifying the Enter pressed by the user in the Inputfield

    Hi all,
    We have one Comment field on Portal screen that is given by the user (User may press enter while giving the comments). We are sending that field value to R3 through RFC and when we are getting back that comment field value from R3 we need to identify the Enter pressed by the user. We are writing the code for identifying "/n" in that comments field but that is not working. Can anyone help me out in this? This is really urgent.
    Thanxs in advance!!!

    Hi Gurmat and Manoj,
                                   Do you want to replace the TextEdit too? I thought only to print or send to backend. No problems. We can do change in TextEdit as well.
    My input in TextEdit is:
    How
    are
    you
    Manoj?
    After button click I got output in TextEdit and TextView(I used button to trigger event):
    How are you Manoj?
    In onActionButton() my code is:
    StringBuffer buffer = new StringBuffer(wdContext.currentContextElement().getText());
         for (int i = 0,index=buffer.indexOf("\n"); i < buffer.length(); i++) {
         if(i==index){
              buffer.replace(i-1, i+1," ");
              index = buffer.indexOf("\n");
              if (index==-1)
              break;
    In StringBuffer use "" only
    regards,
    Siva

  • Sorting the report by clicking the column header

    Hello,
    Currently working on a requirement where i need to sort the report by clicking the column header. Can anyone please help me on this.
    Suppose i have 3 colums deptno,dname,sal fields in my report. if i click deptno column header,  report has to sort by deptno.Like that i need for other columns also.
    Any help is really appreciated
    Thanks
    Ram

    Hello,
    You can sort the fields using method suggested by Cauvery. However if you would like to have Ascending/ Descending sort order control at column header, then would require to implement few additional steps.
    First do the sorting of field using the way suggested by Cauvery. Once sorting is done, right  click on the column name and  select the option ' Bind Sort Control'. You will see the sorted field in the window. select the field and click ok.
    Now you would get 2 arrows on column. If you click upper arrow, fields would be sorted in Ascending Order and if you click on down arrow, it would  be in Descending order.
    Regards,
    Chinmay Athavale

  • Help needed in Identifying dependent objects

    Hi all,
    Basically I need to identify the object related to Integration which is not there in one of our software product under development as compare to other(existing) already developed so that we can apply them in the product being developed.
    I need to find these below from few of the packages given to me
    &#61550;     dependent packages/functions to read and update data
    1)     Tables
    2)     Packages
    3)     Triggers
    4)     Views
    5) Jobs
    I would request you to help me in carrying out this faster, I have plsql Developer tool, how to start with so that i m not mess up with and complete it faster.
    Regards,
    Asif.

    Thankx Pierre Forstmann.
    Dear All,
    Can any one help me in identifying all dependent objects for one object.
    Will this works for me I found from the above link provided,
    as for the time being I do not have the dba priviliges...
    If I am able to get the dba prviliges will this code works for me to get the
    required information....
    Regards,
    AAK.
    SQL>
    create or replace type myScalarType as object
    ( lvl number,
    rname varchar2(30),
    rowner varchar2(30),
    rtype varchar2(30)
    Type created.
    SQL> create or replace type myTableType as table of
    myScalarType
    Type created.
    SQL>
    SQL> create or replace
    function depends( p_name in varchar2,
    p_type in varchar2,
    p_owner in varchar2 default USER,
    p_lvl in number default 1 ) return myTableType
    AUTHID CURRENT_USER
    as
    l_data myTableType := myTableType();
    procedure recurse( p_name in varchar2,
    p_type in varchar2,
    p_owner in varchar2,
    p_lvl in number )
    is
    begin
    if ( l_data.count > 1000 )
    then
    raise_application_error( -20001, 'probable connect by loop,
    aborting' );
    end if;
    for x in ( select /*+ first_rows */ referenced_name,
    referenced_owner,
    referenced_type
    from dba_dependencies
    where owner = p_owner
    and type = p_type
    and name = p_name )
    loop
    l_data.extend;
    l_data(l_data.count) :=
    myScalarType( p_lvl, x.referenced_name,
    x.referenced_owner, x.referenced_type );
    recurse( x.referenced_name, x.referenced_type,
    x.referenced_owner, p_lvl+1);
    end loop;
    end;
    begin
    l_data.extend;
    l_data(l_data.count) := myScalarType( 1, p_name, p_owner, p_type );
    recurse( p_name, p_type, p_owner, 2 );
    return l_data;
    end;
    Function created.
    SQL>
    SQL> set timing on
    SQL>
    SQL> select * from table(
    cast(depends('DBA_VIEWS','VIEW','SYS') as myTableType ) );
    ---select * from table(cast('USER_VIEWS') as myTableType ) );
    LVL     RNAME          ROWNER          RTYPE
    1     DBA_VIEWS     SYS               VIEW
    2     TYPED_VIEW$ SYS               TABLE
    2     USER$          SYS               TABLE
    2     VIEW$          SYS               TABLE
    2     OBJ$          SYS               TABLE
    2     SUPEROBJ$ SYS               TABLE
    2     STANDARD SYS               PACKAGE
    7 rows selected.
    Elapsed: 00:00:00.42
    SQL>
    SQL>
    SQL> drop table t;
    Table dropped.
    Elapsed: 00:00:00.13
    SQL> create table t ( x int );
    Table created.
    Elapsed: 00:00:00.03
    SQL> create or replace view v1 as select * from t;
    View created.
    Elapsed: 00:00:00.06
    SQL> create or replace view v2 as select t.x xx, v1.x yy from
    v1, t;
    View created.
    Elapsed: 00:00:00.06
    SQL> create or replace view v3 as select v2.*, t.x xxx, v1.x
    yyy from v2, v1, t;
    View created.
    Elapsed: 00:00:00.07
    SQL>
    SQL>
    SQL> select lpad(' ',lvl*2,' ') || rowner || '.' || rname ||
    '(' || rtype || ')' hierarchy
    2 from table( cast(depends('V3','VIEW') as myTableType ) );
    HIERARCHY
    OPS$TKYTE.V3(VIEW)
    OPS$TKYTE.T(TABLE)
    OPS$TKYTE.V1(VIEW)
    OPS$TKYTE.T(TABLE)
    OPS$TKYTE.V2(VIEW)
    OPS$TKYTE.T(TABLE)
    OPS$TKYTE.V1(VIEW)
    OPS$TKYTE.T(TABLE)
    8 rows selected.
    Message was edited by:
    460425

  • How to Identify the Source System in a Transformation Rule?

    Hi,
       In a 3.x system if I needed to identify the source system, the interface had a parameter SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS. I do not see the same in a Transformation Rule. Can anyone tell me how can I make a decision in my transformation rule depending on the Source System?
        Say for instance I want to change the following Update Rule from a 3.x System to a Transformation in BI7:
    IF SOURCE_SYSTEM = 'ABC'.
       RESULT = 1.
    ELSEIF SOURCE_SYSTEM = 'A11'.
       RESULT = 2.
    ELSEIF SOURCE_SYSTEM = 'AZ1'.
       RESULT = 3.
    ELSE.
       RESULT = 0.
    ENDIF.
      Can anyone help? Points will be rewarded.
    Regards,
    Kazmi.

    Hi Siggi,
       But how would I know the Request ID within a transformation ? REQUID is the key of the table rsbkrequest ? The interface of the transformation method has the following parameters:
      IMPORTING
        request     type rsrequest
        datapackid  type rsdatapid
        SOURCE_FIELDS
       EXPORTING
         RESULT
    So all I can be aware of is the Request Name and the Data Packet Number. For instance when I took your approach, I got the Request Name as "DTPR_8E3VKVN0RJPDNXAKMP0PZJ99B" now I cannot look up with this against the key of the table because REQUID is a number field. Now, if I look up against the field "Data Transfer Process ID (DTP)" I do not find any entry in this table.
       Any more info?
    Regards,
    Thanks.

  • How to identify the file type in a safe way

    I need to identify the filetype of a file in my disc.
    I watched over internet and i've found this good site:
    http://filext.com/
    that supplys the "magic bytes" for many kind of files.
    I have also looked over internet for some ready class that identify different file types, and I have found FFident:
    http://schmidt.devlib.org/ffident/index.html
    Do you know any other Java package/class that is able to identify correctly the file types?
    Thank you,.

    The OS just watch the extension of the file.Not always. If you create a word doc but name it with
    some other extension, the OS still can determine that
    it is a word doc.On which OS?
    if i take foo.exe and i rename foo.doc so my OSwill
    try to open it as a MS Word Document.Again, garbage in, garbage out.What you mean?
    If I create a MS Word Document for a file .doc that is not a real .doc and it is not able to read, i will just lose cpu time and a lot of memory.
    So it is important to understand if I need really to open MS Word watching what is the real file type
    Either way, you're going to be doing way too much
    work (and wheel-reinventing) if you're going to build
    your own detection scheme.In the SDK there is not any file type checker, and if eventually really exists an OS like you say that is able to read inside the file, i prefer to have my own Java class that do that work in a safe and opensource way.
    However in my first post i've given a site with some java code that do what I need, i just was asking if anyone know if there is any ready-to-work java class that is better for doing this work.

  • Identifying the maximum length of a record in internal table

    Hi,
    Im using an internal table for a string for some requirement.
    Now, at later point of time i need to use for CHAR variable to copy the data from the above internal table.
    I need to identify the max length of the record stored in this internal table so that i can assign that much length to this CHAR variable.
    Is there any standard fm or any abap stmts.
    Thanks
    rohith

    You have to Loop the entire Itab to find the Maximum length of the record stored.
    Just like this:
    data: begin of itab occurs 0,
            v_str1 type string,
          end of itab.
    data: v_len type i.
    data: v_len1 type i.
    itab-v_str1 = 'mahesh sap abap'.
    append itab. clear itab.
    itab-v_str1 = 'mahesh'.
    append itab. clear itab.
    itab-v_str1 = 'mahesh sap'.
    append itab. clear itab.
    loop at itab.
      v_len = strlen( itab-v_str1 ).
      if v_len > v_len1.
        v_len1 = v_len.
      else.
        continue.
      endif.
      clear: v_len.
    endloop.
    write:/ 'Max Length', v_len1.

  • Need to find the cmos battery on Satellite Pro 2100

    I have a laptop that isn't keeping date/time settings and I need to identify the laptop to find the correct instructions for taking it apart.
    The make is a Satellite Pro SP2100, model number PS210E006P9-EN however I'm unable to find this make/model on the Toshiba website. The nearest I can find is Satellite 2400-103, Part Number : PS240-014T1 which looks identical.
    I've tried using the Toshiba identification tool to detect what the laptop is but that fails to provide any results.
    I also need to find what the power supply is for this unit as the current one is faulty and has wires exposed.
    The current adapter with it is PA3201U-1ACA, the problem is this adapter has got another adapter on the end to fit in the power socket in the back of the laptop. The connector at the end of PA3201U is too thin to fit.

    Hi
    This notebook is very old and the name of this machine is: Satellite Pro 2100 PS210E
    > I have a laptop that isn't keeping date/time settings and I need to identify the laptop to find the correct instructions for taking it apart.
    Usually the CMOS battery can be charged. You have to connect the AC adaptor and the notebook should be powered up for about 12-14 hours.

Maybe you are looking for