Main Page: Difference between revisions

From Visual Data Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 22: Line 22:
! Comment
! Comment
|-
|-
|Lua equivalents for #visualdataquery and #visualdataprint and possibility to retrieve JSON from json-data slot in Lua
|Excel like data input with sub-classes (automatic field generation)
|frame:callParserFunction() can be an alternative. Retrieving json-raw in Lua seems to be a problem, mw.text.jsonDecode() fails, possibly because of strip markers (About [[mediawikiwiki:Strip_marker|strip makrers]], [[Result format json-raw|Example]] )?
|Example:
{| class="wikitable"
|+
!
!
! colspan="2" |without university degree
! colspan="2" |with university degree
|-
!
!
!employed
!unemployed
!employed
!unemployed
|-
| rowspan="3" |District 1
|female
|
|
|
|
|-
|-
| <s>Better ID management than <code>{{#idprovider-increment:}}</code> '{{#idprovider-increment:}}' (Extension:IDProvider)</s>
|male
| Similar to <unique number> in PageForms (see here). Solved with [https://www.mediawiki.org/wiki/Extension:UniquePageTitle Extension:UniquePageTitle]
|
|
|
|
|-
|-
| Sorting function for multiple fields / sub-items
|diverse
|
|
|
|
|
|-
|-
| Image preview on file upload
| rowspan="3" |District 2
| Theoretically already provided in the code, see /resources/VisualDataForms.js
|female
|
|
|
|
|-
|-
|CSV Import
|male
|
|
|
|
|
|-
|-
| <s>Pre-filled fields on form call</s>
|diverse
| Works in newer versions of VisualData - Custom code adjustment for handling nested and multiple values - should be committed to VisualData
|
|
|
|
|}
|-
|-
| For long pages: Scroll back to the previous page position after saving popup forms
| Sorting function for multiple fields / sub-items
|
|
|-
| Image preview on file upload
| Theoretically already provided in the code, see /resources/VisualDataForms.js
|-
|-
| Internationalization for values in select and dropdown lists
| Internationalization for values in select and dropdown lists
| Possibly via switch statement, see: https://www.mediawiki.org/wiki/Extension:VisualData/Queries_in_forms
| Possibly via switch statement, see: https://www.mediawiki.org/wiki/Extension:VisualData/Queries_in_forms
|-
| Ability to show conditonal fields/form elements depending on VisualData queries
|
|-
|-
| Display label instead of schema name in tabs in forms
| Display label instead of schema name in tabs in forms
|
|-
| For long pages: Scroll back to the previous page position after saving popup forms
|
|
|-
|-
Line 72: Line 118:
|submit-button-text =
|submit-button-text =
|layout =
|layout =
|submit-button-text =
|validate-button-text =
|validate-button-text =
}}
}}


[[File:Screenshot form button in form.png|thumb]](Btw: Could the message 'cannot edit' for non-authorized users be given a CSS class so that it can be styled?)
[[File:Screenshot form button in form.png|thumb]](Btw: Could the message 'cannot edit' for non-authorized users be given a CSS class so that it can be styled?)
|-
| Ability to show conditonal fields/form elements depending on VisualData queries
|-
|-
|Ability to edit json-data Slot
|Ability to edit json-data Slot
|
|
|-
|-
|Form parameter to restrict forms to given user groups
|Form parameter to restrict forms (and single fileds?) to given user groups
|
|
|-
|-
Line 90: Line 132:
|
|
|-
|-
|Excel like data input with sub-classes (automatic field generation)
|<s>Lua equivalents for #visualdataquery and #visualdataprint and possibility to retrieve JSON from json-data slot in Lua</s>
|Example:
|frame:callParserFunction() can be an alternative. Retrieving json-raw in Lua seems to be a problem, mw.text.jsonDecode() fails, possibly because of strip markers (About [[mediawikiwiki:Strip_marker|strip makrers]], [[Result format json-raw|Example]] )?
{| class="wikitable"
|+
!
!
! colspan="2" |without university degree
! colspan="2" |with university degree
|-
|-
!
| <s>Better ID management than <code>{{#idprovider-increment:}}</code> '{{#idprovider-increment:}}' (Extension:IDProvider)</s>
!
| Similar to <unique number> in PageForms (see here). Solved with [[mediawikiwiki:Extension:UniquePageTitle|Extension:UniquePageTitle]]
!employed
!unemployed
!employed
!unemployed
|-
|-
| rowspan="3" |District 1
|<s>CSV Import</s>
|female
|
|
|
|
|
|-
|-
|male
| <s>Pre-filled fields on form call</s>
|
| Works in newer versions of VisualData - Custom code adjustment for handling nested and multiple values - should be committed to VisualData
|
|
|
|-
|diverse
|
|
|
|
|-
| rowspan="3" |District 2
|female
|
|
|
|
|-
|male
|
|
|
|
|-
|diverse
|
|
|
|
|}
|}
|}



Revision as of 10:28, 28 January 2025


Feature examples[edit | edit source]


Feature requests[edit | edit source]

Feature Comment
Excel like data input with sub-classes (automatic field generation) Example:
without university degree with university degree
employed unemployed employed unemployed
District 1 female
male
diverse
District 2 female
male
diverse
Sorting function for multiple fields / sub-items
Image preview on file upload Theoretically already provided in the code, see /resources/VisualDataForms.js
Internationalization for values in select and dropdown lists Possibly via switch statement, see: https://www.mediawiki.org/wiki/Extension:VisualData/Queries_in_forms
Ability to show conditonal fields/form elements depending on VisualData queries
Display label instead of schema name in tabs in forms
For long pages: Scroll back to the previous page position after saving popup forms
Ability to open forms from the content block of another form (form button is currently not rendered)
form is loading...
(Btw: Could the message 'cannot edit' for non-authorized users be given a CSS class so that it can be styled?)
Ability to edit json-data Slot
Form parameter to restrict forms (and single fileds?) to given user groups
Additional operators in queries (OR) - does it make sense to impelement a JSON query language like https://jmespath.org/
Lua equivalents for #visualdataquery and #visualdataprint and possibility to retrieve JSON from json-data slot in Lua frame:callParserFunction() can be an alternative. Retrieving json-raw in Lua seems to be a problem, mw.text.jsonDecode() fails, possibly because of strip markers (About strip makrers, Example )?
Better ID management than 9206 '9207' (Extension:IDProvider) Similar to <unique number> in PageForms (see here). Solved with Extension:UniquePageTitle
CSV Import
Pre-filled fields on form call Works in newer versions of VisualData - Custom code adjustment for handling nested and multiple values - should be committed to VisualData


Bugs[edit | edit source]

v1.0.8
Bug Comment
Anonymous users can edit data in popup forms although $wgGroupPermissions['*'][“visualdata-caneditdata”] = false; is set in LocalSettings.php Fixed with v1.0.8b
VE (VEForAll) does not load in inactive form tabs
Internationalisation of labels does not work anymore, i.e. {{int:User}} Works after resaving the Schemas
v1.0.6
Bug Comment
Anonymous users can edit data in popup forms although $wgGroupPermissions['*'][“visualdata-caneditdata”] = false; is set in LocalSettings.php Fixed with v1.0.8b
Categories are stored in an extra slot, which conflicts with the normal categories (these are not displayed) Fixed with v1.0.5
Import script does not work due to incorrect version check 1.41 instead of 1.41.0
includes/classes/SchemaProcessor.php: Line 1225: Typo $properties $this->replaceFormula( $proprties, $wiki['options-label-formula'] ) ); Fixed with v1.0.5
VE (VEForAll) does not load in inactive form tabs
mw.widgets.UsersMultiselectWidget throws an error Fixed with v1.0.8
Triggers for conditional field do not work reliably, especially with OO.ui.ToggleSwitchWidget