cancel
Showing results for 
Search instead for 
Did you mean: 

How to retrieve value from modal window?

aleksandra-0601
Explorer
0 Kudos

Hi!

Another problem with modal window, this time such one:

aleksandra0601_0-1712779694484.png

I can retrieve the value total available stock with text function, but I am not able to retrieve the values from the grey fields. I tried with property 

  • ShowMessageBox

but it doesn`t work. Also the tracker does not register these fields. Has someone any idea?

Accepted Solutions (0)

Answers (1)

Answers (1)

Adword
Newcomer
0 Kudos

 Grabbing info from a modal window depends on how it's built:

Fancy Frameworks 

  1. Find the element with the pro value you want (text box, dropdown, etc.) inside the modal.
  2. Use a bit of magic Javascript (don't worry  it's simple) to grab the value when a button is clicked. Imagine it like a tiny hand reaching in and snagging the info.

Plain Javascript

  1. Similar to above, find the element with the value.
  2. Use a different kind of Javascript trick (also simple) to grab the value when a button is clicked. Same idea, tiny Javascript hand snags the info.

 Knowing what kind of modal you have (fancy framework or plain Javascript). If you tell me more about that, I can give you the exact Javascript hand trick to use!

aleksandra-0601
Explorer
0 Kudos

Hello @Adword!

Thank you for you response

I do not know Java, I use Excel and VBA in my codes. Is it possible to do it just with VBA? or "connect" these two methods in some easy way?