Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3530

Re: Agentry Command Line File Path issue

$
0
0

Vignesh,

 

"In my approach, i added a Edit Transaction of Service order, in Update steps added a step-let [java code] which will get all values from Service order object like below

 

String RequestedStart=_user.getString("transaction.RequestedStart");

 

after getting this values, i am writing the values as multi map and store in a file called as Print.txt

 

[ here how do we instruct step let to write in Client machine, since the application runs from server ?]"

 

The short answer is you don't.  The transaction update setps do not run on the client device.  They run on the SMP server and as such have no knowledge of or access to the client device file system.  The transaction cannot write to a client file system.

 

"After this transaction, i added a transmit and then Command line object. This command line object will read the file and pass value to jasper report for printing

 

I dont want to change entire design since we are in end phase, is there any other alternative way to Read/write should happen in Client machine ?"

 

This is why I was asking what scenario you are trying to achieve.  If you want to run this on the client you will need to make some changes in your design.  Since you mention command steps I am assuming you are using a WPF client.

 

It is possible to create the Print.txt file locally on the client but I would recommend against using transaction update steps for it.

 

There are some options here but in essentially you need to do the following.

 

  1. Create a temporary print_output String property on the Main Object to hold your file contents while you build it.
  2. Have a transaction to reset the print_output to an empty string
  3. Use local transactions (no update steps) to edit and populate your print_output property.
  4. In your Windows Command step map the print_output property to a text file
  5. You command step will still call your print generation / output program passing in the Print.txt file created in step 3.

 

--Bill


Viewing all articles
Browse latest Browse all 3530

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>