Hello,
Can anyone shed any light on why this code below when run on a list form works for the selected rows in the classic client and the RTC on a list page,
BUT when the same form is acting as a subform (sales Lines ) and the same code is called from the parent form ( sales header ) it does NOT work
IF WSH.FINDSET THEN
REPEAT
WSHTmp := WSH;
WSHTmp.INSERT;
UNTIL WSH.NEXT = 0;
//Test our selection worked
WSHTmp.RESET;
IF WSHTmp.FINDSET THEN
REPEAT
MESSAGE(WSHTmp."No.");
UNTIL WSHTmp.NEXT = 0;
This seems to be a fundamental bit of code that has worked since version 2.xx that now will not run in the R2 RTC ?
and please don't tell me its a new useful function of the RTC.
B.....
0
Comments
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book
Form supports a lot more functions than a page.
However, the "function list" and the helpfile should be updated, they offer limited information on the subject.
|To-Increase|
A form may not be the same as a page, but.
the form and the page both have the function setselectionfilter accessile in the code desginer
Therefore you would EXPECT that the STD function that has been there for years should work.
my old car and my new car have a brake pedal. When i press the one in the new car it does what the one in the old car does.
Is someone seriously suggesting that when i buy a car i check that the brake pedal on the new car stops the new car or should i assume that because it's there and had a function before it shoudl do the same. ??
](*,)
B
http://www.mibuso.com/forum/viewtopic.php?t=54639
http://support.microsoft.com/kb/980691
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Still doesn't alter the fact that there was a perfectly good working piece of functionality that existed for years that was broken and no-one bothered to fix it and likely won't !
SO i poropse a new question for the exam.
Select the answers most suitable to the following question.
You work for company XYZ where for years you have been developing high quality code. Your customer decides to take advantage of the new 3 tier architecture and RTC client. Following his upgrade he finds that some core functions now fail to work properly. As the consultant your options are
1. Tell them hard luck, No-one is going to fix it, That's progress.
2. Give up go work with another product
3. Watch another unhappy customer leave Nav
B....
Which means, upgrade even further and it works according to that gentleman.
Still doesn't alter the fact that there was a perfectly good working piece of functionality that existed for years that was broken and no-one bothered to fix it and likely won't !
1 It won't be fixed
2 Why don't you rewrite a legacy program to the current technology and try to maintain all the functionality on the first try.
3 No is still a valid anwer, do you always go in the defense when you receive a negative answer?
|To-Increase|