-
2 is the name of the view. I have tried changing it to viewb but it doesn't seem to work either
-
Is ''2'' the name of your view? You do not reference a view by an index if that is what you are trying to do.
---Directly from help-------------
SwitchView Method
Changes the active view of a Microsoft Office InfoPath 2003 form to a specified view.
expression.SwitchView(ByVal bstrName As String)
expression Required. An expression that ...
-
I find it hard to believe but it is happening. Post up the code you are running and let me see if I or someone else can generate the error.
-
Is this possible. I can't seem to get it working. Here is my code:
Sub XDocument_OnLoad(eventObj)
if XDocument.DOM.selectSingleNode(''//my:myFields/my:field9'').text = ''true'' then
XDocument.View.SwitchView(''2'')
end if
End Sub
-
This is the error i am getting
A runtime error has occured
Do you want to debug?
ActiveX component can't create object: 'WScript.Network'
file: script.vbs
line: 23
how is it that i can create the object in jscript but not vb?
-
hi there,
Just wondering, could we write to an external field from infopath form?
By external field, I mean those fields we add to sharepoint library via:
- clicking Modify settings and columns
- Add a new column
so far, these fields created externally could be read only from infopath form.
If my explanation is unclear or ambigous, do pls let ...
-
Oguz,
Could you explain how you did this ???
By advance,
Thanks !!
-
Patrick,
Could you explain how you did this please ??
I have exactly the same problem and I already tried to make a data connection to the sharepoint list to get the ID. The only problem is that the data connection requests the default view of this list.
And, in my case, the default view is filtered to show the current user's items only !!!
In ...
-
Yes, they did...i've checked it :)
-
Thank you very much Patrick Halstead.
I am try to do it.
Vasanth