• Error selecting dbase and getting views

    By ruud van reede 1 decade ago

    Export view:

    Error after clicking select dbase:
    After the click i get a error refreshing part of the page in:
    dojo.data.ItemFileReadStore:invalid argument. (in a windows error popup)

     

    if i enter the server name and the dbase manuelly (server/server and log.nsf) and i click get views:

    i get a error:

    Script interpreter error, line=4, col=74: [TypeError] Exception occurred calling method NotesSession.getDatabase(java.lang.String, java.lang.String) null

    java scriptcode:

    1:
    2: var dbFilePath:com.ibm.xsp.component.xp.XspInputText = getComponent("dbFilePath");
    3: var dbServer:com.ibm.xsp.component.xp.XspInputText = getComponent("dbServer");
    4: var db = session.getDatabase(dbServer.getValue(), dbFilePath.getValue())
    5: var v = db.getViews();
    6: var a = []
    7: for(var i=0; i 8: a[i] = v[i].getName()
    9: }
    10: return a

    The same happens on the Export document tab

    Export template sample works.

    Havent had time to try Niklas his solution.

    To be thorough:
    Windows 7
    Running Dom 8.5.3 English 32bit (no fixpack)
    Extension Library 8.5.3