![]() I get the ID of the client from the main clients grid. ![]() I can save the IDs anywhere (array, table), the problem is always the same. When I go back to a previously opened tab (click on a tab), how can I know which ID it is? The issue is the same as mentioned above. The issue rises when I go back to a previously opened tab ! How can I know which ID it is ?Īlgavar: I thought about this (using a table with IDs). Everytime I open a new client tab, I can save its ID in an array. Rodattoni: I understand the idea of keeping all the “clients” ID. SO MY QUESTION IS: how do you guys have solved this big issue? I haven’t found anything about variables that are local to one instance of an application, which would solve this issue.They are shared between all instances of the same application. If I go back to client #1 and I click the “Insert” button, the code mentioned above in the “OnLoad” event will take the id of client #2 to perform the INSERT.Right now, the global variable is set to “2” because the last tab I open was the one of client #2.I now open client #2 from the main grid app and I also go into the Addresses tab.This opens a new Form in my Menu App and I can open the Addresses Tab. From the Main Grid app (grid with client info), I open the client #1. This works perfectly fine too IF I OPEN ONLY ONE CLIENT AT A TIME. In the Address Form, in the “OnLoad” event, I have the following code to handle the INSERT.This works perfectly fine too because the link is based on the record row and the “add_client_id” is passed to the form. From this addresses grid, I can use the “Edit” feature (application link) to open the Address From applciation to update an address.So at this point, the addresses grid has a SQL with a “WHERE add_client_id = ” which works perfectly fine.To open this Grid app, it’s done throught the master-detail feature from ClientEditForm and I pass along the “client_id” through another global named “”. This is a grid with several addresses for the client. in the ClientEditForm, one of the tab is the addresses of the client. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |