For the text field, enter the HostCgiUrl value as the text to be displayed. Clear the entry for the text field leave blank, and set MultiLine to True. For the Caption field, enter Send Post Command as the text to be displayed. On the form, select View, an

8-26 Oracle Fusion Middleware Developers Guide for Oracle Universal Content Management 5. On the form, draw a text box, and name it CgiUrl.

6. For the text field, enter the HostCgiUrl value as the text to be displayed.

For example: http:testserverintradoc-cgiiss_idc_cgi.dll Figure 8–3 Edited CgiUrl TextBox Properties Using the COM API for Integration 8-27 7. On the form, draw a text box, and name it Command.

8. Clear the entry for the text field leave blank, and set MultiLine to True.

Figure 8–4 Edited Command TextBox Properties 8-28 Oracle Fusion Middleware Developers Guide for Oracle Universal Content Management 9. On the form, draw a text box, and name it Response. 10. Clear the entry for the text field leave blank. Figure 8–5 Edited Response TextBox Properties Using the COM API for Integration 8-29 11. On the form, draw a button, and name it SendPostCommand.

12. For the Caption field, enter Send Post Command as the text to be displayed.

Figure 8–6 Edited SendPostCommand CommandButton Properties 8-30 Oracle Fusion Middleware Developers Guide for Oracle Universal Content Management

13. On the form, select View, and then choose Code.

14. Select SendPostCommand, and then click the drop-down lists and modify the

code to perform these actions: ■ Set the Host Cgi URL value. ■ Issue the command. ■ Optional Replace LF with CRLF to make the presentation in the edit control more readable. ■ Display the response. For example: Dim R As String IdcClientCtrl.HostCgiUrl = CgiUrl.Text R = IdcClientCtrl.1.SendPostCommandCommand.Text R = ReplaceR, vbLf, vbCrLf Response.Text = R Figure 8–7 Edited SendPostCommand_Click Code

15. Choose Form and then Load from the drop-down lists, and add the following lines

to set the login prompt for the Oracle Content Server instance: IdcClientCtrl.UseBrowserLoginPrompt = True IdcClientCtrl.UseProgressDialog = True Figure 8–8 Edited Form_Load Code Using the COM API for Integration 8-31 16. Optional Add appropriate descriptive labels, such as Cgi Url, Command, and Response. Figure 8–9 Visual Interface with a Descriptive Label

17. Select Run, and then choose Start to test the visual interface.