‎2005 Jun 12 5:55 PM
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
‎2005 Jun 13 6:19 AM
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
‎2005 Jun 15 7:27 PM
I know this, but it's very strange idea -- to make many special classes and to forget required ones.
‎2005 Jun 15 9:41 PM
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
‎2005 Jun 18 10:56 AM
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?
‎2005 Jun 18 11:15 AM
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
‎2005 Jun 18 1:18 PM
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?
‎2005 Jun 18 1:27 PM
it wont be simple. one of the possible ways is to save the values into a cookie and read it from abap.
Regards
Raja
‎2005 Jun 18 1:34 PM
‎2005 Jun 18 1:46 PM
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
‎2005 Jun 19 6:35 AM
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.
‎2005 Jun 19 7:14 AM
i gave the reference of this DEMO_JAVA_* for capturing javascript value into ABAP variable. nothing more than that.
Regards
Raja