Blob

njaiku
Member Posts: 116
Suppose if i have a form A with the field BLOB (having the picture).
If i want to get the same data from the Form A to the form B including the BLOB field. Is it possible. Can anyone give me the solution?
If i want to get the same data from the Form A to the form B including the BLOB field. Is it possible. Can anyone give me the solution?
Jai
0
Comments
-
This is a fairly simple & straighforward task and you can use the copystream function (look it up in online help for more details).
Here's some pseudocode that should help you out. (Note that i may have the order incorrect on the copystream function as I don't remember the syntax off the top of my head)RecordA.calcfields(BLOBField); RecordA.BLOBField.createoutstream(outsreamVar); RecordB.BLOBField.createinstream(instreamVar); copystream(outstreamVar,instreamVar); RecordB.modify;
Thats how I have been able to get BLOB datamoved around. Should you not have a BLOB field on a record you can always use an instance of the TempBlob table (Table99008535) to work with BLOBs and streams.0 -
Thank you very much for this solution. I have a doubt whether i need to place these coding in Form A or Form B
Whether i need to place these codings in the table level.
Can u able to help me out ?Jai0 -
I would think it would be easiest to place this kind of logic at the table layer. I try to keep forms as "dumb" as possible, and place any logic into a table or codeunit. As you cannot view all of the code in a form (i.e. you an only see the OnClick/OnActivate/OnPush, etc. triggers of the active element) if code is on forms it can be harded to find and fix at a later point.0
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