Update data after click
Posted 28 June 2012 - 12:53 AM
This is my first post here . I searched a long time for my problem, but didn't find anything.
So here is my question.
I have a Table in my db2 database: Example: Customername (string) | isListed (bool)
In my Birt-report is a data-field which is simultaneously a hyperlink (the hyperlink shows the boolean value of each customer.
Peter | Yes
John | No
If i press the hyperlink, the value in the database is changing from Yes to No and vice versa.
This works fine. Now my question: Is it possible to refresh only the hyperlink (after clicking it) without reloading the whole report?
Example: Peter | Yes -> clicking hyperlink 'Yes' -> Peter | No
I hope you understand my problem =)
If there is no possibility, how i can reload my birt -report after clicking the hyperlink?
Best regards and thank you for your help!
Posted 28 June 2012 - 08:17 AM
Posted 30 June 2012 - 07:39 AM
Is there a possibility to go this way?
If I find some time, i will try your idea also.
Tanks for the help!
Posted 02 July 2012 - 12:35 PM
Posted 12 July 2012 - 03:43 AM
The link shows me first the correct value of the Dataset - "No". After clicking the value is changing to true than false and so on.
Usually this link should show us the values from the Database (No/Yes). I try to explain the problem:
I start the report -> the first shown value of the link is 'No' (because there is no User in that table called for example "Andrew") - that's correct. Now I am pressing the link. Immediately the value from the link is changing from No to true and a new window opened - the php script is starting. Usually the value of the link should change AFTER the php script finished. So the DataSet has to be refreshed also.
The link usually should show us "Yes" after clicking (because now "Andrew" is listed in that table - the php script added "Andrew" into that table). Instead to change the value from "No" to "Yes" it has the value "true". If I'm clicking it again, the php script deletes "Andrew" from the table - now the value of the link should be "No" instead the value is false.
So the value of the link is changing only from true to false and vice versa - the output from the Dataset doesn't matter.
I hope everybody understand my problem.
Posted 13 July 2012 - 10:01 AM
Posted 14 July 2012 - 08:33 AM
Hi again =)
The button/link which shows us Yes/No or True/False, should get this information from a table in my database. If you click on that button/link, there is a php script which is changing this value in my database. In the same time the link/button should get the new value from the database - not just switching from "Yes" to "No" or vice versa. Usually the report gets data while it's loading. But in my case the report should only reload one dataset (the dataset which get the data of the table i mentioned before) when the link/button was clicked and renew the value of that link/button.
Posted 16 July 2012 - 09:19 AM