What is the point of CFront?

deltoiddeltoid Member Posts: 41
So I decided to have a look a cfront yesterday.

I was making calls to the cfront assembly from C#. After having a play with it for awhile I can not really see what the point of it is. Why would you not just use ODBC or similar so that you can use ADO and have a nicer way of dealing with the recordsets and data?

Or is cfront not really designed to be used from C# and instead designed for things like excel where you might be a bit more limited in what you can do in the way of programming?

Just after using it for a little bit to do some database calls / updates I realised that it is easier and more elegant using ADO to do it with ODBC than it is to use cfront.

Comments

  • kinekine Member Posts: 12,562
    1) You have flowfields functionality in C/Front
    2) C/Front is backend independent - doesn't matter if you are connecting to SQL or Native DB
    3) You have Options with text, not just numbers like when working with ODBC

    This are the main differences...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • deltoiddeltoid Member Posts: 41
    kine wrote:
    1) You have flowfields functionality in C/Front
    2) C/Front is backend independent - doesn't matter if you are connecting to SQL or Native DB
    3) You have Options with text, not just numbers like when working with ODBC

    Ok, so that is about it though? I've also noticed that you can get the "Wrong version of navision" when connecting to a different version database which is kind of a pain if you want to write a program which works for all databases which makes the backend independent part not all that great.

    I can see your point with the other two options but it is still a pretty annoying way of going about it with all the record handles and all that sort of thing. You would think that considering it is CFrontDotNet they would have tried to make it be a bit more .netish for instance when your getting data from the database you put it in a recordset or something.
  • kinekine Member Posts: 12,562
    deltoid wrote:
    Ok, so that is about it though? I've also noticed that you can get the "Wrong version of navision" when connecting to a different version database which is kind of a pain if you want to write a program which works for all databases which makes the backend independent part not all that great.

    It is not problem of your application but of installed C/Front. It must have same version as NAV, but your code is not version depending...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • deltoiddeltoid Member Posts: 41
    Can you have multiple versions of CFront installed?
  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    No you can't. But I believe C/Front is backwards compatible: with C/Front for Dynamics NAV 5.0 you should be able to access the databases of lower NAV versions.
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • deltoiddeltoid Member Posts: 41
    No you can't. But I believe C/Front is backwards compatible: with C/Front for Dynamics NAV 5.0 you should be able to access the databases of lower NAV versions.

    Hmm, might need to try that out again when I'm at work next week. Pretty sure I was trying to connect to a 3.70 database from cfront for version 5.0 and it said I had the incorrect version. Might try that again though.
  • kinekine Member Posts: 12,562
    You just needs to be sure that the Application path for navision is set to client folder with correct version. if you installed NAV 5.0, the path in registry will lead to this folder. But if you have somewhere 3.70 client, you need to change the path to this folder to force C/Front to use correct DLLs (dbm.dll, nc_tcp.dll, ndbcs.dll, slave.exe)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
Sign In or Register to comment.