Problem with DISPLAY DOCUMENT

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
ckirnbauer
Posts: 68
Joined: Wed Oct 04, 2006 2:46 pm

Problem with DISPLAY DOCUMENT

Post by ckirnbauer »

Hello,

for PRINT DOCUMENT doesn't support printing out at the client's(user's) default printer, we tried to use DISPLAY DOCUMENT instead.

But now the problem is, that display document doesn't display all the documents as expected, instead only 1 document is delivered, the others are missing; in other words: DISPLAY DOCUMENT doesn't deliver the same results als PRINT DOCUMENT

More details:
we have a business object PrintPackage, that has multiple objects of type PrintRecord in inline presentation. In object PrintRecord, we havefor each document type a Yes/No field, where the user can check this field, if he wants the document type to be printed out.

The rule for printing is:
If PrintPackage.PrintRecord WAS CHANGED Then
PrintPackageDoPrint // implements the DISPLAY DOCUMENT statements
FIND PrintRecord WHERE PrintRecord.PrintPackage=PrintPackage
PrintRecord.Active='No'
PrintRecord.NrCopies=0

The find statement unchecks the checkboxes after printing, what works fine with PRINT DOCUMENT, but works WRONG with DISPLAY DOCUMENT.

It seems, that PrintRecord.Active='No' is executed before the DISPLAY DOCUMENT statement is finished (with the Continue-buttons and so on).

Is this a bug?
This functionality is very important for us

Kind regards
Chris
aware_support
Posts: 7525
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Post by aware_support »

I am not sure what the problem is. Is it that DISPLAY DOCUMENT only delivers one document or that the checkboxes are cleared or both?

Can you provide the contents of the PrintPackageDoPrint process?
Aware IM Support Team
ckirnbauer
Posts: 68
Joined: Wed Oct 04, 2006 2:46 pm

Post by ckirnbauer »

The problem is, that DISPLAY DOCUMENT only delivers one document, although two checkboxes were activated.
---> After click onto "CONTINUE", AwareIM navigates back to the previous view - in that case to the PrintPackage overview.

---> PRINT DOCUMENT does the work fine and delivers all the documents.

After printing, the rule should clear the checkboxes.


PrintPackageDoPrint consists of:

Rule PrintPackageDoPrint
===========================
FIND PrintRecord WHERE PrintRecord.PrintPackageID=PrintPackage.PrintPackageID AND PrintRecord.Active='Yes'

Rule PrintPackageDoPrint2
===========================
If PrintRecord.PrintRecordText='Contract' Then
DISPLAY DOCUMENT PackageVerificationSheet

Rule PrintPackageDoPrint3
=========================
If PrintRecord.PrintRecordText='Creditcard Authorisation' Then
DISPLAY DOCUMENT CreditcardAuthorisationEnglish

kind regards
chris
ckirnbauer
Posts: 68
Joined: Wed Oct 04, 2006 2:46 pm

Post by ckirnbauer »

Hello Support,

have you already found out where the problem is with the DISPLAY DOCUMENT statement?

I repeat it again, that PRINT DOCUMENT works fine!!!!

This is a very important issue for us. If this functionality doesn't work for 100 percent, we'll suffer a big setback on account of the printing issue.

Kind regards
Chris
aware_support
Posts: 7525
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Post by aware_support »

We haven't been looking at the problem yet, but we will. If you want us to look at it as a matter of urgency please purchase a support ticket.
Aware IM Support Team
aware_support
Posts: 7525
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Post by aware_support »

Could you please send the BSV file to [email protected]?
Aware IM Support Team
ckirnbauer
Posts: 68
Joined: Wed Oct 04, 2006 2:46 pm

Post by ckirnbauer »

Have send the BSV file.

Another question:
when there are the continue buttons for displaying more pdf documents displayed, and I click onto the URL to display the document,
an additional blank page is displayed.

(http://localhost:8080/cerberusdata/repo ... ortResults)

Is this blank page necessary or could it be prevented to display this page ?
That blank page is annoying for the users.

Kind regards
Chris
aware_support
Posts: 7525
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Post by aware_support »

There shouldn't be any blank pages. It looks like a bug - we'll have a look.
Aware IM Support Team
ckirnbauer
Posts: 68
Joined: Wed Oct 04, 2006 2:46 pm

Post by ckirnbauer »

Hello,

I tried to reconstruct the BLANK BROWSER WINDOW PROBLEM:

I got the same results on a Windows XP SP2 system and on a SUSE LINUX 10 with
Firefox 1.5.0.4 AND Acrobat Reader



- I started Library live sample at the AWAREIM website
- login as operator
- start report "borrowed items"
- Text appears: "Please click here to see document"

- LINUX/Windows asks me: You have chosen to open RDDOc49246.PDF, which is a: PDF document from http://208.109.48.98

What should Firefox do with this file?

( o ) Open with [ acrocread (default) ]
( ) save to disk
[X] do this automatically for files ... (is checked)

- I click onto "Open"
- then Acrobat Reader Opens the report RDDoc49246.PDF

- Additionally, a BLANK Firefox window without a URL is displayed, too.
- So what is with this blank browser window?

Bye the way, static PDF links like librarycasestudy.pdf are opened correctly in a new browser window WITHOUT a blank window.

Kind regards
Chris
ckirnbauer
Posts: 68
Joined: Wed Oct 04, 2006 2:46 pm

Post by ckirnbauer »

Hello support,

could you reconstruct the blank browser problem with Firefox?

Kind regards
Chris
aware_support
Posts: 7525
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Post by aware_support »

Not yet. We hope to look at this issue next week.
Aware IM Support Team
aware_support
Posts: 7525
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Post by aware_support »

You can get rid of the blank page by doing the following:

Open the file reportResultsRedirect.jsp located in the AwareIM/Tomcat/webapps/AwareIM directory. Search for
target="_blank"

Remove the target="_blank" attribute and save the file.
Aware IM Support Team
Post Reply