Hi!
Help please. There is a problem
:
We have a temporary record. There is also a form for this record. When i try to set markedonly filter (not important from C/Al o from intarface) there is an error 1 in module 43. If using the Native DB option, error is absent, my code works excelent. But i need to do this for SQL...
Thanks
Comments
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
- temp rec
- runing a form on this rec
- setting some marks
- using markedonly filter
is there anything else special that sou set (or change in code)
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
I'd made all field indetifiers of this table like F1...F20, error still apears.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Yes, the situation is deeper...
- i'm not able to use FORM.RUN, becouse of i need to identify form first
- on init function i do my needs and also do TempRec identification, for example:
f.InitMyForm(Some Parameters...., SourceForTempRec);
if f.RUNMODAL = Action::LookupOK then
f.GetMyTempRec(SourceForTempRec);
- Rec of my form is always empty, OnFind and OnNext are like followed:
OnFindRecord(Which : Text[1024]) : Boolean
TempRec.COPY(Rec);
Found := TempRec.FIND(Which);
TempRec.CALCFIELDS(f9, f10, f11, f15, f12, f16, f17);
Rec := TempRec;
EXIT(Found);
OnNextRecord(Steps : Integer) : Integer
TempRec.COPY(Rec);
ResultSteps := TempRec.NEXT(Steps);
TempRec.CALCFIELDS(f9, f10, f11, f15, f12, f16, f17);
Rec := TempRec;
EXIT(ResultSteps);
- marks are sends to SourceForTempRec from Rec in function GetMyTempRec like SourceForTempRec.COPY(Rec);
There is my error if use MARKEDONLY on form or on SourceForTempRec in C/AL. And it works excellent with Native DB option.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
I want to make a form for selecting items for invoice. The way of getting my items is collecting them in some buffer table with several FlowFields. The base of buffer table is some Ledger Entry table. In my case buffer table is my TempRec. There are some different situations of selecting. So, i do not want to make special form for each of them, it's not prity (but there is the way of solving my problem). I want to mark some strings in seleting form and paster followed values to invoice after form closing.
To test my problem quckly you can use Form 583 XBRL Taxonomy Line. In original wariant MARKEDONLY does not works correctly on this form (using SQL). With some code correction you can get my error too.
instead of rec.mark, you set the field to true.
instead of markedonly, you setrange on this field.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
and a boolean that can be filtered by can also look as standard (like Open on Entries records)
and the end users ususally don't even notice that. they don't care if it works
but it's your choice...
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
F.GetParam(tmp);
// my Code
tmp.MARKEDONLY(TRUE); :?:
// end my Code
IF tmp.FIND('-') THEN
...but in GetParam You must to send marks from Rec to tmp before
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
What about Technical upgrade? Which HotFix you are using for 3.60 SQL?
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
So, will write to tecnical support....
Thank You.