Input Field in table - I need a OnClick Event

Hello everybody,
I have the following problem:
I have created a table in my view which is filled at runtime. The table has 3 different rows and every row has TableSingleMarkableCells, these cells further have a input field as their celleditor.
I now want to know which cell the user is editing. I have a AttributePointer through which I know that at the time the user presses the enter key. But I need to know whether the focus has changed. Because there is the possibility that the user switches between the differnt cells with the arrow key or the tab key. But the AttributePointer only gives me the first selected cell.
Have anybody a suggestion to solve this problem -  it seemed to be something like definingb a OnClick event for a input field (additionaly to the default OnEnter event...)
Best regards,
Sebastian

Hi,
You can find out at which row the editing goes, by using
onLeadSelect action of TableUIElement.
in onLeadSelect action you can find row number using this statement
int rownumber= wdContext.node<TableNode>().getLeadSelection();
Regards
LakshmiNarayana

Similar Messages

  • Highlighting input field and  table cell column in red colour

    Hi,
           I have 4 input fields and a table in my screen. All the input fields are read only.
        I have a functionality where I have to highlight a input field with the red colour. In the sense, I have to put a thin Red border over the input field without thowing any errors or messages.
           Also, i have to highlight a particular cell in the table. i.e, i have to put Red colour border over the cell of the table for some rows only. Right now i have changed the background colour of the cell for required rows, but i need Red thin border rather than changing the entire background colour.
    Please guide me on achieving these functionalities..
    Thanks and Regards,
    -Shabir Rahim.

    Hi,
    The red thin lines border you are talking about comes from the framework during the exceptions. If this is the case then refer the following links, hope this will help you.
    [Re: Automatic message for inputfields with state=required]
    [Re: Validation of InputField]
    Well without exceptions, i dont think it will come.
    thanks & regards,
    Manoj
    Edited by: Manoj Kumar on Feb 7, 2008 12:09 PM

  • Issue with input field in table control

    Hi,
    I have an issue with field acgl_item-rstgr in the table control.
    I have created a screen program with a table control.
    In the control i have added a dictionary field as acgl_item-rstgr.
    When i execute, do f4 on the input field, select a value and press enter, then it is showing me
    error as 'Entry 'val' does not exist in T053R (check entry). Its really weird to understand this. I have selected the value
    from f4 and even then it says this. Its working for all other columns, but not working only for RSTGR.
    Plz help me on this regard.
    Code is like this.
    TYPES : BEGIN OF ty_rstgr,
              rstgr TYPE RSTGR,
             END OF ty_rstgr.
    TABLES : ACGL_ITEM.
    DATA : it_rstgr TYPE TABLE OF ty_rstgr.
    DATA : wa_rstgr TYPE  ty_rstgr.
    CONTROLS : table TYPE TABLEVIEW USING SCREEN 100.
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_0100.
    LOOP AT it_rstgr INTO wa_rstgr WITH CONTROL TABLE.
    ENDLOOP.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_0100.
      LOOP AT it_rstgr.
      ENDLOOP.
    Thanks,

    Hi Navitha,
    Its Check Table concepts for the error u stated. Please check wht the Search help ur using...Because for this field there is no search help at value table level...Use search help that hold all master data or create a custom search field in SE11 level or in program level.
    Cheers,
    Naveen

  • Dynamicaly setting SCREEN-INPUT field in TABLE CONTROL

    hai guys,
    in my table control i have REFNUM field and some other fields.
    now my task is,
    in every row,i have to enable the REFNUM field of table control for editing only if REFNUM is blank.
    else i shud disable it.(when REFNUM is filled).
    all other fields should be always disabled.
    (right now,i am just able to either totaly enable the entire REFNUM coloumn or or totaly disable it for editing,irrespective of the values it is holding.)
    shravan ramidi

    is this not possible?
    can some one confirm it..

  • Need help to get the user entered value from a input field in Table in OA

    I have a table in my OA page.
    Here one column is there which should take in put from user.
    i.e an item quantity field text input is there which should take the updated value when the add to cart link which is next column in the table. On clicking of the link I am trying to get the updated value entered by user. for the respected row for which addto cart link get clicked.
    For that link I have defined some parameter through SPEL,( like this parameter name: item_quantity value : ${oa.MisibeItemSearchVO.ItemQuantity} ) which has fireaction. But when i am clicking the addto cart link I am not getting the current value entered by the user.
    Can any body guide me how to get that related value for which the add to cart link got clicked.
    for this when i am doing pageContext.getParameter("item_quantity"));
    I am not getting the value entered by user.
    please suggest me
    Thanks!
    Smarajeet

    The below is my Vo query for item quanity i am using a dummy query "(select null from dual) as ITEM_QUANTITY"
    in the below query and item type is number. and this is a messageTextINput in OA page and is maped to ItemQuantity vo attribute.
    SELECT idsi.section_item_id
    ,idsi.inventory_item_id
    ,(select concatenated_segments from mtl_system_items_kfv mstk
    where mstk.inventory_item_id = idsi.inventory_item_id
    and mstk.organization_id =idsi.organization_id) ITEM_NAME
    ,(select description from mtl_system_items_tl mtll
    where mtll.inventory_item_id = idsi.inventory_item_id
    and mtll.organization_id =idsi.organization_id
    and language = USERENV('LANG') ) ITEM_Description
    ,(SELECT CASE
    WHEN instr(msib.segment6,'NAMED USER') > 0 THEN 'NAMED_USER'
    WHEN instr(msib.segment6,'PROCESSOR')>0 THEN 'PROCESSOR'
    ELSE msib.segment6
    END
    FROM MTL_SYSTEM_ITEMS_B msib
    WHERE msib.INVENTORY_ITEM_ID = idsi.inventory_item_id
    AND msib.ORGANIZATION_ID = idsi.organization_id) LICENSE_TYPE
    ,(SELECT CASE
    WHEN instr(msib.segment6,'1 YR') > 0 THEN '1YR'
    WHEN instr(msib.segment6,'2 YR') > 0 THEN '2YR'
    WHEN instr(msib.segment6,'3 YR') > 0 THEN '3YR'
    WHEN instr(msib.segment6,'4 YR') > 0 THEN '4YR'
    WHEN instr(msib.segment6,'5 YR') > 0 THEN '5YR'
    WHEN instr(msib.DESCRIPTION,'Perpetual') > 0 THEN 'PERPETUAL'
    END TERM FROM MTL_SYSTEM_ITEMS_B msib
    WHERE msib.INVENTORY_ITEM_ID = idsi.inventory_item_id
    AND msib.ORGANIZATION_ID = idsi.organization_id) TERM
    ,(select qll.operand
    FROM qp_list_lines qll
    ,qp_pricing_attributes qpa
    WHERE qll.list_line_id = qpa.list_line_id
    AND qpa.product_attr_value = to_char(idsi.inventory_item_id)
    AND qll.list_header_id = 439381
    AND sysdate between NVL(qll.start_date_active, sysdate) and NVL(qll.end_date_active, sysdate+1)
    AND qpa.list_header_id = qll.list_header_id
    AND qpa.product_attribute = 'PRICING_ATTRIBUTE1'
    AND qpa.product_attribute_context = 'ITEM'
    AND NVL(qpa.pricing_attribute_context,'MIXED') = 'MIXED') ITEM_PRICE
    ,(select null from dual) as ITEM_QUANTITY
    ,(select currency_code from qp_list_headers_b where list_header_id =439381) currency_code
    ,(select segment1 from mtl_system_items_b msib
    where msib.inventory_item_id = idsi.inventory_item_id
    and msib.organization_id =idsi.organization_id) PART_NUMBER
    FROM ibe_dsp_section_items idsi
    ,ibe_dsp_msite_sct_items idmsi
    ,( select distinct child_section_id
    from IBE_DSP_MSITE_SCT_SECTS b
    connect by PRIOR child_section_id = parent_section_id
    start with parent_section_id =:1
    and mini_site_id =1
    UNION
    select distinct child_section_id
    from IBE_DSP_MSITE_SCT_SECTS b
    where child_section_id =:1
    and mini_site_id =1
    ) csi
    WHERE idsi.organization_id = 101
    AND idmsi.section_item_id = idsi.section_item_id
    AND idsi.section_id = csi.child_section_id
    AND idmsi.mini_site_id = 14409

  • Read xml and load fields into table + steps needed in Oracle.

    Dears,
    I have a xml file as below
    <service>
    <header>
    <ID="arte23" />
    </header>
    <body>
    <apId="1234567890" sId="012345678" sType="test">
    <capId="1454567890" sId="012345678" sType="test">
    </body>
    </service>
    just given sample xml, kindly neglec the errors.
    now I need to load sID which comes along with apId in one column and capid in another column.
    when tried with xmldom etc getting ORA-31011: XML parsing failed.
    kindly help me out.
    Edited by: 873718 on 20-Jul-2011 03:28

    here is the sample full xml.
    I just need to capture the values of the follwing.
    under papid I need sid value i.e. "012345678"
    need this 2 cdcid="112435" name="i-A B C" ( where ever it occurs whole occurences capture).
    under idet need is="fine"
    under all <sc>s if there the capid then need sids...
    also need of <or oid="123456789" /> value.
    <service>
    <header>
    <ID="aaaaaaaaaaaaa23Aaa" />
    </header>
    <body>
    <papid="1234567890" sid="012345678" sType="XX X">
    <capid="1234567890" sid="012345678" sType="XX X">
    <cdcid="112435" name="i-A B C" icn="Switch Srv In dialling" icid="10" />
    <idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" iaid="XXX#19190000#47853#2#A##" bi="false" bulkQuantity="1" at="ddd" />
    <sc>
    <capid="1949187621">
    <cdcid="102912" name="c C" icn="Switch Feature" icid="6" />
    <idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
    <sc>
    <capid="1949187623">
    <cdcid="99611" name="c C n" icn="Switch Feature" icid="6" />
    <idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
    </component>
    <capid="1949187624">
    <cdcid="102916" name="c C ip" icn="Switch Feature" icid="6" />
    <idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
    </component>
    <capid="1949187626">
    <cdcid="102917" name="c C ip n" icn="Switch Feature" icid="6" />
    <idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
    </component>
    <capid="1949187628">
    <cdcid="102915" name="c C ip u" icn="Switch Feature" icid="6" />
    <idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
    </component>
    </sc>
    </component>
    <capid="1949187629">
    <cdcid="34032" name="c C ip c" icn="Switch Feature" icid="6" />
    <idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
    </component>
    <capid="1949187631">
    <cdcid="112396" name="C s" icn="Switch Feature" icid="6" />
    <idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
    <sc>
    <capid="1949205880">
    <cdcid="112397" name="I O" icn="Switch Feature" icid="6" />
    <idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
    </component>
    </sc>
    </component>
    <capid="1949187632">
    <cdcid="37701" name="C- T" icn="Switch Feature" icid="6" />
    <idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
    </component>
    <capid="1949187634">
    <cdcid="40537" name="I M" icn="Switch Feature" icid="6" />
    <idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
    <sc>
    <capid="1949205882">
    <cdcid="115869" name="I O P" icn="Switch Feature" icid="6" />
    <idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
    </component>
    </sc>
    </component>
    <capid="1949187636">
    <cdcid="99612" name="V C" icn="Switch Feature" icid="6" />
    <idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
    <sc>
    <capid="1949187637">
    <cdcid="113106" name="M b" icn="Switch Feature" icid="6" />
    <idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
    </component>
    <capid="1949187639">
    <cdcid="111930" name="val in" icn="Switch Feature" icid="6" />
    <idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
    </component>
    <capid="1949187640">
    <cdcid="111931" name="M o" icn="Switch Feature" icid="6" />
    <idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
    </component>
    </sc>
    </component>
    <capid="1949205894" sid="012345678">
    <cdcid="112402" name="ip ran" icn="Range" icid="11" />
    <idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
    <sc>
    <capid="1949205895" sid="012345678">
    <cdcid="112405" name="XX X Indialing Number" icn="Subscription Number" icid="7" />
    <idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
    </component>
    <capid="1949205900" sid="012345671">
    <cdcid="112405" name="XX X Indialing Number" icn="Subscription Number" icid="7" />
    <idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
    </component>
    <capid="1949205904" sid="012345672">
    <cdcid="112405" name="XX X Indialing Number" icn="Subscription Number" icid="7" />
    <idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
    </component>
    <capid="1949205907" sid="012345673">
    <cdcid="112405" name="XX X Indialing Number" icn="Subscription Number" icid="7" />
    <idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
    </component>
    <capid="1949205910" sid="012345674">
    <cdcid="112405" name="XX X Indialing Number" icn="Subscription Number" icid="7" />
    <idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
    </component>
    <capid="1949205913" sid="012345675">
    <cdcid="112405" name="XX X Indialing Number" icn="Subscription Number" icid="7" />
    <idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
    </component>
    <capid="1949205916" sid="012345676">
    <cdcid="112405" name="XX X Indialing Number" icn="Subscription Number" icid="7" />
    <idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
    </component>
    <capid="1949205919" sid="012345677">
    <cdcid="112405" name="XX X Indialing Number" icn="Subscription Number" icid="7" />
    <idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
    </component>
    <capid="1949205922" sid="012345678">
    <cdcid="112405" name="XX X Indialing Number" icn="Subscription Number" icid="7" />
    <idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
    </component>
    <capid="1949205930" sid="012345679">
    <cdcid="112405" name="XX X Indialing Number" icn="Subscription Number" icid="7" />
    <idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
    </component>
    </sc>
    </component>
    <capid="1949206824" sid="023345679">
    <cdcid="112401" name="ip test" icn="Range" icid="11" />
    <idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
    <sc>
    <capid="1949206825" sid="023345679">
    <cdcid="112403" name="ip test num" icn="Subscription Number" icid="7" />
    <idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
    </component>
    </sc>
    </component>
    <capid="1949206828" sid="153345679">
    <cdcid="112401" name="ip test" icn="Range" icid="11" />
    <idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
    <sc>
    <capid="1949206829" sid="153345679">
    <cdcid="112403" name="ip test num" icn="Subscription Number" icid="7" />
    <idet stdate="2011-07-20T 12:34:12" vs="Ord" is="fine" edat="2015-07-20T 13:34:12" bi="false" bulkQuantity="1" />
    </component>
    </sc>
    </component>
    </sc>
    </component>
    <or oid="123456789" />
    </product>
    </body>
    </service>
    ----------------------------------------------------------------------------------------------------------------------------------------------------------------

  • Add data to table view from input fields in a page

    Hi
            I am developing a BSP page which will be called from SRM shop transaction. After user enters the line item data, data will be passed back to shop transaction using OCI interface and the page attributes (URL).
       (1) How can I add data from input fields to table view on a page on a button click? I am able to add first line but I could not retain first line data when I try to add the second line.
          I am able to add multiple lines to table view if I use view and controller by adding to the line data to static attribute of the controller. I can’t use the controller and view because I can not set the attribute to Controller automatically.
       (2) Is there a way to pass an attribute (URL) to controller from SPRO? Like we pass an attribute to page automatically (Automatic page attribute).
       (3) How can I call a controller and view and pass the page attribute to the controller on a button click from a page with out controller?
    Thanks
    Sreenivas

    I'm trying to test the merge with the following data in a test.txt file:
    ZZZZZ114923000004
    1234Z400660000001
    ZZZZZ114923000010
    Getting an error:
    SQL> @C:\dataformats\sql\pc12seriesMerge.sql
    Directory created.
    SP2-0552: Bind variable "17" not declared.
    SQL>
    here it the pc12seriesMerge.sql file
    set serveroutput on
    create or replace directory user_dir as 'c:\dataformats\incoming\';
    DECLARE
    v_filename VARCHAR2(100); -- Data filename
    v_file_exists boolean;
    v_file_length number;
    v_block_size number;
    f utl_file.file_type;
    s varchar2(200);
    lineString varchar(200);
    v_account varchar(5);
    v_IDN varchar(6);
    v_quantity varchar(6);
    BEGIN
    v_filename := 'TEST.TXT';
    DBMS_OUTPUT.PUT_LINE(v_filename); --shows filename
    utl_file.fgetattr('USER_DIR', v_filename, v_file_exists, v_file_length ,v_block_size );
    IF v_file_exists THEN
    dbms_output.put_line('File Exists');
    create table ext_table (
    account varchar2(5),
    idn number(6),
    quantity varchar2(6)
    organization external (
    type oracle_loader
    default directory user_dir
    access parameters (
    records delimited by newline
    fields (
    account position(1:5) char(5),
    idn position(6:11) char(6),
    quantity position(12:17) char(6)
    location ('test.txt')
    reject limit unlimited;
    MERGE INTO id_req_stg t
    USING (
    SELECT account,
    idn,
    decode(quantity, '-', 0, to_number(quantity)) as quantity
    FROM ext_table
    ) v
    ON ( t.account = v.account AND t.idn = v.idn )
    WHEN MATCHED THEN
    UPDATE SET t.quantity = v.quantity
    DELETE WHERE t.quantity = 0
    WHEN NOT MATCHED THEN
    INSERT (account, idn, quantity)
    VALUES (v.account, v.idn, v.quantity);
    ELSE
    dbms_output.put_line('File Does Not Exist');
    END IF; -- file exists
    EXCEPTION
    WHEN UTL_FILE.ACCESS_DENIED THEN
    DBMS_OUTPUT.PUT_LINE('No Access!!!');
    WHEN UTL_FILE.INVALID_PATH THEN
    DBMS_OUTPUT.PUT_LINE('PATH DOES NOT EXIST');
    WHEN others THEN
    DBMS_OUTPUT.PUT_LINE('SQLERRM: ' || SQLERRM);
    END;
    /

  • How do we validate input fields on the selection screen

    How do we validate input fields on the selection screen

    hi balram,
    u can validate input fields using <b>AT SELECTION-SCREEN</b>  Event.
    PARAMETERS : p_werks TYPE marc-werks.
    AT SELECTION-SCREEN ON p_werks.
    SELECT SINGLE *
    FROM t001w
    WHERE werks = p_werks.
    IF sy-subrc <> 0.
    MESSAGE 'Invalid Plant' TYPE 'I'.
    ENDIF.
    Like this, we can validate user input for plant.
    check this link:
    http://help.sap.com/saphelp_nw04s/helpdata/en/9f/db9a2e35c111d1829f0000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/56/1eb6c705ad11d2952f0000e8353423/content.htm
    Reware me if useful......
    Harimanjesh AN

  • HTMLB .. Input field event handling..

    Hi guys,
    I have a input field htmlb in my jsp. I have to handle on blur event for this.. i.e if a user gives in somethin in the input field and once it looses focus, a event should get triggered. And probably in my case it will be helpful for me if I have this event handler method in the dynpage. For this kind of event handling what should I write in the followin tag
    <htmlb:inputfield id="" value="" width=""> plz tell me a tag attribute which supports this event.
    Regards,
    PP.

    Hi Priyanka,
                      You can get reference of your input field in JSP into DynPage. Do like this:
    Declare input field in JSP
    <hbj:inputfield id="input"  value="test">
    In DynPage, get refernce of the input field
    Wherever you want to trigger event
    InputField myInputField =(InputField) getComponentByName("input");
    myInputField.setClientEvent();
    Hope this helps.
    regards,
    Siva
    Note: If you get success, please post the solution before you close this thread.
    Message was edited by:
            Siva Rama Krushna

  • Digital Signature Turns Invalid while setting the Property Dynamically to an Input Field

    I have an Input box that turns mandatory only if a check box is clicked.
    The Script goes Something Like This;
    if(chkbox.rawValue === 1){
         inputField.mandatory = "error";
         inputField.mandatoryMessage = "This Field cannot be left Blank";
         inputField.presence = "visible";
    } else {
         inputField.mandatory = "disabled";
         inputField.mandatoryMessage = "";
         inputField.presence = "hidden";
    I am working with Assembler Service and the Signature field is placed in the cover page after which this form is attached.
    Any clue of why the property change Invalidates the Signature?
    Note: The stand alone form where the Check box and Input field is present doesnot have a preSign event as this form doesnot contain a Signature field unless its merged using assembler. This Script is added to the Click Event of the Checkbox.
    Cheers
    Mahesh Krishnan

    weblogic.common.resourcepool.ResourceDisabledException: Pool mds-soa is Suspended, cannot allocate resources to applications ..Check server logs to find out why mds-soa is suspended. Make sure that datasource mds-soa is up and running on SOA servrs before deploying an application.
    Regards,
    Anuj

  • OnClick event for a button

    hi! i did up a form using the wizard and added an extra button besides the usual update,reset etc.
    i need the onClick event of the extra button to call up a pl/sql procedure, pass in a parameter and ideally open up the report/chart in a new window and without the toolbars etc.
    i tried the following:
    phang.aresulttally?qid_p='QUESTION_RESULT.MASTER_BLOCK.QID.01.value'
    where QUESTION_RESULT.MASTER_BLOCK.QID.01.value is a text box value from the form.
    It gives me some scripting error when i run the form.
    but if i use the following:
    phang.aresulttally?qid_p=2
    it works and opens in a new window?!
    pls advise.
    thx

    For the onClick javascript event of the new button, call your own javascript function as:-
    myFunc(this);return;
    Then, you need to generate this javascript function using pl/sql in the Additional pl/sql Section - ... before displaying the page or ... after displaying the page.
    The code to get the value of a field and to open a new window would look something like :-
    htp.p('
    <script>
    function myFunc(ele)
    var l_form = ele.form;
    var win;
    var val;
    var l_url = "<url>?";
    for (var i = 0; i < l_form.length ; i++){
    if (l_form.elements.name == "QUESTION_RESULT.MASTER_BLOCK.QID.01"){
    val = l_form.elements[i].value;
    l_url = l_url+val;
    win=window.open(l_url);
    </script>

  • How to set focus on a input field in a selected row of a table?

    In a previous discussion (http://scn.sap.com/thread/3564789) I asked how to access an input (sap.m.Input) field of a selected row in a table. In the answer that was supplied I was shown how to get the items of the table. Then using the selected index to get the selected item get the cells. Then I could set editable on the proper cell(s). This worked fine.
    Now I need to set the focus on one of the fields. I tried something like this:
                var oNewLink = table.getSelectedItem();
                var oNewLinkName = oNewLink.getCells()[1];
                oNewLinkName.focus();
    But this doesn't seem to work.
    I have searched through other discussions and have seen this technique for putting focus on a field if you have its ID:
    sap.ui.getCore().byId(id_of_the_input_field).$().focus();
    In my case though I do not have an ID since the row and its cells are generated. How can I set focus on the cell of a certain row in a table?

    Hello Venkatesh. Yes that code does work. First I tried it on a table cell that was already rendered and it did work. The next time I tried it on a table row that was being added and it did not work there. So I added an on after rendering function for the table and added that code there. That did not work until I added a delay (timeout) to do a context switch before calling the focus and that worked.
    Once last thing though sometimes when I call focus on an input field (actually in a table row cell) if the field has text in it already the flashing cursor is at the beginning of the text and other times it is at the end of the text (which is the desired way). It depends on where I click in the row. Is there anyway to make sure the flashing cursor is at the end of the text when the focus is applied to a field that contains text?

  • Error in validation an input field in a table ui and high lighting the cell

    Hello All,
    I have a table ui in one of my application.   This table has, say 6 columns; out of these 6 columns 4 columns are shown as input fields.  User needs to put in some numbers in two of the fields.  I need to capture these two number fields data and subtract one from the other.  If number is negative , I need to let the user know by error message that the number is negative and they need to fix their input to make the answer positive.  I am able to do all this, but I am not able to high light the corresponding field which needs to be fixed.  Is there anyway I can do that...I mean high light the particular field as one gets it when we use the "report attribute error message" method of message manager class. 
    Secondly I can not halt the application, I need to do some work around for that using some flags.  Is there a simple way to halt the application, other than using flags and if condition?  I searched this forum, but could not find any definite answer....
    Thanks very much!
    Any help would greatly be appreicated.

    Hi....
    First you should have the table values in an internal  table.... for that yo need to get the values from the context like this....
    *DECLARE INTERNAL TABLE AND WORKAREA.
    data ls_nd_stru type wd_this->element_<node name>
    data lt_nd_table type wd_this->elements_<node name>
    get all declared attributes
    lo_nd_<your context node>->get_static_attributes_table(
                                               importing
                                               table = lt_nd_table ).
    *now your lt_nd_table will have the values.....what ever you have in the table.
    *then
    loop at lt_nd_table into ls_nd_stru.
    <.....your logic.....>
    <ie., read the current line of the field like
    ls_nd_stru-<field name1> = ls_nd_stru-<field name2> - ls_nd_stru-<field name3>
    then check error msg... based on your postive or negative values
    endloop.
    Hope this will help you....
    Thanks & regards
    Raja

  • Dynamic output & input fields in the table control

    HI Guys,
    How can one change the attribute of  input field to output field basically greying of field) dynamically
    based on the some flag. Loop at screen does not work. I need to change the attributes
    of field 'outfiled' and output field display only'.
    Any help is highly appreciated.
    Regards,
    Harsha

    Hi Harsha,
    I generated a table control (ERP 6.2) and somewhere I found the coding like this (the name of the table control is TABLE_CONTROL):
    *&spwizard: output module for tc 'TABLE_CONTROL'. do not change this lin
    *&spwizard: get lines of tablecontrol
    module TABLE_CONTROL_get_lines output.
      g_TABLE_CONTROL_lines = sy-loopc.
    If I do a loop at the screen at this place, I can control the individual input/output for the screen fields (the table fields). In my work area (WA_CONTROL) I can see the actual value of fields. Depending on this, I choose to enable/disable input via:
    loop at screen.
    if wa_control-material <> ' '.
    screen-input = '0'.
    modify screen.
    endif.
    endloop.

  • Focus for the input ready field in table

    Hi,
    i have few questions
    1. i have table with tool bar button "add row" when i click that it will add a row with input ready field,  but here i need scroll down for that, but what i need is it should automatically put the focus on it. please suggest how can i do that.
    2.  I have save button, when ever user enters improper input in the above input ready fields, i am giving error message, problem is it is clearing my table data at the same time, Please suggest where should i raise the error message.
    3. i need two columns to be fixed in the table, while scrolling horizontally.
    Please give your suggestions.

    Hi,
    Check the component for example wdr_test_table for COLUMN SCROLLING.
    If you have 15 columns to be shown. Set the first 2 columns as (LEFT as fixed) and scrol count as 4.
    For the first 2 columns set the property FIXED POSITION as LEFT and for table property scrollable colcount as 5.
    Then you will get the scrolling adn also columns as fixed.
    Regards,
    Lekha.

Maybe you are looking for

  • Onclick of a button needs to open a popup

    Hi, I have a textbox and button.Instead of entering a code in a text box i need to clcik on searchcode button and needs to open a popup window with a list and in that list i need to select a code and enter in the text box.How to ahieve this please he

  • Planer Profile

    In GP12N I am getting below mentiond error with profit center Can any one suggest possible reason.? While saving error is coming : msg no. : FAGL_ORG_UNITS001 Profit center 47299000 not found in controlling area 1001 Edited by: sumathi lakshmi on Mar

  • Manual setting of date and time-..

    After finally getting my ATV3 updated to 6.2 via an iTunes restore with USB. I am now stuck at the activating screen with the sub note of setting date and time. I have reset and restored multiple times now. Reset my entire network. Disconnected cable

  • NCS 1.1.0.58

    I am using the ncs 1.1.0.58 along with mse 3300 and google chrome 12.0.742.100. That is what the cisco docs tell me to use for web browser. So here is what I do: Click on Monitor RFID Tags Total Tags - One tag - I click on the number 1 Tag mac addres

  • New xperia z1 update

    Hey there is a new xperia z1. Whats on the update?? Like what's new?