Welcome, Guest. Please login or register.
Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - ham13

Pages: 1 [2]
16
I want to get data from a dialog and use that data in the datasource mysql query.

The query in the datasource tblneighborhood is select * from tblNeighborhood where `Paid Year` = 2019;
That works as you would expect.

The query suggested above: select * from tblNeighborhood where `Paid Year` = $V{id};

Produces no data when the query is tested and produces no data when run from the script.

I think mysql is looking for a text item formated like '2019'. So can we convert $V{id} to a text value? $S{id} also does not work.
 
function beforeDataPrint() {
 setVariable("id",  Dialog.txtYear.text)
 reopenDatasource(tblneighborhood)
}

It appears that the variable is not evaluated by mysql or it is empty. I have been unable to visualize the variable id in a text item on the report to check it's contents.

Unfortunately I was a bit premature when I said "subst' suggestion worked. It must have been a fluke.

I still think QtRptDesigner is a good product and I will continue to use it.

Hope this helps.

Thanks
 

17
Got it finally. I'm used to adding '..' to user defined number fields in mysql queries. In this case they were the problem! When I removed them in the source dataset the report worked with no problem.

What is the scripting language used in QtRptDEsigner and would you suggest a good reference source.

So far, I have not found any report that I could not get done with this project. The more you use it the more you come to appreciate its power. Titles in the forum could benefit from translation to English to make it more user friendly.

Thanks for your help and this amazing product

18
I did catch the error in the datasource variable. I tested with $V{id}. Sorry bad typist.

THanks

19
OK followed your suggestion but, it appears not to work.

Datasource tblneighborhood = select * from tblNeighborhood where `Paid Year` = $V{ib};
   Produces no data as expected when the query is tested. Query select * from tblNeighborhood where     `Paid Year` = '2019';. Works. There is data for the year 2019.

Script:
    Dialog.exec() == 1

var Year = Dialog.txtYear.text
var Date = Dialog.txtDate.text

function beforeDataPrint() {
 setVariable("id",  Dialog.txtYear.text)
 reopenDatasource(tblneighborhood)
 }

Where var Year is used in the heading. var Date is also used in the heading.

Dialog.txtYear.text is the value that should be in "id". It is a text field in tblneighborhood as Paid Year ( In mysql you 'txt' text fields).

When I try to render the report there is no data. See attached pdf file.

What am I missing? I can see the logical approach. It should work. It also prints without data.

Thanks

20
OK. I'll give it a try. Finally figured out the syntax to do the calculation. Will post results.

Thanks

21
Hello,

I have a dataset built on a sql query. The query contains a where clause that selects records based on a certain date. The user enters the date in a user dialog. The date is stored in a variable. I would like to use this variable in my sql query. Something like SELECT * FROM <Table> WHERE Date = 'variable'. Is this possible? I think the connection/dataset definition occurs before the dialog script runs.

What is the correct syntax for the expression (COUNT(x..) * 0.15). I want to take the count of the records in the databand and multiply it by 0.15 and display the result in a text item. Can I get the value of a text item?

Thanks

22
Discussion | Обсуждение / Re: Problems with Linux Appimage
« on: November 09, 2022, 09:42:17 PM »
The kits I have in QtCreator are Desktop and replacement for Desktop Qt 6.3.2 GCC 64 Bit. QtCreator is V 8.0.1 - qt6. Wrong version? The last fix adding "CONFIG *= no_formdesigner to common.pri" worked with lots of warnings but, nothing fatal. I was able to compile a release version and run it.

Regarding the appimage I found the problem was the missing Linux component openGL. When I added it; the contents of the dropdowns appeared and appear to function properly.

I'm still not sure why LDR would not compile. Perhaps some problem with Qt6 versus Qt5.
Glad that it runs now and I can get to creating some reports from MySQL.

Thank you for your patience and help! :)

Marty

23
Discussion | Обсуждение / Re: Problems with Linux Appimage
« on: November 09, 2022, 06:43:28 PM »
Installed qtbase5-private-dev. This pacakge contains qtbase private devel files. No change.

Marty

24
Discussion | Обсуждение / Re: Problems with Linux Appimage
« on: November 09, 2022, 06:00:10 PM »
Thanks for your response. I installed Qt using the Qt installer downloaded from qtio
 (qt-unified-linux-x64-4.2.2-online.run). Would you please tell me where and how to install the package
"qt private headers". Do I use the maintenance tool to add additional components and if so which ones? I'm still new at this and need a little more guidance.

Thanks
 

25
Discussion | Обсуждение / Re: Problems with Linux Appimage
« on: November 09, 2022, 03:39:38 AM »
Downloaded Lime Report 1.5.35 from GitHub. Tried to compile limereport.pro with QtCreator on Miint 20.3 Linux. Configuration and build failed.

Error: -1: error: Project ERROR: Unknown module(s) in QT: designercomponents-private

Marty :(


26
Discussion | Обсуждение / Re: Problems with Linux Appimage
« on: November 09, 2022, 12:33:03 AM »
Downloaded files from Sourceforge. Here are the errors I get when compiling with QtCreator. I think I tried both version 3 and version 2. Downloaded from website home page. I'll try to download from github and see what happens.
Will post results.

Using QtCreator in a Linux Mint 20.3 virtual machine running on Window 8.1
Further if I try to compile it with QtCreator 8.0.1 the following errors occur:

👎 error: cannot find -llimereport
👎 error: cannot find -lQtZint
👎 error: linker command failed with exit code 1 (use -v to see invocation)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile:160: ../build/5.12.8/linux64/release/designer/LRDesigner] Error 1
👎 Error while building/deploying project designer (kit: Desktop)
Error while building/deploying project designer (kit: Desktop)
When executing step "Make"
👎 error: Project ERROR: Unknown module(s) in QT: designercomponents-private

the build is unsuccessful. Checked the net and cannot find designercomponents-private.
So what do I do now to get LRDesigener to run properly?

Thanks

27
Discussion | Обсуждение / Problems with Linux Appimage
« on: November 05, 2022, 05:53:13 PM »
Hello All,

I am running  Linux Mint 20.3 64 bit in a virtual box on Windows 8.1. I have loaded LRDesigner_1_4_7-64bit.appimage file. When I run the image LRDesigner opens and I am able to start a new report. The problem is when I click on report bands the drop down list is blank. This also happens when I right click on a text field. If I double click, as I should, It works properly but, not  :)with the band tool. If I click randomly on the band drop down I get a band on the report. Then the program locks up.

What is the fix? Am I missing a component in Linux?

Further if I try to compile it with QtCreator 8.0.1 the following errors occur:

:-1: error: cannot find -llimereport
:-1: error: cannot find -lQtZint
:-1: error: linker command failed with exit code 1 (use -v to see invocation)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile:160: ../build/5.12.8/linux64/release/designer/LRDesigner] Error 1
:-1: Error while building/deploying project designer (kit: Desktop)
Error while building/deploying project designer (kit: Desktop)
When executing step "Make"
:-1: error: Project ERROR: Unknown module(s) in QT: designercomponents-private

the build is unsuccessful. Checked the net and cannot find designercomponents-private.
So what do I do now to get LRDesigener to run properly?

Looks like a great tool if we can get it to run.

Thanks

Pages: 1 [2]