cancel
Showing results for 
Search instead for 
Did you mean: 

Browser File and Return Full Path

Former Member
0 Kudos

Hello.

I would like to create a button that browse for a file and have the full path returned to a EditText.

Thanks For your help,

Jose,

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Jose,

look at

hope it helps you

Former Member
0 Kudos

Hi Petr.

Can you explaining this part thank:

Inside event of button click emulate dbl click to first blank row (cell with path) and file dialog will shows.

This open a browser for select the File ?

Regards,

Jose

Former Member
0 Kudos

Yes, the dbl click will open the file browse dialog. The click will be done as

matrix.Columns.Item("col").Cells.Item(1).Click(SAPbouiCOM.BoCellClickType.ct_Double)

Former Member
0 Kudos

Excuse Petr, But can you explaining how do this:

I do not working with matrix alone, I use EditText and Button. What I need is that when I click the button, it opens the browser file. when I select the file the path is selected in my EditText. What i will like to do is replicate the event that generates in Windows when you select a file on the windows explorer.

Is my first work with this. And Thanks for your help.

Regards,

Jose

Former Member
0 Kudos

It is same for edittext. To better undestand your needs, what do you have done already?

Former Member
0 Kudos

I have a UserField ("PATH"), a Button as ("Browser") and EditText.

I need this:

When I clic the Button open the browser file. When select the file selected the full path on the EditText. After I Click on other button call Add and this path is store in the UserField ("PATH").

Regards,

Jose

Former Member
0 Kudos

I expect that the user field is subtype link as I described in the link above. If yes, is enaugh to bind the edittext to this field. Is it your form or system form?

Former Member
0 Kudos

Hi.

Alrady I have the UserFields Subtype Link and the bind of the EditText to the UserField. This is my form create in Screen Painter.

I am sorry by the name of the user but I am using other computer.

Regards,

Jose

Former Member
0 Kudos

ok, and when you dblclick to edittext, is the form dialog shown?

Former Member
0 Kudos

Thanks Petr.

I am doing the tests.

Regards,

Jose