Reportview Row Update

Started by chrislegarth, January 31, 2022, 06:02:33 AM

Previous topic - Next topic

chrislegarth

Is there a way to update a single row within a Reportview without having to replace the complete reportview contents using the DialogControlSet @dcContents request.
I have some fairly large reportviews (16,000 items) and can take up to 8-10 seconds to replace the contents.  Thanks in advance!

td

One approach would be to use the DialogControlSet function's @dcRemItem to remove the item you wish to change and then add the new contents with @dcAddItem
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade

JTaylor

The wbOmnibus Extender will set the value of cells.

Jim

chrislegarth

Tony- I did think of using a remove/add process but unfortunately the added item ends up at the bottom of the Reportview.
Jim- I am not familiar with the wbOmnibus extender but now see your post in the forum and will take a look.

Thanks as usual!

td

Quote from: chrislegarth on January 31, 2022, 08:21:48 AM
Tony- I did think of using a remove/add process but unfortunately the added item ends up at the bottom of the Reportview.

You could always just sort the reportview, use Jim's extender, or use the Win32-based user-defined procedure examples in the Tech Database.

Links to listview articles in the Tech Database:

https://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WinBatch/UDF~-~UDS~Library/Dialog~Boxes+ListView~UDFs~by~Guido.txt

https://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WinBatch/UDF~-~UDS~Library/Dialog~Boxes+ListView~UDFs~-~IFICantBYTE.txt
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade