Changes for page Blockly Editor

Last modified by Admin on 2022/02/21 00:26

<
From version < 71.1 >
edited by Vivek Iyer
on 2018/08/03 17:43
To version < 72.1 >
edited by Vivek Iyer
on 2018/08/03 17:43
>
Change comment: There is no comment for this version

Summary

Details

ExtensionCode.ExtensionClass[0]
Description
... ... @@ -31,9 +31,10 @@
31 31  
32 32  == Categories ==
33 33  
34 -There are two categories in the XML Toolbox, the default categories like logic, loops, variables, text, colour, lists etc which are there by default in the Blockly toolbox developed by Google, and the custom categories which have been added to meet XWiki-specific requirements and use cases, like macros, queries, XWiki Bindings etc
35 35  
35 +There are two categories in the XML Toolbox, the default categories like logic, loops, variables, text, colour, lists etc which are there by default in the Blockly toolbox developed by Google, and the custom categories which have been added to meet XWiki-specific requirements and use cases, like queries, XWiki Bindings etc
36 36  
37 +
37 37  === Default Categories ===
38 38  
39 39  The [[blockly documentation>>https://github.com/google/blockly/wiki]] contains the documentation for the default categories such as logic (if-else), loops, variables, text, colour, lists etc
... ... @@ -43,6 +43,34 @@
43 43  
44 44  The following custom categories have been introduced:
45 45  
47 +
48 +==== XWiki Bindings ====
49 +
50 +{{image reference="XWiki Bindings.png" |alt="XWiki Script Bindings" width="150" height="168"}}{{/image}}
51 +
52 +===== Text Block =====
53 +
54 +* A simple text input block, used to generate attribute/object names
55 +
56 +===== XWiki Bindings Block =====
57 +
58 +* Defines the common XWiki Bindings, as defined [[here>>https://www.xwiki.org/xwiki/bin/view/Documentation/DevGuide/Scripting/#HBindings]]
59 +
60 +===== XWiki Bindings Attribute Block =====
61 +
62 +* Used to access the attributes of the XWiki Bindings
63 +* Takes the XWiki binding as one input and the attribute name as the other text input
64 +* For the static XWiki Bindings, the block defined above can be input.
65 +* For dynamic XWiki Bindings, a variable can be created with the desired name, and that can become the input.
66 +
67 +===== XWiki Bindings Method Block =====
68 +
69 +* Used to call the methods of the XWiki Bindings
70 +* Takes the XWiki binding as one input and the method name as the other text input
71 +* The number of arguments to the method call is variable, and can be added/removed by clicking on the cog icon in the top left corner
72 +* For the static XWiki Bindings, the block defined above can be input.
73 +* For dynamic XWiki Bindings, a variable can be created with the desired name, and that can become the input.
74 +
46 46  ==== Queries ====
47 47  
48 48  {{image reference="Queries.png" |alt="The XWQL Queries category" width="150" height="395"}}{{/image}}
... ... @@ -91,8 +91,31 @@
91 91  * This block takes as input two boolean returning blocks, and returns the "AND" or "OR" of these expressions.
92 92  * By default the boolean expression in input is false.
93 93  * It is also possible to chain "AND"/"OR" expressions by giving another AND/OR block as input to the first block.
123 +
124 +===== Comparison Operators Block =====
125 +
94 94  
95 95  
128 +* This block takes as input two expressions, and returns an expression with the two values joined by an operator.
129 +* The operators can be chosen from the dropdown menu and are one among "=", "≠", ">", "<", "≥", "≤" etc
130 +* It is possible to chain these expressions too, similar to the AND/OR block.
131 +
132 +===== Like Block =====
133 +
134 +
135 +
136 +* This block provides the LIKE keyword
137 +* Selecting the checkbox on either side adds a "%" on either side to the text input given in the textbook
138 +* This is given as input to the AND/OR block
139 +
140 +===== Order by Block =====
141 +
142 +
143 +
144 +* This block provides the Order by keyword
145 +* The ascending/descending order can be chosen from the menu and it takes the XWiki property to be ordered as input.
146 +* Again this is given as input to the AND/OR block
147 +
96 96  ===== Not Block =====
97 97  
98 98  * The NOT operator is used to negate the predicate that follows it.

Get Connected