Dear All,
These are the coding I wrote in the C/AL editor :
SETRANGE(Status,ProdOrderStatus);
IF ProdOrderFilter <> '' THEN
SETFILTER("Prod. Order No.",ProdOrderFilter)
ELSE
SETRANGE("Prod. Order No.");
CurrForm.UPDATE(FALSE);
I select demand is simulated, when I write the prod. order no. in the field prod. order filter, and its status is released, the window is missing because the production order no. doesn't match with selected status, meanwhile I want it return to the windows and put a message in the pop up window : "the prod. order no. doesn't match with status selected", how to make it ? Tks be4hand..
Rgds,
Mark
0
Comments
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
I will try to put and run it. hope my kudos isn't too overload..
Rgds,
Mark
Using the above, I can't run it and when i close form designer this message appears (pop up message) :"")" should come here" then the cursor placed precisely between doesn' and t.
I could use it if I change doesn't to be does not. It will be more grammatically rather than doesn't, won't it ??
Rgds,
Mark
In case you want to keep it like this, the word "doesn't" should be "doesn''t". If you have a single ' in a string, you should put 2 single ' in it.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
It works good after I create a local but not global. I wrote as follows:
IF NOT FIND('-') THEN BEGIN
MESSAGE(text001);
EXIT;
In the C/AL Local I wrote :
Name ConstValue
text001 The prod. order no. doesn't match with status selected.
But this one : is really s**t words.. it can't work. sorry but tks a lot
Rgds,
Mark
The problem is that the single ' is used to start and stop a string, so when Navision sees it in a string, he thinks that the string is finished and goes in tilt with the rest of the string. That is the reason it is needed to use 2 single ' in the string.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!