[ 
https://issues.apache.org/jira/browse/PIVOT-538?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12881720#action_12881720
 ] 

Greg Brown commented on PIVOT-538:
----------------------------------

Part of the problem may be your use of multiple applications. The startup() 
method of PatientDataTable isn't being executed when you launch BillingForm, so 
the event listeners are not registered.

I would suggest some minor tweaks that may make it easier for you to organize 
and manage your code:

- Rename BillingForm to BillingFrame. Have it extend org.apache.pivot.wtk.Frame 
and implement org.apache.pivot.wtkx.Bindable. Don't implement Application. In 
Bindable#initialize(), you can load the dialog's WTKX file and save it as a 
member of BillingFrame. You can also wire up the event listener that opens the 
dialog here.

- Rename billing.wtkx to billing_frame.wtkx. Make the root element 
<myapp:BillingFrame> rather than <Frame>.

- Rename PatientDataTable to PatientDataDialog and have it extend Dialog and 
implement Bindable. Don't implement Application. In Bindable#initialize(), you 
can wire up the table editor and the event listener that closes the dialog.

- Rename patientDataTable.wtkx to patient_data_dialog.wtkx and make the root 
element <myapp:PatientDataDialog> rather than <Dialog>.

- Create a new BillingApplication class that implements Application. Keep the 
code there that loads and opens the billing frame, but remove the code that 
loads and opens the dialog, since that now lives in BillingFrame.

Once you have made these changes, I suspect that you will be able to close the 
dialog and invoke the editor. Let me know if you have any questions.



> Table is uneditable when opened modally
> ---------------------------------------
>
>                 Key: PIVOT-538
>                 URL: https://issues.apache.org/jira/browse/PIVOT-538
>             Project: Pivot
>          Issue Type: Bug
>          Components: wtk
>            Reporter: Kelvin Bell
>             Fix For: 1.5.1
>
>         Attachments: pivotmodaltest.zip
>
>
> Tables that are in a modal Frame/Dialog/Sheet have rows which are not 
> editable (TableViewRowEditor & setRowEditor become useless).  If the Frame 
> (exact same code) is opened non-modally, then the tables are editable.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to