Populating values in a dropdown field on the interactive form using WD ABAP

Hi All,
    I want to populate values in a dropdown field( of cardinality 0:n ) on interactive form,The values which i want to populate is from a 'z' table which i have created.I used a select query to fetch the entries but on my interactive form the values are flowing in many rows and not in the drop down.I want all the values to be in the dropdown.The dropdown is not showin even one value under it.I am using webdynpro abap and controls from webdynpro native.Can anyone guide me on this with a step by step procedure.
Useful suggestions will be rewarded.
Thanks and Regards,
Srividya.

You mean in PFR of controller , ie after user selects a record from LOV window and after its populated back into to the textItem on the main entry form ??
The value is displayed correctly in the intended textItem which has viewInstance and viewValue attached to it .
so this is what setup looks like
Entry form
Customer Name - lov
Customer Number(d) - Display Only - Populated by Lovmappings from LOV - mapped to Customer Number attribute on LOV window. It also has viewInstance and ViewAttrib assigned to it .
Save Action
At this point of time , i am assuming i already have value in Customer Number(d)since its displayed on the screen,rite ??
or Do i have to take the value in formValue and then explicitly do a setAttribute to set that value to view object /Customer Number(d)
hope this helps to understand the scenario

Similar Messages

  • Dropdown List in Adobe Interactive Form Using Webdynpro ABAP

    Hi Pals,
    In my scenarion I need to list the Rating Code in the Dropdown list box of the Interactive Form.
    Form Created by using SFP transaction
    Not XML Schema interface
    Passing the values to the Form by using the default function module that which created automatically while creating the Form
    Am binding the Field and also binding for the list Item. Even though the values are not listing.
    $record.sap-vhlist.<Field name>\.DATA\.FIELD.item[*]
    I have followed the above format , but no use ...
    Field Name : rating_code
    $record.sap-vhlist.RATING_CODE\.DATA\.FIELD.item[*]
    Field Name : value
    $record.sap-vhlist.VALUE\.DATA\.FIELD.item[*]
    but it is not working for me, will appreciate if some one really help me to fix this.!!!!
    Thanks & Regards
    Andy.

    For the form buttons to work on-line in your WebDynpro app, you need to change the PDF form to be Dynamic:
         if(firstTime){
              // We need to set the PDF to be Dynamic, for the form JavaScript code to work
              IWDPDFDocumentInteractiveFormContext pdfContext =
              WDPDFDocumentFactory
              .getDocumentHandler(wdThis.wdGetAPI(), "InteractiveForm")
              .getDocumentContext();
              pdfContext.setDynamic(true);
    In this code segment, "InteractiveForm" is the UI id.
    I was able to get that far, but I although I add subforms dynamically via javascript, the mapped WebDynpro context node doesn't pick up any new elements.
    ie:  if I start with two WD context elements (0..n) cardinality, then add a third via the form JavaScipt button, I see changes only in the two context elements when I submit.  A third context element isn't created or populated.

  • Blank value added to dropdown list in Adobe Interactive forms

    Hi,
    I see blank value being added to the value list by default to dropdown lists in adobe interactive forms. The real issue is it's being added sometimes as the first value or last value in the drop down list of values which is inconsistent and resulting in Errors sometimes.
    Is there a way by which we can control the position of the blank value added by default(SAP or Adobe) to the drop down lists in adobe interactive forms .? Secondly , Is this a SAP or Adobe upgrade issue since we observed this issue only after recent upgrades ...?
    I am using HCM processes and forms and I am not adding blank value (space) explicitly in my coding of dropdown list values .
    Thanks for your time .
    Sankeerth
    Edited by: SANKEERTH D on Aug 22, 2011 1:46 PM

    Hi Sankeerth,
    The Web Dynpro framework generates a blank entry to the value set of the dropdown listbox if the Context attribute bound to the dropdown listbox is "nullable" (see properties of the Context attribute).
    The dropdown listboxes of interactive forms will be populated with exactly the same data (value sets) as the "native" Web Dynpro dropdown lisboxes.
    For SAP NetWeaver 7 EhP2, there's a Web Dynpro test application (WDR_TEST_ADOBE_ZCI) available, which demonstrates this: Start it and see the dropdown listboxes labeled "Datatype" and "Datatype (nullable)": Both are bound to Context attributes which are of type DATATYPE_D. The only difference is that one of the attributes is "nullable". The dropdown listbox bound to the nullable attribute contains the additional blank entry.
    Watch the native Web Dynpro dropdown listboxes below the interactive form: They are bound to the same Context attributes and contain the same value sets as the dropdown listboxes of the interactive form!
    Regards,
    Ralf

  • Master Detail Form - How 2 update a field in the Detail form using a query?

    Hello,
    I have a master detail form with, each master record having a fixed(6) number of detail records. One of the fields in the detail record is the PART_DESCRIPTION field. I am trying to update this field by querying Table_X. TABLE_X is in the format of (desciption id, description). Description id runs from 1 to 6.
    When the form displays, the PART_DESCRIPTION field for the 6 detail records needs to be automatically populated with the six values of description stored in Table_X. How can this be done?
    Tried using session storage objects, but made no headway.
    Would greatly appreciate pointers on how to go about doing this.
    Thanks.
    Dev

    If you are on a Portal Version lesser than 3.0.9.8.3, then please try the following to populate
    the PART_DESCRIPTION field.
    Steps:-
    1> Edit the form and go to the Additional PL/SQl section and put the following code in the
    "...after displaying the page area" :-
    declare
    type t_vc_arr is table of varchar2(4000) index by binary_integer;
    l_arr_desc t_vc_arr;
    l_form_name varchar2(200);
    l_form_state varchar2(500);
    begin
    l_form_name := p_session.get_module().get_name();
    l_form_state := p_session.get_value_as_varchar2(
    p_block_name => 'MASTER_BLOCK',
    p_attribute_name => '_FORM_STATE'
    if l_form_state = 'QUERY_AND_SAVE' then
    select description
    bulk collect into l_arr_desc
    from <schema>.table_x;
    htp.p('
    <script>
    var descArr = new Array();
    var Fidx = 1;
    var formObj = document.WWVM'||p_session.get_id()||';
    var fieldName = "'||l_form_name||'.DETAIL_BLOCK.PART_DESCRIPTION.0";
    for i in 1..l_arr_desc.count loop
    htp.p('descArr['||to_char(i-1)||']="'||l_arr_desc(i)||'";');
    end loop;
    htp.p('
    for (var i=0; i < formObj.length; i++){
    if (formObj.elements.name == fieldName+Fidx){
    formObj.elements[i].value = descArr[Fidx-1];
    ++Fidx;
    htp.p('</script>');
    end if;
    end;

  • Cannot save the Interactive form downloaded from abap webdynpro application

    Hello Everyone,
    Can anyone help me here.
    I have created an interactive form in SFP tcode and used in abap webdynpro application.
    scenario is i can downloade the form,fill it, sign it,save it and submit the form.
    Some thing is going wrong when i try to sign the form downloaded from the application.It is giving the error ->
    The document could not be saved. there was a problem in reading the document(26).
    When i try to sign the form save as dialog box will come where we can save the filled form.but here when itry to save it is giving above error.and also i cannot save thye form form file option.
    but form is working fine from sfp tcode not form application link.
    What is going wrong.Can somebody please help me here.
    Regards,
    Menaka.H.B

    Check the enabled and readOnly property of the InteractiveFormUI element in your application.
    enabled should be true and readOnly should be false.
    Also just FYI interactive forms are licensable in Productive environment for which you need Adobe Credentials. You may contact SAP Account Manager and Note 736902 for it.
    Chintan

  • Sum the values of a text field in a tabular form using JavaScript

    Hi Folks.
    OK, I put my hands up. I don't know Java script but I'm picking up the basics and I WANT to learn.
    Here's my situation.
    I have a tabular form which has lots of Standard Report Columns and ONE text field.
    I want to sum the values entered in the text field, real time, using Java Script without the need to have a round trip to the database.
    I'm guessing this will involve some kind of loop. Once I have that SUM figure I will store it in a hidden item and it will be used for validation when the user submits the form.
    If anyone can give me a simple Java Script to do this, or point me in the direction of one, I'd be very grateful.
    Many thanks.
    Dogfighter.

    Hi Arie.
    Thanks for the link.
    That's a great start,
    What I've got working so far is the following...
    <script type="text/javascript">
    function f_calculate_delta(p_this,p_rownum)
    var amt = $x(p_this).value;
    alert (amt);
    var display_item_to_set = 'f08_'+ p_rownum
    $x(display_item_to_set).innerHTML = amt
    </script>
    This is working fine.
    Where I'm stuck at the moment is how I can 'get' the value of another cell in the same row. They have all been set up using the APEX_ITEM API with their own unique IDs.
    I will continue looking but if you could give me a steer, that would be great.
    Many thanks
    Simon
    PS. APEX 3.1
    PPS. Trying to get the value of another row using...
    var display_item_to_get = 'f04_'+ p_rownum
    var expected_amt = $x(display_item_to_get).value
    PPPS. Also tried...
    var display_item_to_get = 'f04_'+ p_rownum
    var expected_amt = $v(display_item_to_get)
    and
    var display_item_to_get = 'f04_'+ p_rownum
    var expected_amt = $v(display_item_to_get).value
    None of which are working at the moment.
    Message was edited by:
    Dogfighter

  • How can I autofill the "Amount" field in my eCommerce form using the "Total" from the shopping cart?

    I've found the tags to display the shopping cart summary elsewhere on the site, so I know there's a way to display the total, but I can't figure out a way to fill in the required "Amount" field in the eCommerce form used to process payments. I'd like that "Amount" field to be filled in automatically using the total in the shopping cart. Can anyone help? Thanks!

    You can use the shopping cart summary tag with custom layout.
    Here's the sample:
    <input type="text" value="{module_shoppingcartsummary template="/ModuleTemplates/Shop/cartsummary.tpl"}">
    Inside the shopping cart summary custom layout is a tag for total amount:
    {tag_currency}{tag_totalAmount} or {tag_totalAmountWithCurrency}

  • Pre fill Dropdown in adobe form using WD ABAP

    Hi Experts,
    I am creating an adobe form and I want to prefill the dropdown in the form with data while downloading it from web dynpro abap component. Once the form is downloaded I also want these selected values from dropdown to map in database in offline scenario.
    Please suggest.
    Warm Regards,
    Sushant Singh

    Hi Sai,
    I have similar kind of issue here for dropdown list . I have tried to populate the values in drop down list by binding the field-text and value properties witht he internal table where the internal table has all the values required for the dd list . I have concatenated the value and the text in one field of the internal table so that both of them would be displayed when the user cliclk the dropdown field on the PDF form . but whent he user selects a value , I need to take only the value but not the text . for ex: drop down list for company code -shows 1000  company 1
                2000 company2 , then if the user selects 2nd vaue , the value in the company code field should display 2000 only similar to the SAP standard F4 help. Please tell me how to achieve this . I have searched for this kind of issue in the forum but couldn't find any. 
    Iam using Standrd Drop down list  and I have intergrated the form with Webdynpro ABAP . is there a way for the issue or if there is any possibility at the first instance to populate the drop down with both ID and text ( like EN  English )as per SAP standard for language  so that I could avoid the use of internal table for concatenating both value and text . otherwise it only dislays either value or the text on drop down.
    Appreciate your help asap.
    Regards,
    Soha

  • How to display grid the interactive form

    Dear All
    I m trying to print the grid into the interactive form using adobe life cycle 8.1.
    My requirement is like I am getting the value in my local node in the view. From there i have to populate those value into the Pdf.
    So that user can take the print of the pdf.
    Value are getting in local. But it is not showing in the PDF. At the same time in other value are showing success fully only inthe table i am not able to get the value.
    Kindly help me out with your document or solution note
    Prashant Krishen

    Hi Prashant,
    For populating a table on a pdf the node structure should be different.
    You need to create node structure of the data which you want to show in Table like this
    DataNode            0..n
        SubNode         1..1
              att1
              att2
    Create the elements of DataNode only and set the attribute values.
    Now create the structure of the UI element in Form like this
    Subform1
            Subform2
                   Header1
                   Header2
            Subform3
                   Textfield1
                   Textfield2
    Bind the Subform3 to the node DataNode and Textfield1 and Textfield2 to att1 and att2 respectively.
    Set the 'Repeat Subform to each data Item* property of Subform3 to true.
    Now at runtime you will get all the data of the node in PDF form as a Table.
    Regards
    Ravindra

  • How to make fields readonly in Interactive Form based on Roles

    Hello All,
    I want to make few fields readonly and also want to disable few fields from the Interactive form based on the role, logged in by user.
    Looking  for a code Snippet on this issue.
    Need help in this Regard.
    Thanks & regards,
    Debasish

    Is the URL you are trying to call a schema.procedure ?
    If so, you need to grant execute privilege on the procedure to the <portal-schema>_public database user.                                                                                                                                                                                                                                                                                                                               

  • How do I copy/paste full numerical-only account strings into the Projects WebADI template when the account segment fields in the template require use of the dropdown because they're formatted as alpha-numeric values?

    How do I copy/paste full numerical-only account strings into the Projects WebADI template when the account segment fields in the template require use of the dropdown because they're formatted as alpha-numeric values? I'm using the Integrator named "Projects - Transaction Import" and a custom Layout created based on the seeded Layout named "Transaction Import - Accounted". Do I need to somehow change my Layout to make the Document accept numerical values instead of requiring alpha-numeric values? I need to be able to populate the Document with a large amount of transactions and cannot feasibly go through every transaction to add the alpha-valued name of the account segment to every segment that requires it. The segments in particular causing the problem are "Expnd Type" and "Organization Name" which are both alpha-numeric and as such contain the segment number and name; I need to be able to only have to enter the Natural Account Number (6-digit number only) and the Organization Number (5-digit number only).

    How do I copy/paste full numerical-only account strings into the Projects WebADI template when the account segment fields in the template require use of the dropdown because they're formatted as alpha-numeric values? I'm using the Integrator named "Projects - Transaction Import" and a custom Layout created based on the seeded Layout named "Transaction Import - Accounted". Do I need to somehow change my Layout to make the Document accept numerical values instead of requiring alpha-numeric values? I need to be able to populate the Document with a large amount of transactions and cannot feasibly go through every transaction to add the alpha-valued name of the account segment to every segment that requires it. The segments in particular causing the problem are "Expnd Type" and "Organization Name" which are both alpha-numeric and as such contain the segment number and name; I need to be able to only have to enter the Natural Account Number (6-digit number only) and the Organization Number (5-digit number only).

  • Maintaing a default value for a particular field in the selection screen

    Hi all,
    How to maintain a default value for a particular field in the Selection Screen of a Standard report
    Regards
    Ajay

    >
    ajay babu wrote:
    > Hi all,
    >
    > How to maintain a default value for a particular field in the Selection Screen of a Standard report
    >
    > Regards
    > Ajay
    Create a variant for your standard program and assign this variant to the field 'Start with variant' while creating transaction code for the standard program in the transaction 'SE93'.
    Regards
    Rajesh.

  • How do I insert the value of an email field in the submit mailto: argument?

    I want to create a button that will redirect a PDF form to an email address entered as a field in the form.  In other words, a "return to sender" function.  The button function has a submit to URL where you can use "mailto:[email protected]".  How can I substitute the value from an email field in the form itself for the "[email protected]" value?

    You'll need to use JavaScript, and the mailDoc method in particular: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.505.html
    Get the value of the field that contains the email address and use it as the value of the cTo property. See the following for a sample script: http://forums.adobe.com/message/3553628?tstart=-1

  • How to use the separate symbol in the text field in the adobe form.

    Hi,experts,
    I don’t know how to use the separate symbol to make a paragraph separate into several lines correctly in the text field in the adobe form.
    Action:
    1. config the ADS successfully.
    2. create the adobe form with a mult-line textfield(binding the 'remark' context in the interface of the form) using sfp.
    3. create a WDA for invoke the form and transfer the 'remark' context data.
    I use the following codes to display the paragraph in the PDF document:
    CONCATENATE
    '1&#12289;aaaaaaaaaaa&#65307;'
    '2&#12289;bbbbbbbbb '
    '3&#12289;ccccccccccc'
    '4&#12289;ddddddddd'
    INTO remark .
    lo_nd_z_hr_php_payslip->set_attribute(
    EXPORTING
    name = `REMARK`
    value = remark ).
    But I found all the content aren't paragraph separate correctly in the text field in the adobe form when I run the WDA.
    Could you please give me some hints to make the paragraph separate correctly in PDF document? Thanks a lot in advance!
    My email is : [email protected]
    Best regards,
    Tao
    Edited by: wang tao on Apr 8, 2008 1:58 AM

    Hi,
    If it is just a one word value then you could use this in the exist event;
    this.rawValue    
    = util.printx(">?<*",this.rawValue);
    This changes the first character (represented by the ?) to uppercase (represented by the >) and all trailing characters (represented by the *) to lowercase (represented by the <).
    If you wanted something more general ... if they could also enter a middle name then you could call a function like;
    function        toTitleCase(textValue)
      return  textValue.toLowerCase().replace(/\b[a-z]/g, function replacer(match) { return match.toUpperCase(); });
    This uses a regex to change all lowercase letters following a word boundary to uppercase.
    Bruce

  • Setting values for non-displayed fields on a Tabular Form

    I'm having a problem setting non-displayed fields on the same table as displayed fields like last_update_date, last_updated_by, id's and other fields when creating new records or updating existing records in a Tabular form.
    What is the best and easiest way to set these values without using database triggers?

    Hi Jes,
    I'm a little reluctant to use database triggers as I used this product a couple of years ago and I'm fairly sure I handled this problem in HTML DB without the use of triggers. I am therefore I'm getting a touch frustrated that I can't remember how to do it now !!
    Do you know of any way of setting values for non-displayed fields on a Tabular Form without using database triggers?
    Also, you seem to be suggesting that database triggers is the best way to do this?
    Thanks

Maybe you are looking for

  • Resolving External References ....in a package

    hi all.. Resolving External References in IR Subprogram CREATE PROCEDURE above_salary (emp_id IN NUMBER) AUTHID CURRENT_USER AS emps NUMBER; BEGIN -- External reference is resolved in schema of current user: SELECT * FROM employees WHERE employee_id

  • SIS structure not being generated during upgrade

    Hello, We are in the early phase of an upgrade project. Our custom SIS structures are failing with the update rules generation. Looks like the data element associated with the characteristic of the info structure is changed that is causing inconsiste

  • Reading attachments from adobe interactive form

    Hi, My requirement is- vendor should fill all the detail in an offline interactive form and attach necessary documents in the form itself. How can i read the attachments from the form inside my program and how can i store it in SAP. I am using FM ' S

  • Uploading images

    Please help!! I'm new at this. I did the Dreamweaver tutorials & built a Home page. I Uploaded the site & the site went up with text & color boxes but without the images. Instead I got little blue boxes with a question mark inside them. I have also t

  • I am getting a file format not supported message when i try to add an ebook to ADE.  What can i do?

    Ok, I figured out how to add ebooks to the ADE library, but when i dragged the ebook to the library, there was a message that said the file's format is currently not supported.  I tried a couple other ebooks with the same results. Is there something