Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Dynamic documents with complex forms. Is it possible?

Former Member
0 Likes
1,220

Is it possible to create DD (cl_dd_document) with radio-button or checkboxes? I found only pushbuttons, input lines and dropdown listboxes.

--

Iliya Kuznetsov

11 REPLIES 11
Read only

athavanraja
Active Contributor
0 Likes
973

You can use HTML_INSERT method of CL_DD_AREA class to add any HTML to the document - so you can add radio button and check boxes.

Regards

Raja

Read only

0 Likes
973

I know this, but it's very strange idea -- to make many special classes and to forget required ones.

Read only

0 Likes
973

you are right. but with the advent of BSP , you have much more better better options for this kind of work.

I feel that if you are WAS 6.2 and above, you should seriously consider converting this application to BSP

if you are interested, look at the weblog area, there is a weblog by Thomas Jung about showing BSP application in a HTML viewer within SAP GUI with single sign on.

Regards

Raja

Read only

0 Likes
973

I can't use BSP but only need to create table control with some text/link fields and checkbox for every row in table at left column. By pressing some sy-ucomm command all checked rows in the table need to be processed some way.

I know HTML little bit and I need to integrate static_html with all DD framework. How can I get "checked" attribute of all checkbox elements in the form?

Read only

0 Likes
973

its a property of the checkbox attribute

for example if your checkbox name is c1 and if its checked c1.checked will be set to true

sample code.

<form >
  <input type="checkbox" name="C1" value="ON" checked></p>
  <p><input type="checkbox" name="C2" value="ON"></p>
<a href="#" onclick="alert(document.forms[0].C1.checked);alert(document.forms[0].C2.checked);">test</a>
</form>

Regards

Raja

as you are new to SDN forum , may i request you to go thru the following weblog.

/people/mark.finnern/blog/2004/08/10/spread-the-love

Read only

0 Likes
973

Raja,

manually creating of html-code isn't a problem but how can I get 'checked' attribute from ABAP side and using cl_dd_document and it's childs?

Read only

0 Likes
973

it wont be simple. one of the possible ways is to save the values into a cookie and read it from abap.

Regards

Raja

Read only

0 Likes
973

Raja,

but other ways (excluding cookie) are ..... ?

Read only

0 Likes
973

one more way is there, but i need to write a sample to confirm it, in the meantime you can also give it a try.

check out the demo programs starting with

DEMO_JAVA_SCRIPT*

This is the approach i am going to try and see

Regards

Raja

Read only

0 Likes
973

I've looked examples DEMO_JAVA_* but they didn't use cl_dd_document.

And, IMHO, cl_dd_document approach not pass any custom scripts (before <body> tag) into target document.

Read only

0 Likes
973

i gave the reference of this DEMO_JAVA_* for capturing javascript value into ABAP variable. nothing more than that.

Regards

Raja