logo

Warning: The forum is now for consultation only. Please use GitHub Discussions to post any questions or comments.


Welcome Guest ! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
simon75117  
#1 Posted : Friday, December 17, 2021 2:09:41 AM(UTC)
simon75117

Rank: Newbie

Groups: Registered
Joined: 12/3/2021(UTC)
Posts: 2
Taiwan, Province Of China

hi, I want to throw the {CommonValue_<name>} of the main table to the sub report. But when I try to open the sub report, {CommonValue_<name>} it will show NULL. How can I do this? Thank you very much.
Source picture:
https://pasteboard.co/OGFhDTIqiWVu.jpg
sub report setting:
https://pasteboard.co/M2zj6Xzx7GJe.jpg
error message:
https://pasteboard.co/G6ztxDG0V733.jpg
epf  
#2 Posted : Friday, December 17, 2021 1:42:05 PM(UTC)
epf

Rank: Administration

Groups: Administrators
Joined: 12/20/2013(UTC)
Posts: 1,209
Switzerland

Thanks: 14 times
Was thanked: 206 time(s) in 199 post(s)
When you use 'View and Check SQL', if the Common Value has no value, it will use NULL, so it may cause an error (depending on the SQL and your database engine).
The error may not occur if the user executes the report with a value.
So you may specify a default value to make the 'View and Check SQL' work.

Edited by user Friday, December 17, 2021 1:42:39 PM(UTC)  | Reason: Not specified

simon75117  
#3 Posted : Tuesday, December 21, 2021 1:50:30 AM(UTC)
simon75117

Rank: Newbie

Groups: Registered
Joined: 12/3/2021(UTC)
Posts: 2
Taiwan, Province Of China

OK,Thanks.If I want to throw the {CommonValue_<name>}(selected by the dropdownlist) from the main report(not main table) to the sub report. Can I do it?If I put the default value in the sub report, it may be different from the value in the main report dropdownlist.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.