< Kexi‎ | Plugins‎ | Forms

Difference between revisions of "Kexi/Plugins/Forms/Button hyperlinks"

(Created page with "Design page for task: '''"Add support for opening hyperlink via a form button"'''. *Started: Jstaniek October 2012 *{{wish|308832}} *Target: ? __TOC__ ==Ra...")
 
Line 15: Line 15:
 
===Hyperlink Type===
 
===Hyperlink Type===
 
Distinction between Static/Dynamic URL has to be encoded somehow. To do so, add ''hyperlinkType'' property for Push button, of enum type:
 
Distinction between Static/Dynamic URL has to be encoded somehow. To do so, add ''hyperlinkType'' property for Push button, of enum type:
**NoHyperlink - clicking on button will not lead to opening of URL even if it has been provided in the ''hyperlink'' property or if a field has been bound
+
*NoHyperlink - clicking on button will not lead to opening of URL even if it has been provided in the ''hyperlink'' property or if a field has been bound
**StaticHyperlink - clicking on button will lead to opening of URL provided in the ''hyperlink'' property; if not provided, nothing happens
+
*StaticHyperlink - clicking on button will lead to opening of URL provided in the ''hyperlink'' property; if not provided, nothing happens
**DynamicHyperlink - clicking on button will lead to opening of URL provided in the bound field; if not bound or value is empty, nothing happens; ''hyperlink'' property is ignored in any case
+
*DynamicHyperlink - clicking on button will lead to opening of URL provided in the bound field; if not bound or value is empty, nothing happens; ''hyperlink'' property is ignored in any case
 
 
  
 
==Further work==
 
==Further work==
 
...
 
...

Revision as of 20:53, 22 October 2012

Design page for task: "Add support for opening hyperlink via a form button".

Rationale

It should be possible to assign hyperlink (URL) to a form button. URL could be:

  1. Static (assigned to a button via 'hyperlink' property of type string)
  2. Dynamic (bound to one of form's field)

Details

Hyperlink Type

Distinction between Static/Dynamic URL has to be encoded somehow. To do so, add hyperlinkType property for Push button, of enum type:

  • NoHyperlink - clicking on button will not lead to opening of URL even if it has been provided in the hyperlink property or if a field has been bound
  • StaticHyperlink - clicking on button will lead to opening of URL provided in the hyperlink property; if not provided, nothing happens
  • DynamicHyperlink - clicking on button will lead to opening of URL provided in the bound field; if not bound or value is empty, nothing happens; hyperlink property is ignored in any case

Further work

...


This page was last edited on 22 October 2012, at 20:53. Content is available under Creative Commons License SA 4.0 unless otherwise noted.