Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Saturday, February 22, 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: Hidden panel toggled by radio button
Steve Knowles
Posts: 657
Top 10 forum poster: 657 posts
 
Hidden panel toggled by radio buttonYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 Mar 08 12:24 PM
In the form I am creating I would like to hide 4-5 fields and toggle them visible/hidden with a radio button. The form is set up in one column so when visible they would extend the length of the form, when not they would not show and the form would shorten itself . Are there any examples of this or can anyone point me in the right direction? I was hoping to find some controls that might handle this but don't seem to find any that might do this when I right click/insert on the form. Thanks
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Hidden panel toggled by radio buttonYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 Mar 08 1:40 PM
The rows and columns cannot be toggled visible or not since their output is not named. When they are rendered as tables the td/tr tags are not named and so you'll have a tricky time toggling their visibility. Not only that, but since they are not set with runat="server" you'd only be able to do it with client-side javascript anyway.

So, toggling visibility of rows/columns isn't exactly possible, but individual controls is certainly doable. Problem is that this leaves empty spaces on the form where the controls used to be. Doing this from a custom SmartPart would be a breeze to pull this off.
[Reply][Quote]
Steve Knowles
Posts: 657
Top 10 forum poster: 657 posts
 
Re: Hidden panel toggled by radio buttonYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 Mar 08 1:44 PM
I suspected as much. So doing this from a custom smart part - that would involve creating an .asmx in VS and running the insert with SQL through the SLX provider, then bringing into slx through the AppArch?
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Hidden panel toggled by radio buttonYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 Mar 08 1:52 PM
Quote:
Originally posted by Steve Knowles

I suspected as much. So doing this from a custom smart part - that would involve creating an .asmx in VS and running the insert with SQL through the SLX provider, then bringing into slx through the AppArch?


You would create a new ASCX files (an ASP.NET UserControl), but this doesn't mean you'd have to manually populate and insert/update the data upon saving. You could still bind it all up. That is what happens with quickforms done in the AA, when you build and deploy they get converted to ASCX files as well. Take a look at the SmartParts folder in the deployment directory and look how those are constructed. You could just type a new one up in notepad (modeled after those). You can build those manually just the same.

Make sense?
[Reply][Quote]
Steve Knowles
Posts: 657
Top 10 forum poster: 657 posts
 
Re: Hidden panel toggled by radio buttonYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 Mar 08 2:14 PM
Very cool. I will check it out. Can I create the smartpart in SLX, then edit it in VS and suck it back into SLX? If I started from scratch, could I use VB as opposed to C#? Thanks for the tip.
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Hidden panel toggled by radio buttonYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 Mar 08 2:19 PM
You can create it initally as a quickform in the AA, but once you edit it outside it will forever be disconnected from the quickform. What you can do is create the quickform in AA, then copy the deployed file as a new name and make your changes to it, then add it into the Support files for the portal and then add it to the necessary page. That way it gets deployed each time with the rest of the site (and can be bundled as well).

If you started from scratch then you could do it in VB if needed.
[Reply][Quote]
Steve Knowles
Posts: 657
Top 10 forum poster: 657 posts
 
Re: Hidden panel toggled by radio buttonYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 05 Mar 08 9:09 AM
How can I leverage Javascript within a smartpart or even the aspx page within the AA? Do I need to do this in VS? I am really still trying to hide/disable controls. I have a way to do it in C# within the AA which will work from the dev class, but am interested in how to leverage javascript going forward. Any advice appreciated.
[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/22/2025 8:57:27 AM