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


Apr 12, 2018, 3:32 PM
2 Posts

@DbCommand("Domino";"ViewNextPage") is not working

  • Category: Domino Designer
  • Platform: All Platforms
  • Release: 9.0
  • Role: Developer
  • Tags:
  • Replies: 5

Hi Team,

 

I am using Lotus notes server 8.5.3. I am facing a issue with pagination. @DbCommand("Domino";"ViewNextPage") and @DbCommand("Domino";"ViewPreviousPage") is not working.

Here, i have page with embedded view as pass through HTML enable and it show 100 line of documents. at the bottom of this page i have two hotpot action link with above command to view next and previous page.

When i click on next and previous link, it create an extra url after the ?openpage like: &Click=85258266006313B2.f7c8d5767552fffb8525741600633bac/$Body/0.37A due to this extra parameter i am not able to view next list of documents. It point to same page without any error.

If i copy same application with documents to local then pagination is working fine(both next and previous) links works however once i re-promote it into server then t stop working again. 

I checked out all the forms however i did not found any answer yet. Kindly please help on this issue.

Thanks,

Joshi

Apr 17, 2018, 4:25 AM
14 Posts
Enable javascript for the database
I'm not sure if this will help, but it might...

I think the links generated by @DbCommand("Domino";"ViewNextPage") and @DbCommand("Domino";"ViewPreviousPage") depend on javascript to work properly.

With the database open in the Notes client, have a look at the database properties.
If the property "Use JavaScript when generating pages" is disabled, enable it.

Also, if javascript is disabled in your web browser (either through an extension or built-in browser configuration), enable it, at least for the domain of your Domino server.
Apr 17, 2018, 2:28 PM
2 Posts
It did not worked

Thanks for your response Scott. 

Yes - "Use JavaScript when generating pages" property is enable in the database. This was the known issue in R6 and R7 however it was fixed in later release. I think now it is re-appeared.

I also try to add button and link both however it adds application UNID in the URL &Click=85258266006313B2.f7c8d5767552fffb8525741600633bac/$Body/0.37A instead of @start and count.

 

Apr 18, 2018, 7:41 AM
14 Posts
Check browser console for script errors?
If javascript is enabled for the database and in your web browser, then the only other thing I can think of is to check your browser console to see if any script errors occur when you click the links.

I don't have any Domino 8.5 servers to check, but I've tried the same thing on a Domino 9.0.1 server and the links work as they should.
The links definitely use javascript (I checked the page source), so they will fail if javascript is either disabled or produces an error.

This was my test setup:
Page with embedded view.
Embedded view properties set to:
- Display: Using HTML.
- Lines to display: 100 (with "use default" unchecked).
- All other properties are default settings.

Two action hotspots set to Run as "Client" and "Formula".
One of them has the formula @DbCommand("Domino";"ViewPreviousPage") and the other has @DbCommand("Domino";"ViewNextPage").
Apr 30, 2018, 9:53 PM
323 Posts
When I've run into this issue, it's been an unrelated Javascript syntax error

Since this command requires a server roundtrip, the page has to be submitted and then retrieved again.

That can fire off some JavaScript on the page. If that JavaScript hits a syntax error, then it'll look as though the command has a problem.


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