Setting Query Prompt Default Reply S’abonner

0
Avatar
Legacy Poster

Is there a way to set the default reply for a query prompt other than using a hardcoded value?

In my scenario, I have users around the world that would like to have their own specific default value for a query prompt. Historically speaking, multiple copies of a particular label have been created for this single purpose. Needless to say, this is not very efficient for maintenance purposes. I can provide the default value through a shared substring but I am having trouble figuring out how to transfer the value of said substring to the default reply for the query prompt.

Please advise.

4 commentaires

0
Avatar
Shotaro Ito
Actions pour les commentaires Permalien

Hi Jason,
Use Batch Maker - You can specify query prompt default reply.
0
Avatar
Shotaro Ito
Actions pour les commentaires Permalien

Another option:
Create a XMLScript like below

C:\QueryDefault.btxml
[xml]<?xml version="1.0" encoding="utf-8"?>
<XMLScript Version="2.0" Name="09232006_103601_Job1" ID="123">
<Command>
<Print>
<Format>C:\document1.btw</Format>
<QueryPrompt Name="Q1">
<DefaultReply>HELLO</DefaultReply>
</QueryPrompt>
</Print>
</Command>
</XMLScript>
[/xml]

The script above will set default reply and still able to modify value by user.
However XML Script doesn't close BarTender application, so need to combine with command line option.

Create a shortcut / batch file like below
[code]"C:\Program Files\Seagull\BarTender Suite\bartend.exe" /XMLScript="C:\QueryDefault.btxml" /X[/code]

One more option(Automation edition of 9.4 or later):
Use QueryPrompt class of BarTender .net SDK, from custom application created by C# / VB.net.
0
Avatar
Legacy Poster
Actions pour les commentaires Permalien

First, I would like to thank you for your response to this issue. Having multiple copies of labels simply for the purpose of providing a set of default prompt values is a common issue within my organization.

After posting the original message, I discovered how I could pass along a default reply for a query prompt by using command line parameters, more specifically, the /? command line parameter. The only drawback to this is that it passes along the value but doesn't allow the user to modify the value (at least not from what I have observed). Constrast this with the XMLScript method you suggested which allows modification of the default reply and it appears that the XMLScript method is better. However, with the command line parameter /PD, I can allow the user to change print parameters (number of copies, printer, etc.). This parameter does not appear to work when using the XMLScript method. It looks like I can set these values in the XML file but it still doesn't allow the user to change them. Is there a way to combine both of these, allowing the print dialog to display and allowing the user to edit the default prompt reply?

All that said, I am still interested in how I can programatically pass the default reply in (other than building a custom application outside of BarTender), if this is even possible. What I have done is construct a .NET component that looks up a default prompt reply value based on the currently logged on user. I would like to get this value into the query prompt dialog and still allow the user to edit the value before printing. Any suggestions beyond what has already been stated?
0
Avatar
Shotaro Ito
Actions pour les commentaires Permalien

There's no option in XML to show print dialog, unfortunately.
How about create a component to generate desired XML script at print time? you can specify Number of copies and printer etc from XML.

Vous devez vous connecter pour laisser un commentaire.