on 02-13-2015 6:45 AM
Hi,
I am creating new Syclo mobile app for windows platform. I need to create the PDF file which includes the service order data when the service technician create the confirmation and store it to the device and take the print out using an external printer. Can anyone help me on this please?
Basil,
You will need to look into finding an SDK / API that supports generation of PDF files that you can either integrate into the client in an OpenUI control or call a windows command line step / batch file that will generate the PDF so you can attach it and or print it out from the device. There are a number of possible options and you will need to determine which one best meets your requirements.
--Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Basil,
I am assuming you are using a batch file of some kind to run the generation process, correct? If so, what version of the Windows client are you using? Support for windows command line action steps was recently added to the WPF client. I would suggest to make sure you are using the last SDK SP06 PL02 WPF client.
You will also need to probably write out a file during the command line step to contain the data from Agentry you are looking to include in the PDF via the Jasper process.
--Bill
Bill,
Command line step seems to be working fine. But what I need (requirement) to do is to generate the PDF using the Jasper Reports with the help of steplets, not command line. For this, I have created one action button and mapped with an action where it contains a transaction and apply action steps. Transaction is mapped with a Confrimations collection property and also to a steplet (it contains the business logic to load the jrxml file and export to the pdf ) in the update steps where it tries to fetch the data from the collection property.
But its not hitting the java code when I tried to deploy it. Am I missing any steps?
I am very new to this platform.
-Basil
Basil,
Steplets and steps in general associated with transactions will only execute on the Agentry server when the transaction is transmitted from the client. From your original post it appears your requirement is to generate this on the device (not server side) so you will need to move that code out of a steplet and into local java classes that you can still kickoff from the command line.
--Bill
Hi Bill Froelich,
I folllowed below steps to try the Print Functionality by using Jasper Report.
1. Created a New JRXML file [ Jasper Reports ], in this JRXML file i have added 3 Fields, they are Item id, Product id and description. [ these are Part of Items collection in Service order obj ]
2, In Syclo, i have created a Action button in the screen that will call 1st Action [ Action defenition has service order object ]
3. 1st action contain sub action and command line
Sub action : It will loop over Item collection [ Service order object ] and call 2nd action,
Command Line: am calling a java code by java -jar "xxxx.jar". This java code will get runtime data from csv file and fill the data in jrxml [ jasper report file ] and finally display the values in Jasper report and also show PDF [ export ] file.
4. 2nd action contain command Line. In command line, We are using rules [ see below image ] to write objects such as [ Item id, Product id and description ] in csv file.
But this option didnt working properly.
Java part is working fine because i hardcoded data in csv file as [1,2,3], jasper report is displaying with hardcoded values and also PDF generated
Please let me know if am missing anything or tell me the correct way to achive this ?
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.