This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal


Jul 26, 2016, 10:31 PM
4 Posts

embedde webbrowser error

  • Category: Application Development
  • Platform: Windows
  • Release: 9.0.1
  • Role: Developer
  • Tags:
  • Replies: 7

Hi,

I have got a user x who only have following access control on my mail file . read documents, write  public document, copy or replicate document

My mail file is customized where a celndar entry form has embeded web browser.

Now , when  user x tries to open an appointment and tries to get the browser control, it throws an error."you are not authorised to perform the opeartion"

Dim ObjCntl As Variant

Function hsOpenBrowser(apptHierarchy As ApptHierarchy, hsuidoc As NotesUIDocument, hsNewInstance As Boolean, hsEditSeries As Boolean, hsPageLoaded As Boolean, viewHSPage As Boolean)    

 

    Dim hsdoc As NotesDocument, activeDoc As NotesDocument

    Dim dts1 As NotesDateTime, dte1 As NotesDateTime

    Dim o As Variant, returnAttendees As Variant, selectedDate As Variant, initDateSeries As Variant, pSDates As Variant, pEDates As Variant

    Dim uniqueStr As String, url As String, recurrenceChk As String

    Dim changeVar() As changeDetail

    Dim bookingSet As String, initDatesStr As String, pSDatesStr As String, pEDatesStr As String

    Dim i As Integer, startIndex As Integer, endIndex As Integer

    Dim EmailLookup As String

    Dim EmailAddress As String

    Dim RecurrProp As String    

    Set hsdoc = hsuidoc.Document    

If IsEmpty(ObjCntl) Then

        Set ObjCntl = hsuidoc.GetObject( "Microsoft Web Browser" ) 'i got an error here

End If

 

I am not sure if there is a minimum permission required to do this operation. Does anybody have any idea?

 

Thanks

 

Jul 26, 2016, 11:46 PM
202 Posts
If you change the ACL permissions does it work?
If you restrict your ACL permissions does it work? Would be a simple test.

Also I wonder if maybe it is related to 32 bit notes and a 64 bit IE?


Also on the off chance you're one of the Nitin Chopra's that works for IBM, you might want to ask in the internal IBM forums.
Jul 27, 2016, 2:17 PM
4 Posts
it works with read only permission

 

Yes, if i change the permission level to Read Only , then it works.

Also, i found that when i got an error the ACL was set to NO access.

i am not sure if setting delegate permission should elevate the permission, but its definitely not doing for me

 

 

 

Jul 28, 2016, 6:54 AM
11 Posts
NotesSession.CreateObject("Microsoft Web Browser") instead?

"You are not authorised to perform the operation" suggests that GetObject is hitting the 'No Access' ACL level on the mail file and ignoring the public read/write setting.

Create the object via NotesSession instead, maybe?

Just a thought.

Jul 28, 2016, 6:54 AM
11 Posts
NotesSession.CreateObject("Microsoft Web Browser") instead?

EDIT: Duplicate post when I hit 'Save' ...

Jul 28, 2016, 7:29 PM
4 Posts
notessession.createobject method is not definred

is createobject method defined for notesession class? i was reading documentation but no such method exists..

Jul 29, 2016, 6:02 AM
11 Posts
My mistake ...

The CreateObject function (as opposed to the uidocument method) returns a variant.

e.g Set xlApp=CreateObject("Excel.Application")

 

Aug 11, 2016, 8:41 PM
4 Posts
createobject open browser as a seperate application

Ok, i have tried this . but it seems like it will open browser as a separate application. But as per our design we need to show it as embedded browser and make it look like its a part of calendar entry form.


This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal