Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Sunday, February 23, 2025 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Web Forums - SalesLogix Web Platform & Application Architect
Forum to discuss the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Platform & Application Architect | New ThreadView:  Search:  
 Author  Thread: communication between smartparts
ulaga
Posts: 28
 
communication between smartpartsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 03 Jun 08 1:40 AM
Eg:-In Accounts.aspx page,has many smartparts.

In maincontent area ,one dropdown list is there,if user selects
vendor in dropdown list then in Tab area one more Tab should be generated.
How to Achieve this?


Ulaga
[Reply][Quote]
slxguy
Posts: 71
 
Re: communication between smartpartsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 03 Jun 08 7:42 AM
Hiding and showing the tabs might be quit difficult. Have you thought about just disabling the controls on the other tab and always showing it? This can be achieved easily by databinding to the Enable property of the controls.
[Reply][Quote]
ulaga
Posts: 28
 
Re: communication between smartpartsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 03 Jun 08 8:20 AM
Hi Nick,

Actually i have 3 tabs.
1.AccountExtendedDetails
2.AccountContacts
3.AccountOpportunities.

When the Account.aspx is browsed,AccountOpportunities tab will be selected as default.
So what i did is onFormBound of AccountOpportunities tab,i wrote this codesnippet,
Sage.Platform.WebPortal.Workspaces.TabWorkspace objAccounts = new Sage.Platform.WebPortal.Workspaces.TabWorkspace();
objAccounts.ID = "TabControl";
objAccounts.OverrideActiveTab = "AccountExtendedDetails";

It is working correctly.(i.e when page loads it goes AccountExtendedDetails tab)
But my problem is when i change accounttype(picklist) in AccountDetails smartPart,this tab should be changed.

Ulaga
[Reply][Quote]
slxguy
Posts: 71
 
Re: communication between smartpartsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 03 Jun 08 8:31 AM
What if you add an onChange event code snippet (for the picklist) that will redirect them to the correct tab:

Response.Redirect(string.Format("Account.aspx?entityId={0}&activetab=AccountOpportunities", (this.BindingSource.Current as Sage.Platform.ComponentModel.IComponentReference).Id));
[Reply][Quote]
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
Re: communication between smartpartsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 03 Jun 08 9:47 AM
Quote:
Originally posted by ulaga

Hi Nick,

Actually i have 3 tabs.
1.AccountExtendedDetails
2.AccountContacts
3.AccountOpportunities.

When the Account.aspx is browsed,AccountOpportunities tab will be selected as default.
So what i did is onFormBound of AccountOpportunities tab,i wrote this codesnippet,
Sage.Platform.WebPortal.Workspaces.TabWorkspace objAccounts = new Sage.Platform.WebPortal.Workspaces.TabWorkspace();
objAccounts.ID = "TabControl";
objAccounts.OverrideActiveTab = "AccountExtendedDetails";

It is working correctly.(i.e when page loads it goes AccountExtendedDetails tab)
But my problem is when i change accounttype(picklist) in AccountDetails smartPart,this tab should be changed.

Ulaga


The active tab etc. gets set on page load, so you couldnt perform it on the onchange of a control. You would literally have to reload the page (as specified in a previous post).
[Reply][Quote]
ulaga
Posts: 28
 
Re: communication between smartpartsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 Jun 08 1:09 AM
Yes Nick ,what U said is correct.It Loads perfectly on page load only.
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 2/23/2025 6:01:03 AM