Based on https://ask.libreoffice.org/en/question/67644/looking-to-create-grid-not-table-control-on-base-form/ created a grid inside a dialog. Tried to convert it to python but XGridSelectionListener is not triggered. https://bugs.documentfoundation.org/attachment.cgi?id=142334 contains an example. The grid in dialog works perfect, but selecting any row in grid does not trigger the required function. The "Companies" form contains a button with label "Test Dialog Grid" that will "poke" the value of the first column of the selected row (if OK is pressed).
(In reply to Ηλίας Ηλιάδης from comment #0) > The "Companies" form contains a button with label "Test Dialog Grid" that > will "poke" the value of the first column of the selected row (if OK is > pressed). What is the expected result after I click OK?
The ok works perfect. If you click in say the second row and then click OK the "Companies" form will receive the registration number from the first column of the selected row and will print 1: plus the registration number to the text box on the right of "Test Dialog Grid" button. But the listener (a def inside the python class SomeListener) was supposed to show this "selected number" inside the dialog box instead of "HAS DATA" that shows initially.
(In reply to Ηλίας Ηλιάδης from comment #2) > The ok works perfect. If you click in say the second row and then click OK > the "Companies" form will receive the registration number from the first > column of the selected row and will print 1: plus the registration number to > the text box on the right of "Test Dialog Grid" button. > > But the listener (a def inside the python class SomeListener) was supposed > to show this "selected number" inside the dialog box instead of "HAS DATA" > that shows initially. It doesn't work when you set it the way the script does do in the dialog model. I'm not sure that is right way to set that for a dialog though. So I changed the script and moved the place where the listener is added to after the dialog is instantiated with this: dlg.createPeer(theWindow, None) thelistener = SomeListener() dlg.getControl("CompaniesGrid").addSelectionListener(thelistener) response = dlg.execute() But still the function SomeListener is never being called. Honestly I'm not sure if that is the right way to set that either, I'm trying to find the answer to that question.
*** Bug 119427 has been marked as a duplicate of this bug. ***
Hello, Could you please try to reproduce it with the latest version of LibreOffice from https://www.libreoffice.org/download/libreoffice-fresh/ after bug 119427 got fixed ? I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the bug is still present in the latest version.
Dear Ηλίας Ηλιάδης, This bug has been in NEEDINFO status with no change for at least 6 months. Please provide the requested information as soon as possible and mark the bug as UNCONFIRMED. Due to regular bug tracker maintenance, if the bug is still in NEEDINFO status with no change in 30 days the QA team will close the bug as INSUFFICIENTDATA due to lack of needed information. For more information about our NEEDINFO policy please read the wiki located here: https://wiki.documentfoundation.org/QA/Bugzilla/Fields/Status/NEEDINFO If you have already provided the requested information, please mark the bug as UNCONFIRMED so that the QA team knows that the bug is ready to be confirmed. Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-NeedInfo-Ping
Dear Ηλίας Ηλιάδης, Please read this message in its entirety before proceeding. Your bug report is being closed as INSUFFICIENTDATA due to inactivity and a lack of information which is needed in order to accurately reproduce and confirm the problem. We encourage you to retest your bug against the latest release. If the issue is still present in the latest stable release, we need the following information (please ignore any that you've already provided): a) Provide details of your system including your operating system and the latest version of LibreOffice that you have confirmed the bug to be present b) Provide easy to reproduce steps – the simpler the better c) Provide any test case(s) which will help us confirm the problem d) Provide screenshots of the problem if you think it might help e) Read all comments and provide any requested information Once all of this is done, please set the bug back to UNCONFIRMED and we will attempt to reproduce the issue. Please do not: a) respond via email b) update the version field in the bug or any of the other details on the top section of our bug tracker Warm Regards, QA Team MassPing-NeedInfo-FollowUp