You need to record a macro in the user tool. When recording the
macro, you will perform your search and go all the way through
selecting your predefined report and exporting to csv.
The macro records the report criteria, so technically the report file
is no longer needed. Check the documentation "Integrating-710.pdf"
page 202
You can use runmacro with the -o option to use the arcopy syntax,
which copies
the output to a file:
runmacro -o <output_file_name> [{-x <server>} ...] -U <user>]
[-P <password>] [{ -f | -s} <form>] [-t {arx|csv|xml}]
[-Q <internal_qualification_format>]
[-q <client_tool_qualification_format>]
[-Z <internal_format_qualification_file_name>]
[-z <client_tool_format_qualification_file_name>]
[{-w | -W } <external_authentication_string>] [-a <port_number>]
When you use the -o option to export data with attachments, the
attachments
folder is created in the same directory as the export file. The
attachments folder
name uses an integer time stamp (for example, 917732184), and the
folder location
is specified in the output file name of the runmacro command.
When creating macros, you can record a login with the proper
permissions if you
perform actions that require those permissions (for example, an
administrator
deleting records). If your macro does not record a login, you must
specify login
information using the -U option and the -P option (if necessary).
On Feb 9, 3:34 pm, Guillermo Alfredo Torres Barron
<[email protected]> wrote:
> Hi listers
> I try to execute a rummacro command for export CSV file, I have a report
> definition with the data I need, how can I execute runmacro command with
> the report definition?
> Thanks
> Regards
>
> ...........................................................................
> ................
> Este correo electronico es confidencial y/o puede contener informacion
> privilegiada.
> Si usted no es su destinatario o no es alguna persona autorizada por este
> para recibir sus correos electronicos, NO debera usted utilizar, copiar,
> revelar, o tomar ninguna accion basada en este correo electronico o cualquier
> otra informacion incluida en el, favor de notificar al remitente de inmediato
> mediante el reenvio de este correo electronico y borrar a continuacion
> totalmente este correo electronico y sus anexos.
> Nota: Los acentos y caracteres especiales fueron omitidos para su correcta
> lectura en cualquier medio electronico.
>
> This e-mail is confidential and/or may contain privileged information.
> If you are not the addressee or authorized to receive this for the addressee,
> you must not use, copy, disclose, or take any action based on this message or
> any
> other information herein, please advise the sender immediately by reply this
> e-mail and delete this e-mail and its attachments.
> ...........................................................................
> ................
>
> ___________________________________________________________________________
> ____
> UNSUBSCRIBE or access ARSlist Archives atwww.arslist.org
> Platinum Sponsor:[email protected] ARSlist: "Where the Answers Are"
_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor:[email protected] ARSlist: "Where the Answers Are"