InDesign content to Database
We have InDesign files created and now we would like to populate the database with content available in InDesign file.
Is there an SDK to read InDesign files content and populate it to database?
Or Please suggest the best approach to get database populated from InDesign?
I know there is an XML export from InDesign files and then that can be imported to DB... but this process has lot of manual work to tie-up relationships between the content in InDesign file.
Hi, Harald!
"This should be faster: table.Contents=Array. Or not?"
Surprisingly is was not. It was slower. A lot slower.
The array was gathered by (here ExtendScript(JavaScript) dummy code) :
myArray = myTable.contents;
Then I did operate on the array. Not on the table object or its cell objects. No direct access to InDesign's DOM objects. Just the built array.
My text file was written by populating it with a string of the array:
myString = myArray.join("separatorString");
separatorString was something that was never used as contents in the table.
Something like "§§§"…
After importing the text file I used the convertToTable() method providing the separatorString as separator for the first and second argument with the number of columns as third argument. The number of columns was known from my original table.
var myNewTable = myText.convertToTable("separatorString", "separatorString", myNumberOfColumns);
Alternatively you could also remove the table after building the array and assign "myString" as contents for the insertionPoint of the removed table in the story. I think I tested that as well, but do not know, if there is a difference in speed opposed to placing a text file with the same contents (I think it was, but not I'm not sure anymore). So I ended up with:
1. Contents of table to Array
2. Array manipulation
3. Array to String
4. Write String as file
5. Remove table
6. Place file at InsertionPoint of (now removed) table
Also to note: This was in InDesign CS5 with a very large table.
Things could have changed in InDesign versions with 64-Bit support.
But I did not test that yet. The customer I wrote this script for is still on CS5.
Uwe
Similar Messages
-
Connecting InDesign to a Database
Hey everyone, thanks for reading my post.
I create publications in which half of the content is a directory of company names (anywhere from 100-800 depending on the publication). All of the information for these companies lives on our database and for the most part, I already implement efficient means of getting that information from the database into InDesign (One is through spreadsheets with excel formulas, and the other is XML automation).
However, our company is growing and we are creating more publications. And I am looking for a faster, more automated way of bringing in the content. I have tried googling "Indesign, Database" and searching forums, however I keep coming up with either old plugins for CS2 and CS3. Or forum posts that don't really answer my question. Which is:
Can anyone shed light on how I might be able to connect Indesign to a database, is it possible? Is there a plugin?
I don't know even know how one would go about do something like this or if it's even possible, so please forgive me if this question is to general.
Thanks for any feedbackWe are going with EasyCatalog. You can download a free trial. We use Access and I am putting together a huge parts catalog. Every question that I have asked them, they have replied and helped. Great customer service and we haven't even bought it yet....waiting on IT..... Don't know if this is exactly what you are looking for. There are several out there. Below are three that I remember. I have asked this queston on here and the FM forum. I did look at catbase, but didn't get to far...easycatalog is cool!
http://www.65bit.com/products/easycatalog/overview/overview.shtm
http://emsoftware.com/products/emdata/
http://www.catbase.com/
ls -
How to delete the complete contents of database table ? should be empty !!
Hi Guys,
I have requirement where i have delete the contents of database table..i have make it empty (no records at all) and then i have to fill it with the records from the excel sheet.
I can upload data from the excel sheet.
Please tell me how to delete the complete contents of the database table ??
Regards
Rahulhi ,
just write like this,
delete from <database table>.
commit work.
sample code, here edpar is database table.
delete from edpar." FROM TABLE g_tab_delete.
call function 'DB_COMMIT'.
loop at g_tab_edpar into g_wa_edpar.
insert into edpar values g_wa_edpar.
if sy-subrc eq 0.
move-corresponding g_wa_edpar to g_wa_edpar1.
append g_wa_edpar1 to g_tab_edpar1.
else.
move-corresponding g_wa_edpar to g_wa_edpar2.
append g_wa_edpar2 to g_tab_edpar2.
endif.
endloop.
that's all it works.
reward points if helpful.
regards,
seshu. -
How can I find text-item description and content in database?
I make "Actual news" region with text and simple image items.
With "Custom Search" autoquery I make news portlet with 10 latest news.
But I will make with PDK-Java discussion portlet, in which users can read and write about last published (last created text item display name and content) news.
My questions:
- How can I find text-item description and content in database?
- How I can sort text-items to find latest created in my region?
I have Portal R2
Thanks in advance.
CheslavI am sorry. The following are the related tables.
WWV_TEXT
WWV_TEXT_BLOCKS
WWV_TEXT_BLOCK_USAGES
WWV_USER_TEXT_BLOCKS
WWV_USER_TEXT_BLOCKS$
WWV_USER_TEXT_BLOCK_USAGES
WWV_USER_TEXT_BLOCK_USAGES$
May be you want to browse WWV_TEXT which is the core table. -
InDesign Content Manager error message in CS3
I recently switched laptops (XP to Win7) and now I'm receiving the InDesign Content Manager error message. I'm running CS3 and the InDesign file is CS3, as well. I also ran the plug-in and software update, but I'm still unable to open any InDesign files. Any help to resolve this issue would be appreciated.
Sorry Willi, that's jut not true. I run CS3 with no issues whatever on two different Win7 pro x64 systems.
I don't, however know what that error message is. Is there any more to it? Have you tried running as Administrator or in XP compatibility mode? (I don't run in compatibility mode, but my users are admins). Do you run a font manager? What do you have for Anti Virus and Malware scanners? -
Save JTextArea content to database problem.
after save the JTextArea content in database,
how to show them as you input,
my main meaning is how to save the enter?
thanks!Hi,
You can use the following code to export to memory
*data variable required for background processing
data: wa_indx type indx.
*EXPORT Internal Table TO MEMORY ID 'XYZ'.
*part for background processing
export tab = <your table> to database indx(xy) from wa_indx client
sy-mandt id 'XYZ'.
the following code will import from Memory and clear memory
*data variable required for background processing
data: wa_indx type indx.
imports from database the list sent by the calling program
IMPORT tab = <your table> FROM DATABASE indx(xy) TO wa_indx CLIENT sy-mandt
ID 'XYZ'.
deletes the data to save wastage of memory
DELETE FROM DATABASE indx(xy)
CLIENT sy-mandt
ID 'XYZ'.
Regards,
Samson Rodrigues. -
Hi, I need some help or idea since I got stuck with storing zip content to database. What I really want to do is storing a huge trunk of zipped content in our database as a blob. In my program, I created a ZipOutputStream that contains the logging detail. At the end, I tried inserting the stream to the database using preparedStatment.setBinaryStream(input stream, size) from Java. Unfortunately, setBinaryStream() method only accepts an input stream as the parameter. How do I convert the ZipOutputStream to an InputputStream? Or is there other way to go around this?
Your help is greatly appreciated!I tried chaining them together with ByteArrayOutputStream and ByteArrayInputStream. But somehow it doesn't seem to work. Here is the how I do it:
byte[] data = sb.toString().getBytes();
int size = data.length;
ByteArrayOutputStream baos = new ByteArrayOutputStream(size);
BufferedOutputStream bos = new BufferedOutputStream(baos);
ZipOutputStream out = new ZipOutputStream(bos);
out.setLevel(9);
ZipEntry entry = new ZipEntry("test.txt");
out.putNextEntry(entry);
out.write(data, 0, size);
out.flush();
ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
out.close();
preparedStatement.setBinaryStream(2, bais, bais.available();
preparedStatement.executeUpdate();
Any hints? thx! by the way, I use http://forum.java.sun.com/thread.jspa?forumID=31&threadID=281034 as my reference. -
Display repository content in Database Studio
Hello
We just started using Database Studio, upgrading from Database Manager. We are trying to review the contents of the repositories like we were able to do with SQL Studio. Have been looking thorugh all the data on line and have not found anything that show how to see the repositories contents.
Is there a way to view the data in the repositories through database studio?
ThanksSorry, but WHAT?
I've no clue what you're talking about.
What 'documents' did you check on in Database Manager???
What do you mean by respository? Are you talking about a CONTENT SERVER??
If so, then how did you check documents from DB Manager?
The documents in content server are accessible via SQL - DB Manager is not and was not a SQL tool.
The Database Studio provides a quite good SQL editor - all you've to to is to provide an SQL logon to use it.
And, just in case you were talking about content server: the only supported way to check for the existence of a document is via the R/3 interface. Direct SQL on those tables is not supported.
regards,
Lars -
Inserting XML content into Database
Hallo
i´m new to Oracle.
i want to insert xml content into the database. for testing i installed the version 10g on a windowsxp computer.
i read the oracle xmldb developer´s guide. on page 3-4 ff. it is explained how i can insert content into the database. that´s how i did it (with isqlplus):
create table example1(key_column varchar2(10) primary key, xml_column xmltype)
-->works fine
create table example2 of xmltype
-->works fine
now i made a directory under c:\myXmlFilesForDb in WinXp
create directory xmldir as 'c:/myXmlFilesForDb in WinXp'
(also tried: create directory xmldir as 'c:\myXmlFilesForDb in WinXp')
--> in this directory is a file named: mydokument.xml
--> works fine
insert into example2 values(xmltype(bfilename('xmldir','mydokument.xml'), nls_charset_id('AL32UTF8')))
the following error message is displayed (in German):
ORA-22285: Verzeichnis oder Datei für FILEOPEN-Vorgang nicht vorhanden
ORA-06512: in "SYS.DBMS_LOB",Zeile 523
ORA-06512: in "SYS:XMLTYPE",Zeile 287
ORA-06512: in Zeile 1
whats wrong? can anybody help me please?
ohhh....
thank you very much
cu
GeorgeDirectory entries are case sensitive.
Select * From dba_directories to ensure you case is the same as you are using in your insert statement.
Are you using the same user? if not grant read on directory directoryname to username;
try to just select.
select dbms_lob.getLength(BFileName('directoryname','filename.xml'))
as length
from dual; -
Update a table content in database MS access
Hi
In my application i am using Database toolkit to write a table in to MS access.
i am able to write a table in to database but i am facing problem in editing a perticular cell in a table which is there in data base, how this can be achieved?
When i use insert data vi, a row of data is being inserted. but in my application i need to keep updating the data in the same field.
Ex: If i have writen a data in the 1st row i should keep updating the values of the 1st row basically i need to edit table contents.
regards
anilAnil
You can DB Tools Execute Query to run an UPDATE query. Take this example where I use the example labview.mdb database in ...\examples\database directory. This VI allows the user to UPDATE the PhoneNumber field for record with CustomerID=23311 which is the first record.
Hope this helps
David
Message Edited by David Crawford on 10-07-2006 09:37 AM
Attachments:
Example to Update PhoneNumber Labview MDB (8.0).vi 16 KB
Update Phone Number.jpg 17 KB -
File content to database scenario
Hi All,
I am doing file content conversion to database scenario.
In this scenario i got the following problem.
Error during database connection to the database URL 'jdbc:mysql://ibxi:3306/javatest' using the JDBC driver 'org.gjt.mm.mysql.Driver': 'com.sap.aii.adapter.jdbc.sql.DriverManagerException: Cannot establish connection to URL 'jdbc:mysql://ibxi:3306/javatest': SAPClassNotFoundException: org.gjt.mm.mysql.Driver'
In this i am connecting to mysql database.at that time in receiver side i got the problem.
please do the need ful.
Thanks & Regards,
Kakshayini.Sorry for the above post..
First check whether the required drivers has installed on your J2EE Engine or not. If it is not installed, please follow the bellow steps,
1.Get the existing <b>aii_af_jmsproviderlib.sda</b> file from your SAP XI installation (if you already have JDBC or JMS drivers deployed).
2. Unzip the file, add the required .jar files (each database has it's own .jar file that has
to be deployed on your J2EE Engine ).
For example if it is SQL server db -mssqlserver.jar
3. Again zip the flies including all .jars with the name "aii_af_jmsproviderlib" and it has
to be deployed in to the J2EE Engine.
4. Start the SDM (Software Deployment Manager) and select the
aii_af_jmsproviderlib.zip file and start the deployment.
I hope once you have done this thing, the problem will be solved.
Regards,
Velan
<b></b><b></b> -
How to change content repository database
I'm migrating a test environment from a single-server to use a separate machine for the contentdb data. I can't find how to point the contentdb middle-tier application at the new database and install the contentdb schema.
Can anyone give me some guidance?
StuartThanks for the help.<br><br>
The database I'm trying to run up against is v.10.2.0.1 (MS Windows). When I try to select it from the list on OID, I get the following message from OUI. "The database you have selected is not supported for the Content DB install. Please the database which is 10.1 or higher version."<br><br>
I note in installation guide that "Oracle Content DB requires an Oracle Database version 10.2.0.2 or 10.1.0.5", but neither of these seems to be available for a windows platform. Our previous single-server implementation used a database v 10.1.0.2 which worked OK.<br><br>
I note also in Re: How To Guide: for installing Content DB 10.2 on 3 hosts a comment that "Content DB will install against any 10.2.x database."<br><br>
Right now I can't move ahead with installation of the new middle-tier instance. Any suggestions?<br><br>
kind regards<br>
Stuart -
Expanded Content? Database or html?
I have a list of products that need content.
Basically this extended information needs to display details
that can't
be listed with regular product details, it's just too much.
My dilemma is that I can't decide whether to post it to the
web in
individual html files or to post it to a database where that
content is
pulled out. I visited a larger company recently that has
roughly 70,000
products and 3 web people to create individual pages for
expanded
product information. I only have 4500 products and it's just
me doing
the work.
Are these really the only two options or are there others?
XML?
The problem is that this content needs formatting and I've
heard that
it's not the best practice to put html into a database.
I'm just curious what others are doing.You don't necessarily put the who HTML page into the
database, you only put
the necessary HTML tags in with it.
So maybe you have something like this:
tblProduct
title
picture
description
"title" would get outputted maybe into an <h1> block on
your 'master' page.
The "picture" a link that is put into an <img> tag.
"description" would be the main text with some tags, as
needed... maybe
like:
<p>The <strong>XYZ Widgets</strong> are
made from durable cat hair.</p>
See??
"Lee" <[email protected]> wrote in message
news:f78jlk$slj$[email protected]..
>I have a list of products that need content.
>
> Basically this extended information needs to display
details that can't be
> listed with regular product details, it's just too much.
>
> My dilemma is that I can't decide whether to post it to
the web in
> individual html files or to post it to a database where
that content is
> pulled out. I visited a larger company recently that has
roughly 70,000
> products and 3 web people to create individual pages for
expanded product
> information. I only have 4500 products and it's just me
doing the work.
>
> Are these really the only two options or are there
others? XML?
>
> The problem is that this content needs formatting and
I've heard that it's
> not the best practice to put html into a database.
>
> I'm just curious what others are doing. -
How do I export InDesign content so non-users can make edits?
I am an in-house designer for a mid-sized nonprofit company. I am working on editing some large brochures, (50 pg or so.) The brochures have a lot of formatting and styles.
I have been copying the text to a Word file, and sending it to my coworkers for edits. When I re-import the text, I have to re-apply all the formatting.
Can I use xml tags to keep the file formatting in place so that my coworkers can edit the content? Can my co-workers use word to edit the xml files without having to see the tags?
Is the solution as easy as managing the paragraph styles between word and InDesign?Thank you all for your advice. I feel like I've gotten a satisfactory answer, although it is more of a pain than I was hoping for.
I'm just going to add some details to reply to the later posts.
I didn't know that Acrobat reader could handle comments. I have had a lot of instances where I could have used PDF comments and this will help a lot.
I'm trying to cut down on the amount of typing that I have to do, to save work for me and to reduce the possibility of errors.
Story Tweaker sounds like a great idea, except that adding a new piece of software into the process would be a monumental pain based on the average contributors computer skills.
Same for InCopy, Plus we couldn't afford it.
I actually have four prongs:
Use tools users know
Avoid purchasing new software
Avoid errors between their content and my final product
Minimize keystroking
I'm going to have to be very specific in my use of styles in the InDesign file and in the Word Document.
I'm going to have to make sure that my Word doc is very well locked and that all changes are tracked correctly.
Lastly, I'm going to have to make sure that my page styles are very flexible so that edits that change the pagination can be accomodated as painlessly as possible.
Since I am the inhouse designer, I very often have to design the layout before the copy is finalized, and no ability to make anyone pay. Well, maybe lunch.
And I agree about Word. -
Hi ppl, I'm just new in Java and coming from an Oracle RDBMS background. I want to ask if theres a possibility that email content will be put in the database. For example, if one person email me his personal info, name, address ,etc, then I'll be running a java script to get that particular info(from email) and save it to my database, my database is MS Access, MS SQL Server or Oracle. Can I also get a sample script of that? thank you for helping out
Here is the tutorial for JDBC. It lets you talk to a database....
http://java.sun.com/docs/books/tutorial/jdbc/index.html
Once you figure that out then you will need to write a parser for the email and decide how you are going to get the email in the first place. Depending on the source of the email JavaMail might help with the second. The first you will probably just have to code it although if your are familar with perl and regexes then the java.util.regex package will help.
Maybe you are looking for
-
Error while filling setup table
Hello all I am trying to fill a setup table for 2lis_11_vahdr DS. I deleted setup table firts using LBWG and then proceeded the setup process by using OLI7BW , while i did that i got an error message "Error determing rate:foreign curr.DEM local curr.
-
Consolidate multiple iphoto libraries
OK here's the deal. My wife says photos are missing, some have wrong dates, some are the wrong size etc. I reassure her that nothing is missing it's just misplaced. I want to back everything up before I go further. When I search the finder for iphoto
-
Dual Monitor and Full screen playback in Color 1.0
So, I was wondering if somebody could help me out. I have 2 screens, one is a 23" ACD other is a 23" dell. I am going to be color correcting with my Matrox MXO setup on the 23"ACD. Whenever I do full screen playback the waveform monitor and vectrosco
-
after taking a picture of my document and scanning into the adobe PDF it does not read clearly. words are meshed together
-
Rectangule Marquee Tool Does Not Copy (Elliptical Marquee Tool Does)
I am unable to copy and paste using the rectangular marquee tool. When I click and try to draw the dashed outlines, I just get X and Y coordinates. When I switch to the ellipitcal marquee tool, I get the dashed lines and can copy with no problem. I h