HASVALUE and CALCFIELDS order

matthiasclaes
Member Posts: 18
NAV 5.0 sp1 on SQL, build 26084
Do you need to call BlobField.CALCFIELDS before BlobField.HASVALUE ?
The C/SIDE Reference Guide is not clear on this, and even suggest otherwise in the documentation of the TRANSFERFIELDS function:
However, this forum post suggests otherwise:
Can someone confirm this?
Do you need to call BlobField.CALCFIELDS before BlobField.HASVALUE ?
The C/SIDE Reference Guide is not clear on this, and even suggest otherwise in the documentation of the TRANSFERFIELDS function:
BLOB Fields
If you are copying a record that contains a BLOB field, you must calculate the BLOB field before it can be copied with the rest of the record.
IF Mytable.BLOB.HASVALUE THEN
Mytable.CALCFIELDS(BLOB);
However, this forum post suggests otherwise:
My own experiments with NAS programming indicate that HASVALUE requires a CALCFIELDS (at least when a bitmap is stored in them).Thanks very much. Putting CALCFIELDS before checking HASVALUE did the trick. Silly ommision on my part.
Thanks to kriki too for achieving that in another way.
Regards,
NVG
Can someone confirm this?
0
Comments
-
Hi Mattiasclaes
Unfortunately in 5.01 Build 26084 you do need to use a Calcfield before a HASValue.
2009 No need for Calcfield before a HASValue...
Both give the same result....
Item.FINDFIRST;
REPEAT
Item.CALCFIELDS (Picture);
IF Item.Picture.HASVALUE THEN
MESSAGE ('(%1)', Item."No.");
UNTIL Item.NEXT = 0;
//No need for Calcfield
Item.FINDFIRST;
REPEAT
IF Item.Picture.HASVALUE THEN
MESSAGE ('(%1)', Item."No.");
UNTIL Item.NEXT = 0;
Hope this helpsBig D signing off!1
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions