Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 4671 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

Hello everybody,

I got a question regarding ordered lists and the ways to read the text format attributes of a text within a text field.

Challenge: Within a text field the client wants to add some ordered lists with indents (Text Ruler) and some text lines without. He then wants to export all the records as HTML while keeping the text attributes (like indents).

Solution: I know there's getAsCSS but it doesn't get all text attributes (indents should become ul resp. ol tags) and in addition to that it doesn't output valid XHTML. So I have to find my own solution.

Question: How can I read out all attributes of a text field (including indents).

Any ideas on how to do this?

Best,

DH

Posted

Perhaps they should be entering tabs to indent a line, instead of modifying the ruler.

In any case, a free-form text field is not a good way to enter structured data (esp. in a database). A list of items should be entered into a portal, or at least into a dedicated field.

  • Newbies
Posted

Perhaps they should be entering tabs to indent a line, instead of modifying the ruler.

Thanks for your answer, comment. Using tabs however isn't going to work, because long lines / new lines are not automatically "tabbed in". If you scale a window you get even more problems with this method.

Basically you're right with your opinion that a text field is not good for structured data, but the customer has this exact requirement. Sometimes he wants to add just a note, sometimes he wants to add a structured list as well as some "normal" text lines above or underneath.

Maybe a WYSIWYG editor inside a web viewer and saving the generated HTML code in is the only way to do it. :-(

Posted

Maybe a WYSIWYG editor inside a web viewer and saving the generated HTML code in is the only way to do it. :-(

That could be worth exploring, esp. now with HTML 5.

Posted

Basically you're right with your opinion that a text field is not good for structured data, but the customer has this exact requirement. Sometimes he wants to add just a note, sometimes he wants to add a structured list as well as some "normal" text lines above or underneath.

I have done something similar with clients. I give them buttons that take a selection (in this case the indented parts) and calculate the HTML for them. I do this with BOLD, UNDERLINE, ITALIC, ORDERED LIST, UNORDERED LIST. And you can specify H1, H2, etc. or many other tags. You probably can work out what needs to be done for this client within the text field and give them the options they need. You can PREVIEW the calculated HTML in the Web Viewer if that helps them.

it's what they want, it's what they get... :)

Beverly

This topic is 4671 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.