Hi all,
Further to my previous thread, here: http://social.technet.microsoft.com/Forums/en-US/ITCG/thread/b49e04b0-4bc4-4288-b91e-4019d1f9c734 - I'm still trying to get this script working.
In quick summary: I had a powershell script that I used as a CLI application to streamline interactions with some sharepoint forms, that I wanted to give a graphical interface using .net forms. Thanks to the help I received in the previous thread, I've got
the application mostly working, it has a forms.webbrowser object which displays the pages I need, and navigates between them.
The tricky bit was getting it to populate the form fields, and that is now working. The road-block I've hit, though, is in getting it to submit the form. I just can't figure it out.
The CLI version uses the COM object to refer to the 'submit' button with document.getElementByID(), calling .click() on it to submit the form.
In the GUI, I've tried the same thing - document.getElementbyID() with the same ID, but there doesn't seem to be a .click() method in the forms.webbrowser control. I've tried other ideas like calling .invokeMember("click"), but these don't work
- and seem to say that the element was not found. I've also tried invoking 'submit' or 'post' on the form, but these don't work either.
So again I wonder - how do I reconcile this difference between my CLI and GUI scripts? How can I 'click' a form submit button with the forms webbrowser?
Thanks for reading.
Aled