Search - InfoPath Dev

InfoPath Dev

Search

Page 3 of 5 (47 items) < Previous 1 2 3 4 5 Next >
  • Re: Switch View during OnLoad

    i'm not sure i understand this. The name of my view is ''2''. so to switch to that view in the onload i can't use the actual name of the view? How do i refer to the view then?
    Posted to Code (Forum) by drobins on 09-14-2005
  • Re: Getting users Username

    here is my code for the onload Sub XDocument_OnLoad(eventObj) Dim wsh Set wsh = CreateObject(''WScript.Network'') un = wsh.UserName XDocument.DOM.selectSingleNode(''//my:myFields/my:field14'').text = un End Sub
    Posted to Code (Forum) by drobins on 09-14-2005
  • Re: Switch View during OnLoad

    2 is the name of the view. I have tried changing it to viewb but it doesn't seem to work either
    Posted to Code (Forum) by drobins on 09-14-2005
  • Switch View during OnLoad

    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
    Posted to Code (Forum) by drobins on 09-14-2005
  • Re: Getting users Username

    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?
    Posted to Code (Forum) by drobins on 09-14-2005
  • Re: Getting users Username

    if the jscript works should the vbscript work? do i need to have anything special installed for the vb version to work?
    Posted to Code (Forum) by drobins on 09-13-2005
  • Re: Getting users Username

    I'm trying to get the current users username during the OnLoad Event but the vbscript is thowing an error saying: ActiveX component can't create object: 'WScript.Network' Dim wsh Set wsh = CreateObject(''WScript.Network'') un = wsh.UserName XDocument.DOM.selectSingleNode(''//my:myFields/my:field14'').text = un any ideas?
    Posted to Code (Forum) by drobins on 09-13-2005
  • Re: Getting users Username

    can this same thing be done in vbscript?
    Posted to Code (Forum) by drobins on 09-13-2005
  • Re: Getting users Username

    Thanks VT. I had tried the activex approach before but i didn't seem to work. may have been my coding.
    Posted to Code (Forum) by drobins on 09-13-2005
  • Re: Getting users Username

    ok got the ActiveX example to get the username. Is there anyway to get rid of the warning saying: ''An ActiveX control on this page might be unsafe to interact with other parts of the page. Do you want to allow this interaction?'' it could scare some of my users
    Posted to Code (Forum) by drobins on 09-13-2005
Page 3 of 5 (47 items) < Previous 1 2 3 4 5 Next >
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.