Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4585544
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T21:30:37+00:00 2026-05-21T21:30:37+00:00

I posted a question a few days ago about importing data to an InDesign

  • 0

I posted a question a few days ago about importing data to an InDesign file from a MySQL database using XML. I have looked into it and thanks to some help received from other sources think the project should be fairly straightforward.

Essentially, we have a unique product ID which is 5 digits long. When importing it, we would like the last digits to be used as a colour for a barcode. Each digit will be assigned a colour (from 0-9), and the data will be presented in a table as follows:

12345
ROW 1 COLOUR
ROW 2 COLOUR
ROW 3 COLOUR

My question is, does anyone have experience with using GREP Styles within Adobe InDesign, and could explain how we might achieve this (i.e. setting the cell style of the cells according to the last two digits in the number)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T21:30:37+00:00Added an answer on May 21, 2026 at 9:30 pm

    In general: Each cell is its own text story. With a simple GREP search you can not search for contents of multiple cells with one search, and you can not modify the style of one cell based on the contents of another cell or text outside of the table. You can of course accomplish this with some more advanced scripting or a plugin.

    I’m not quite sure if I’m answering the correct question as it’s not clear what you are trying to accomplish. Maybe you could create some example input and output data clearly showing what text you want what style applied to.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Few days back, I posted a question about getting student marks results from database
A few days ago, I posted this question and this question asking about how
This is a spin off from another question I posted a few days ago
Last Updated: 2009-08-11 2:30pm EDT A few days ago I posted this question about
I have posted a question few days ago about Querying on collections with the
I posted a question a few days ago about a linked list in C.
A few days ago I posted this question: switch statement and loops using jquery/javascript
A few days ago I posted this question and everyone suggested me to use
I've posted the same question here a few days ago( Java reading standard output
I posted this question a few days ago, and I have some follow up

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.