Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Tuesday, November 26, 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 - 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: Programatic Change to another View
Paul Pacun
Posts: 48
 
Programatic Change to another ViewYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 16 May 06 2:44 PM

zoloft vs weed

zoloft weed panic attack
fiogf49gjkf0d
Hi,
We are trying something which is usually simple but its not working. We have a add form (frmAddNewProperty) and when a property has been added I would like the system to display the form. The property gets added perfectly, but it just ends up on the grey
property form with NO RECORD.

I have tried this
dim mv
set mv = application.MainViews.GetViewForRecord(strPropertyID,"C_PROPERTY")
mv.currentid = strPropertyID
mv.show

and this
'msgBox strPropID
If Len(Trim(strPropertyID)) = 12 Then
Application.BasicFunctions.DoInvoke "MainView", "System:PropertyDetail"
Application.MainViews.ActiveView.CurrentID = strPropertyID
application.MainViews.ActiveView.Show
End If

I can see the form load with the debugger, but it won't display.

The code is in AXFormClose(Sender) event. Is this the wrong place?

Thanks for your help.

Paul
[Reply][Quote]
James Jury
Posts: 23
 
Re: Programatic Change to another ViewYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 17 May 06 4:01 AM

amlodipin

amlodipin krka read
fiogf49gjkf0d
Paul,

Try somthing like:

Set objMainView = Application.MainViews.Add("System:PropertyDetail", 0, False)
objMainView.CurrentID = strPropertyID
objMainView.ShowModal
set objMainView = nothing

The GetViewForRecord will only launch if there is a mainview existing which associated with the BaseTable C_PROPERTY

James
[Reply][Quote]
Paul Pacun
Posts: 48
 
Re: Programatic Change to another ViewYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 17 May 06 2:53 PM
fiogf49gjkf0d
Thanks for your help,

After much testing and head banging I realized the script which was calling my Insert form it was responsible for the unexpected results. All is well now, thanks!

Paul

[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/26/2024 12:26:07 AM