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!
 Architect Forums - SalesLogix Scripting & Customization
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Scripting & Customization | New ThreadView:  Search:  
 Author  Thread: Make datagrid appear as a pop-up instead of in current form
SLX_Novice
Posts: 246
 
Make datagrid appear as a pop-up instead of in current formYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 Oct 12 11:31 AM
fiogf49gjkf0d

Hi All.


SLX LAN v7.2.1


I have a form that has a datagrid in it, but the datagrid is pretty wide so I want to change it so instead of appear on the form, it appears as a pop-up when the end user clicks a button. Any idea how I can do this?


The datagrid is populated using code, based on 2 fields the end user enters data in (textbox and a drop down).


Thank you in advance!

[Reply][Quote]
Mike Spragg
Posts: 1226
Top 10 forum poster: 1226 posts
 
Re: Make datagrid appear as a pop-up instead of in current formYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 Oct 12 12:03 PM
fiogf49gjkf0d

You won't add any benefit in doing so. If you are saying the grid needs to be wider - just make the form it's hosted on wider. Or make the grid scrollable. You can't easily make one grid inherit another so, if you do proceed down this route anyway, then you'll need to re-create it on the popup form (which, in reality is simply a clone of existing but just containing the grid).

[Reply][Quote]
SLX_Novice
Posts: 246
 
Re: Make datagrid appear as a pop-up instead of in current formYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 Oct 12 12:06 PM
fiogf49gjkf0d

Thanks for the reply Mike.


So to be able to make the datagrid pop-up, I'll have to create a new form with just the datagrid. How do I pass the values from the current form onto the second form that will just be the datagrid?

[Reply][Quote]
Mike Spragg
Posts: 1226
Top 10 forum poster: 1226 posts
 
Re: Make datagrid appear as a pop-up instead of in current formYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 Oct 12 12:38 PM
fiogf49gjkf0d
You can't. There aren't any "values" to pass in as it's a grid. Your only option is to create the grid as you do already (but without values). You can then, on your existing view, launch this view and pass the entire grid object to the new forms grid object.

You can see this in action va the manage products and manage campaign targets forms as they do something fairly similar.
[Reply][Quote]
Marcos Orfila
Posts: 40
 
Re: Make datagrid appear as a pop-up instead of in current formYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 09 Oct 12 7:36 AM
fiogf49gjkf0d

As Mike suggested, you can pass any object to the dialog form inside the dialog parameters. The parameters may be the grid DataSource or any ther values required to display in your dialog.


Yo may want this dialog to be as wide as possible, no matter what the screen resolution is. In order to achieve that, I suggest that you open the dialog from the client side, where you can calculate the dialog width and height based on the browser window size.

[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 5:53:28 AM