CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 File Upload component as part of the Tabbed View [RESOLVED]

Print topic Send  topic

Author Message
rrado

Posts: 5
Posted: 11/27/2010, 6:57 AM

HI ,

I have tabbed view with 5 tabs. For first 4 tabs I use Update Panel so, whenever I run update of the tab I always stay in the same tab.So, for these 4 tabs everything is fine . However in 5th tab I have File upload component which (officially) doesn't work in Update Panel. Is there anybody here who set the file upload component in tab and that works fine. The upload component works just fine when is located in the tab, however once the upload of the file is done, it returns me to the first tab (since it reloads the whole page).
Does anybody have any idea how I can make this work. It's really important for me to set the file upload component in the tab (specially to be in the 5th tab).

One of the solution that I found here is what Andy suggested long time ago, but to be honest for me it's not 100% clear where to put the proposed code (http://forums.yessoftware.com/posts.php?post_id=102257).

So, again, I need to find out solution just for 5th tab with file upload manager, where when I attach the document I need to be returned to the 5th tab (not to the Tab 1).
Even more simple> Regardless of what is the content of the tab, I need to remain in the same tab (#5) after submitting a record. The rest of the 4 available tabs will be managed by Update panel and I don't have problem with them.

Ohhhh, I hope that I'm clear :(

Thanks a lot for any kind of help.


Rado
View profile  Send private message
rrado

Posts: 5
Posted: 11/27/2010, 12:01 PM

Is there anybody willing to help me, Pleaseeeeeeee.

Thanks,

Rado
View profile  Send private message
rado

Posts: 221
Posted: 11/29/2010, 11:24 AM

HI,
I'm progresing with this case and so far 70% is working. So I inserted in html of the page the following code:
Panel1YahooTabbedView.set('activeIndex', CCGetParam('tab') == '' ? 0 : CCGetParam('tab'));

And, in my File upload record in "After Instert" I set the following:

global $Redirect;
$Redirect = "TenantTab.php?tab=4";

Now, after sucessfull file upload I remain in the same tab, however when I try to click "Add" button without inserting any file, the validation fails (since the file name is mandatory) and it returs me to Tab 1.

I tried to insert in "On Validate" event something similar like:

if ($FileName == "") {
$Container->Errors->AddError("The value in field 'File' is required");
global $Redirect;
$Redirect = "TenantTab.php?tab=4";

however it still returns me to the Tab1.

Do you now how I can set the "tab" variable in HTML page, so when I click on Tab1 I will first alter the value of "tab=""", then set the current value of the tab=1 and so on when I click on Tab 2 I will reset tab value to nothing (tab="") then set new value (tab=2).

I think with this, the case will be resolved.

Thanks,

Rado
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.