Hi,<br><br>The decision table guided editor in Guvnor is undergoing a major revamp.<br><br>Work is nearing final stages and adding custom cells for domain models should be easy. If you're willing to wait for 5.2.0 adding custom pop-up cells should be simple.<br>
<br>Progress was last covered <a href="http://blog.athico.com/2011/01/guvnor-decision-table-progress-3.html">here</a>.<br><br>Cheers,<br><br>Mike<br><br><div class="gmail_quote">On 18 January 2011 12:35, Esteban Aliverti <span dir="ltr"><<a href="mailto:esteban.aliverti@gmail.com">esteban.aliverti@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">I'm not involved with Decision Table, but I think it should be relatively easy (and useful) to implement what you need. If you need some guidance, you can take a look at ConstraintValueEditor. These are the steps needed to get a custom form open reusing WS configuration:<div>
<br></div><div>To get the configuration for a given <i>package.factType.fieldName</i> from the active WS:</div><div><div><b>CustomFormConfiguration customFormConfiguration = WorkingSetManager.getInstance().getCustomFormConfiguration( packageName, factTypeName, fieldName );</b></div>
<div>(If not configuration is present, this method returns null)</div><div><br></div><div>To open the custom form popup:</div><div><div><b>final CustomFormPopUp customFormPopUp = new CustomFormPopUp( images.newexWiz(), constants.FieldValue(), customFormConfiguration );</b></div>
</div><div>(The first argument is the icon, the second is the title and the third is the configuration you get from the previous step)</div><div><br></div><div>Then you need to setup a handler for Popup's OK button:</div>
<div><div><b>customFormPopUp.addOkButtonHandler( new ClickHandler() {</b></div><div><b> public void onClick(ClickEvent event) {</b></div><div><b> //here you can use: </b></div>
<div><b> //customFormPopUp.getFormId() -> to get the selected Id</b></div><div><b> //customFormPopUp.getFormValue() -> to get the selected Value </b></div><div>
<b> }</b></div><div><b> } );</b></div></div><div><br></div><div>And, of course, remember to open the Popup:</div><div><div><b>customFormPopUp.show( currentId, currentValue );</b></div></div><div>
<b><br></b></div><div>I think you have enough material to start working. </div><div><br></div><div>Best Regards,</div><div><br></div><br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br><font color="#888888"><br>Esteban Aliverti<br>
- Developer @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com </a><br>
- Blog @ <a href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a></font><div><div></div><div class="h5"><br>
<br><br><div class="gmail_quote">On Tue, Jan 18, 2011 at 9:03 AM, c3310082 <span dir="ltr"><<a href="mailto:c3310082@pjjkp.com" target="_blank">c3310082@pjjkp.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
Hi,<br>
<br>
We would like to render a custom editor when a user double-clicks on a cell<br>
that is present in web guided decision table in Guvnor 5.1 (or later). The<br>
custom editor needs to be invoked for cells that represent a particular fact<br>
model attribute only.<br>
<br>
This is somewhat similar to WS custom forms functionality available for<br>
guided business rules.<br>
<br>
So far we have seen the<br>
org.drools.guvnor.client.decisiontable.GuidedDecisionTableWidget class that<br>
contains implementation for:<br>
public void onCellDblClick(GridPanel grid,<br>
int rowIndex,<br>
int colIndex,<br>
EventObject e)<br>
in the GridCellListenerAdapter class that opens up text editor or drop down<br>
editor.<br>
<br>
We're new to GWT and Guvnor so would appreciate it if anyone can provide the<br>
high level steps.<br>
<br>
Thanks<br>
<font color="#888888">--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Attach-custom-editor-on-guided-decision-table-cell-tp2279477p2279477.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/Attach-custom-editor-on-guided-decision-table-cell-tp2279477p2279477.html</a><br>
Sent from the Drools - Dev mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-dev mailing list<br>
<a href="mailto:rules-dev@lists.jboss.org" target="_blank">rules-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
</font></blockquote></div><br></div></div></div>
<br>_______________________________________________<br>
rules-dev mailing list<br>
<a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
<br></blockquote></div><br>