tarey Posted April 5, 2018 Share Posted April 5, 2018 Hi, I have been trying to take value from a lookup modal form that contains a grid showing values for choosing to a main form editbox. How can i do this in Unigui? I tried many ways but i am unable to do show. Can you please guide what is the best way to do so> Regards Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 6, 2018 Share Posted April 6, 2018 Hi, Also you can use UniDBEdit for this I think Best regards, Quote Link to comment Share on other sites More sharing options...
Ron Posted April 6, 2018 Share Posted April 6, 2018 On the click event of the grid you can save the chosen value, and then set modalResult:=mrOK, or mrCancel if the user cancels the form. In the mainform you use the showmodal with a callback function to show the form in the first place, and then in that callback function you do whatever with the saved value, depending on the modalresult. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.