What kind of data types in Web Dynpro can be bound to Interactive Form?

Hello
Apparently it is not possible to bind a Web Dynpro Context variable of type boolean to a checkbox in an interactive form. We get the PDF Document Render Exception until the data type is changed to string, then the generation seems to work. Does anyone know what data types in Web Dynpro other than String can be bound to an Interactive Form Document? Is there any information about this in help.sap.com/adobeforums.com/elsewhere? I have researched a bit, but couldn't get a general statement on this topic.
Thank you for your help!
Kind regards
Bettina Hepp

Hi,
You can Bind the Boolean type of webdynpro to the CheckBox in Adobe Interactive Form.
Just define the value Attribute in the Context of type Boolean and bind the Checkbox in Aif with this attribute.
Sample Code:
if (wdContext.currentContextelement.reason == true)
ur validations.....
Regards
Mustafa

Similar Messages

  • URGENT: Illegal Argument Exception for  RAW data type in Web Dynpro

    I am getting this error in the following scenario.
    I want to save the text fields from an interactive form to SAP through RFC enabled function module. The type in the model and controller is byte[]. I have converted the string attribute from view to save to the model. But the model dictionary in Web Dynpro project (model) has this type as Binary (meta data model through EFC). The type in SAP is RAW. I am going nuts since a week to solve this.
    IS this a bug? I am using NW04s - SP12. and NWDS 7.0.9
    Exception Details:
    The initial exception that caused the request to fail, was:
    java.lang.IllegalArgumentException
    at com.sap.dictionary.runtime.DdTypeBinary.format(DdTypeBinary.java:60)
    at com.sap.dictionary.runtime.DdTypeBinary.toString(DdTypeBinary.java:64)
    at com.sap.tc.webdynpro.clientserver.data.DataContainer.doFormat(DataContainer.java:1405)
    at com.sap.tc.webdynpro.clientserver.data.DataContainer.getAndFormat(DataContainer.java:1098)
    at com.sap.tc.webdynpro.clientimpl.xdp.renderer.data.XfdRenderer.renderAttributes(XfdRenderer.java:370)
    ... 41 more

    Issue with the RAW data types is resolved now. I have changed the data type of the field into String in the dictionary (web dynpro).. I have changed the corresponding getters and setter functions from byte[] to string. And everything working fine now. I got the Illegal Argument exception initially because I was trying to display the binary data type fields on the adobe form or view which I am not supposed to do.
    Also it is better to create separate view attributes in the context to get the values rather than mapping the model attributes directly in the form or view.
    Thank you one and all.
    Regards
    Vasu

  • Comparing two GUID of ABAP raw data type in Web Dynpro

    Hello,
    I am working with a CRM application. I want to fill a table with each column from different tables.
    For that I am trying to compare the GUID of each table. But I am not successful as the GUID is of RAW data type. How can I compare them in Web Dynpro Java?.
    Thanks,
    Sunita.

    Hi,
    I have been able to get rid of the problem posed in my earlier mail about assigning values from a field symbol to an internal table. Now its back to the same old problem.
    As mentioned earlier I have a view1 in which I am populating a range (select option), which I want to display on the next view, view2.
    On view1, on click of the button, I have populated internal table I_RANGE2.
    DATA: IT_RANGE2 TYPE TABLE OF ZTTRANGE.
    ZTTRANGE is a table type in SE11 with linetype as ZRANGE (structure in SE11).
    I want to pass I_RANGE2 to the method in the component controller:
    WD_COMP_CONTROLLER->HOLD_DATA( CHANGING IT_RANGE = IT_RANGE2 ).
    In the component controller the parameter IT_RANGE has been declared as
    PARAMETER             TYPE                REFTo             Associated Type
    IT_RANGE                 Changing              u221A (Tick)                ZTTRANGE
    But I am getting an error:
    IT_RANGE2 is not type-compatible with formal parameter IT_RANGE.
    Please help resolve this error.
    Mick

  • Web Dynpro render configuration for Adobe Interactive Forms

    Hi,
    Is there any possibility to check rendering configuration for Web Dynpro application? I built web dynpro application which shows simple Adobe Interactive Form. In Sap Adobe LiveCycle Designer all buttons of Interactive Form are working (JavaScript) but in the form showed by web dynpro application in IE buttons have no action. Do You know what is the cause or where to search?

    Hi Pawel,
    The interface of the UI element InteractiveForm contains the method SET_LEGACY_EDITING_MODE, which in turn contains a Boolean parameter. The form is then ready for input
    method WDDOMODIFYVIEW.
    data: LR_INTERACTIVE_FORM type ref to CL_WD_INTERACTIVE_FORM,
    LR_METHOD_HANDLER type ref to IF_WD_IACTIVE_FORM_METHOD_HNDL.
    check first_time = abap_true.
    LR_INTERACTIVE_FORM ?= VIEW->GET_ELEMENT(u2018INTERACTIVE_FORM_1u2019).
    LR_METHOD_HANDLER ?= LR_INTERACTIVE_FORM->_METHOD_HANDLER.
    LR_METHOD_HANDLER->SET_LEGACY_EDITING_ENABLED( abap_true ).
    endmethod.
    Regards,
    Runal

  • Converting between types in Web Dynpro

    Is it possible to convert between data types in web dynpro?  I am trying to covert a string to another data type (int, BigDecimal, etc.)?  I have found no documentation on how to do this?
    Any help will be greatly appreciated.  Thanks

    Hi Eric,
    If You use Web dynpro for Java, It's same as datatype conversion in java.
    For ex: if you want to convert from double value to float pls follow like this.
    float floatvar;
    double doublevar;
    floatvar= (float)doublevar;
    For more Information on data type conversion pls refer this URL
    http://www.unf.edu/~rzucker/cop3540dir/jdtconvt.html
    Hope this help. pls award points if you satisfied
    Thanks
    Praveen

  • Data access in web dynpro

    Hi all,
    I'm new to web dynpro, i ve to develop web dynpro appliation which has to interact to oracle database(read/write). For example, if i give certain search criteria the application should display matched data in table format. I dont know how to start & where to start. Please help me out.
    thnx regards
    ilan

    Hi
    You can use the Table UIElement for this
    1.Create a node with cardinality 0..n
    2.Create attributes with the same type of database.
    3.Bind the node attributes with the database values
    4.bind the node to the Table UI Element
    See this thread
    Re: problem with displaying records from the database in a table ui element
    See this sample application and help
    https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/f0b0e990-0201-0010-cc96-d7ecd2e51715
    Kind Regards
    Mukesh

  • Exchanging data between a Web Dynpro application and SAP Web Shop

    I'll try to keep this as clear as possible:
    1) We have the SAP Internet Sales system running, which has a series of Business Object classes and corresponding Backend Layer objects that can return data from several sources.
    2) We are able to create our own Backend Layer objects that would return data from a component called IPC, which is a Java component.
    3) I would like a Web Dynpro application to retrieve data from this backend layer object, but I am not experienced enough with Java to know if what I want to do is possible. I don't think that I can use JCo, because I am trying to get a Java component (class?) in Web Dynpro to access a Java class remotely.
    4) I think I am asking is this: is there a way for a Java to Java connection to be created, much like Web Dynpro can use JCo to connect Java to ABAP systems?
    If this is a glaringly obvious question to Java programmers, my apologies!
    - Tony.

    Somebody on another forum recommended using RMI. Which would be the better option in terms of ease of implementation?
    - Tony

  • If my iphone 4s doesn't support 4G LTE, then what kind of data would I get from the plan with 4G LTE Data?

    I am currently have iphone 4s. I am planing to use the plan which have 4G LTE for data; however, my phone doesn't support 4G LTE. So, i want to know what kind of data would i get from this plan. Is it gonna be 4g or 3g or no data at all? I am very confused right now.
    The plan is UNLIMITED WEB & TEXT WITH 100 MINUTES TALK.  Up to 5Gb of nationwide 4g lte data.
    If you look at the plan it has 4g lte data, but my phone doesn't support it. Please answer my question.

    Ask the wireless provider you have the plan with - they should be able to tell what speed
    you will get if you cannot connect at 4G/LTE.
    Your iPhone will connect at the highest speed it can by default. But not all wireless providers
    offer 3G as the fallback connection on their 4G network - some fall back to 2G.

  • How can I set the data binding between Web Dynpro & Database table

    Dear friend,
    I am a beginner of Web Dynpro. I want to develop my simple project like these:
    1. Create my own database table via Dictionary Project such as TAB_USER and have 3 fields: USER_ID, USER_NAME, USER_POSITION and I have already deployed & archived it.
    2. Create my own Web Dynpro Project, and create the input fields as User ID, User name, User position and icon 'Save' on the selection screen and I have deployed it already.
    For the process, I want to input data at the screen and save the data in the table, please give me the guide line like these:
    1. How can I set the data binding between Web Dynpro and Database table ?
    2.  Are there any nescessary steps that I will concern for this case?
    Sorry if my question is simple, I had try  to find solution myself, but it not found
    Thanks in advances,
    SeMs

    Hi,
    You can write your own connection class for establishing the connection with DB.
    Ex:
    public class  ConnectionClass {
    static Connection con = null;
    public static Connection getConnection() {
    try{
    Context ctx = new InitialContext();
    DataSource ds = (DataSource) ctx.lookup("jdbc/TSPAGE");
    con = ds.getConnection();
    return con;
    }catch(Exception e){
    return null;
    You can place the above class file in src folder and you can use this class in webdynpro.
    You can have another UserInfo class for reading and writing the data into the DB .
    Regards, Anilkumar
    PS : Refer
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/java/simple java bean generator for database.pdf
    Message was edited by: Anilkumar Vippagunta

  • How to get the ep user information data in the web dynpro?

    Hi all
      I want to create a web dynpro application on EP.I want to get the ep user information data in the web dynpro.How can I do?Thanks.

    Lin,
    Two steps to achieve this:-
    <b>Step 1:</b> Add the following code in your view Controller:-
    IWDClientUser user = WDClientUser.getCurrentUser();
    IUser objUser = user.getSAPUser();
    wdContext.currentContextElement().setXXXX(objUser.getUniqueName());
    wdContext.currentContextElement().setYYYY(objUser.getFirstName());
    wdContext.currentContextElement().setZZZZ(objUser.getLastName());
    where XXXX, YYYY , ZZZZ are the context names.
    getUniqueName : Gives Login id of Portal user.
    getFirstName : Gives First Name of the Portal user.
    getLastname : Gives Last Name of the Portal user.
    <b>Step 2 : </b>Use "Organize imports" and make sure that you have the following two libraries added in the build path of your project. You can do these by right clicking on your project name ==> Properties ==> Java Build Path ==> Libraries ==> Add External jars.
    The external jars are :
    <b>com.sap.security.api.jar
    com.sap.security.api.perm.jar</b>
    Finally rebuild your project and deploy.
    Regards,
    <b>Chintan Virani.</b>

  • What is "g" data type? Is it STRING?

    Hi Experts,
    Simple and basic doubt,.....
    What is "g" data type? Is it STRING?
    Like these, when I get in future for others, Where Can I see them, I tried in SE11, and F4, but did not figure it out!!
    thanq

    thanq
    my other thread:
    This is production issue.
    I have given menu>extras->ONLY ONE serial #s to the item of 10 of quantity 3/material in the out bound delivery.
    Then, pressed the PGI. worked fine.
    In next, in another case, I created another delivery for the same material, of the qunatity is 3, but different serial #s,-.....assigned 2 different serial #s.
    then, am getting DUMP.
    from ST22 the Dump is,
    In the FM of CHECK_STRING_SUCCESSOR of with in "PROCESS_STRINGS_FOR_PRINT" .
    The reason for the exception is:
    You attempted to pass the field "I_SPECIAL_CHARS" to the formal parameter
    "I_SPECIAL_CHARS"
    but the formal parameter "I_SPECIAL_CHARS" can accept only fields of
    type "C". The field "I_SPECIAL_CHARS" has the type "g".
    So, let me know that,
    1 - Why its happening ONLY when assigned more than 1 serail #, How to fix it?
    2 - Is there any SAP NOTE??

  • What kind of material type i should use?

    Dear all,
    I am wondering what kind of material type I should use for the following type of material:
    The material is Chicken used in like KFC- type of eatery franchise store.
    The eatery franchise store buy the chicken from external party, next, this store process this chicken (i.e. cut into pieces) and become chicken salad and sell this chicken salad to their consumer.
    Personally, I donu2019t think this kind of material can be classified as HAWA (i.e. trading mat type) as the material is not buying and later selling as a same physical product like the retail store.
    But it is buy and process it, and sell.
    Please help shed some light for me. Thanks.
    tuff

    Hi we have not using SAP, it is a new project.
    kindly please read my question carefully...
    basically it is like this...
    the chicken the restaurant chain purchased are later process into multiple meal dishes (i.e. Salad Chicken, Chicken with rice, Roast Chicken), and sell to customer directly.
    Therefore, looking at your feedback, I can use the SEMI-FG material type for the Chicken for the buying, correct?
    But this raise another question in which how do I track the goods issue quantity when the meal dishes is sold, so that my Chicken stock quantity can reflect correctly in the SAP system?
    currently they are not using BOM as the franchise holder does not wish to disclose the meal ingredient scret (i.e BOM) to their invidual franchise store.
    please advise. thanks
    Thanks.
    Tuff

  • What kind of data users are coping to their USB drives ..?

    We need monitor  what kind of data users are coping to their USB drives ..? do we have any scripts which can trigger the emails when the Data is copied to USB drives with File Name , size and location from where they are coping.
    Please advise    
    Kris

    If you want to prevent users from copying stuff to their USB drives the best way would be to force a group policy that prevents USB devices from working on local machines. There is no easy way of monitoring file transfer activity via script. What you appear
    to be looking for is software which monitors your employees.
    What you can do is list the USB Devices that have been attached to the system:
       Push-Location      
       Set-Location HKLM:\
       $devices = Get-Item 'HKLM:\SYSTEM\CurrentControlSet\Enum\USBSTOR\*\*'
       Get-ItemProperty $devices |   
          Select-Object -Property @{Name='SerialNumber';Expression={$_.PSChildName.TrimEnd('&0').split('&')[-1]}}, FriendlyName,Class
       Pop-Location 

  • What will be data type for the newly created Service Interface def.?

    hi @,
    I am using new Service interface for the start event with objective that any outside application will be able to trigger the BPM. I have created the same SI and its operation and Input params. Now when the request comes there is an exclusive choice gateway which based upon the input fields decide which path to take into consideration. Now I need to map the SI input to the Data object but which data type I need to use ideally it should be the data type defined in the Service Interface should be used but I am not able to locate the same in the data type folder .
    How can I map the input service interface data type to the Data object so that it is available in the next BPM steps?
    Thanks,

    Hi,
    Typically the used types in a new service interface are anonymous. Try making the used complex type a global one (Right-Click onto it -> Refactor -> Make Anonymous Type Global).
    Afterwards you could use the speed button around your your 'start event' and create a new 'data object' from there. Now the IDE automatically assigns the type of the service interface to your 'data object' and  performs the standard mapping between the 'start event' and the 'data object' in addition.
    Please also have a look at the documentation for further information:
    Accelerated Modeling with Speed Buttons
    http://help.sap.com/saphelp_nwce711/helpdata/en/16/52f063cac643d2917347aab86930ef/frameset.htm
    There is also an interesting blog entry dealing with data objects and their reuse:
    How to avoid modeling errors in Netweaver BPM? Part 3: Data flow in style
    /people/soeren.balko/blog/2009/02/03/how-to-avoid-modeling-errors-in-netweaver-bpm-part-3-data-flow-in-style
    Hope that helps,
    Martin

  • Is it possible to change date format in Web Dynpro?

    Hi,
    I have an input field that is mapped to a context data type of date.  It is showing me the data in the format of "mm/dd/yyyy".
    Is it possible for me to change this format to "dd/mm/yyyy"?
    I know it is possible to alter the Regional Setting in a Windows box.  What about Solaris box?  Are there specific properties within Web Dynpro that I could set so that I do not have to remember to change it everytime.  I have a few environments that I need to deploy to, so it makes sense for me to set the format into Web Dynpro.

    Hi Stefan,
    Could you be more elaborate?  What happens after that?  How do I populate data from the database to this new type?
    Currently, I can't find the Base Type of "date" in the lookup box.  Do you mean the Built-In Type?
    Thanx.

Maybe you are looking for