Jump to content

take value from lookup modal form


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 post
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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...