Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Answering my own question as it may be useful to others.</p> <p>Copy the field editor behavior button from the revDataGridLibrary stack to the card with the row template on it.</p> <p>Edit the script of the field to be edited as follows (note you will need to fix the behavior button reference to be the long id of your new field edtior behaviour):</p> <pre><code>on preOpenFieldEditor pEditor set the behavior of pEditor to the long id of button id 1023 of card id 1010 of stack "Data Grid Templates 1362091650635" set the uRowControl of pEditor to the long id of the owner of me end preOpenFieldEditor </code></pre> <p>Edit the field editor behavior script adding the following:</p> <pre><code>local sHeight,sRowControl setProp uRowControl pRowControl put pRowControl into sRowControl end uRowControl on openField put the formattedHeight of me into sHeight pass openField end openField on textChanged local tHeight,tRect lock screen put the formattedHeight of me into tHeight if sHeight &lt;&gt; tHeight then put the rect of me into tRect put item 2 of tRect+ tHeight into item 4 of tRect set the rect of me to tRect put tHeight into sHeight dispatch "UpdateRow" to sRowControl with the long id of me end if unlock screen pass textChanged end textChanged </code></pre> <p>Now edit the row template behaviour adding the following handler (Note that in this case the field being edited is named "note" so you will want to change that for your use case):</p> <pre><code>on UpdateRow pFieldEditor set the rect of graphic "Background" of me to the rect of pFieldEditor set the rect of fld "note" of me to the rect of pFieldEditor set the rect of me to the formattedRect of me put the uScriptLocal["sTableObjectsA"] of me into tTableObjectsA repeat for each line tControl in tTableObjectsA["all row controls"] delete word -2 to -1 of tControl -- of me put tControl into tControlA[the dgIndex of tControl] end repeat put the bottomLeft of me into tTopLeft repeat for each item tIndex in tTableObjectsA["current"]["indexes"] if tIndex &gt; the dgIndex of me then set the topLeft of tControlA[tIndex] to tTopLeft put the bottomLeft of tControlA[tIndex] into tTopLeft end if end repeat end UpdateRow </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload