<tr id="30744_messagerow" class="Normal">
<td width="16"></td>
<td>
Hi RJ
Thanks for the reply.....
What is the script\function\line of code you are using for the launching of the form?
Sub cmdSupplierClick(Sender)<br />Application.BasicFunctions.DoInvoke "Form","Account:DCL Supplier Select"
End Sub
Do you have an AXFormChange subroutine and a databound field for the 'base' table on the base form?
Yes I have a AXFormChange which I set a few field attributes depending on what department the user is in.
My databound field is where I think the problem lies. I have a lookup supplier field on my main form which calls the Supplier based on a foreign key linking to a supplier table. The supplier foreign key sits in an Elec Table which hangs off the Account table. This look up works as it should, I change the supplier and I can immediately see the change. Just to be clear i'm not using a pick list for the supplier, it's a look up in to the supplier table.
On this main form I also have a datagrid that links to an MPAN Table which hangs off the Elec table. There can be multiple MPANs for each account. To edit the MPAN details I right click and Edit which the brings up my MPAN form. What I really want is the Supplier lookup to be on this form (which is bound to the MPAN table). The supplierid field is on the elec table and therefore I can't seem to be able to edit it. I can display the value but when I change it it doesn't save which i'm presuming is down to the form being bound to the MPAN table. I can see the field from the MPAN table as the table joins are already in place but it just won't save any changes I make to it.
My work around for this was to launch another form from the MPAN form which then displayed just the supplier details (this form is bound to the elec table). I can then change the supplier and click ok and I can see the supplier on the main form change which is what I want, however the supplier on the MPAN form still shows the old supplier until I close it and go back in where it has then changed.
Sorry if this is long winded but I think to fix my workaround I need to some how refresh the last window I was on (i.e. the MPAN form). If I put in refreshes it seems to refresh the main screen or the active supplier form I can't seem to refresh the MPAN form.
What version of SalesLogix?
7.2.2
</td>
</tr>