Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, November 29, 2024 
 
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 - Controls
Forum to discuss usage & tips for SalesLogix controls and other 3rd party ActiveX controls. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to Controls | New ThreadView:  Search:  
 Author  Thread: Open datagrid when button is clicked
SLX_Novice
Posts: 246
 
Open datagrid when button is clickedYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Jul 08 2:53 PM
Another question...how do I open a datagrid I created when I click a button.

I would like to have it open in the middle of the account detail view, I would like to be able to move it around the account detail, have it "float" over the account detail view.

Of course also have the ability to X out of it.
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Open datagrid when button is clickedYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Jul 08 3:07 PM
Why not just open it in a window?

Otherwise you just add the grid on the Account Detail and toggle it's Visible property. As far as moving it, you just play with the Left and Top properties. I'm not sure you'll have much luck with dragging it around and runtime, but that would be something to play with.
[Reply][Quote]
SLX_Novice
Posts: 246
 
Re: Open datagrid when button is clickedYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Jul 08 3:09 PM
How do I get the datagrid to open in a window when the button is clicked?
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Open datagrid when button is clickedYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Jul 08 3:15 PM
Create a new form, add a datagrid to it. Then when the button is clicked open the form (using DoInvoke if it's a manage form, or ShowViewForRecord if it is a data form based on a table).
[Reply][Quote]
SLX_Novice
Posts: 246
 
Re: Open datagrid when button is clickedYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Jul 08 3:25 PM
Ok. I already created the form (Account Form) and added the datagrid (myDatagrid), I added the button to the account detail form.

Now, I create a function:

Sub btnOpenMyDataGrid (Sender)

myDatagrid.ShowViewForRecord

End Sub

I get an error: Object required 'myDatagrid'

What am I doing wrong?
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Open datagrid when button is clickedYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Jul 08 3:28 PM
The fact that the window has a datagrid on it makes no difference. Just the same as opening a blank form in SLX. ShowViewForRecord is part of Application.BasicFunctions, not part of the DataGrid.

Start with just opening a blank window. Then add your datagrid on that window.
[Reply][Quote]
SLX_Novice
Posts: 246
 
Re: Open datagrid when button is clickedYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Jul 08 5:53 PM
Will do! Thanks.
[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 © 2024 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): 11/29/2024 11:27:28 PM