Enabling and disabling input filed based on the Dropdown values selection

HI,
I have a requirement with Adobe Interactive forms being called from HCM Forms & Processes. We have a drop-down list and a inputbox.
based on the values selected from the drop-downlist, the input box should be visible and hidden.
If the input value is visible, I got to send  some part of the value selected from the drop down to the input field.
i tried to write the following script in the click event of dropdown  but the input field is not appearing with any value selection.
if data.Layout.CH1.CHContent.ISR_DDL_1stSelected.rawValue = "00000000" then
data.Layout.CH1.CHContent.ISR_NEW_COST.presence = 'Visible' else
data.Layout.CH1.CHContent.ISR_NEW_COST.presence = "Hidden"
endif
Thanks in Advance,
VR.

Hi Mukesh,
THanks alot.
Yes,  The Split functionality is working.  I have added the code in 'Change' event and  for selecting the value from the Drop down, am  writing the code in the 'exit'.
In addition to this, I am populating the values to the drop down from the Generic service.  The problem is, while running  the  Process from Portal and check and send button,  the fields fetched from the generic service & the dropdown values are getting refreshed. i hope, this is because of the java script.
pls. suggest me if this can be handled .
Thanks &Regards,
Venkatesh.

Similar Messages

  • How to set a default value for a drop down list box and then apply cascading based on the default value in Infopath 2010.

    Hello Everyone
    I have two drop downs. Both are coming from look up fields from two lists. i want to set a default value(first list item) for the first drop down list box and then apply cascading based on the default value for the next drop down list box. I found one article(http://www.bizsupportonline.net/infopath2010/display-first-item-drop-down-list-box-infopath-2010.htm)
    where in i can set a default value but i can't apply cascading based on that default value. Any suggestions would be highly appreciated.
    Thanks
    Ramanjulu Naidu N

    Hey Ramanjulu,
    Take a look at the below article which I believe will answer your question.
    http://basquang.wordpress.com/2010/03/29/cascading-drop-down-list-in-sharepoint-2010-using-infopath-2010/
    Daniel Christian (MCTS)

  • Enabling and disabling the button in the multi record block

    hi all,
    i am using
    Forms [32 Bit] Version 6.0.8.24.1 (Production)
    Oracle Database 10g Release 10.2.0.1.0 - Production
    i have a multi record block each block contains a button(button is to approve the record in terms of changing the status)
    i have the items like date,remarks and button
    the button should be enabled if the remarks is not null otherwise it should be disabled.
    for this in pre-record trigger i have written
    if :record is null then
       set_item_property('button',enabled,property_false);
    else
          set_item_property('button',enabled,property_false);
    end if;what problem is enable and disable is impacting on all the buttons in the block. in other words if first record's remarks is null then all the records button is disabled. if first record's remarks column is not null then all the records of the button column is enabled.
    i have to make enable and disable the button for the corresponding record.that means if first record's remarks column is not null then only first records button should be enabled others should be disabled.
    Thanks..

    You need to set the No. of items displayed to 1 as Ammad had said, additionally you can set the X and Y Position (Just Y will do and having fixed X) of the button depending upon the current record.
    can u explain this part alone bit more (setting the position of x and y)You need to calculate the variable Y_POS depending upon the current position of the cursor that is the current record.
    You can find the current record Y_POS using combination of
    V_CURRENT_RECORD := :SYSTEM.CURSOR_RECORD;
    V_TOP_RECORD := GET_BLOCK_PROPERTY ('BLOCK_NAME', TOP_RECORD);
    V_ITEM_Y_POS := GET_ITEM_PROPERTY ('ITEM_NAME', Y_POS);
    -- Also needs to add the Y_POS of the relative other items in the muti-record block
    V_HEIGHT := GET_ITEM_PROPERTY ('BUTTON_NAME', HEIGHT);
    -- Note :- TOP_RECORD  Returns the record number of the topmost visible record in the given block.
    V_Y_POS := V_ITEM_Y_POS + ((V_CURRENT_RECORD - V_TOP_RECORD) * V_HEIGHT);
    -- You will need to add Distance between Items in records if anyThen you can Set the current Y_POS of the button.
    SET_ITEM_PROPERTY ('BUTTON_NAME', Y_POS, V_Y_POS);
    [/code[
    Hope this helps
    Best Regards
    Arif Khadas
    Edited by: Arif Khadas on Feb 24, 2011 4:58 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Selection screen, dynamic enable and disable of blocks

    Hi,
    i have several parameters in different blocks.i want to enable one block and disable other blocks depending on the radio button selection. could some one help me on this.
    for eg.
    radiobutton1.  under this text entries for date, time etc.
    radiobutton 2. under this text entries for location from, location 2,phone etc.
    so, if i select radio button 1 all the remaining text entries under other radio buttons should be disabled. how to do this.
    your help would be appreciated.
    Thanks,
    kranthi.

    Hi Kranthi,
    I am not sure what you meant by disabling all the selection screen fields. Are you saying ALL the selection screen fields or all fields that don't belong to the selected radio-button.
    Anyway, here is a sample code how you manipulate the selection screen. The key options to use are 'modif id', 'at selection-screen output' and 'loop at screen'.
    *------------------------ Selection Screen ---------------------------*
    SELECTION-SCREEN BEGIN OF BLOCK selscr WITH FRAME TITLE text-000.
    PARAMETERS: p_rad1   RADIOBUTTON GROUP rad1 USER-COMMAND a DEFAULT 'X',
                p_rad2   RADIOBUTTON GROUP rad1,
                p_rad3   RADIOBUTTON GROUP rad1.
    *-- Selection Screen for radio button 1
    SELECTION-SCREEN BEGIN OF BLOCK rad1 WITH FRAME TITLE text-001.
    PARAMETERS:     p_date   LIKE sy-datum DEFAULT sy-datum MODIF ID one.
    SELECT-OPTIONS: s_uzeit  FOR  sy-uzeit MODIF ID one.
    SELECTION-SCREEN END OF BLOCK rad1.
    *-- Selection Screen for radio button 2
    SELECTION-SCREEN BEGIN OF BLOCK rad2 WITH FRAME TITLE text-002.
    PARAMETERS: p_werks   LIKE t001w-werks MODIF ID two.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(6) text-003 MODIF ID two.
    SELECTION-SCREEN POSITION 8.
    PARAMETERS: p_chk  AS CHECKBOX DEFAULT 'X' MODIF ID two.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK rad2.
    *-- Selection Screen for radio button 3
    SELECTION-SCREEN BEGIN OF BLOCK rad3 WITH FRAME TITLE text-004.
    PARAMETERS: p_matnr   LIKE mkal-matnr MODIF ID tri,
                p_verid LIKE mkal-verid MODIF ID tri.
    SELECTION-SCREEN END OF BLOCK rad3.
    SELECTION-SCREEN END OF BLOCK selscr.
    AT SELECTION-SCREEN OUTPUT.
      IF p_rad1 = 'X'.
        LOOP AT SCREEN.
          IF  screen-group1 = 'TWO' OR
              screen-group1 = 'TRI'.
            screen-input = 0.
            screen-invisible = 1.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ELSEIF p_rad2 = 'X'.
        LOOP AT SCREEN.
          IF screen-group1 = 'ONE' OR
             screen-group1 = 'TRI'.
            screen-input = 0.
            screen-invisible = 1.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ELSEIF p_rad3 = 'X'.
        LOOP AT SCREEN.
          IF screen-group1 = 'ONE' OR
             screen-group1 = 'TWO'.
            screen-input = 0.
            screen-invisible = 1.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ENDIF.
    If you want to hide all the, I mean all except the radio-buttons, then simply loop at screen and modify every entry except the radio-button entries to screen-active 0. Something like this.
    LOOP AT SCREEN.
      IF SCREEN-NAME = 'RAD1' OR
         SCREEN-NAME = 'RAD2 OR
         SCREEN-NAME = 'RAD3'.
      ELSE.
        SCREEN-ACTIVE = 0.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
    Srinivas

  • How to display data in tableview based on a dropdown filter selection

    Hi All,
    I have implemented a flow logic based BSP page to display the SFLIGHTS table when I open this page it displays all records in the table SFLIGHTS. I would like the set a drop down box filter on CARRID and CONNIND. Only once the user selects the CARRID and CONNID and presses on display buttont the data for that selection in the drop down box should be displayed.
    Can you kindly share the code how I can put 2 drop down boxes and make the data retrieval on the page occur based on the dropdown box selection. The layout page is  as below. Appreciate if you could kindly share the code to implement this.
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content design="design2003" >
      <htmlb:page>
        <htmlb:form>
          <htmlb:tableView id              = "tv1"
                           visibleRowCount = "10"
                           selectionMode   = "lineEdit"
                           table           = "<%= flights %>"
                           filter = "SERVER"
                           sort = "server"
                           iterator        = "<%= iterator %>" />
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    Thanks
    Karen

    Yeh Karen,
    What  i have written is that only.. ok fine i will tell you in detail ok...
    first what you do is if ur wrking with MVC concept in *do request * add the code for the dropdown as
    select single connid from sflights into wa_sflights.
    this code will give you the coniid  in the dropdown ok
    if you not wrking with MVC ,if its just a Flow with page login then write the same code in Oninitialization
    now if you select the connid from the dropdown and you want to display the details of the that connid in the tableview .. rite?
    then in do handle event write the code when i have written before  if itsnot MVC add in oninputProcessing
    DATA: HTMLB_EVENT TYPE REF TO CL_HTMLB_EVENT,
    W_ID TYPE STRING,
    W_VARIABLE TYPE STRING,
    tvdata TYPE REF TO CL_HTMLB_TABLEVIEW.
    IF HTMLB_EVENT IS NOT INITIAL.
    W_ID = HTMLB_EVENT->ID.
    IF W_ID EQ 'dd_project_name' . ------>this is the name of the dropdown
        DATA ?= CL_HTMLB_MANAGER=>GET_DATA( REQUEST = RUNTIME->SERVER->REQUEST
                             NAME = 'dropdownListBox'
                             ID = 'dd_project_name' ).
        IF DATA IS NOT INITIAL.
          W_variable = DATA->SELECTION.
        ENDIF.
    if w_variable is not initial.
    select * from sflights into table lt_flights where connid eq w_variable.
    endif.
    now in the view you should
    <htmlb:tableView id = "tv1"
    visibleRowCount = "10"
    selectionMode = "lineEdit"
    table = "<%= lt_flights %>"
    filter = "SERVER"
    sort = "server" />
    Hope it works fine

  • How to enable/disable the input fields based on the data entered/user action in the web dynpro abap?

    How to enable/disable the input fields based on the data entered in the web dynpro application abap?  If the user enters data in one input field then only the next input field should be enabled else it should be in disabled state. Please guide.

    Hi,
    Try this code.
    First create a attribute with the name readonly of type wdy_boolean and bind it read_only property of input field of which is you want to enable or disable.
    Next go to Init method.
    Set the readonly value as 'X'.
    DATA lo_el_context TYPE REF TO if_wd_context_element.
         DATA ls_context TYPE wd_this->element_context.
         DATA lv_visible TYPE wd_this->element_context-visible.
    *   get element via lead selection
         lo_el_context = wd_context->get_element( ).
    *   @TODO handle not set lead selection
         IF lo_el_context IS INITIAL.
         ENDIF.
    *   @TODO fill attribute
    *   lv_visible = 1.
    *   set single attribute
         lo_el_context->set_attribute(
           name =  `READONLY`
           value = 'X').
    After that Go to the Action  ENTER.
    First read the input field ( first input field, which is value entered field) , next give a condition
    if input value is not initial  then set the readonly value is '  '.
    DATA lo_nd_input TYPE REF TO if_wd_context_node.
         DATA lo_el_input TYPE REF TO if_wd_context_element.
         DATA ls_input TYPE wd_this->element_input.
         DATA lv_vbeln TYPE wd_this->element_input-vbeln.
    *   navigate from <CONTEXT> to <INPUT> via lead selection
         lo_nd_input = wd_context->get_child_node( name = wd_this->wdctx_input ).
    *   @TODO handle non existant child
    *   IF lo_nd_input IS INITIAL.
    *   ENDIF.
    *   get element via lead selection
         lo_el_input = lo_nd_input->get_element( ).
    *   @TODO handle not set lead selection
         IF lo_el_input IS INITIAL.
         ENDIF.
    *   get single attribute
         lo_el_input->get_attribute(
           EXPORTING
             name =  `VBELN`
           IMPORTING
             value = lv_vbeln ).
    if lv_vbeln IS not INITIAL.
        DATA lo_el_context TYPE REF TO if_wd_context_element.
        DATA ls_context TYPE wd_this->element_context.
        DATA lv_visible TYPE wd_this->element_context-visible.
    *  get element via lead selection
        lo_el_context = wd_context->get_element( ).
    *  @TODO handle not set lead selection
        IF lo_el_context IS INITIAL.
        ENDIF.
    *  @TODO fill attribute
    *  lv_visible = 1.
    *  set single attribute
        lo_el_context->set_attribute(
          name =  `READONLY`
          value = ' ' ).

  • Enable and Disable the file paths

    Hai i have two file paths one logical file path and other is physical file path.
    I took two radio buttons.
    How can i enable and disable the file paths by using these radio buttons.
    When i select the 1st radio button then 1st file path is in enable and second file path in disable mode similarly for the second radio button also.
    It is very urgent .
    With Regards,
    Prasad.Tallapudi.

    i answered in your other post....here is the code again....
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    PARAMETERS: logfile type string default 'Z_DATALOAD',
    FILE(128) TYPE C DEFAULT 'nittest.txt' LOWER CASE.
    SELECTION-SCREEN END OF BLOCK B1.
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-001.
    PARAMETERS: P_LFILE RADIOBUTTON GROUP G1 USER-COMMAND C1 DEFAULT 'X',
    P_PFILE RADIOBUTTON GROUP G1.
    SELECTION-SCREEN END OF BLOCK B2.
    at selection-screen output.
      if p_lfile eq 'X'.
        loop at screen.
          if screen-name = 'LOGFILE'.
            screen-input = '1'.
            endif.
            if screen-name = 'FILE'.
              screen-input = '0'.
              endif.
              modify screen.
          endloop.
        endif.
        if p_pfile eq 'X'.
          loop at screen.
          if screen-name = 'LOGFILE'.
            screen-input = '0'.
            endif.
            if screen-name = 'FILE'.
              screen-input = '1'.
              endif.
              modify screen.
          endloop.
          endif.
    if the problem gets solved...please close both the posts

  • Can i export a list of all the webpages in my site, enabled and disabled?

    Hey Guys,
    Can i export a list of all the webpages in my site, enabled and disabled?
    I saw you could view all pages in the advanced view - but i am not sure if you can then export that as an excel file.

    hey Liam -
    but ftp doesnt show you what is enabled and disabled.
    also I don't think you can export an excel file from this?
    Pretty much i want this list - in an excel format!

  • My mac is the OS X 10.8.3.  I tried to update the latest Adobe flash player and kept getting 'Actionlist not found.'  I have uninstalled, enabled and disabled plug-ins and am still unable to download the update and now have no flashplayer at all.  Help!

    My mac is the OS X 10.8.3.  I tried to update the latest Adobe flash player and kept getting 'Actionlist not found.'  I have uninstalled, enabled and disabled plug-ins and am still unable to download the update and now have no flashplayer at all.  Help!
    PS I'm still new to Macs so the more broken down the better.

    Adobe Flash Player 11.8.800.42 is the most recent version from Adobe. It is a pre-release version. I am using it without any noticeable problems.
    The current stable version is Download 11.7.700.169.

  • I want to check the main diffrence in Pop up block enabled and disabled.But,i don't get any difference.Would u please help me to understand the difference using one practical example of website

    I want to check the main diffrence in Pop up block enabled and disabled.But,i don't get any difference.Would u please help me to understand the difference using one practical example of website

    Here's two popup test sites.
    http://www.kephyr.com/popupkillertest/test/index.html
    http://www.popuptest.com/

  • My Apple iPod Nano stops playing shortly after plugging in the correct headset, but works on docking station. I've tried enabling and disabling crossfade in settings. Any suggestions?

    My apple ipod Nano stops playing shortly after plugging in the correct headset. I've tried enabling and disabling crossfade in settings. Any suggestions?

    Make sure your headphones are plugged ALL the way in, meaning the white part of the headphones is flush with the Nano and you cannot see any silver from the plug still showing.
    B-rock

  • Can I enable and disable the system speaker under program control

    Can I enable and disable the system speaker under program control?
    I'm using LabVIEW 2010.
    The PC is running Windows XP Pro.
    Thank you

    A song???  I wouldn't exactly play them a "song" if you get my drift...
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • Accessing bits of the data bytes and enable and disabling

    Hello i want to send data byte to the CAN and enable and disable one of its bits how to do?

    Hey Uday,
    I am unsure of what CAN device you are using, as well as what type of programming language you would like to develop in. With that being said I will assume one of our PCI CAN cards and that you will be using LabVIEW to program. Please take a look at the NI-CAN manual for help on programming your CAN card, specifically with reference to chapter 7.
    Thanks again and have a great day!
    Regards,
    Nicholas K
    National Instruments
    Applications Engineer

  • Messaging Server 3.x: Is there an option to enable and disable the ETRN function?

    Is there an option in Messaging Server to enable and disable the ETRN function?
    <P>
    Yes. You can add the option for enabling and disabling the ETRN function by
    modifying the code in the file <BR>
    <P>
    <I>server-root</I>
    bin/mail/admin/html/SMTPChannelOptions.html
    <P>
    The original code to be modified will appear as follows:<BR>
    <P>
    <!-- ELEM txt="Allow SMTP command 'EXPN': " -->
    <!-- M_RADIO n="SMTP-Accept/Config/AllowEXPN" v="yes" -->
    Yes
    <!-- M_RADIO n="SMTP-Accept/Config/AllowEXPN" v="no" -->
    No
    <P>
    Modify the code to look like this:<BR>
    <P>
    <!-- ELEM txt="Allow SMTP command 'EXPN': " -->
    <!-- M_RADIO n="SMTP-Accept/Config/AllowEXPN" v="yes" -->
    Yes
    <!-- M_RADIO n="SMTP-Accept/Config/AllowEXPN" v="no" -->
    No
    <!-- ELEM txt="Allow SMTP command 'ETRN': " -->
    <!-- M_RADIO n="SMTP-Accept/Config/AllowETRN" v="yes" -->
    Yes
    <!-- M_RADIO n="SMTP-Accept/Config/AllowETRN" v="no" -->
    No
    <P>
    Making these changes will create an extra option to enable and disable the ETRN
    function on the SMTP Options page in the Administration Server.

    Yes, this is possible. In Cisco Webex Administration->Settings->Audio you can choose your audio (system-wide) options:
    WebEx Audio:
    Call In and Call Me service – Enables users to attend a teleconference by calling specified phone numbers or by receiving a Call Me call from the system.
    Call In – Enables users to attend a teleconference by calling specified phone numbers.
    OFF – Disables all calling features.
    Voice connection using computer
    ON
    OFF
    See also this section in the administartion guide.

  • I have tried all the steps you listed in your FAQ sextion on enabling and disabling cookies but I am still getting the error message "cookies not enabled" on certain websites. Now what do I do?

    I have tried every step you have listed in your FAQ section for enabling and disabling cookies but I am still getting error messages "cookies not enabled" on certain websites? Why is this and what do I need to do to fix this?

    I have STILL NOT received an answer to my question as of this date. I am VERY disappointed in Firefox support.

Maybe you are looking for

  • How to change network settings

    hello, so i just recently got my first macbook pro (yay me) and the day i was setting it up i was going through the start ups and all and when it came to the network connections i used a connection that is a guest connection for my home router and no

  • Problem with Updating clients with UNIX command

    Hi. Until this day, I used to update all our 50 client macs by manually logging in as administrator via ARD and choosing Software Update from the apple menu, this works always and I use our own servers SUS so the downloading is really fast. Still, th

  • ALV GRID DISPLAY

    Hi, I'm modifying a program with ALV Grid Display.There are lot of Classes and Methods which i don't understand. In my program, the Program is executes and displays an Output. Now in the O/P , when I dbl click a field of a row a POP up is displayed w

  • Screen Flicker when IDVD rendered project

    I have an Imovie HD composed of quicktime screen clips from SnapzProX. Movies are captured at 15-24 frames per second. When I view the preview, everything looks great. I export the entire project to a quicktime movie and it still looks great. I expor

  • Simple Action Script question

    This is probably a very basic question, but going through all my old Flash work didn't help me remember... I have my animation starting on the main stage with an image fading in. when that is done playing, at the end i want it to go to a movie clip o