Welcome Guest Search | Active Topics | Sign In | Register

FileExplorer Options
Toko
Posted: Tuesday, November 30, 2010 11:18:31 AM
Rank: Newbie
Groups: Member

Joined: 12/28/2009
Posts: 8
Hi there,

I'm using eo essentialobjects vs 7.0 (2009) to my full content.
I want to use FileExplorer for my users to download a file from the WebServer.
So far, so good.
Now in the code-behind (VB) after the user clicking a download-button, I can use the property 'SelectedFile' which gives me the appropiate FileName. But if more than 1 checkbox is clicked, how do I get to the collection of Selected Files?

Best regards,
Tom van Leeuwen
eo_support
Posted: Tuesday, November 30, 2010 11:49:57 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You can not. The check box is for you to select files to delete and that's its only purpose. You won't be able to use it for any other purpose. Sorry about it!

Thanks!
Toko
Posted: Tuesday, November 30, 2010 5:22:46 PM
Rank: Newbie
Groups: Member

Joined: 12/28/2009
Posts: 8
Hi,
I'm sorry to say, but I don't believe you.
If I am able to get in code the first Filename with the checkbox 'checked' why shouldn't I get all the Filenames with the checkbox 'checked'? There must be a collection of Filenames in the Grid, otherwise your code (Delete) wouldn't know either...
Please help,
Tom
eo_support
Posted: Tuesday, November 30, 2010 7:52:48 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Well, what we can access and what you can access are two different things. : ) Our code certainly can access all our internal data but you can only access public interface. The checkbox was designed for Delete feature only and there is no plan to expose it for other use. Thus you will not be able to access it.

Thanks!
Toko
Posted: Thursday, December 2, 2010 4:44:32 AM
Rank: Newbie
Groups: Member

Joined: 12/28/2009
Posts: 8
Hello there!
I used the ClientSideOnFileSelected and the next JS to get the trick done:
function get_file()
{
//Get the FileExplorer object
var fileExplorer = eo_GetObject("FileExplorer1");
var str = fileExplorer.getSelectedFile();

//Get the Textbox control
var tbox = document.getElementById("<%=TextBox2.ClientID%>");

//Set the textbox's value + CrLf
tbox.value += str + "\n";
}
The Textbox has width and height 0 and has the same Backcolor as the form.
Et Voila!
In code behind I transfer the contents of the Textbox into a array of Filenames and count the number of times that a name occurs: odd = OK, even = not selected

Thanks...
eo_support
Posted: Thursday, December 2, 2010 9:50:52 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Yes. You can do it that way.

Thanks!
Toko
Posted: Thursday, December 2, 2010 2:52:39 PM
Rank: Newbie
Groups: Member

Joined: 12/28/2009
Posts: 8
So why didn't you say so?
eo_support
Posted: Thursday, December 2, 2010 3:18:06 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Because we do not code for you and we do not want to tell you that your code is wrong for what you have asked for after you have so happily claimed success. You have asked for how to get a list corresponding to the checkboxes. The code you provided does not get all checked items. It gets all items that have been clicked, it's not even a list of selected items. We have no objection if a list of all items that have been clicked works fine with you, but our original answer is still accurate and correct.

This is a forum where we provide you answers in the hope that they maybe helpful to you. If you do not believe what we tell you, or do not feel what we tell you is useful, you should stop asking us questions and seek help elsewhere. This is not a place to prove that you smarter than other people around here. It is important for you to understand that while we encourage you to participate, the forum is our property and we do impose a set of rules in the hope that most of our users will find the support forum to be a useful place and to be a pleasant experience using it. For that reason we do not tolerate any flammable, disrespectful or personal attack posts or posts that are completely unrelated to our product, or anything that can undermine a corporative and constructive atmosphere here. So please keep that in mind in the future.

Thanks
Toko
Posted: Friday, December 3, 2010 4:16:10 AM
Rank: Newbie
Groups: Member

Joined: 12/28/2009
Posts: 8
Hi there,
I did not mean to be rude or disrespectful at all!
It was merely to point out that you did not help me by saying: 'You can not'
Instead if you had told me that the solution to my problem was on the client side, it had saved me hours.
Regards,
Tom van Leeuwen


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.