Quantcast
Channel: PTC Community: Message List - Arbortext
Viewing all 3717 articles
Browse latest View live

Re: Toolbar buttons missing in 7.0?

$
0
0

I got the answer from the Arbortext support and it might be helpful for others too.

 

Two ways you can edit the toolbar buttons:

1.  Creating a custom directory. In the dialogs directory within, create a file named Toolbar_equation.xml with the following contents:

 

<?xml version="1.0" encoding="UTF-8"?>

<!--Arbortext, Inc., 1988-2010, v.4002--> <!DOCTYPE window PUBLIC "-//Arbortext//DTD XUI XML 1.1//EN"  "xui.dtd" [ <!ENTITY % xuidlgStrings PUBLIC "-//Arbortext//TOOLBAR ENTITIES XUI XML 1.0//EN" "dialogStrings.ent"> %xuidlgStrings; ]> <window> <imagegroup> <image id="imageInsertEquation" path="icons/equation.png"/> </imagegroup> <toolbargroup> <toolbar id="toolbar11" name="Equation" x="128" y="0"> <button command="InsertEquation" id="Toolbar_Equation" image="imageInsertEquation" statustext="Insert an equation element" tiptext="Insert Equation;"> </button> </toolbar> </toolbargroup> </window>

 

Then add an Acl call somewhere in the user's application:

 

window_load_component_file(current_window(), 'Toolbar_equation.xml')

 

Side effects include a new toolbar named "Equation" in the View->Toolbars menu, the tip and status text are not translated.

 

2. Create a custom directory. In dialogs directory within, place a copy of the Editor lib/dialogs/editwindow.xml file. In this file, add the following markup within the <imagegroup> after the InsertGraphic:

 

<image id="imageInsertEquation" path="icons/equation.png"/>

 

Then add the following markup within the <toolbar id="toolbar1"> after the InsertGraphic button:

 

<button command="InsertEquation" id="Toolbar_Equation" image="imageInsertEquation" statustext="Insert an equation element" tiptext="Insert Equation;"> </button>

 

Side effects include the status and tip text are not translated.


Re: Isodraw Missing Elements.

$
0
0

Hi Tim Phelps,

 

I tried a lot to solve the issue which is displayed in the above message, but i dint get the exact solution of this. Please kindly do the needful.

XUI question--how to pass strings collected from XML back to ACL script?

$
0
0

Hello everyone,

 

Here is my acl script:

$doc=doc_open("C:\\Temp\\test.xml", 1);

$win=window_create('xui', 0x10, $doc, '300x800-1-1');

window_show($win,1);

 

Here is my XML file--test.xml:

<?xml version="1.0" encoding="UTF-8"?>
<!--Arbortext, Inc., 1988-2011, v.4002-->
<!DOCTYPE window PUBLIC "-//Arbortext//DTD XUI XML 1.1//EN"
"xui.dtd">
<window backgroundcolor="grey" focus="Cancel" height="200" modal="false"
orient="vertical" pack="start" title="Country Selection" width="500">
<box orient="vertical">
<radiogroup id="test1" label="Filtering Mode" orient="horizontal" pack="start"
resize="natural">
<radio id="Countrygroup1" label="Country group 1"></radio>
<radio id="Countrygroup2" label="Country group 2"></radio>
<radio id="Countrygroup3" label="Country group 3"></radio>
</radiogroup>
</box>
<spacer height="5"/>

