cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

Recording query operations in macro (Arbortext Editor 6.1)

Max_at
1-Newbie

Recording query operations in macro (Arbortext Editor 6.1)

Hi all,

I'm trying to record a macro in Arbortext Editor. I need the following:

1) Insert markup pop up window;

2) Choose query from bottom drop down list (I've modified my dcf file to allow datamerge);

3) Select the only query name I got;

4) Click on 'Insert' (or double click on name selected on query name at point 3).

When I start macro recording, the only instance I get in my macro file is '#InsertMarkup' and no more. Also, trying to run it, it doesn't show the insert markup window, although permitted in current position.

I wonder if it is possible or not.

Any help?

Thanks,

Max

5 REPLIES 5
Max_at
1-Newbie
(To:Max_at)

I'm trying to do the same just using a ACL script, called by a customized menu, to avoid any macro management.

I used the insert_tag("atidm:query").

It calls a general query and shows a query attribute popup. I'd like to call query WITH attributes needed (queryName etc.), but I can't understand how to do that. If I add anything else the simple atidm:query instance, editor just doesn't add any string, neither error messages.

Thanks.

Max

Are you using oid_modify_attr() to give a value the the queryName attribute?

oid_modify_addr(oid,"queryName","YourValueForqueryName")

???

Thanks for answering.

No, I didn't, I was using just a call to:

insert_tag("atidm:query");

in my acl init script file.

Could you please explain me how to use your line of code?

Manuals don't help so much in term of samples...

Thanks.

Open a document in Arbortext Editor, like the sample axdocbook.

Place the cursor after a para start tag.

From the "Command:" line enter

oid_modify_addr(oid_caret(),"role","bold")

"role" is the name of the attribute

"bold" is the content

oid_caret() is a function that returns the oid value for the cursor position in the Editor window.

Typo;

oid_modify_attr NOT oid_modify_addr

Top Tags