Comments (4)
A good idea. I will think about implementation
from custom_field_sql.
Great! Thanks!
I took a deeper look at your source code. I have no experience with Ruby, but I seems that you derive the sql field from the StringFormat
and from List
(lib/custom_field_sql/custom_fields/formats/sql.rb line 5 and 11).
To make the value "clickable", there is already a mechanism in Redmine, called "Link values to URL" which is applicable to boolean, date, list, integer and text format fields.
See here: https://www.redmine.org/projects/redmine/wiki/RedmineCustomFields#Link-values-to-URL
So the only thing you need to do is to provide that input field (Link values to URL)
and then pass it to the original field and let Redmine to the rest.
I think you need to add the input field here, don't you?
app/views/custom_fields/formats/_sql.html.erb
Furthermore, you could also pass the "Text formatting" input field to the base class in the same manner.
from custom_field_sql.
I checked the Redmine database and the field for "Link values to URL" is stored in the column format_store
of the table custom_fields
.
The field contains multiple lines:
---
!ruby/hash:ActiveSupport::HashWithIndifferentAccess
text_formatting: ''
url_pattern: ''
The line with the key url_pattern
is relevant for linking the values to an URL.
Hope this helps to implement this. Cheers.
from custom_field_sql.
Unfortunately, I cannot see any activity on this issue. Are you working on it?
It would be a tremendous benefit for my installation! Thanks in advance!
Also, can you please answer my question in #1 ?
from custom_field_sql.
Related Issues (17)
- What is the use case for this? HOT 3
- How to use this feature like a SELECT2 style? HOT 3
- Configuration for external DB?
- rake aborted! when installing plugin using redmine docker HOT 2
- %issue_id% parameter for sql HOT 1
- examples with pics HOT 2
- Field dont show values on issues filter HOT 1
- How to make the first element selected automatically in drop-down list?
- Error when installing plugin HOT 4
- More then one column in select statement HOT 3
- Exception during filtering HOT 2
- New Issue page cannot use %id%
- Create custom connection to a different DB
- [Feature] query an external DB HOT 2
- Error if I try to use a variable in a request
- Error when bulk editing issues HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from custom_field_sql.