Skip to Content
avatar image
Former Member

Buttons on the form/ WD application ? which is the best way?

Hi ,

I have a query : What is the best way to design a adobe interactive form , i mean if i have submit button , is it advisable to have it on the webdynpro application / or on the adobe form.

And in case of validations like mandatory fields, do i need to have it on the adobe form using java script or have it in the web dynpro application.

Please let me know your views in this regard. What does SAP usually recommend for ?

Thanks,

Saujanya

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Nov 02, 2009 at 11:55 PM

    Hi Saujanya,

    The answers for your questions depend on the integration scenario and your (or your customers) preferences. There's no general recommendation from SAP for these questions.

    Submit (value help) button:

    For pure (non interactive) print forms or forms used for an offline scenario, it obviously doesn't make any sense to make use of the submit button (or the value help button) in the form.

    For the online scenario, it depends on the kind of application you create: If it's a pure form based Web Dynpro application (i.e. you use the Web Dynpro framework to display an interactive form only without using "native" Web Dynpro UI-elements) you have to put a submit button in the form.

    For "mixed" Web Dynpro applications (i.e. "native" Web Dynpro UI-elements and the interactveForm UI-elements are used together in a view), I'd personally avoid to put a submit button inside the form. I'd place a native Web Dynpro button above or below the form: The reason to create such a "mixed" application is most often to give the user the possibility to print the form: But a button printed on a sheet of paper looks ugly and doesn't make any sense... (Note: This is my personal opinion!)

    Validation (of input fields):

    You also have to distinguish the different integration scenarios:

    For the offline scenario, you have to implement necessary validations in the form.

    For the online scenario, I'd personally prefer to implement the validation routines (make use of the build in validation routines of the Web Dynpro framework respectively) in the Web Dynpro application code in the ABAP backend: Do you really want to reimplement (and maintain!) validation routines already implemented in the ABAP backend (to avoid a server roundtrip only)?

    Greetings,

    Ralf

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 02, 2009 at 10:44 AM

    You can make use of the Submit button from Adobe WD library and mandatory fields is recommended to be checked through JavaScript because the script is executed at client.

    Whereas if you try validations through Web Dynpro then all of them will be executed on server which is unnecessary round trip.

    Chintan

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 02, 2009 at 02:18 PM

    This was a general query on the way to design the form.

    Hence i close this thread. Thanks alot for your replies.

    Add comment
    10|10000 characters needed characters exceeded