How do I make LiveCycle understand HTML tags embedded in XML - livecycle

I am using XML schema to bind data to LiveCycle PDF form.
How do I make LiveCycle understand HTML tags embedded in XML.

Your question is a bit vague. Typically, we dont use HTML tags contained in XML as they are typically contained in a CDATA tag. Can you please elaborate more and possibly paste sample XML data as well.
Thanks,
Armaghan.

Related

Is there a wysiwyg editor that supports template variables?

I'm a bit diving into a rabbit hole when it comes to implementing a rich text editor. Currently using react-quill, but want to implement a concept of template variables and/or allowing users to choose templates.
I know there is TinyMCE out there, but the self-hosted setup is very unstable and the cloud provided setup is not stable in the country I am residing. :(
I am pretty much looking into implementing something similar to this:
https://ambassify.github.io/tinymce-variable/
That would replace {{ mustache }} syntaxes with a bit more visual appealing element, that cant be edited but can be deleted.
So the thing I tried so far was using this as an example to insert Embed/blots in the QuillJS text editor. But this doesnt really insert things using mustache syntax, and also when a user chooses a whole template, then the variables are not being highlighted.
Example of a template a user could choose:
Hey {{ receiver.fullname }},
Some message here
Thanks!
{{user.first_name}}
{{user.company.name}}
How it shoud look like:
The user has the option to edit the template they chose, and after clicking on send. Taking the same template they edited (with the variables) to the next email window.
So my question here is, does anyone have a recommendation on how to accomplish this and which wysiwyg-editor might offer the right solution for this (besides TinyMCE)?
I recommend you to use tiptap framework.
This is an headless wysiwyg that gives you full control on the editor.
They provide a simple extension system which could perfectly match your need.
React Mentions does this very nicely IMO. You can use markup and displayTransform attributes to transform the entry into a tag like structure. Also the data attribute will let you define the available selections.

WPF Form based on XSD

I am new in WPF and want to create a UI using XSD that autogenerates the controls.
See screenshot
Just write proper XSLT for your XSD.
XSD is valid XML so it can be parsed with XSLT to get any other document. Because XAML is valid XML it won't be so hard.
You can find examples of XLST transforming XML to HTML and start from them. It's easier and gives immediate feedback if your XSLT is good.
Here you can find whole project to convert XSD to HTML form.
EDIT:
As it was suggested you can load your XAML in runtime but I think more convenient and handy will be generating it at build step. See this answer and documentation to get more details.
Yes, XAML is valid XML and can be transform. But if You want transform and load in runtime You must read answer for this topic
You may use InfoPath to design a Form
with Your XSD as starting point
and save the design as Extract.
You will find a folder with InstanceSample, XSLT and XSD.

How Can I Read An HTML Document And Extract Image Names?

I'm developing an application in WPF, C# and VS2010 and am not sure how to proceed with this...
I am interested in an algorithm to obtain all the .jpg and .bmp images that are referenced within an html file. How can I extract the body from within an html file?
Thanks
The HTML Agility Pack is a pretty solid library for extracting elements from an HTML document. A simple view is to see it as a wrapper over XPATH with a nice API.
You can do it with regular expressions.
http://msdn.microsoft.com/en-us/library/ms228595.aspx
The following pattern should work:
(http?:\/\/.*\.(?:png|jpg|gif))

Can we create reports using EXTJS?

I want to know if we can create reports using EXTJS.
Thnx a lot
If you simply mean that you want to format reporting data received from the server into visual charts or graphs (or tabular / grid format) the answer is yes. Look at the Ext.chart package in the documentation. Other than that, you'd have to provide some details on what you're trying to do.
EDIT: I'm still not 100% clear on what you're asking, but if you already have working grids and you want to display the same data in a different format for reporting, this is certainly possible. However, you would not use the grid directly, you would use the underlying Ext.data.Store and bind it to some other component that can output your report. The most obvious solution that comes to mind would be using a View (previously DataView) to bind your existing store to a custom XTemplate that would generate your report view.
No. You can't create reports with EXTJS. There are tools appropriate for reporting. All of them, server side.
Hope it helps.
You can use a CSS with "media='print'" like this:
< link rel="stylesheet" type="text/css" href="css/print.css" media="print">
This CSS will be used by the browser only when the user are trying to print the page. Then, you can change the entire style of the page to look like a report.
This is a server side job. Here is what I use for generating tabular reports which are based on Grid data: http://xmlgraphics.apache.org/fop/
Also, you can generate a very nice, fully functional Excel spreadsheet from tabular data: http://msdn2.microsoft.com/en-us/lib...ffice.10).aspx

Display formatted text in a window using python

I make a program in wxpython which displays questions to the user and a radiobox with answers. Questions and answers should be in a database and is formatted text using some mathematics (paranthesis, root squares etc). Could you propose me what widget I should use for such a text and what could be the database?
Thanks.
For database you can use any sql based DB e.g. mysql or sqllite but if you do not have much data why not just store it in text files or as python module itself.
Displaying math symbols part is tricky, you will need a control which can display MathML(http://en.wikipedia.org/wiki/MathML) , I don't think any wxPython widget can do that, some browsers display MathML, so you may embed browser inside wxpython but that is also tricky.
Another alternative is to use mathplotlib to draw math symbols e.g. see http://matplotlib.sourceforge.net/users/mathtext.html#mathtext-tutorial
but IMO simplest/best way would be to just convert mathml xml to a image file and display it in a image control inside your app.
e.g. you can use http://sourceforge.net/projects/svgmath/ to convert mathml to svg, convert svg to png using http://librsvg.sourceforge.net/
or you can also try http://sourceforge.net/projects/jeuclid/
You will have to experiment to see what is easiest for you but i don't think there is any easy way.

Resources