11/3/2025 10:14:39 PM
 
										
										 
										 
										 
										 
										 
										 
										 
									 | 
									
									
										
											
												
													
														
															|   | 
															
																
																
																	
																		| 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! 
	 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. 
 | 
	
 | 
  
 
																			
																			 
																			
		
			 | 
		 
			
		 
			 | 
				
					Programatic Change to another View  
						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   | 
				 
					 | 
				 
			  | 
		 
			 | 
				
					Re: Programatic Change to another View  
						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 | 
				 
					 | 
				 
			  | 
		 
			 | 
				
					Re: Programatic Change to another View  
						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
 
  | 
				 
					 | 
				 
			  | 
		 
			 | 
		 
	 
																			  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!
			 |   
		 | 
		  | 
	 
 
 																					
																					
																		 | 
	  | 
 
																 
																
																
																 | 
														 
													 
												 | 
											 
										 
									 |