Jump to content

take value from lookup modal form


tarey

Recommended Posts

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

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...