mibuso.com

Microsoft Business Solutions online community
It is currently Wed Jun 19, 2013 11:38 pm

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Form transformation and GETRECORD issue
PostPosted: Mon Jul 16, 2012 2:38 pm 
Offline

Joined: Thu Jun 21, 2012 11:13 am
Posts: 287
Country: France (fr)
Hi everyone,

I am trying to transform a form to a page under Nav 2009...

The problem is in this piece of code(code in the OnPush Trigger of a MenuItem):

Code: Select all
CurrForm.MatrixForm.FORM.GETRECORD(customer);


In fact, Now, it doesn't raise any error during the transformation and also compiles.
It becomes:
Code: Select all
CurrPage.MatrixForm.FORM.GETRECORD(customer);


but does not work. It always returns the first record in the subpage no matter what.

How can I fix that???? Any idea???


Top
 Profile E-mail  
 
 Post subject: Re: Form transformation and GETRECORD issue
PostPosted: Mon Jul 16, 2012 2:43 pm 
Offline
MVP Microsoft Dynamics NAV
Site Supporter

Joined: Fri Jun 06, 2003 9:01 pm
Posts: 6992
Location: L.I., New York
Country: United States (us)
http://msdn.microsoft.com/en-us/library/dd355131.aspx

_________________
Harry Ruiz
http://www.cosmeticsolutions.com
http://www.autismspeaks.org


Top
 Profile E-mail WWW  
 
 Post subject: Re: Form transformation and GETRECORD issue
PostPosted: Mon Jul 16, 2012 2:47 pm 
Offline

Joined: Thu Jun 21, 2012 11:13 am
Posts: 287
Country: France (fr)
I already did that and transformed the form, MatrixForm is the name of the subform control , that's all :)
Now, I have a problem with a MenuItem of a button in the Main Form...It doesn't work anymore after the transformation of the redesigned form to a page...


Top
 Profile E-mail  
 
 Post subject: Re: Form transformation and GETRECORD issue
PostPosted: Mon Jul 16, 2012 3:14 pm 
Offline

Joined: Thu Jun 21, 2012 11:13 am
Posts: 287
Country: France (fr)
It is not a Matrix issue, guys, I already got rid of it...

Let's assume we have in the form:
Code: Select all
CurrForm.EvalForm.FORM.GETRECORD(customer);


After transformation, it becomes:
Code: Select all
CurrPage.EvalForm.FORM.GETRECORD(customer);


but does not work anymore(brings always the first record)....

What should I do????


Top
 Profile E-mail  
 
 Post subject: Re: Form transformation and GETRECORD issue
PostPosted: Tue Jul 17, 2012 1:04 pm 
Offline

Joined: Thu Mar 18, 2010 1:03 pm
Posts: 80
Country: Germany (de)
That doesn't work. Have a look here for a workaround.

http://mibuso.com/forum/viewtopic.php?f=32&t=35876

_________________
Thomas Martin
NAV Developer


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum


Search for:
Jump to: