WELCOME TO THE COMMUNITY
find what you are looking for or ask a new question
Home > Forum > Latest posts

latest posts

MVP
In reply to: Klaus Seidler

Hi Maksymilian,

thank you very much, that is great! For sure something I can use it.

I have still two questions:
- In markdown I can use easily "formatted stuff", e.g. tables or Mermaid diagrams, which is not working here. Is this a matter of the converter or is this a limitation of the HTML field? Or could these features somehow be supported?

- In fact I was looking for the "reverse" formatting, i.e. I enter in a multiline field with configuration "rich" a formatted Text and the content is converted into valid markdown. Is this possible, too?

Kind regards,
Klaus

I don't have great answers to those unfortunately.

1. a) It will be easy to add support for tables - you could just change markdown flavour to GFM - https://showdownjs.com/docs/flavors/
1. b) Mermaid is not really a default markdown feature - it's additional library - you could try also adding it using cdn library with mermaid.js -https://github.com/mermaid-js/mermaid - from my testing it looks like this won't work even with regular multi-line fields, as those add <p> tags to create new lines - you could try to remove them though before calling render.

2. In theory showdown.js can convert markdown -> html and html -> markdown, but i highly doubt that this will work good - don't see a chance that webcon formatter uses same html tags as showdown.js.
I've added HTML -> markdown to the PoC application.

Maybe there is some library which could be used to create custom field on webcon form with all the features, but i'm not aware of it.

In reply to: Maksymilian Stachowiak

Hi Klaus,
there is currently no built in way to preview markdown in WEBCON, although you could use external libraries and write really small amount of javascript, to have really nice experience.

I've prepared a sample application on WEBCON demo server here:
* Sample markdown document: https://portal.webconbps.com/db/1/app/548/element/6757/form - you will need to add a space, and exit the text field to render markdown.
* Start new document: https://portal.webconbps.com/db/1/app/548/start/wf/757/dt/755/form?def_comid=1

Whole configuration is rather simple - it uses showdown.js* library to make a conversion - this is loaded using a cdn, and on change of value in markdown field I'm just converting it to html.
Screenshots in attachments, although you should be able to check the configuration directly through connecting to designer studio downloaded from demo page :)

Three attributes:
* Library load - this contains script tag to get showdown.js from a cdn.
* Markdown - this is regular multiline text field without formatting - you can type in here raw markdown
* Preview - it's just a anchor, which i can grab and replace it's content with generated html from markdown

It should be possible to add some event listener so each typed key will refresh the preview, but it's a quick example to work on if that idea looks good for you.
Of course you could also save that generated markdown into a webcon field, which i'm not doing in this example.

* https://showdownjs.com/

Hi Maksymilian,

thank you very much, that is great! For sure something I can use it.

I have still two questions:
- In markdown I can use easily "formatted stuff", e.g. tables or Mermaid diagrams, which is not working here. Is this a matter of the converter or is this a limitation of the HTML field? Or could these features somehow be supported?

- In fact I was looking for the "reverse" formatting, i.e. I enter in a multiline field with configuration "rich" a formatted Text and the content is converted into valid markdown. Is this possible, too?

Kind regards,
Klaus

MVP

Hi Andreia,
could you specify a little bit more on how does the process look like?

Do we have multiple forms/workflows, what is currently in the report?
Maybe you could prepare some table/spreadsheet/screenshot of what you want to achieve?

Right now i'm seeing 3 columns there:
Signature, Status, KPI

Should the KPI be calculated like this?
(amount of instances(in process/workflow/doctype?) where DATEDIFF(day,WFD_AttDateTime3,getdate()) = 0) / (amount of all instances (in process/workflow/doctype?))
(amount of instances(in process/workflow/doctype?) where DATEDIFF(day,WFD_AttDateTime3,getdate()) < 0) / (amount of all instances (in process/workflow/doctype?))

MVP

Hi Klaus,
there is currently no built in way to preview markdown in WEBCON, although you could use external libraries and write really small amount of javascript, to have really nice experience.

I've prepared a sample application on WEBCON demo server here:
* Sample markdown document: https://portal.webconbps.com/db/1/app/548/element/6757/form - you will need to add a space, and exit the text field to render markdown.
* Start new document: https://portal.webconbps.com/db/1/app/548/start/wf/757/dt/755/form?def_comid=1

Whole configuration is rather simple - it uses showdown.js* library to make a conversion - this is loaded using a cdn, and on change of value in markdown field I'm just converting it to html.
Screenshots in attachments, although you should be able to check the configuration directly through connecting to designer studio downloaded from demo page :)

Three attributes:
* Library load - this contains script tag to get showdown.js from a cdn.
* Markdown - this is regular multiline text field without formatting - you can type in here raw markdown
* Preview - it's just a anchor, which i can grab and replace it's content with generated html from markdown

It should be possible to add some event listener so each typed key will refresh the preview, but it's a quick example to work on if that idea looks good for you.
Of course you could also save that generated markdown into a webcon field, which i'm not doing in this example.

* https://showdownjs.com/

Hi there.

I have a idea and am looking on a way to make it happen.

We want to use Docusaurus for a documentation of a system. For this I need the text in markdown format/notation/language (I'm not sure what the correct word is for this).
What I need on top of the "actual document" is the life-cycle of the single articles/pages, i.e. the development of the content (history) and the review and approval steps before it is published.

My idea was to move the entire life-cycle into Webcon and after approval it should be outputted into the docusaurus system (that I'm sure will not be an issue via some REST API).

The question is now: Can I somehow implement the content creation into a Webcon form, i.e. is there a possibility to have a "markdown" form field or a mechanisms to translate the HTML into markdown?


Kind regards,
Klaus

Hello,

I need to set up two columns to calculate some KPIs for a report.
The first one will show the status based on Case statement and date difference:


(select
case when DATEDIFF(day,WFD_AttDateTime3,getdate()) >0 then 0
when DATEDIFF(day,WFD_AttDateTime3,getdate()) = 0 then 1
else 2
end)


The second column should pick the number of instances that have the conditions
DATEDIFF(day,WFD_AttDateTime3,getdate()) = 0
DATEDIFF(day,WFD_AttDateTime3,getdate()) < 0

and then divide by the number of total instances by month.
Since this is kind of dynamic, I think that putting this calculation on the report side would be best, but I don't know how to configure the second condition.

Any thoughts?
Thank you! :)

MVP

Hi,
I hadn't realized that.
I think you can set the edit mode option on the main form with default view.
You can replace the save button with a path.
You can hide the save button and create a path to the same step.
If the edit mode at the step is default view, it will no longer remain in edit mode.
Do you need to write or move that instance?
How does it affect you that they remain in edit mode?
Are there multiple people assigned at that step?

Thanks,
Raluca