How to use radio buttons in a DSP page

If anyone had previous experience with DSP pages using radio buttons and checkbox, can you pls share an example with all of us by posting your code as a reply to this ticket? Can you also add few comments on how you made the radio button work?

I need help with this. I read the DSP manual, but it will be much easier if a “good soul” could share an example.

Thanks a lot!

Hi ,

Here u go and let me know if you have any difficulties.

InitLogin.html:

<html><head></head><body>
<form>
Document number: <input>
Document Type:
<input>Purchase Order
<input>Outline agreement
<input>Scheduling Agreement
</form>
</body>
</html>

ProcessPO.dsp:
<html><head></head>
<body>
<!-- below sapServices:processDocument
sapServices is folder name
processDocument is service name
–>
%invoke sapServices:processDocument%
PO_DOC_NUM field value from the InitLogin.html ::: %value PO_DOC_NUM%
PO_DOC_TYPE field (Selected)value from InitLogin.html%value PO_DOC_TYPE%
PO_OUTPUT VALUE from processDocument service: %value PO_OUTPUT%
%comment%
Inside the processdocument Service you do manipulation by calling the
Relevant steps in your integration
%end%
%end invoke%
</body>
</html>

regards
Ramesh

Hi ,
One correction in my earlier post.

Here u go and let me know if you have any difficulties.

InitLogin.html:

<html><head></head><body>
<!–
In your action just call the ProcessPO.dsp
–>
<form>
Document number: <input>
Document Type:
<input>Purchase Order
<input>Outline agreement
<input>Scheduling Agreement
</form>
</body>
</html>

ProcessPO.dsp:
<html><head></head>
<body>
<!-- below sapServices:processDocument
sapServices is folder name
processDocument is service name
–>
%invoke sapServices:processDocument%
PO_DOC_NUM field value from the InitLogin.html ::: %value PO_DOC_NUM%
PO_DOC_TYPE field (Selected)value from InitLogin.html%value PO_DOC_TYPE%
PO_OUTPUT VALUE from processDocument service: %value PO_OUTPUT%
%comment%
Inside the processdocument Service you do manipulation by calling the
Relevant steps in your integration
%end%
%end invoke%
</body>
</html>

regards
Ramesh

Hi Waldes Machado,

DSP are nothing special, if you know HTML and JavaScript then you can play with DSP’s, in DSP u can call a service, and use the tags mentioned in the Appendix of Templates and DSP users Guide. For radio buttond and checkboxes these are the same as they are in HTML, and the usage of JavaScript to handle those.

Kalyan