<groupbox label="Select Country Code(s):" pack="end" resize="width">
<box id="test2" orient="horizontal">
<grid columns="3" resize="width">
<checkbox id="CountryA" label="Country A"></checkbox>
<checkbox id="CountryB" label="Country B"></checkbox>
<checkbox id="CountryC" label="Country C"></checkbox>
<checkbox id="CountryD" label="Country D"></checkbox>
<checkbox id="CountryE" label="Country E"></checkbox>
<checkbox id="CountryF" label="Country F"></checkbox>
</grid>
</box>
</groupbox>
<spacer height="10" resize="none"/>
<box pack="end">
<button label="OK" type="accept">
<script type="application/x-javascript" ev:event="domactivate">
var document = Application.event.target.ownerDocument;
var radiobox = document.getElementById("test1");
var checkbox = document.getElementById("test2");
var list1 = radiobox.getElementsByAttribute("checked", "true", 1);
var list2 = checkbox.getElementsByAttribute("checked", "true", 1);
for (var i = 0; i < list1.length; i++) {
   Application.alert(list1.item(i).getAttribute("id"));
}
for (var i = 0; i < list2.length; i++) {
   Application.alert(list2.item(i).getAttribute("id"));
};
var dialog = Application.event.view.window;
dialog.close();
</script>
</button>
<button id="Cancel" label="Cancel" type="cancel"></button>
</box>
</window>

 

How could I pass both list1 and list2 strings in my XML back to my acl script for further processing?

 

Your help will be greatly appreciated.

 

Sincerely,

Jing

syntax for passing attribute value to simple acl function

$
0
0

I'm having trouble figuring out how to pass an attribute value to a simple acl function that formats and returns the value to save it to a variable. The attribute is "revdate" and the eic is "cmm"

 

<e-I-c gi="cmm>

...

<att>

<specval attname="revdate" attval="#ANY">

<fillval attname="myfuncs::format_date" attloc="system-func" fillcat="savetext" fillchar="conrule">

<charsubset>

<savetext textid="issuedate.txt">

</charsubset>

 

Plus I know I'm not declaring the function correctly:

function format_date(window,oid)

...

local date=oid_attr(oid, ?);

...

 

Any help is appreciated.

Re: Starting a Counter from 0

$
0
0

Hi Tag,

 

If figure numbering should start with 0, code the usetext that outputs the counter before the enumerat that increments it.

 

Good luck!

Suzanne Napoleon

"WYSIWYG is last-century technology!"

Re: syntax for passing attribute value to simple acl function

$
0
0

Thanks, Suzanne, I didn't know about the error checking.

 

But what I wanted to know is if there is a way to pass an attribute as a parameter to an ACL function. I haven't found any examples doing that. I had to create a second function to pass the revdate attribute to the format_date function:

 

<fillval attname="myfuncs:get_revdate" attloc="system-func" fillcat="savetext" fillchar="conrule">

...

function get_revdate(window,oid) {

local v; 

v = format_date(window,oid, "revdate")

return v

}

 

I didn't like hardcoding revdate in the ACL. I wanted to do something like this:

<fillval attname="myfuncs::format_date('revdate')" attloc="system-func" fillcat="savetext" fillchar="conrule">

 

