Issue 11969 - How to get text fields from the API
Summary: How to get text fields from the API
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: PC Linux, all
: P3 Trivial
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
Keywords: needmoreinfo, oooqa
Depends on:
Reported: 2003-03-02 22:18 UTC by Unknown
Modified: 2013-02-24 21:06 UTC (History)
2 users (show)

See Also:
Issue Type: TASK
Latest Confirmation in: ---
Developer Difficulty: ---


Note You need to log in before you can comment on or make changes to this issue.
Description Unknown 2003-03-02 22:18:06 UTC
zip file:
source file:
method:       templateExample()
line numbers: 187 and 188
code segments:
    161         Hashtable recipient = new Hashtable();
    162         recipient.put("Company", "Manatee Books");
    163         recipient.put("Contact", "Rod Martin");
    182         // access the TextFields and the TextFieldMasters collections
    183         XNameAccess xNamedFieldMasters =
    184         XEnumerationAccess xEnumeratedFields =
    186         // iterate over hashtable and insert values into field masters
    187         java.util.Enumeration keys = recipient.keys();
    188         while(keys.hasMoreElements()) {
    189             // get column name
    190             String key = (String)keys.nextElement();
    192             // access corresponding field master
    193             Object fieldMaster = xNamedFieldMasters.getByName(
    194                 "" + key);

        The text fields are hard coded (lines 161-163).  It's my understanding
    that the text fields are part of the document and can be obtained by
    the API.  Unfortunately the example (lines 182 - 194) doesn't show how
    this can be done since it uses the hard coded values. The question is,
    how can the text fields be obtained from the API.  (The text fields can
    then be used to access the database and obtain the value that is to
    replace the text fields.)  Please show how this is done in the example.
Comment 1 ooo 2003-03-05 23:04:07 UTC
I think this issue was assigned to me as a mistake.

I reassign it to
Comment 2 stx123 2003-03-06 19:37:01 UTC
If in doubt, "Reassign issue to owner of selected subcomponent".
In this case you may have meant jsc.
Comment 3 ooo 2003-03-07 13:58:06 UTC
please add this to your chapter of the dev guide
Comment 4 Oliver Specht 2003-03-12 12:20:44 UTC
Target changed
Comment 5 thomas.lange 2004-04-20 11:53:07 UTC
Comment 6 thomas.lange 2004-04-20 11:53:37 UTC
Comment 7 thomas.lange 2004-06-16 13:22:34 UTC
TL: changed type to TASK in order to distinguish it from features and 'regular'
Comment 8 thomas.lange 2004-08-23 12:48:31 UTC
Now being the time tu update the developers guide for the next release, looking
at your sample I'm not completely sure what the problem you like to have covered.

From the description following "Issue:" it looks like you're looking for a way
to access a list of all text fields of a document in order to look for a
specific one. But the example already uses the text field enumeration in line 184ff.

Please state what exactly you're missing and/or what you like to do.

After this please reassign this issue back to me. Thanks!
Comment 9 stx123 2005-01-19 16:24:59 UTC
Hi, would you please provide some more info about how we can help you?
Btw, I think the mailing list would be a good resource
for questions about API usage.
Thanks, Stefan
Comment 10 ace_dent 2008-05-14 22:57:33 UTC
This Issue requires more information ('needmoreinfo'), but has not been updated
within the last year. Please provide feedback as requested and re-test with one
of the latest versions of OOo - otherwise the issue may be Resolved as Invalid
in the future.


Cleaning-up and Closing old Issues as part of:
~ The Grand Bug Squash, pre v3 ~