Popping up values into dropdown field while form initialize

I have a two drop down boxes  one showing Gender male/ female , another showing  caste_group code like BC,SC,ST,OC etc.. I have xml record data
with  name of the persons , employement no, gender, caste . so while form intialize time  i want to pop up names of persons in another drop down box based on the default  values in Gender and Caste_group drop down boxes. and  also employee code in to a textbox  named employee code. .As i newbie to javascript. iam struggling . plesse anybody help me.  i added values in to gender and caste_group values directly.
here
xfa.event.newText  is it applicable .

Paul
yes. Mr. paul.you are correct.  The xml file has the records of Gender & Caste_group & Employee no. & name at the same index. Through java script how to populate the names of employees at the runtime based on the  values selected from other dropdowns of Gender and Caste_group.waiting for your reply. thank you
with regards
Prasad

Similar Messages

  • How to put the SQL-statement returned value into the field (as a default)

    Hi,
    I am using Developer/2000 (Forms Designer) under windows 98.
    Please tell me how to put the SQL-statement value (as a default value) into the field before enter-query mode. Noted that I have tried the following ways but still some problems:-
    1) Place the SQL-statement into PRE_QUERY trigger in the form/block level.
    There is a message box which ask 'Do you want to save the changes?'.
    2) Place the SQL-statement before execute enter_query. There is still a
    message box which ask 'Do you want to save the changes?'.
    Any hints? Thanks. Urgent.

    solved it!
    1) Suppress DEFAULT save message
    if form_failure then
    raise form_trigger_failure;
    end if;
    2) Place the default value before enter-query.
    Ref: Title='Default value in query field in ENTER_QUERY mode' in designer forum by CVZ
    form level trigger
    ============
    WHEN-NEW-ITEM-INSTANCE
    =======================
    if :system.mode = 'ENTER-QUERY' then
    :block.item := 'default waarde';
    end if;
    3) Suppress the changes whenever leaving the default field.
    if :block.item is null then
    -- assign statement
    end if;

  • Multiple Checkbox Values Into One Field

    Hopefully someone can help me with this issue I'm having.
    I'm trying to save the values of multiple selected checkboxes into one field separated by commas through ADDT's Insert Transaction code. I can do this easily with DW's standard insert record wizard by using the PHP implode() function but I haven't been able to figure it out with ADDT's code.
    <form>
    <input type="checkbox" value="1" name="program[]" /> Program One
    <input type="checkbox" value="2" name="program[]" /> Program Two
    <input type="checkbox" value="3" name="program[]" /> Program Three
    <input type="checkbox" value="4" name="program[]" /> Program Four
    </form>
    THIS IS ADDT'S CODING
    $ins_quoteManager->addColumn("programs", "STRING_TYPE",  "POST", "programs");
    THIS WORKS VIA DREAMWEAVER'S INSERT RECORD WIZARD
    Original: GetSQLValueString($_POST['programs'], "text"),
    Modified: GetSQLValueString(implode(',',$_POST['programs']), "text"),
    Anyone know how to modify the ADDT code with the implode function to get this to work?

    Have you tried ADDT´s "comma-separated checkboxes" form control, which will also store the values into a field of your choice (and of course retrieve them from there on update record - pages) ? The only possible drawback might be, that the checkboxes can´t be defined statically, means that the array of value/label - pairs will be retrieved from another table by establishing an additional recordset.
    Cheers,
    Günter

  • Get values in dropdown field based on f4 help in another field

    Hi Experts,
    How to Get values in dropdown field based on another field which is F4 Help. If I select one value in f4 help field(ex: 1) I need to get values in dropdown field (ex:a, b, c),If I select another value in f4 help (ex:2) I need to populate different values (ex: d). Can any one please provide sample code that can help more.
    Thanks,
    Ashok.
    Moderation: Kindly search and find the solution, before you post.

    Dear Ashok,
    You can take help from this program in SAP named BCALV_EDIT_08.
    Thanks.
    With regards.

  • To populate values into single field in an internal table

    Hi Friends,
    How we need to populate values into single field in an internal table.
    E.g itab consits of single field ( name)
           i need to assign values to this field name .like
          peter,
          john,
          abrahm,
          daneyal
    Pls tell me i how i need to code for this
    Thanks ,
    Parnith

    Hi,
    Please look at the below code :
    DATA : BEGIN OF itab OCCURS 0 ,
             name(20) TYPE c,
           END OF itab.
    START-OF-SELECTION.
      itab-name = 'Peter'.
      APPEND itab.
      CLEAR itab.
      itab-name = 'John'.
      APPEND itab.
      CLEAR itab.
      itab-name = 'Abrahm'.
      APPEND itab.
      CLEAR itab.
      itab-name = 'Daneyal'.
      APPEND itab.
      CLEAR itab.
      LOOP AT itab.
        WRITE : / itab.
      ENDLOOP.
    Thanks,
    Sriram Ponna.

  • Setting the visibility of check box based on values of dropdown field

    Dear Experts,
    I have to set the checkbox visible/hidden based on the values of dropdown field.
    Request you to please provide code example.
    Regards,
    Upendra

    Hi,
    For capturing the selected value from the dropdown (ComboBox in SAPUI5) field use the change event of the combobox UI element. Within this you can get the selected value using the getLiveValue() method of the combobox.
    Then depending on the value you can set the visible boolean property of your checkbox.
    Refer to the link ComboBox for more details.
    Regards,
    Saurabh

  • Default value in dropdown field for FPM form in HCM Processes and forms

    Hi Experts,
    I am developing HCM Processes and forms using FPM forms and I had a dropdown list contains ten values. So, every time while opening the form first time, my dropdown field should be defaulted with fifth value from the list. How can we achieve this in dropdown field related to FPM Form.
    Please guide me.
    Regards,
    Nayani.

    You would have to assign the default value to one your custom generic services.
    Regards.
    PS: There are posts which talk about generic services , make yourself comfortable with the concept of generic services.

  • Populating values in dropdown fields on interactive adobe forms.

    Hi,
    In HCM Forms & Process, I have populated dropdown fields using generic service. But today I came to know we can also populate the dropdown field values using webdynpro lookup tables. First question, Is that a wrong method to populate the dropdown field values using generic service. Second question, If I populate the dropdown field values using lookup tables does the performance will increase when compared to populating from generic service. Please let me know.
    Regards,
    Nayani.

    Hi,
    In HCM Forms & Process, I have populated dropdown fields using generic service. But today I came to know we can also populate the dropdown field values using webdynpro lookup tables. First question, Is that a wrong method to populate the dropdown field values using generic service. Second question, If I populate the dropdown field values using lookup tables does the performance will increase when compared to populating from generic service. Please let me know.
    Regards,
    Nayani.

  • How to get selected-value of dropdown-field in alv ?

    Hello experts,
    I have a alv-table with dropdown-field.
    When I open the dropdown I am able to select another value.
    Now I use method ON_CLICK with  ON_CELL_ACTION, and when
    I change value in my alv, system jumps into this mehtod.
    But how do I get now the selected dropdown value in this method ?
    I use following code in comp-wdini in order to declare the dropdown:
    Dropdownfield
      DATA: lr_dp TYPE REF TO cl_salv_wd_uie_dropdown_by_key.
      DATA: lr_node TYPE REF TO if_wd_context_node_info.
      DATA: lt_valueset TYPE wdr_context_attr_value_list.
      DATA: ls_valueset TYPE wdr_context_attr_value.
      DATA : lr_nodeinfo TYPE REF TO if_wd_context_node_info.
      DATA  wa TYPE cdbc_tj30t.
      DATA: lr_drdn_by_index TYPE REF TO cl_salv_wd_uie_dropdown_by_idx.
      SELECT *   FROM cdbc_tj30t INTO wa WHERE stsma = 'CRMOPPOR' AND
        spras = 'DE'.
        ls_valueset-value = wa-estat. " actual values
        ls_valueset-text = wa-txt30. " text displaying on the dropdown
        APPEND ls_valueset TO lt_valueset.
      ENDSELECT.
      LOOP AT lt_columns INTO ls_column.
        CASE ls_column-id.
          WHEN 'CONCATSTATUSER'.
            CREATE OBJECT lr_drdn_by_index
              EXPORTING
                selected_key_fieldname = ls_column-id.
            lr_drdn_by_index->set_valueset_fieldname( 'VALUESET' ).
            lr_drdn_by_index->set_type( if_salv_wd_c_uie_drdn_by_index=>type_key_value ).
            ls_column-r_column->set_cell_editor( lr_drdn_by_index ).
         ENDCASE.
      ENDLOOP.
    In view-ini I fill the table which is bound to my alv-table:
    LOOP AT lt_list_opportunities INTO lstru_list_opportunities
          WHERE status = ls_opportunity_status-estat AND
         valid_to <= ls_input-bdate AND valid_from >= ls_input-vdate.
        ls_opportunities-valueset = lt_valueset.
        MOVE-CORRESPONDING lstru_list_opportunities TO ls_opportunities.
        APPEND   ls_opportunities TO ltt_list_opportunities.
      ENDLOOP.
      lo_nd_opportunities = wd_context->get_child_node( name =
      wd_this->wdctx_opportunities ).
      lo_nd_opportunities->bind_table( new_items = ltt_list_opportunities ).
    HOW can I now get the slected dropdown values in ON_CLICK with  ON_CELL_ACTION method ?
    Thanks for answers !!
    Gerd

    Hello Abap,
    when I have selected the value in the dropdown-box, then the event should start, and then I should have the
    selected values of the dropdown box.
    Hope you can help me !
    Gerd

  • How do I insert multiple values into different fields in a stored procedure

    I am writing a Stored Procedure where I select data from various queries, insert the results into a variable and then I insert the variables into final target table. This works fine when the queries return only one row. However I have some queries that return multiple rows and I am trying to insert them into different fields in the target table. My query is like
    SELECT DESCRIPTION, SUM(AMOUNT)
    INTO v_description, v_amount
    FROM SOURCE_TABLE
    GROUP BY DESCRIPTION;
    This returns values like
    Value A , 100
    Value B, 200
    Value C, 300
    The Target Table has fields for each of the above types e.g.
    VALUE_A, VALUE_B, VALUE_C
    I am inserting the data from a query like
    INSERT INTO TARGET_TABLE (VALUE_A, VALUE_B, VALUE_C)
    VALUES (...)
    How do I split out the values returned by the first query to insert into the Insert Statement? Or do I need to split the data in the statement that inserts into the variables?
    Thanks
    GB

    "Some of the amounts returned are negative so the MAX in the select statement returns 0 instead of the negative value. If I use MIN instead of MAX it returns the correct negative value. However I might not know when the amount is going to be positive or negative. Do you have any suggestions on how I can resolve this?"
    Perhaps something like this could be done in combination with the pivot queries above, although it seems cumbersome.
    SQL> with data as (
      2        select  0 a, 0 b,  0 c from dual   -- So column a has values {0, 1, 4},
      3  union select  1 a, 2 b, -3 c from dual   --    column b has values {0, 2, 5},
      4  union select  4 a, 5 b, -6 c from dual ) --    column c has values {0, -3, -6}.
      5  --
      6  select  ( case when max.a > 0 then max.a else min.a end) abs_max_a
      7  ,       ( case when max.b > 0 then max.b else min.b end) abs_max_b
      8  ,       ( case when max.c > 0 then max.c else min.c end) abs_max_c
      9  from    ( select  ( select max(a) from data ) a
    10            ,       ( select max(b) from data ) b
    11            ,       ( select max(c) from data ) c
    12            from      dual ) max
    13  ,       ( select  ( select min(a) from data ) a
    14            ,       ( select min(b) from data ) b
    15            ,       ( select min(c) from data ) c
    16            from      dual ) min
    17  /
    ABS_MAX_A  ABS_MAX_B  ABS_MAX_C
             4          5         -6
    SQL>

  • How to split Value in a field while importing

    Hi,
    I want to split Value in Field and map it 2 target Field.
    Suppose Street field having values with House number and street name ,need to split  at House Number and street name and map it 2 fields
    EX : 1123 Dhuram Ave:    Need to split 1123 and Dhuram Ave ,need to map it to 2 target field.
    Here I don't have any delimeter in the field Value.
    Please help on this.
    Thanks,
    Madhu
    Edited by: Madhusudhan Honnappa on Nov 30, 2010 5:19 PM

    Hello.  I'm assuming this is a custom import as typically, standard extractors would have the house number and street already seperated into unique fields.  Here is a quick routine I tried out that would split the field.  Only thing I would add is that if writing this from scratch you would want to check that the first character is numeric and also that all characters before the space are numeric.  This routine assumes that the field will be like xx yy  where xx = house number and yy is the street.  Mainly, it would assume anything before the first space is the house number and anything after is the street.
    YLEN = STRLEN( YYINPUT ).
    YTIMES = 0.
    DO YLEN TIMES.
       IF YYINPUT+YTIMES(1) = SPACE.
          YOFFSET = YTIMES.
          "House Number" = YYINPUT(YOFFSET).
          YOFFSET = YTIMES + 1.
          "Street" = YYINPUT+YOFFSET.
          EXIT.
       ENDIF.
       YTIMES = YTIMES + 1.
    ENDDO.
    I'm sure there are many ways to go about this and may be some standard FMs you can call.  I just like trying to write it first to get a better understanding.  Not sure if this quick example will give you exactly what you need, but hopefully will at least give you a place to start.
    Thanks

  • Setting value in 'FROM' field while replying the mail

    Hi,
    I am working on one issue, In component CRMCMP_CCS_EML, while replying the email, i need to read the 'TO' field and on the basis of that i need to set the value in 'From' field. How can I recognize that this is a reply and not a new email. Also, could anyone please describe me in detail as i never work on email component before.
    Regards,
    Kamesh Bathla

    This issue has been resolved.
    I got the message mode by using
    message_mode = typed_context->mail->messagemode.
    got all the options for from address using
    lt_from_addresses[] = typed_context->mail->GT_DEFAULT_FROM_ADDRESSES[].
    got the original email address using
    lr_gdc ?= cl_crm_ui_data_context_srv=>get_instance( ).
    CALL METHOD lr_gdc->get_entity
    EXPORTING
    name = c_currinboxitem
    RECEIVING
    value = lr_inbox_item.
    CALL METHOD lr_inbox_item->get_property_as_value
      EXPORTING
        iv_attr_name = 'SOF_RCP_ADDR'
      IMPORTING
        ev_result    = lv_original_mail

  • Authorisation - Pasting of values into AUTH fields

    Hi Friends,
    I am working on 4.6c version - Authorisation under PFCG (Role maintenance). Is it possible to paste >8 values into the AUTH fields of an authorisation object in a single shot?
    If so, kindly share the solution.
    Regards,
    Vijay

    >
    vj vijay wrote:
    > Hi Friends,
    >
    > I am working on 4.6c version - Authorisation under PFCG (Role maintenance). Is it possible to paste >8 values into the AUTH fields of an authorisation object in a single shot?
    >
    > If so, kindly share the solution.
    >
    >
    > Regards,
    > Vijay
    Hey Vijay,
    you sound like a man on the mission - want everytihng done in a SINGLE SHOT
    I am not sure if i understand your requirement correctly, but my infernce is that you want to copy data from clipboard to the object values with little / no effort........(prime criteria )
    Well, have the values listed one below the other in a notepad, copy them ctrl+C and in SAP have the quick cut and paste option active.
    Now go to the object values and right click - you will have 7 rows of data copied, if you want more - repeat the exercise
    If you want to reach the moon, you have to pass-by some stars as well (Dumb and in-appropriate quote - I KNOW)
    If my understanding of the discussion is wrong - Blame it on the Monday morning Blues...............and have fun

  • How to insert a value into a field of binary type?

    I've been using Oracle for a while now but never dealt with BLOB
    or long raw type before. Does anyone here know how to insert a
    record into a field of either blob or long raw type?
    Any suggestions would be very appreicated.
    Thanks.

    pls used the loadfromfile procedure which is in the DBMS_LOB
    package to insert the data from external os file into blob data
    type column.
    Kunjan

  • How to send value into current field in table control ABAP

    Hi every one,
    Im from VietNam and I dont know much about SAP ABAP. Im find out more about it.
    I have a problem.
    I made a table control with a big internal table at input, it about more than 100 field.
    I can set cursor to the field that I want to send value to.
    And I want to know any way to send value to that field without use the table control's structure.

    Hi Nabheet,
    Chk this thread, it will be useful to u.
    Matchcode Dinamic colum in ALV grid control objects
    ***Reward Points if useful
    Regards
    Gokul

Maybe you are looking for

  • Mac OS 10.4.11 Update

    I'm wondering if there are any statistics regaurding the approval rating of the Mac OS X 10.4.11. I'd like to update, but I"ve read so many bad reviews, ranging from small operational anomalies to basic annihilation of the system. Would it be a good

  • Stopping DB adapter From Retrying.

    Hi, We want to stop the DB adapter from retrying when a fault occurs during the db call. For that we have set following properties to ZERO *<reference name="SampleAPI" ui:wsdlLocation="SampleAPI.wsdl">* *<interface.wsdl interface="http://xmlns.oracle

  • Original Ipad Question

    I just bought a brand new original IPAD (Ipad 1). Question when I try to get it to sync I get an error message reading pairing record is missing. Does anyone know how I can resolve this?

  • Copy and paste/drag problems

    The copy and paste functions are not working with my macbook and neither is dragging anything. I have used the command v and also edit copy and neither are working. Help please and thank you!

  • Cfloginuser - roles of object permission.  Array?

    Hello, wonderfully helpful people! Imagine a project that involves a corporate structure. Some users can only see themselves, some users can see one (or many) departments, and maybe an extra user or two. Some users can see everything. Etc. Now, expan