SETSELECTIONFILTER in R2 RTC Broken ???

brucembrucem Member Posts: 86
edited 2012-10-10 in NAV Three Tier
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.....

Comments

  • brucembrucem Member Posts: 86
    how can that possibly be ???
  • SogSog Member Posts: 1,023
    Because a page is not the same (different triggers and such) as a form.
    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.
    |Pressing F1 is so much faster than opening your browser|
    |To-Increase|
  • brucembrucem Member Posts: 86
    Hello,

    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
  • brucembrucem Member Posts: 86
    Thanks

    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....
  • SogSog Member Posts: 1,023
    You are not doing anything wrong. You just found a flaw in the current release ....
    Please stay tuned for the final NAV2013 release

    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?
    |Pressing F1 is so much faster than opening your browser|
    |To-Increase|
Sign In or Register to comment.