viewpoint-particle

Author Topic: Reportview Row Update  (Read 564 times)

chrislegarth

  • Jr. Member
  • **
  • Posts: 57
Reportview Row Update
« on: January 31, 2022, 06:02:33 am »
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

  • Tech Support
  • *****
  • Posts: 4094
    • WinBatch
Re: Reportview Row Update
« Reply #1 on: January 31, 2022, 07:48:39 am »
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

  • Pundit
  • *****
  • Posts: 1832
    • Data & Stuff Inc.
Re: Reportview Row Update
« Reply #2 on: January 31, 2022, 08:06:55 am »
The wbOmnibus Extender will set the value of cells.

Jim

chrislegarth

  • Jr. Member
  • **
  • Posts: 57
Re: Reportview Row Update
« Reply #3 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.
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

  • Tech Support
  • *****
  • Posts: 4094
    • WinBatch
Re: Reportview Row Update
« Reply #4 on: January 31, 2022, 01:58:45 pm »
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