I've successfully created a view in XPages which contains list of all my lotusscript agents and a button to run the selected agent. When I select any one of the agent and run it, it successfully run but all the print statements are not appearing. I checked my code and my print codes are there. Run my agent from designer and the print statements do appear. Is this due to the limitation of xpinc?
Print statements go to the console. So you should find them in the log.nsf you also can start the client with the -rparams -console to get a console. Of course you could follow this example and send the print to a place where you can process it.
Or - if the prints serve debugging purposes, use the Debug Toolbar from OpenNTF.
Related
Hi everyone,
I'am using HP UFT for testing.
I get data from an Excel file and also write data to the same Excel file.
My issue is that when i write data to the Excel file, I can't use it until the test is closed and UFT stops running (UFT won't read it, it's still blank to it).
I need a way to update UFT "view" of the Excel while running, i can't just close and open again the Excel file while test is still running.
Language used: VBScript
Can you help me?
Thank you all
You should use the UFT DataTable. The DataTable utility object gives you ways to import the Excel File programmatically at the beginning of the Test, write the files to there and when it ends, dump it back to a file. As a Bonus, you would also be able to see the DataTable content in the RunReports at the end(under the Data Tab)
Do not forget that everything you do on the DataTable while running the test is written into the memory only. In case the test cannot reach the end where you persist it again, all is lost. You can try error handling with On Error Resume Next, Recovery Scenarios or Class_Terminate based destructors (Create and instantiate a Dummy class, and if the test crashes and stops the Class_terminate will automatically be called where you can do cleanup activities.
I have links to 2 SharePoint sites (different servers) and when I click on the menu option "Edit in Report Builder" on one site it does not load as supposed to the other. I get a dialog that has a show details button on it which when clicked opens a log file. The log file says:
...
Activation of <path>\ReportBuilder_3_0_0_0.application resulted in exception. Following failure messages were detected:
System.Deployment.Application.DeploymentDownloadException (Unknown subtype)
+ Downloading file:///<path>/RptBuilder_3/MSReportBuilder.exe.manifest did not succeed.
...
Any ideas on how to get this to work?
All I know is that I designed the ones on the site that works using Report Builder 12.0. If I go by the error above does this mean report builder 3.0 and so not backward compatible?
I have also tried the clear cache option but that does not work for me either, i.e.:
Open command window
Type: cd C:\Windows\System32
Type: rundll32 dfshim CleanOnlineAppCache
It seems their is an issue between servers that I cannot put my finger on. This is not the ideal solution but simply a workaround.
Goto the following folder C:\Users\[username]\AppData\Local\Apps\2.0
Delete all contents (this is the cached files)
Reopen report
The problem with this temporary solution is works for one server only so I have to repeat each time to switch between the 2 - very annoying.
If someone has a more permanent solution please let me know.
I have a Cognos Express version 9.5 report with Drill-Through defined on a list column that open a second report passing it the coresponding data item value as parameter.
The second report open correctly showing data filtered as it should using the parameter received during drill-Through.
The problem is that the second report take forever to open and freeze my browser during various seconds... This is strange because this problem happen only when opening second report with drill-through and not when opening it directly filling in the optional parameter with a prompt...
Using browser debugger (f12) I noticed that http://my_server/p2pd/servlet/dispatch is called hundred of times before opening the second report and this is what is causing the browser to freeze...
Any idea what is happening?
Try using the 'Drill Through Assistant' to help with debugging your Drill-Through definition.
Here is a link to IBM site describing how to use the Drill through assistant.
Migrating my report to COGNOS 10.1.1 solved the problem...
How does one capture a "Don't Save" or "Save" response to the Standard Suite "close" dialog?
try
close front document saving ask
on error
return
end try
returns "error number -10000" if the user selects "Cancel", so that case is handled.
However, subsequent code depends on whether "Don't Save" or "Save" was selected.
Thanks
UPDATE
Using regulus's answer and it's workaround strategy, I prefaced the code above with
tell application "Finder" to set _modDateAfterSaveDialog to
modification date of (info for file _filename)
where the _filename was assigned earlier from application-specific AS code.
Analogous code and a test followed the "try".
I really have no idea how to get it directly. I assume the command you are issuing is a specific application command, not a standard suite command because standard applescript doesn't have a "front document".
In any case, here's a work-around idea that might work. When a file is saved its modification date changes. So you need to know the file of the front document. Then you just check the modification date of the file before and after you issue this command. If it changed then you know the file was saved.
Good luck.
I have requirement to print log data continuously whenever an event trigger (Without showing print dialog, using default printer). Event may occur twice a second or minit or hour. Also i don`t bother about printer status. example out of paper, communication problem. Printer should not leave empty page. Example event 1 have 4 lines of data to print. While printing event 2, printer should print continuously instead of fetching next paper.
My development environment VC++ and MFC.
Do you have a printer DC with you, if not you have create one and send file across.