function format_date(window, oid, attr) {

...

local date=oid_attr(oid, attr);

...

Re: Since this morning, I cannot open PTC Arbortext Advanced Print Publisher. License problem: The desired vendor daemon is down Requesting ArbotextAPPDesktop 7788@localhost: (-97) Rebooted computer a few times but to no avail. Anyone out there with a s

$
0
0

It sounds like you are meant to have the FlexNet Licensing Server running on your local machine, but it is not responding to APP's requests for a license. To start with, you have to check the Flexnet admin page. There is usually a link in your PTC "Start Menu" folder, or you can try http://localhost:8080 in your web browser. The default login is admin/admin. You will then be able to check if "ptc_d" is in fact running, or if not, why not.

Many languages in one topic, just one needed in pdf.

$
0
0

Hi, I have many paragraphs in differents languages in a same topic.

Each paragraph have xml:lang attribute like : <p xml:lang='en'>Hello World</p><p xml:lang='de'>Halo Gerrit, get's?</p><p xml:lang='fr'>Salut à tous.</p>

I want to publish this topic in pdf one time only in english and/or one time only in german and/or one time only in french.

How can I do that, just with Styler and Windows (no SIM, no PE or anything else) ? 

Thanks.

Hugues


Insert PDF file in Arbortext map

$
0
0

Hi, I can insert a PDF file as chapter in a map.

But, when I publish the map with Arbortext Styler, just the name of the PDF file appear, and not the content of the file...

My question is : Normal or not ??

And if not, how can I do to have the content?

 

 

Thanks.

 

 

Hugues

Re: Starting a Counter from 0

$
0
0

Hi Suzanne,

 

Thank you for helping me out with this. This fixed the problem perfectly!

Table Input Throughout A Document

$
0
0

Hi everyone,

 

Is it possible to have information from a table linked throughout a document?

 

In other words, if I enter data into the first table (see highlighted content in attached PDF) and I want to have multiple tables inherit that same data, is it possible to setup the tables where I only have to enter the data once in the first table?

 

I've included an editor view to show how the table is entered in Arbortext (see attached PNG file).

Re: Message : Cannot insert control 'MSCAL.Calendar' with Arbortext Editor 6.0 in Windows 7

$
0
0

Francis,

I am seeing the same message with Arbortext Editor 7.0 on Windows 7.  Our users still on Editor 5.4 are not reporting this issue, so I assume that it is not a Windows 7 problem.

 

I am guessing that you are using something like this in the doctype .dcf config file:

 

<ActiveXControl element="date" controlName="date" scriptFileName="date.js" scriptName="date" programId="MSCAL.Calendar" eventName="DOMActivate">

 

Anybody have any suggestions?

Re: syntax for passing attribute value to simple acl function

$
0
0

Hi Caroline,

 

It doesn't need to be that complicated.

 

In the FOSI:

 

<fillval attname="myfuncs:formatdate" attloc="system-func" fillcat="savetext" fillchar="conrule">


The following ACL gets the attribute value using oid_attr and oid_current_tag. Then you can use substr to format the string.


function formatdate(window,oid)

{

$d=oid_attr(oid_current_tag(),"revdate");

...

return ...;

}


If you have my book, you can search for "system-func" to see various examples of how to use ACL with FOSI. If you don't have my book, it is available at http://fosiexpert.com/Practical-FOSI.html.

 

Good luck!

Suzanne

Re: Table Input Throughout A Document

$
0
0

Hi Tag,


I'm not certain what you mean by "table linked throughout a document" and "multiple tables inherit that same data."


If you want to save a table and output it elsewhere, that can be done, but there needs to be a way to distinguish that  table from other tables in the document. Typically that would be a particular attribute value, which could be an ID value. You could also test for table content, but it would need to be unique within the document.


Or do you have something else in mind?


Suzanne

Re: XUI question--how to pass strings collected from XML back to ACL script?

$
0
0

Hi Jing Chang,

 

you can pass throw a string variable as parameter back to acl.

In Javascript:

Acl.eval("Packagename::Aclfunctionname('" + list1 + "')");

 

in ACL:

function Aclfunctionname($liststring)

{

     #do further processing

     message_box($liststring,0)

}

 

Hope that will help you.


Re: Modify-Attributes Dialog as docked window

$
0
0

Hi,

 

to get this window docked, meanwhile we build our own modify attribute dialog with xui, which we start docked on the right side.

Debug Message window

$
0
0

I am using Arbortext 7.0 F000 and obtaining the annoying Debug Message window every time I paste jpeg graphics into my document.

 

I have been using Arbortext 7.0 for over three months now and this started happening on the morning of 4 April 2016. I work offline. The error in the Debug Message window reads "add_psv: Cannot insert page reference due to invalid saveref". I see no saveref preference or value in advanced Preferences.

 

I set the pastesource preference to blank "fix" reported in the post by Steven Powell Apr 29, 2014 12:10 PM, however this did not work.

 

Any recommendations?

Re: syntax for passing attribute value to simple acl function

Re: XUI question--how to pass strings collected from XML back to ACL script?

$
0
0

Hello Hubert,

 

Thank you very much for your great help!  It works very well after a few tries. Getting any help like this is so appreciated since I'm new to XUI and AOM programming.

 

Thank you once again for your kindness.

 

Sincerely,

Jing

Re: Many languages in one topic, just one needed in pdf.

$
0
0

You should explore the Arbortext feature called "profiling". If you want to produce a PDF you will also need to have a print capable license, such as Arbortext Styler, Publishing Engine or Print Composer.

Viewing all 3717 articles
Browse latest View live


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