WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: chrislegarth on January 31, 2022, 06:02:33 AM

Title: Reportview Row Update
Post by: chrislegarth 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!
Title: Re: Reportview Row Update
Post by: td 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
Title: Re: Reportview Row Update
Post by: JTaylor on January 31, 2022, 08:06:55 AM
The wbOmnibus Extender will set the value of cells.

Jim
Title: Re: Reportview Row Update
Post by: 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.
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!
Title: Re: Reportview Row Update
Post by: td on January 31, 2022, 01:58:45 PM
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~by~Guido.txt)

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